<< Back to previous view

[QB-3071] Step is cancelled but unknown reason
Created: 03/Nov/17  Updated: 17/Jan/18

Status: Closed
Project: QuickBuild
Component/s: None
Affects Version/s: 6.0.27
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: Piotr Jedrys Assigned To: Robin Shen
Resolution: Cannot Reproduce Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown
Environment: macos Sierra


 Description   
We have build of which one of the steps was running on macos node. The build was cancelled.

05:01:26,527 INFO - Terminating launched command gracefully...
05:01:26,564 INFO - ninja: build stopped: interrupted by user.
05:01:26,766 INFO - Executing post-execute action...
05:01:26,771 INFO - Run is cancelled removing the output to avoid corrupting object files
05:01:26,772 ERROR - Step 'master>XXXXX>build - macOS' is failed.
    java.lang.RuntimeException: java.lang.InterruptedException
        at com.pmease.quickbuild.execution.Commandline.execute(Commandline.java:372)
        at com.pmease.quickbuild.plugin.basis.CommandBuildStep.run(CommandBuildStep.java:220)
        at com.pmease.quickbuild.plugin.basis.CommandBuildStep$$EnhancerByCGLIB$$3b71e488.CGLIB$run$0(<generated>)
        at com.pmease.quickbuild.plugin.basis.CommandBuildStep$$EnhancerByCGLIB$$3b71e488$$FastClassByCGLIB$$eb963c5b.invoke(<generated>)
        at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
        at com.pmease.quickbuild.DefaultScriptEngine$Interpolator.intercept(DefaultScriptEngine.java:273)
        at com.pmease.quickbuild.plugin.basis.CommandBuildStep$$EnhancerByCGLIB$$3b71e488.run(<generated>)
        at com.pmease.quickbuild.stepsupport.Step.execute(Step.java:539)
        at com.pmease.quickbuild.stepsupport.StepExecutionJob.executeStepAwareJob(StepExecutionJob.java:30)
        at com.pmease.quickbuild.stepsupport.StepAwareJob.executeBuildAwareJob(StepAwareJob.java:45)
        at com.pmease.quickbuild.BuildAwareJob.execute(BuildAwareJob.java:60)
        at com.pmease.quickbuild.grid.GridJob.run(GridJob.java:106)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.InterruptedException
        at java.lang.Object.wait(Native Method)
        at java.lang.Object.wait(Object.java:502)
        at java.lang.UNIXProcess.waitFor(UNIXProcess.java:395)
        at com.pmease.quickbuild.execution.Commandline.execute(Commandline.java:350)
        ... 16 more

We do not know why and who interrupted the command. There was no timeout, neither any user interruption in audit log. We also cannot find anything in server logs that would state the request to cancel, neither in system.log/history of commands of the node.

This happened already 2 times.

 Comments   
Comment by Robin Shen [ 03/Nov/17 11:43 PM ]
QB may also cancel the build upon network failure to avoid hanging the build grid. You may upgrade to QB7 and cancellation reason should be printed in agent or server log.
Generated at Sat May 04 13:03:30 UTC 2024 using JIRA 189.