java.io.IOException: Unable to delete /jenkins/jobs/.../builds/lastSuccessfulBuild

Jenkins JIRA | Jesse Glick | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    [JIRA] (JENKINS-40474) Failed to change to remote directory after updating from 1.0.5 to 1.1.2

    Google Groups | 2 months ago | florinraci...@gmail.com (JIRA)
    java.io.IOException: Unable to delete 'c:\Program Files (x86)\Jenkins\jobs\my-job\builds\lastSuccessfulBuild'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Hi, I am using scm-sync-configuration plugin to have a backup. I am trying to restore the backup on a different system. The plugin restores everything but fails to restore the symlinks. Below are the contents of the builds. drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-06-27_17-41-37 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 lastSuccessfulBuild drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-08-18_23-46-54 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-07-29_18-47-12 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-07-29_18-22-33 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-07-24_18-02-07 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-07-24_06-45-22 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-06-27_21-43-37 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-06-27_17-54-11 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 18 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 16 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 13 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 10 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 1 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 8 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 6 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 5 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-08-18_23-34-14 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-07-29_18-02-01 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-07-24_18-30-59 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-07-24_06-11-06 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-07-24_05-07-46 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-07-23_23-09-06 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-07-02_05-01-48 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-06-27_21-44-16 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 19 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 11 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 lastStableBuild drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 9 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 7 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 4 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 3 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-07-23_23-09-08 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-06-19_06-08-51 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-06-19_06-06-23 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 17 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 15 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 14 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 12 As a result, jenkins server keeps throwing below warnings: Oct 03, 2014 9:22:27 PM jenkins.model.PeepholePermalink updateCache WARNING: Failed to update hudson.model.FreeStyleProject@282eb209[SAMPLE-rpm] lastSuccessfulBuild permalink for SAMPLE-rpm- #72 java.io.IOException: Unable to delete SAMPLE-rpm/builds/lastSuccessfulBuild at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:112) at jenkins.model.PeepholePermalink.writeSymlink(PeepholePermalink.java:177) at jenkins.model.PeepholePermalink.updateCache(PeepholePermalink.java:142) at jenkins.model.PeepholePermalink.resolve(PeepholePermalink.java:114) at hudson.model.Job.getLastSuccessfulBuild(Job.java:836) at hudson.model.AbstractProject.poll(AbstractProject.java:1477) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:462) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:491) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744)

    Jenkins JIRA | 2 years ago | ankita bairathi
    java.io.IOException: Unable to delete SAMPLE-rpm/builds/lastSuccessfulBuild
  4. 0

    Hi, I am using scm-sync-configuration plugin to have a backup. I am trying to restore the backup on a different system. The plugin restores everything but fails to restore the symlinks. Below are the contents of the builds. drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-06-27_17-41-37 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 lastSuccessfulBuild drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-08-18_23-46-54 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-07-29_18-47-12 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-07-29_18-22-33 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-07-24_18-02-07 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-07-24_06-45-22 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-06-27_21-43-37 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-06-27_17-54-11 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 18 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 16 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 13 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 10 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 1 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 8 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 6 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 5 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-08-18_23-34-14 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-07-29_18-02-01 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-07-24_18-30-59 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-07-24_06-11-06 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-07-24_05-07-46 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-07-23_23-09-06 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-07-02_05-01-48 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-06-27_21-44-16 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 19 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 11 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 lastStableBuild drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 9 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 7 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 4 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 3 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-07-23_23-09-08 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-06-19_06-08-51 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 2014-06-19_06-06-23 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 17 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 15 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 14 drwxr-x--- 2 jenkins jenkins 4096 Sep 30 20:03 12 As a result, jenkins server keeps throwing below warnings: Oct 03, 2014 9:22:27 PM jenkins.model.PeepholePermalink updateCache WARNING: Failed to update hudson.model.FreeStyleProject@282eb209[SAMPLE-rpm] lastSuccessfulBuild permalink for SAMPLE-rpm- #72 java.io.IOException: Unable to delete SAMPLE-rpm/builds/lastSuccessfulBuild at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:112) at jenkins.model.PeepholePermalink.writeSymlink(PeepholePermalink.java:177) at jenkins.model.PeepholePermalink.updateCache(PeepholePermalink.java:142) at jenkins.model.PeepholePermalink.resolve(PeepholePermalink.java:114) at hudson.model.Job.getLastSuccessfulBuild(Job.java:836) at hudson.model.AbstractProject.poll(AbstractProject.java:1477) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:462) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:491) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744)

    Jenkins JIRA | 2 years ago | ankita bairathi
    java.io.IOException: Unable to delete SAMPLE-rpm/builds/lastSuccessfulBuild

    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

      Unable to delete /jenkins/jobs/.../builds/lastSuccessfulBuild

      at hudson.util.AtomicFileWriter.commit()
    2. Hudson
      AtomicFileWriter.commit
      1. hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:112)
      1 frame
    3. jenkins.model
      PeepholePermalink.resolve
      1. jenkins.model.PeepholePermalink.writeSymlink(PeepholePermalink.java:200)
      2. jenkins.model.PeepholePermalink.updateCache(PeepholePermalink.java:150)
      3. jenkins.model.PeepholePermalink.resolve(PeepholePermalink.java:122)
      3 frames
    4. Hudson
      Job.getLastSuccessfulBuild
      1. hudson.model.Job.getLastSuccessfulBuild(Job.java:857)
      1 frame