History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-3642
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Robin Shen
Reporter: Phong Trinh
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

QuickBuild Server error: java.lang.InterruptedException

Created: 04/Dec/20 10:07 PM   Updated: 16/Feb/21 01:29 PM
Component/s: None
Affects Version/s: 10.0.28
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: Linux


 Description  « Hide
 Hi Robin,

 I am seeing the following error periodically. Do you have any idea?

 Thanks,
ptrinh
 
=============================================================================================
2020-12-04 21:58:39,254 [pool-2-thread-13] INFO com.pmease.quickbuild.DefaultBuildEngine - Build request has been processed.
2020-12-04 21:58:39,552 [pool-2-thread-12] ERROR com.pmease.quickbuild.DefaultBuildEngine - Error processing build request.
    java.lang.RuntimeException: Error executing check condition job.
        at com.pmease.quickbuild.CheckConditionTask.reduce(CheckConditionTask.java:39)
        at com.pmease.quickbuild.CheckConditionTask.reduce(CheckConditionTask.java:16)
        at com.pmease.quickbuild.grid.GridTaskFuture.get(GridTaskFuture.java:168)
        at com.pmease.quickbuild.DefaultBuildEngine.process(DefaultBuildEngine.java:402)
        at com.pmease.quickbuild.DefaultBuildEngine.access$000(DefaultBuildEngine.java:148)
        at com.pmease.quickbuild.DefaultBuildEngine$2.run(DefaultBuildEngine.java:1275)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)
    Caused by: java.lang.RuntimeException: java.lang.InterruptedException
        at com.pmease.quickbuild.execution.Commandline.execute(Commandline.java:395)
        at com.pmease.quickbuild.execution.Commandline.execute(Commandline.java:243)
        at com.pmease.quickbuild.plugin.scm.perforce.PerforceRepository.setupClient(PerforceRepository.java:1138)
        at com.pmease.quickbuild.plugin.scm.perforce.PerforceRepository$$EnhancerByCGLIB$$940743a6.CGLIB$setupClient$59(<generated>)
        at com.pmease.quickbuild.plugin.scm.perforce.PerforceRepository$$EnhancerByCGLIB$$940743a6$$FastClassByCGLIB$$ee2d9b19.invoke(<generated>)
        at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
        at com.pmease.quickbuild.DefaultScriptEngine$Interpolator.intercept(DefaultScriptEngine.java:261)
        at com.pmease.quickbuild.plugin.scm.perforce.PerforceRepository$$EnhancerByCGLIB$$940743a6.setupClient(<generated>)
        at com.pmease.quickbuild.plugin.scm.perforce.PerforceRepository.getHeadRevision(PerforceRepository.java:1219)
        at com.pmease.quickbuild.plugin.scm.perforce.PerforceRepository$$EnhancerByCGLIB$$940743a6.CGLIB$getHeadRevision$14(<generated>)
        at com.pmease.quickbuild.plugin.scm.perforce.PerforceRepository$$EnhancerByCGLIB$$940743a6$$FastClassByCGLIB$$ee2d9b19.invoke(<generated>)
        at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
        at com.pmease.quickbuild.DefaultScriptEngine$Interpolator.intercept(DefaultScriptEngine.java:261)
        at com.pmease.quickbuild.plugin.scm.perforce.PerforceRepository$$EnhancerByCGLIB$$940743a6.getHeadRevision(<generated>)
        at com.pmease.quickbuild.plugin.scm.perforce.PerforceRepository.getHeadRevision(PerforceRepository.java:72)
        at com.pmease.quickbuild.plugin.scm.perforce.PerforceRepository$$EnhancerByCGLIB$$940743a6.CGLIB$getHeadRevision$15(<generated>)
        at com.pmease.quickbuild.plugin.scm.perforce.PerforceRepository$$EnhancerByCGLIB$$940743a6$$FastClassByCGLIB$$ee2d9b19.invoke(<generated>)
        at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
        at com.pmease.quickbuild.DefaultScriptEngine$Interpolator.intercept(DefaultScriptEngine.java:261)
        at com.pmease.quickbuild.plugin.scm.perforce.PerforceRepository$$EnhancerByCGLIB$$940743a6.getHeadRevision(<generated>)
        at com.pmease.quickbuild.repositorysupport.Repository.takeSnapshot(Repository.java:361)
        at com.pmease.quickbuild.plugin.scm.perforce.PerforceRepository$$EnhancerByCGLIB$$940743a6.CGLIB$takeSnapshot$73(<generated>)
        at com.pmease.quickbuild.plugin.scm.perforce.PerforceRepository$$EnhancerByCGLIB$$940743a6$$FastClassByCGLIB$$ee2d9b19.invoke(<generated>)
        at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
        at com.pmease.quickbuild.DefaultScriptEngine$Interpolator.intercept(DefaultScriptEngine.java:261)
        at com.pmease.quickbuild.plugin.scm.perforce.PerforceRepository$$EnhancerByCGLIB$$940743a6.takeSnapshot(<generated>)
        at com.pmease.quickbuild.setting.configuration.snapshot.TakeReferencedSnapshots.takeSnapshot(TakeReferencedSnapshots.java:15)
        at com.pmease.quickbuild.model.Configuration.takeSnapshot(Configuration.java:2096)
        at com.pmease.quickbuild.CheckConditionJob.execute(CheckConditionJob.java:35)
        at com.pmease.quickbuild.grid.GridJob.run(GridJob.java:131)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)
    Caused by: java.lang.InterruptedException
        at java.base/java.lang.ProcessImpl.waitFor(ProcessImpl.java:486)
        at com.pmease.quickbuild.execution.Commandline.execute(Commandline.java:357)
        ... 34 more
=================================================================================================

 All   Comments   Work Log   Change History      Sort Order:
Robin Shen [05/Dec/20 10:46 AM]
Please check if you have timeout setting in the step and build. Also if someone cancelled the build, the command will be interrupted as well.

Phong Trinh [08/Dec/20 01:24 AM]
 The timeout setting in the configuration is 720 minutes, and there are not timeout setting in its steps. The build doesn't take long, and the build machines have low usage. I checked the audit logs, no one cancelled the build. there may be something else.
 Thanks.
ptrinh

Robin Shen [08/Dec/20 03:01 AM]
Another two reasons:
1. QB server detects network loss to agent and cancels the build
2. Too many builds in queue, and if QB server is in high load, agent may cancel the build

Phong Trinh [09/Dec/20 09:24 PM]
The server has low usage. It may be with reason 1). I am investigating it.
 
 Thank you very much, Robin
ptrinh