java.nio.file.DirectoryNotEmptyException: /jenkins/jobs/builds/lastFailedBuild

Jenkins JIRA | Amgad Hanafy | 2 years ago
  1. 0

    Dec 11, 2014 10:01:21 AM INFO hudson.model.Run execute Project #84 main build action completed: FAILURE Dec 11, 2014 10:01:21 AM WARNING jenkins.model.PeepholePermalink updateCache Failed to update hudson.maven.MavenModuleSet@f8fa970[Project] lastFailedBuild permalink for Project #84 java.nio.file.DirectoryNotEmptyException: /jenkins/jobs/builds/lastFailedBuild at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:254) at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:115) at java.nio.file.Files.delete(Files.java:1088) at sun.reflect.GeneratedMethodAccessor850.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) at java.lang.reflect.Method.invoke(Method.java:619) at hudson.Util.deleteFile(Util.java:247) at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:113) 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:1810) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Dec 11, 2014 10:01:21 AM WARNING jenkins.model.PeepholePermalink updateCache Failed to update hudson.maven.MavenModuleSet@f8fa970[Project] lastUnsuccessfulBuild permalink for Project #84 java.nio.file.DirectoryNotEmptyException: /jenkins/jobs/Project/builds/lastUnsuccessfulBuild at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:254) at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:115) at java.nio.file.Files.delete(Files.java:1088) at sun.reflect.GeneratedMethodAccessor850.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) at java.lang.reflect.Method.invoke(Method.java:619) at hudson.Util.deleteFile(Util.java:247) at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:113) 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:1810) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240)

    Jenkins JIRA | 2 years ago | Amgad Hanafy
    java.nio.file.DirectoryNotEmptyException: /jenkins/jobs/builds/lastFailedBuild
  2. 0

    Dec 11, 2014 10:01:21 AM INFO hudson.model.Run execute Project #84 main build action completed: FAILURE Dec 11, 2014 10:01:21 AM WARNING jenkins.model.PeepholePermalink updateCache Failed to update hudson.maven.MavenModuleSet@f8fa970[Project] lastFailedBuild permalink for Project #84 java.nio.file.DirectoryNotEmptyException: /jenkins/jobs/builds/lastFailedBuild at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:254) at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:115) at java.nio.file.Files.delete(Files.java:1088) at sun.reflect.GeneratedMethodAccessor850.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) at java.lang.reflect.Method.invoke(Method.java:619) at hudson.Util.deleteFile(Util.java:247) at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:113) 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:1810) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Dec 11, 2014 10:01:21 AM WARNING jenkins.model.PeepholePermalink updateCache Failed to update hudson.maven.MavenModuleSet@f8fa970[Project] lastUnsuccessfulBuild permalink for Project #84 java.nio.file.DirectoryNotEmptyException: /jenkins/jobs/Project/builds/lastUnsuccessfulBuild at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:254) at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:115) at java.nio.file.Files.delete(Files.java:1088) at sun.reflect.GeneratedMethodAccessor850.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) at java.lang.reflect.Method.invoke(Method.java:619) at hudson.Util.deleteFile(Util.java:247) at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:113) 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:1810) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240)

    Jenkins JIRA | 2 years ago | Amgad Hanafy
    java.nio.file.DirectoryNotEmptyException: /jenkins/jobs/builds/lastFailedBuild
  3. 0

    I moved our Jenkins instance to new server by copying all files with correct permissions and ownerships, and now we get such error in log for every job, which makes log useless. This bug is similar to JENKINS-17594. Not sure which recovery steps should I take to get rid of it. Contents of directory /var/lib/jenkins/jobs/Admin/jobs/Prepare_Jenkins_Repo_All_Slaves/builds/lastSuccessfulBuild: drwxr-xr-x 2 jenkins jenkins 4096 Aug 12 14:28 . drwxr-xr-x 8 jenkins jenkins 4096 Aug 20 07:35 .. -rw-r--r-- 1 jenkins jenkins 3802 Aug 12 14:28 build.xml -rw-r--r-- 1 jenkins jenkins 6 Aug 12 14:28 changelog.xml -rw-r--r-- 1 jenkins jenkins 1658 Aug 12 14:28 injectedEnvVars.txt -rw-r--r-- 1 jenkins jenkins 5992 Aug 12 14:28 log Aug 19, 2015 8:29:29 AM jenkins.model.PeepholePermalink updateCache WARNING: Failed to update hudson.model.FreeStyleProject@e9551b4[Admin/Prepare_Jenkins_Repo_All_Slaves] lastSuccessfulBuild permalink for Admin/Prepare_Jenkins_Repo_All_Slaves #4 java.nio.file.DirectoryNotEmptyException: /var/lib/jenkins/jobs/Admin/jobs/Prepare_Jenkins_Repo_All_Slaves/builds/lastSuccessfulBuild at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242) at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103) at java.nio.file.Files.delete(Files.java:1126) at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at hudson.Util.deleteFile(Util.java:247) at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:113) 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:891) at jenkins.tasks.SimpleBuildStep$LastBuildActionFactory.createFor(SimpleBuildStep.java:111) at jenkins.tasks.SimpleBuildStep$LastBuildActionFactory.createFor(SimpleBuildStep.java:101) at hudson.model.Actionable.createFor(Actionable.java:107) at hudson.model.Actionable.getAllActions(Actionable.java:98) at hudson.model.Actionable.getActions(Actionable.java:119) at org.jenkinsci.plugins.testresultsanalyzer.TestResultsAnalyzerExtension.createFor(TestResultsAnalyzerExtension.java:19) at hudson.model.AbstractProject.createTransientActions(AbstractProject.java:769) at hudson.model.Project.createTransientActions(Project.java:241) at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:758) at hudson.model.AbstractProject.onLoad(AbstractProject.java:342) at hudson.model.Project.onLoad(Project.java:98) at hudson.model.Items.load(Items.java:327) at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:109) at com.cloudbees.hudson.plugins.folder.Folder.onLoad(Folder.java:239) at hudson.model.Items.load(Items.java:327) at jenkins.model.Jenkins$17.run(Jenkins.java:2666) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$7.runTask(Jenkins.java:905) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Jenkins JIRA | 1 year ago | Jakub Gladykowski
    java.nio.file.DirectoryNotEmptyException: /var/lib/jenkins/jobs/Admin/jobs/Prepare_Jenkins_Repo_All_Slaves/builds/lastSuccessfulBuild
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I moved our Jenkins instance to new server by copying all files with correct permissions and ownerships, and now we get such error in log for every job, which makes log useless. This bug is similar to JENKINS-17594. Not sure which recovery steps should I take to get rid of it. Contents of directory /var/lib/jenkins/jobs/Admin/jobs/Prepare_Jenkins_Repo_All_Slaves/builds/lastSuccessfulBuild: drwxr-xr-x 2 jenkins jenkins 4096 Aug 12 14:28 . drwxr-xr-x 8 jenkins jenkins 4096 Aug 20 07:35 .. -rw-r--r-- 1 jenkins jenkins 3802 Aug 12 14:28 build.xml -rw-r--r-- 1 jenkins jenkins 6 Aug 12 14:28 changelog.xml -rw-r--r-- 1 jenkins jenkins 1658 Aug 12 14:28 injectedEnvVars.txt -rw-r--r-- 1 jenkins jenkins 5992 Aug 12 14:28 log Aug 19, 2015 8:29:29 AM jenkins.model.PeepholePermalink updateCache WARNING: Failed to update hudson.model.FreeStyleProject@e9551b4[Admin/Prepare_Jenkins_Repo_All_Slaves] lastSuccessfulBuild permalink for Admin/Prepare_Jenkins_Repo_All_Slaves #4 java.nio.file.DirectoryNotEmptyException: /var/lib/jenkins/jobs/Admin/jobs/Prepare_Jenkins_Repo_All_Slaves/builds/lastSuccessfulBuild at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242) at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103) at java.nio.file.Files.delete(Files.java:1126) at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at hudson.Util.deleteFile(Util.java:247) at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:113) 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:891) at jenkins.tasks.SimpleBuildStep$LastBuildActionFactory.createFor(SimpleBuildStep.java:111) at jenkins.tasks.SimpleBuildStep$LastBuildActionFactory.createFor(SimpleBuildStep.java:101) at hudson.model.Actionable.createFor(Actionable.java:107) at hudson.model.Actionable.getAllActions(Actionable.java:98) at hudson.model.Actionable.getActions(Actionable.java:119) at org.jenkinsci.plugins.testresultsanalyzer.TestResultsAnalyzerExtension.createFor(TestResultsAnalyzerExtension.java:19) at hudson.model.AbstractProject.createTransientActions(AbstractProject.java:769) at hudson.model.Project.createTransientActions(Project.java:241) at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:758) at hudson.model.AbstractProject.onLoad(AbstractProject.java:342) at hudson.model.Project.onLoad(Project.java:98) at hudson.model.Items.load(Items.java:327) at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:109) at com.cloudbees.hudson.plugins.folder.Folder.onLoad(Folder.java:239) at hudson.model.Items.load(Items.java:327) at jenkins.model.Jenkins$17.run(Jenkins.java:2666) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$7.runTask(Jenkins.java:905) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Jenkins JIRA | 1 year ago | Jakub Gladykowski
    java.nio.file.DirectoryNotEmptyException: /var/lib/jenkins/jobs/Admin/jobs/Prepare_Jenkins_Repo_All_Slaves/builds/lastSuccessfulBuild
  6. 0

    [JIRA] [core] (JENKINS-19741) Massive jobs execution causes issues in lastSuccessfulBuild permalink update

    Google Groups | 9 months ago | s...@sumost.ca (JIRA)
    java.nio.file.DirectoryNotEmptyException: c:\Jenkins\jobs\CD-CFW_Selenium_Part1\builds\lastSuccessfulBuild<br>

  1. davidvanlaatum 1 times, last 6 months ago
