Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-21330

java.nio.file.DirectoryNotEmptyException: /home/dev/.jenkins/jobs/MyBuild/lastSuccessful

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • maven-plugin
    • tomcat/centos

      Hello,

      On the latest version 1.546 for a maven build I get this error:

      Started by user anonymous
      ln builds/lastSuccessfulBuild /home/dev/.jenkins/jobs/MyBuild/lastSuccessful failed
      java.nio.file.DirectoryNotEmptyException: /home/dev/.jenkins/jobs/MyBuild/lastSuccessful
      	at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:241)
      	at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
      	at java.nio.file.Files.deleteIfExists(Files.java:1116)
      	at sun.reflect.GeneratedMethodAccessor313.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	at hudson.Util.createSymlinkJava7(Util.java:1146)
      	at hudson.Util.createSymlink(Util.java:1064)
      	at hudson.model.Run.createSymlink(Run.java:1783)
      	at hudson.model.Run.updateSymlinks(Run.java:1764)
      	at hudson.model.Run.execute(Run.java:1676)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:519)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:231)
      ln builds/lastStableBuild /home/dev/.jenkins/jobs/MyBuild/lastStable failed
      java.nio.file.DirectoryNotEmptyException: /home/dev/.jenkins/jobs/MyBuild/lastStable
      	at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:241)
      	at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
      	at java.nio.file.Files.deleteIfExists(Files.java:1116)
      	at sun.reflect.GeneratedMethodAccessor313.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	at hudson.Util.createSymlinkJava7(Util.java:1146)
      	at hudson.Util.createSymlink(Util.java:1064)
      	at hudson.model.Run.createSymlink(Run.java:1783)
      	at hudson.model.Run.updateSymlinks(Run.java:1765)
      	at hudson.model.Run.execute(Run.java:1676)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:519)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:231)
      Building in workspace /home/dev/.jenkins/jobs/MyBuild/workspace
      Updating svn://myweb.com/repos/Events/trunk at revision '2014-01-10T15:06:09.745 +0000'
      At revision 1974
      WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior.
      no change for svn://myweb.com/repos/Events/trunk since the previous build
      Parsing POMs
      

      It does not seem to get the latest update from the svn.

      Switching back to 1.544 fixed the issue.

      Cheers Greg

          [JENKINS-21330] java.nio.file.DirectoryNotEmptyException: /home/dev/.jenkins/jobs/MyBuild/lastSuccessful

          Greg Huber created issue -

          Greg Huber added a comment -

          sorry not a problem

          Greg Huber added a comment - sorry not a problem
          Greg Huber made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          Mohd Ali added a comment -

          @greg huber: Why do you say that this is not a problem? I mean the builds succeed but the errors in the log are annoying and not there in the previous version. DO you think other wise?

          Mohd Ali added a comment - @greg huber: Why do you say that this is not a problem? I mean the builds succeed but the errors in the log are annoying and not there in the previous version. DO you think other wise?

          Greg Huber added a comment -

          Well, I was initially complaining about my build not working, where it would not update from the svn, but miss understood the exception as an error. I think it does this when the build fails? I installed the poll plugin to force an update from the svn

          I guess it would be better to clean up the java.nio.file.DirectoryNotEmptyException message, to avoid this kind of confusion.

          Cheers Greg.

          Greg Huber added a comment - Well, I was initially complaining about my build not working, where it would not update from the svn, but miss understood the exception as an error. I think it does this when the build fails? I installed the poll plugin to force an update from the svn I guess it would be better to clean up the java.nio.file.DirectoryNotEmptyException message, to avoid this kind of confusion. Cheers Greg.

          Mohd Ali added a comment -

          Ya . I agree. Going to reopen this as this seems to be coping in the stable release versions as well

          Mohd Ali added a comment - Ya . I agree. Going to reopen this as this seems to be coping in the stable release versions as well

          Greg Huber added a comment -

          other reporters also.

          Greg Huber added a comment - other reporters also.
          Greg Huber made changes -
          Resolution Original: Not A Defect [ 7 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

          Yes :

          [JENKINS] Archiving disabled
          ln builds/lastSuccessfulBuild /opt/jenkins/jobs/.../XXX.pe$pe-metier/lastSuccessful failed
          java.nio.file.DirectoryNotEmptyException: /opt/jenkins/jobs/.../XXX.pe$pe-metier/lastSuccessful
          	at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242)
          	at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
          	at java.nio.file.Files.deleteIfExists(Files.java:1116)
          	at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
          	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          	at java.lang.reflect.Method.invoke(Method.java:606)
          	at hudson.Util.createSymlinkJava7(Util.java:1146)
          	at hudson.Util.createSymlink(Util.java:1064)
          	at hudson.model.Run.createSymlink(Run.java:1775)
          	at hudson.model.Run.updateSymlinks(Run.java:1756)
          	at hudson.maven.MavenBuild$ProxyImpl2.end(MavenBuild.java:570)
          

          On :

          • jenkins 1.549
          • centos 6.5
          • java 1.7

          Sylvain Mougenot added a comment - Yes : [JENKINS] Archiving disabled ln builds/lastSuccessfulBuild /opt/jenkins/jobs/.../XXX.pe$pe-metier/lastSuccessful failed java.nio.file.DirectoryNotEmptyException: /opt/jenkins/jobs/.../XXX.pe$pe-metier/lastSuccessful at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108) at java.nio.file.Files.deleteIfExists(Files.java:1116) at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at hudson.Util.createSymlinkJava7(Util.java:1146) at hudson.Util.createSymlink(Util.java:1064) at hudson.model.Run.createSymlink(Run.java:1775) at hudson.model.Run.updateSymlinks(Run.java:1756) at hudson.maven.MavenBuild$ProxyImpl2.end(MavenBuild.java:570) On : jenkins 1.549 centos 6.5 java 1.7

          Swapnil Mate added a comment -

          Same issue seen in 1.580

          Started by user –
          ln builds/lastSuccessfulBuild /var/lib/jenkins/jobs/XXXXXXX/lastSuccessful failed
          java.nio.file.DirectoryNotEmptyException: /var/lib/jenkins/jobs/Sears-Staging/lastSuccessful
          at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:241)
          at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
          at java.nio.file.Files.deleteIfExists(Files.java:1116)
          at sun.reflect.GeneratedMethodAccessor165.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:601)
          at hudson.Util.createSymlinkJava7(Util.java:1194)
          at hudson.Util.createSymlink(Util.java:1112)
          at hudson.model.Run.createSymlink(Run.java:1851)
          at hudson.model.Run.updateSymlinks(Run.java:1832)
          at hudson.model.Run.execute(Run.java:1743)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:89)
          at hudson.model.Executor.run(Executor.java:240)

          Swapnil Mate added a comment - Same issue seen in 1.580 Started by user – ln builds/lastSuccessfulBuild /var/lib/jenkins/jobs/XXXXXXX/lastSuccessful failed java.nio.file.DirectoryNotEmptyException: /var/lib/jenkins/jobs/Sears-Staging/lastSuccessful at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:241) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108) at java.nio.file.Files.deleteIfExists(Files.java:1116) at sun.reflect.GeneratedMethodAccessor165.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at hudson.Util.createSymlinkJava7(Util.java:1194) at hudson.Util.createSymlink(Util.java:1112) at hudson.model.Run.createSymlink(Run.java:1851) at hudson.model.Run.updateSymlinks(Run.java:1832) at hudson.model.Run.execute(Run.java:1743) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240)

            Unassigned Unassigned
            gregh3269 Greg Huber
            Votes:
            21 Vote for this issue
            Watchers:
            30 Start watching this issue

              Created:
              Updated: