Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurred in the library step: cloudFoundryDeploy #1923

Closed
Aravindkumarj opened this issue Aug 13, 2020 · 3 comments
Closed

An error occurred in the library step: cloudFoundryDeploy #1923

Aravindkumarj opened this issue Aug 13, 2020 · 3 comments
Labels

Comments

@Aravindkumarj
Copy link

Hello,

Deploy step fails with the following messages

"Staging application "piper.node.hello.world"...

Error staging application "piper.node.hello.world": BuildpackCompileFailed - App staging failed in the buildpack compile phase

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.

Process failed.

Use "cf deploy -i e342e74e-dce7-11ea-b052-eeee0a8e6378 -a abort" to abort the process.

Use "cf deploy -i e342e74e-dce7-11ea-b052-eeee0a8e6378 -a retry" to retry the process.

Use "cf dmol -i e342e74e-dce7-11ea-b052-eeee0a8e6378" to download the logs of the process."

"----------------------------------------------------------

--- An error occurred in the library step: cloudFoundryDeploy


The following parameters were available to the step:


*** to show step parameters, set verbose:true in general pipeline configuration

*** WARNING: this may reveal sensitive information. ***


The error was:


hudson.AbortException: [cloudFoundryDeploy] ERROR: The execution of the deploy command failed, see the log for details.

***"

Entire log file is attached as well. Any hints here is appreciated.

Thanks,
Aravind Kumar

log.txt

@fwilhe
Copy link
Contributor

fwilhe commented Aug 13, 2020

Hi @Aravindkumarj

The root cause is not in the Jenkins log, please check the logs of Cloud Foundry as the cli tell you to do in this line

Use "cf dmol -i e342e74e-dce7-11ea-b052-eeee0a8e6378" to download the logs of the process.

@Aravindkumarj
Copy link
Author

Hello @fwilhe,

Sorry, this is my first time messing with these tools. Anyway, I had to install the CLI tool and was able to get the log. In the piper.node.hello.world.log I see something like this

#2.0#2020 08 12 22:05:46.074#Z#DEBUG#com.sap.cloud.lm.sl.xs2.e342e74e-dce7-11ea-b052-eeee0a8e6378.piper.node.hello.world.stageAppTask#
######com.sap.cloud.lm.sl.cf.persistence.services.ProcessLogger########flowable-async-job-executor-thread-31669###
[PollStageAppStatusExecution] [piper.node.hello.world] 4b535a04-7c40-430a-891e-068e78349b2b [Wed Aug 12 22:05:43 UTC 2020] �[31;1mERROR�[0m Unable to install node: no match found for 6.x.x in [10.19.0 10.20.1 12.16.1 12.16.2 13.11.0 13.12.0] (STDOUT, STG)#

Could this be an issue?

And in the operation.log, I see this

#2.0#2020 08 12 22:05:46.075#Z#ERROR#com.sap.cloud.lm.sl.xs2.e342e74e-dce7-11ea-b052-eeee0a8e6378.OPERATION.stageAppTask#
######com.sap.cloud.lm.sl.cf.persistence.services.ProcessLogger########flowable-async-job-executor-thread-31669###
[StageAppStep] Error staging application "piper.node.hello.world": BuildpackCompileFailed - App staging failed in the buildpack compile phase
Download the application logs via the dmol command and check them for more information.#

#2.0#2020 08 12 22:05:46.078#Z#ERROR#com.sap.cloud.lm.sl.xs2.e342e74e-dce7-11ea-b052-eeee0a8e6378.OPERATION.stageAppTask#
######com.sap.cloud.lm.sl.cf.persistence.services.ProcessLogger########flowable-async-job-executor-thread-31669###
Exception caught#

com.sap.cloud.lm.sl.common.SLException: A step of the process has failed. Retrying it may solve the issue.
at com.sap.cloud.lm.sl.cf.process.steps.SyncFlowableStep.executeInternal(SyncFlowableStep.java:71)
at com.sap.cloud.lm.sl.cf.process.steps.SyncFlowableStep.lambda$execute$0(SyncFlowableStep.java:60)
at com.sap.cloud.lm.sl.cf.core.util.LoggingUtil.logWithCorrelationId(LoggingUtil.java:15)
at com.sap.cloud.lm.sl.cf.process.steps.SyncFlowableStep.execute(SyncFlowableStep.java:60)
at org.flowable.engine.impl.delegate.invocation.JavaDelegateInvocation.invoke(JavaDelegateInvocation.java:35)
at org.flowable.engine.impl.delegate.invocation.DelegateInvocation.proceed(DelegateInvocation.java:35)
at org.flowable.engine.impl.delegate.invocation.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:26)
at org.flowable.engine.impl.bpmn.behavior.ServiceTaskDelegateExpressionActivityBehavior.execute(ServiceTaskDelegateExpressionActivityBehavior.java:111)
at org.flowable.engine.impl.agenda.ContinueProcessOperation.executeActivityBehavior(ContinueProcessOperation.java:290)
at org.flowable.engine.impl.agenda.ContinueProcessOperation.executeSynchronous(ContinueProcessOperation.java:163)
at org.flowable.engine.impl.agenda.ContinueProcessOperation.continueThroughFlowNode(ContinueProcessOperation.java:118)
at org.flowable.engine.impl.agenda.ContinueProcessOperation.run(ContinueProcessOperation.java:81)
at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperation(CommandInvoker.java:88)
at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperations(CommandInvoker.java:72)
at org.flowable.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:56)
at org.flowable.engine.impl.interceptor.BpmnOverrideContextInterceptor.execute(BpmnOverrideContextInterceptor.java:25)
at org.flowable.common.engine.impl.interceptor.TransactionContextInterceptor.execute(TransactionContextInterceptor.java:53)
at org.flowable.common.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:72)
at org.flowable.common.spring.SpringTransactionInterceptor.lambda$execute$0(SpringTransactionInterceptor.java:56)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)
at org.flowable.common.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:56)
at org.flowable.common.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:30)
at org.flowable.common.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:56)
at org.flowable.common.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:51)
at org.flowable.job.service.impl.asyncexecutor.ExecuteAsyncRunnable.executeJob(ExecuteAsyncRunnable.java:128)
at org.flowable.job.service.impl.asyncexecutor.ExecuteAsyncRunnable.run(ExecuteAsyncRunnable.java:116)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:836)
#2.0#2020 08 12 22:05:46.082#Z#DEBUG#com.sap.cloud.lm.sl.xs2.e342e74e-dce7-11ea-b052-eeee0a8e6378.OPERATION.stageAppTask#
######com.sap.cloud.lm.sl.cf.persistence.services.ProcessLogger########flowable-async-job-executor-thread-31669###
Step "Stage App" finished#

Attaching both the files here.

Thanks for your help.

OPERATION.log
piper.node.hello.world.log

@Aravindkumarj
Copy link
Author

Hello @fwilhe,

I resolved the issue by updating the package.json file for a node version that is mentioned in the brackets and this time the deploy was successful. I hope that was the right thing to do.

Thanks,
Aravind Kumar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants