java.io.IOException: /jenkins-server/Home/jobs/PCompiler_sshaha2/configurations/axis-BldT/Debug/axis-TrgtT/Win32/axis-slvT/GP/builds/2012-05-06_14-11-06 is in use

Jenkins JIRA | Anna Gon | 4 years ago
  1. 0

    I use "Max # of builds to keep" to discard old builds. When "Max # of builds to keep" reaches the max number set for a given job - Jenkins deletes entire folder of last label value used in this job. For example I have labels set to: BldT with value Debug TrgtT with value Win32 slvT with value GP So the internal content of the job folder structure has ../BldT/Debug/TrgT/Win32/slvT/GP/.. Then when "Max # of builds to keep" is reached - directory GP is deleted. This happens to most of the jobs I have. The only way we found to fix this is to 'Save' or 'Apply' changes in the job configuration page (without making any changes to the job). This restores the folder structure on master. Jenkins log for when this happens is: SEVERE: Failed to rotate log java.io.IOException: /jenkins-server/Home/jobs/PCompiler_sshaha2/configurations/axis-BldT/Debug/axis-TrgtT/Win32/axis-slvT/GP/builds/2012-05-06_14-11-06 is in use at hudson.model.Run.delete(Run.java:1239) at hudson.model.AbstractBuild.delete(AbstractBuild.java:380) at hudson.matrix.LinkedLogRotator.perform(LinkedLogRotator.java:64) at hudson.model.Job.logRotate(Job.java:336) at hudson.model.Run.run(Run.java:1478) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238)

    Jenkins JIRA | 4 years ago | Anna Gon
    java.io.IOException: /jenkins-server/Home/jobs/PCompiler_sshaha2/configurations/axis-BldT/Debug/axis-TrgtT/Win32/axis-slvT/GP/builds/2012-05-06_14-11-06 is in use
  2. 0

    I use "Max # of builds to keep" to discard old builds. When "Max # of builds to keep" reaches the max number set for a given job - Jenkins deletes entire folder of last label value used in this job. For example I have labels set to: BldT with value Debug TrgtT with value Win32 slvT with value GP So the internal content of the job folder structure has ../BldT/Debug/TrgT/Win32/slvT/GP/.. Then when "Max # of builds to keep" is reached - directory GP is deleted. This happens to most of the jobs I have. The only way we found to fix this is to 'Save' or 'Apply' changes in the job configuration page (without making any changes to the job). This restores the folder structure on master. Jenkins log for when this happens is: SEVERE: Failed to rotate log java.io.IOException: /jenkins-server/Home/jobs/PCompiler_sshaha2/configurations/axis-BldT/Debug/axis-TrgtT/Win32/axis-slvT/GP/builds/2012-05-06_14-11-06 is in use at hudson.model.Run.delete(Run.java:1239) at hudson.model.AbstractBuild.delete(AbstractBuild.java:380) at hudson.matrix.LinkedLogRotator.perform(LinkedLogRotator.java:64) at hudson.model.Job.logRotate(Job.java:336) at hudson.model.Run.run(Run.java:1478) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238)

    Jenkins JIRA | 4 years ago | Anna Gon
    java.io.IOException: /jenkins-server/Home/jobs/PCompiler_sshaha2/configurations/axis-BldT/Debug/axis-TrgtT/Win32/axis-slvT/GP/builds/2012-05-06_14-11-06 is in use
  3. 0

    Version 0.8 - incompatibility with Docker 1.4.0 - 'Failed to mkdirs'

    GitHub | 2 years ago | hcguersoy
    java.io.IOException: Failed to install http://archive.apache.org/dist/maven/binaries/apache-maven-3.2.1-bin.zip to /home/jenkins/tools/hudson.tasks.Maven_MavenInstallation/3.2.1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ClearCase Plugin - hudson - Hudson Wiki

    hudson-ci.org | 7 months ago
    java.io.IOException: Failed to mkdirs: V:\XXXXXXX
  6. 0

    Only when user not logged in to the Ubuntu slave: java.io.IOException: Failed to mkdirs

    Google Groups | 4 years ago | Pasi
    java.io.IOException: Failed to mkdirs: /home/ouruser/jenkins/workspace/network_test_summary

    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

      /jenkins-server/Home/jobs/PCompiler_sshaha2/configurations/axis-BldT/Debug/axis-TrgtT/Win32/axis-slvT/GP/builds/2012-05-06_14-11-06 is in use

      at hudson.model.Run.delete()
    2. Hudson
      Executor.run
      1. hudson.model.Run.delete(Run.java:1239)
      2. hudson.model.AbstractBuild.delete(AbstractBuild.java:380)
      3. hudson.matrix.LinkedLogRotator.perform(LinkedLogRotator.java:64)
      4. hudson.model.Job.logRotate(Job.java:336)
      5. hudson.model.Run.run(Run.java:1478)
      6. hudson.matrix.MatrixRun.run(MatrixRun.java:146)
      7. hudson.model.ResourceController.execute(ResourceController.java:88)
      8. hudson.model.Executor.run(Executor.java:238)
      8 frames