cancel
Showing results for 
Search instead for 
Did you mean: 

Error "Error building cloud application deploy model" when deploying to SAP BTP CF

UxKjaer
Product and Topic Expert
Product and Topic Expert

Hello experts,

I was hoping someone would know how to resolve this error. I am getting it when I"m trying to deploy my CAP project.

I can't see anything in the cf logs or in the instance logs. But it fails to deploy.

I've tried deleting all services and updating my package dependencies without any help.When I download the logs from CF, I can't even see the error.

gregorw
Active Contributor
0 Kudos

I've just did a deployment of my sample application bookshop-demo. This was the output:

➜  bookshop-demo git:(main) npm run deploy:cf-hana-cloud-job-standard

> bookshop-demo@1.0.0 deploy:cf-hana-cloud-job-standard /Users/gwolf/Documents/Projects/cap/bookshop-demo
> cf deploy mta_archives/bookshop-demo_0.0.1.mtar -e cf-hana-cloud-job-standard.mtaext --retries 0

Deploying multi-target app archive mta_archives/bookshop-demo_0.0.1.mtar in org Customer / space dev as gregor...

Uploading 1 files...
  /Users/gwolf/Documents/Projects/cap/bookshop-demo/mta_archives/bookshop-demo_0.0.1.mtar
OK
Error occurred: Get "https://deploy-service.cfapps.eu10.hana.ondemand.com/api/v1/spaces/xxx/files": net/http: TLS handshake timeout. Retrying after: 3s.
Uploading 1 files...
  /Users/gwolf/Documents/Projects/cap/bookshop-demo/cf-hana-cloud-job-standard.mtaext
OK

There is this hickup at the beginning:

Error occurred: Get "https://deploy-service.cfapps.eu10.hana.ondemand.com/api/v1/spaces/xxx/files": 
net/http: TLS handshake timeout. Retrying after: 3s.
but then everyting is fine.

My region is EU10.

gregorw
Active Contributor
0 Kudos

It might be related to the "Bugfixes" for the "Multitarget Applications for Cloud Foundry" introduced on 8th of August 2022 (What's New for SAP Business Technology Platform). I would suggest to file an incident via SAP Support.

js2
Product and Topic Expert
Product and Topic Expert
0 Kudos

I've just tested building and deploying a node.js. CAP app to ap10 and it's all working fine.

I assume your using an MTA for deployment?

Did the `mbt build` work - if not please attach the logs.

If the `mbt build` did work can you then use the `cf dmol` command to download the deploy logs and zip and attach here.

And also - is this the first time you have tried to deploy your app or has it worked before? In which case - what is the diff between now and the last working commit?

UxKjaer
Product and Topic Expert
Product and Topic Expert
0 Kudos

I have managed to deploy it before without errors, but the application has grown since then. There are no errors in the dmol files.

I'm now in the process of taking it right back, so I could successfully deploy the db alone, so now I'm trying with the srv attached. Then hopefully being able to find my error.

I'll be back!

View Entire Topic
UxKjaer
Product and Topic Expert
Product and Topic Expert

Figured it out today. It's was what we in Danish call an error 40. I had forgot an m when setting the size of memory for one of the services. Wished it would have been caught in some sort of validation though.

Erroneous entry below. Should have been memory: 256m

parameters:

disk-quota: 2048M

Keep-existing-routes: true

memory: 256

gregorw
Active Contributor
0 Kudos

Do you have a Web IDE at hand? According to YAML Validation it does "YAML files, such as MTA descriptors (mta.yaml), are automatically validated as you edit.". But I guess it's only about correct spaces and not about the content.

I think https://github.com/SAP/cloud-mta should allow validation. Unfortunately no example for the cli usage for validation is given.