-
Bug
-
Resolution: Won't Fix
-
Major
Sometimes users report seeing exceptions such as
... jenkins.model.PeepholePermalink updateCache WARNING: Failed to update ... lastSuccessfulBuild permalink for ... java.io.IOException: Unable to delete /jenkins/jobs/.../builds/lastSuccessfulBuild at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:112) at jenkins.model.PeepholePermalink.writeSymlink(PeepholePermalink.java:200) at jenkins.model.PeepholePermalink.updateCache(PeepholePermalink.java:150) at jenkins.model.PeepholePermalink.resolve(PeepholePermalink.java:122) at hudson.model.Job.getLastSuccessfulBuild(Job.java:857)
In one case this was discovered to be due to lastSuccessfulBuild being an actual directory rather than a symlink, due to an incorrect restoration from backup. But AtomicFileWriter should use Util.deleteFile or similar to make sure that Java 7 methods are first used to perform the deletion, which provide better diagnostics.
- is related to
-
JENKINS-37862 Extract build symlink handling to a plugin
- Resolved
- relates to
-
JENKINS-32443 java.nio.file.AccessDeniedException on Windows master
- Open
-
JENKINS-36088 Use NIO rather than JNR whenever possible
- Resolved