cancel
Showing results for 
Search instead for 
Did you mean: 

Execution of task "deploy" on application "cpapp-db-deployer" failed.

MartinKnechtel
Product and Topic Expert
Product and Topic Expert

Tutorials: https://developers.sap.com/tutorials/btp-app-cap-mta-deployment.html
--------------------------

I thought it's a problem of my code first, but even when I run this on the solution branch https://github.com/SAP-samples/cloud-cap-risk-management/tree/cap-mta-deployment I get same error. In step 8 of the tutorial I do

mbt build -t ./
cf deploy cpapp_1.0.0.mtar

and receive the following error:

[...]

Application "cpapp-db-deployer" staged

Executing task "deploy" on application "cpapp-db-deployer"...

Execution of task "deploy" on application "cpapp-db-deployer" failed.

I downloaded the logs with

cf dmol -i 83401c16-b873-11ed-a215-eeee0a9c9547

and can see the follwing in cpapp-db-deployer.log

[PollExecuteTaskStatusExecution] [cpapp-db-deployer] 28b62f0b-af50-436f-80b9-ae599f6b70f3 [Wed Mar 01 20:58:47 UTC 2023] Deployment to container D2D3E80B3E4E4C5EB32F2A9A4364FC72 failed - error: Connection failed (RTE:[89013] Socket closed by peer {10.157.116.31:35462 -> 44.196.217.154:443} (10.157.116.31:35462 -> 5419370e-93aa-429f-b4cf-dda85d2967df.hana.trial-us10.hanacloud.ondemand.com:443)) [Deployment ID: none]. (STDERR, APP/TASK/deploy)#
View Entire Topic
MartinKnechtel
Product and Topic Expert
Product and Topic Expert

It now works.

Deployment now succeeds:

[...]
Application "cpapp-srv" started and available at "c5c6d9b0trial-dev-cpapp-srv.cfapps.us10-001.hana.ondemand.com"
Application "cpapp-db-deployer" staged
Executing task "deploy" on application "cpapp-db-deployer"...
Skipping deletion of services, because the command line option "--delete-services" is not specified.
Process finished.

The only difference: I re-created my HANA Cloud instance with one difference in the settings: not allow only BTP IPs but instead allow all IP addresses, see my screenshot below.

Could this be an issue of HANA Cloud being in us10.hana.ondemand.com (see my screenshot) and my application being in us10-001.hana.ondemand.com (see my deploy log)?

glauco
Active Contributor

Many thanks. Your tips worked for me.

inu2200
Explorer
0 Kudos
"Allow all IP addresses" doesn't work for me... re-create HANA either...