Jenkins 错误:java.io.IOException:无法删除

Jenkins 错误:java.io.IOException:无法删除

我在 EC2 上的 Ubuntu 14.04 上有一个 Jenkins 服务器。最近,页面的加载时间急剧恶化。

当我查看日志时,我注意到 Jenkins 无法在构建完成后lastUnsuccessfulBuild删除快捷方式的链接:lastStableBuild

Jun 26, 2014 5:23:59 AM hudson.model.Run execute
INFO: tests_functional #4948 main build action completed: SUCCESS
Jun 26, 2014 5:23:59 AM jenkins.model.PeepholePermalink updateCache
WARNING: Failed to update hudson.model.FreeStyleProject@1ce01735[tests_functional] lastStableBuild permalink for tests_functional #4948
java.io.IOException: Unable to delete /var/lib/jenkins/jobs/tests_functional/builds/lastStableBuild
    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$RunListenerImpl.onCompleted(PeepholePermalink.java:237)
    at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:199)
    at hudson.model.Run.execute(Run.java:1783)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:234)

...

Jun 26, 2014 7:26:34 AM jenkins.model.PeepholePermalink updateCache
WARNING: Failed to update hudson.model.FreeStyleProject@7caf5092[location_server_commit] lastUnsuccessfulBuild permalink for location_server_commit #889
java.io.IOException: Unable to delete /var/lib/jenkins/jobs/location_server_commit/builds/lastUnsuccessfulBuild
    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$RunListenerImpl.onCompleted(PeepholePermalink.java:237)
    at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:199)
    at hudson.model.Run.execute(Run.java:1783)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:234)

文件所有权/var/lib/jenkins/jobs/tests_functional似乎正确:

drwxr-xr-x   2 jenkins nogroup 4.0K Apr  8 20:53 lastSuccessful
drwxr-xr-x   2 jenkins nogroup 4.0K Apr  8 20:53 lastStable
-rw-r--r--   1 jenkins nogroup 2.7K Jun 12 16:00 config.xml
-rw-r--r--   1 jenkins nogroup    5 Jun 26 05:23 nextBuildNumber
drwxr-xr-x   8 jenkins nogroup 4.0K Jun 26 05:23 workspace
-rw-r--r--   1 jenkins nogroup  542 Jun 26 06:02 disk-usage.xml
drwxr-xr-x 207 jenkins nogroup  12K Jun 26 07:44 builds
-rw-r--r--   1 jenkins nogroup  291 Jun 26 07:45 scm-polling.log

知道詹金斯出了什么问题吗?我该如何修复它?

相关内容