Skip to Content
0
Dec 15, 2022 at 07:35 PM

multiapps exception while deploying CAP Node.js application to CF

464 Views

Hello,

I am following the mission "Build an Application End-to-End Using CAP, Node.js and VS Code

" (https://developers.sap.com/mission.btp-application-cap-e2e.html) and I created successfully the Node.js application, however I'm experiencing problems with the deployment to CF - running cf8 deploy app_1.0.0.mtar creates successfully the app-auth and app-db services, however it returns an error while deploying the application itself (https://developers.sap.com/tutorials/btp-app-cap-mta-deployment.html):

Scaling application "app-db-deployer" to "1" instances...

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

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

Download the application logs via the dmol command and check them for more information.

A step of the process has failed. Retrying it may solve the issue.

Proceeding with automatic retry... (3 of 3 attempts left)

I downloaded the log and I noticed there is an exception in the multiapp plugin:

#2.0#2022 12 15 17:49:50.479#Z#ERROR#com.sap.cloud.lm.sl.xs2.57739f50-7ca0-11ed-9649-eeee0a9b82c8.OPERATION.executeTaskTask#

######org.cloudfoundry.multiapps.controller.persistence.services.ProcessLogger########flowable-async-job-executor-thread-765###

[ExecuteTaskStep] Execution of task "deploy" on application "app-db-deployer" failed.

Download the application logs via the dmol command and check them for more information.#

#2.0#2022 12 15 17:49:50.485#Z#ERROR#com.sap.cloud.lm.sl.xs2.57739f50-7ca0-11ed-9649-eeee0a9b82c8.OPERATION.executeTaskTask#

######org.cloudfoundry.multiapps.controller.persistence.services.ProcessLogger########flowable-async-job-executor-thread-765###

Exception caught#

org.cloudfoundry.multiapps.common.SLException: A step of the process has failed. Retrying it may solve the issue.

at org.cloudfoundry.multiapps.controller.process.steps.SyncFlowableStep.executeInternal(SyncFlowableStep.java:77) ~[multiapps-controller-process-1.146.0.jar:?]

at org.cloudfoundry.multiapps.controller.process.steps.SyncFlowableStep.lambda$execute$0(SyncFlowableStep.java:65) ~[multiapps-controller-process-1.146.0.jar:?]

at org.cloudfoundry.multiapps.controller.core.util.LoggingUtil.logWithCorrelationId(LoggingUtil.java:14) ~[multiapps-controller-core-1.146.0.jar:?]

at org.cloudfoundry.multiapps.controller.process.steps.SyncFlowableStep.execute(SyncFlowableStep.java:65) ~[multiapps-controller-process-1.146.0.jar:?]

at org.flowable.engine.impl.delegate.invocation.JavaDelegateInvocation.invoke(JavaDelegateInvocation.java:35) ~[flowable-engine-6.6.0.jar:6.6.0]

at org.flowable.engine.impl.delegate.invocation.DelegateInvocation.proceed(DelegateInvocation.java:32) ~[flowable-engine-6.6.0.jar:6.6.0]s

...

Anyone has an idea on what the problem could be?

Thanks,

Martin