java.io.IOException: .../jobs/.../builds/2013-... is in use

Jenkins JIRA | Jesse Glick | 3 years ago
  1. 0

    1) I trigger jobs from Parametrized Trigger Plugin. Job submits about 64 parallel jobs with "Hello, world!" output and waits till their completion 2) At some point monitoring of jobs hangs. When all slave jobs finish, master job stills waiting.. 3) According to logs, hudson.remoting.AsyncFutureImpl.get() hangs, because "completed" was initially false. Then, wait() cycle never returns. Seems that AsyncFutureImpl:set() has not been called for one of the jobs. Additional analysis: - Submission works well on local host w/o additional remote node - In the log I see log rotation errors only() // see below - All executor thread have been finished for their jobs Call stack of the job (0x00000007866656f0 is not used by other threads): {quote} "Executor #7 for master : executing Test_MassiveSubmission #8" prio=6 tid=0x000000001148e000 nid=0x16bfc in Object.wait() [0x000000000d12e000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x00000007866656f0> (a hudson.model.queue.FutureImpl) at java.lang.Object.wait(Object.java:503) at hudson.remoting.AsyncFutureImpl.get(AsyncFutureImpl.java:73) - locked <0x00000007866656f0> (a hudson.model.queue.FutureImpl) at hudson.plugins.parameterizedtrigger.TriggerBuilder.perform(TriggerBuilder.java:135) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:802) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:584) at hudson.model.Run.execute(Run.java:1592) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) {quote} Error log contains only following errors: {quote} SEVERE: Failed to rotate log java.io.IOException: C:\Users\nenashev\Documents\Work\Jenkins\contrib\parameterized-trigger-plugin\.\work\jobs\Test_MassiveSubmissionSlave\builds\2013-09-26_15-36-16 is in use at hudson.model.Run.delete(Run.java:1380) at hudson.tasks.LogRotator.perform(LogRotator.java:133) at hudson.model.Job.logRotate(Job.java:404) at hudson.model.Run.execute(Run.java:1655) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) {quote}

    Jenkins JIRA | 3 years ago | Oleg Nenashev
    java.io.IOException: C:\Users\nenashev\Documents\Work\Jenkins\contrib\parameterized-trigger-plugin\.\work\jobs\Test_MassiveSubmissionSlave\builds\2013-09-26_15-36-16 is in use
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    1) I trigger jobs from Parametrized Trigger Plugin. Job submits about 64 parallel jobs with "Hello, world!" output and waits till their completion 2) At some point monitoring of jobs hangs. When all slave jobs finish, master job stills waiting.. 3) According to logs, hudson.remoting.AsyncFutureImpl.get() hangs, because "completed" was initially false. Then, wait() cycle never returns. Seems that AsyncFutureImpl:set() has not been called for one of the jobs. Additional analysis: - Submission works well on local host w/o additional remote node - In the log I see log rotation errors only() // see below - All executor thread have been finished for their jobs Call stack of the job (0x00000007866656f0 is not used by other threads): {quote} "Executor #7 for master : executing Test_MassiveSubmission #8" prio=6 tid=0x000000001148e000 nid=0x16bfc in Object.wait() [0x000000000d12e000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x00000007866656f0> (a hudson.model.queue.FutureImpl) at java.lang.Object.wait(Object.java:503) at hudson.remoting.AsyncFutureImpl.get(AsyncFutureImpl.java:73) - locked <0x00000007866656f0> (a hudson.model.queue.FutureImpl) at hudson.plugins.parameterizedtrigger.TriggerBuilder.perform(TriggerBuilder.java:135) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:802) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:584) at hudson.model.Run.execute(Run.java:1592) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) {quote} Error log contains only following errors: {quote} SEVERE: Failed to rotate log java.io.IOException: C:\Users\nenashev\Documents\Work\Jenkins\contrib\parameterized-trigger-plugin\.\work\jobs\Test_MassiveSubmissionSlave\builds\2013-09-26_15-36-16 is in use at hudson.model.Run.delete(Run.java:1380) at hudson.tasks.LogRotator.perform(LogRotator.java:133) at hudson.model.Job.logRotate(Job.java:404) at hudson.model.Run.execute(Run.java:1655) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) {quote}

    Jenkins JIRA | 3 years ago | Oleg Nenashev
    java.io.IOException: C:\Users\nenashev\Documents\Work\Jenkins\contrib\parameterized-trigger-plugin\.\work\jobs\Test_MassiveSubmissionSlave\builds\2013-09-26_15-36-16 is in use
  4. 0

    [workflow plugin] how to force stop stuck build?

    Google Groups | 2 years ago | Christoph VogtlÃĪnder
    java.io.IOException: D:\Jenkins\jobs\job\builds\2015-04-05_00-41-16 is in use

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      .../jobs/.../builds/2013-... is in use

      at hudson.model.Run.delete()
    2. Hudson
      ExternalJob.doPostBuildResult
      1. hudson.model.Run.delete(Run.java:1264)
      2. hudson.tasks.LogRotator.perform(LogRotator.java:132)
      3. hudson.model.Job.logRotate(Job.java:337)
      4. hudson.model.Run.execute(Run.java:1525)
      5. hudson.model.ExternalRun.acceptRemoteSubmission(ExternalRun.java:104)
      6. hudson.model.ExternalJob.doPostBuildResult(ExternalJob.java:102)
      6 frames