3 unregistered visitors
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.nio.file.DirectoryNotEmptyException

    /jenkins/jobs/builds/lastFailedBuild

    at sun.nio.fs.UnixFileSystemProvider.implDelete()
  2. Java RT
    Method.invoke
    1. sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:254)
    2. sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:115)
    3. java.nio.file.Files.delete(Files.java:1088)
    4. sun.reflect.GeneratedMethodAccessor850.invoke(Unknown Source)
    5. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
    6. java.lang.reflect.Method.invoke(Method.java:619)
    6 frames
  3. Hudson
    AtomicFileWriter.commit
    1. hudson.Util.deleteFile(Util.java:247)
    2. hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:113)
    2 frames
  4. jenkins.model
    PeepholePermalink$RunListenerImpl.onCompleted
    1. jenkins.model.PeepholePermalink.writeSymlink(PeepholePermalink.java:200)
    2. jenkins.model.PeepholePermalink.updateCache(PeepholePermalink.java:150)
    3. jenkins.model.PeepholePermalink$RunListenerImpl.onCompleted(PeepholePermalink.java:237)
    3 frames
  5. Hudson
    Run.execute
    1. hudson.model.listeners.RunListener.fireCompleted(RunListener.java:199)
    2. hudson.model.Run.execute(Run.java:1810)
    2 frames
  6. Hudson Maven Embedder
    MavenModuleSetBuild.run
    1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
    1 frame
  7. Hudson
    Executor.run
    1. hudson.model.ResourceController.execute(ResourceController.java:89)
    2. hudson.model.Executor.run(Executor.java:240)
    2 frames