|
|
|
Robin,
Unfortunately in our environment there is always something running. Checked the stack trace and nothing odd there. Are you able to cancel the build?
Cancel does not work on this job. It says build stoppping and never does. It is also worth noting this job passed it's build timeout without stopping.
Other info I have gathered is that this job was running in an environment that had network issues during the same time this job originally kicked off. Don't know if that is relitive to you. Please attach the screenshot of the stuck build overview page.
Sorry for not being clear. I meant the build overview page, which can be displayed by clicking the build version link in problem.
File attached. let me know if its not right still
Hello Robin,
I will be helping out with this issue as todd is on vacation. We were going to attempt a restart of the system to clear this issue, however when we put the system into pause to allow the currently running jobs to complete and not allow any others to start however we did not go forward because we noticed that jobs that were currently running actually paused after the currently running step. The documentation is light in this area, what would we expect during a pause of the system? Will all jobs that are added to the queue be stored in the database and re-added to the queue after a restart? Is there any way to pause the system but allow all running jobs to complete all steps in its configuration? Also, let me know next steps on the the issue the ticket was opened for. Please create a maintenance configuration running below script on SERVER to see if the build can be stopped.
groovy: import com.pmease.quickbuild.stepsupport.StepAwareJob; for (job in grid.jobs) { if (job instanceof StepAwareJob) { if (job.build.id == 9854748 && job.stepPath.toString()=="master") { logger.info("Found step job"); def taskFuture = grid.getTaskFuture(job.taskId); if (taskFuture != null) { logger.info("Found step task"); taskFuture.jobFinished(job, false); } } } } If this script does not work, you may proceed to restart QB server by doing this: 1. issue "service quickbuild stop" 2. upon stop, QB will continue to run current builds. Please check the queue until there is only the stuck build left 3. get a stace trace of QB server process and attach to this issue. 4. now forcibly stop QB server by running "service quickbuild stop" again, QB should be able to be stopped immediately, if not, please kill the QB server process
|
/path/to/jdk/bin/jstack <QB server JVM process id>
If possible, please run this command while there is no other builds running.