Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 22/Dec/14 2:50 PM
Description:

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.

Project: Jenkins
Labels: robustness symlink permalink
Priority: Major Major
Reporter: Jesse Glick
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to