java.io.IOException: Unable to delete /home/mozilla/eideticker-ci/jenkins-master/jobs/b2g.inari.test.master/workspace/.env/include/python2.7/ImDib.h

Jenkins JIRA | Dave Hunt | 3 years ago
  1. 0

    I'm using the clear workspace plugin to remove everything except the two repositories that have been cloned, however when I add excludes (or even an include) the build fails with: Deleting project workspace... Cannot delete workspace: null On inspecting the Jenkins log, I found the following: 24-Sep-2013 13:40:21 hudson.plugins.ws_cleanup.PreBuildCleanup preCheckout SEVERE: null java.io.IOException: Unable to delete /home/mozilla/eideticker-ci/jenkins-master/jobs/b2g.inari.test.master/workspace/.env/include/python2.7/ImDib.h at hudson.Util.deleteFile(Util.java:256) at hudson.Util.deleteRecursive(Util.java:308) at hudson.plugins.ws_cleanup.Cleanup.invoke(Cleanup.java:102) at hudson.FilePath.act(FilePath.java:904) at hudson.FilePath.act(FilePath.java:877) at hudson.plugins.ws_cleanup.PreBuildCleanup.preCheckout(PreBuildCleanup.java:94) at jenkins.scm.SCMCheckoutStrategy.preCheckout(SCMCheckoutStrategy.java:78) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:578) at hudson.model.Run.execute(Run.java:1575) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) It's failing to delete a file in the Python virtual environment, which I want to remove between builds. The python2.7 directory is actually a symlink so really this should only be attempting to remove the symlink and not the actual linked file...

    Jenkins JIRA | 3 years ago | Dave Hunt
    java.io.IOException: Unable to delete /home/mozilla/eideticker-ci/jenkins-master/jobs/b2g.inari.test.master/workspace/.env/include/python2.7/ImDib.h
  2. 0

    I'm using the clear workspace plugin to remove everything except the two repositories that have been cloned, however when I add excludes (or even an include) the build fails with: Deleting project workspace... Cannot delete workspace: null On inspecting the Jenkins log, I found the following: 24-Sep-2013 13:40:21 hudson.plugins.ws_cleanup.PreBuildCleanup preCheckout SEVERE: null java.io.IOException: Unable to delete /home/mozilla/eideticker-ci/jenkins-master/jobs/b2g.inari.test.master/workspace/.env/include/python2.7/ImDib.h at hudson.Util.deleteFile(Util.java:256) at hudson.Util.deleteRecursive(Util.java:308) at hudson.plugins.ws_cleanup.Cleanup.invoke(Cleanup.java:102) at hudson.FilePath.act(FilePath.java:904) at hudson.FilePath.act(FilePath.java:877) at hudson.plugins.ws_cleanup.PreBuildCleanup.preCheckout(PreBuildCleanup.java:94) at jenkins.scm.SCMCheckoutStrategy.preCheckout(SCMCheckoutStrategy.java:78) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:578) at hudson.model.Run.execute(Run.java:1575) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) It's failing to delete a file in the Python virtual environment, which I want to remove between builds. The python2.7 directory is actually a symlink so really this should only be attempting to remove the symlink and not the actual linked file...

    Jenkins JIRA | 3 years ago | Dave Hunt
    java.io.IOException: Unable to delete /home/mozilla/eideticker-ci/jenkins-master/jobs/b2g.inari.test.master/workspace/.env/include/python2.7/ImDib.h
  3. 0

    Hi we get frequently an error like this on our jobs on jenkins slaves: Wiping out workspace first. hudson.util.IOException2: remote file operation failed: <http://10.66.180.27:8080/job/Integration%20Flow%20Designtime%20Gerrit%20Voter/ws/> at hudson.remoting.Channel@44250147:Avt_veavjen007_Orange at hudson.FilePath.act(FilePath.java:900) at hudson.FilePath.act(FilePath.java:877) at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:942) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1108) at hudson.model.AbstractProject.checkout(AbstractProject.java:1369) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581) at hudson.model.Run.execute(Run.java:1575) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:241) Caused by: java.io.IOException: Unable to delete <http://10.66.180.27:8080/job/Integration%20Flow%20Designtime%20Gerrit%20Voter/ws/.git\objects\pack\pack-c0af26544495cb6c77a6901bd276613f26e4c5a6.pack> at hudson.Util.deleteFile(Util.java:256) at hudson.Util.deleteRecursive(Util.java:308) at hudson.Util.deleteContentsRecursive(Util.java:205 Our infrastructure consist of a Jenkins Master on Linux and slaves on Windows 2008 R2 Servers Attached you will find a screenshot of the task manager on the affected windows slave. Many ssh.exe, git.exe and some java.exe process run but should not run after a job is finished. What can we do to make jenkins killing the hanging processes? To fix this problem we tried one of the solution provide from the jenkins help page : https://issues.jenkins-ci.org/browse/JENKINS-15103 , included the parameter "-Dorg.jenkinsci.plugins.gitclient.Git.useCLI=true" in the JVM options for the slave but it does not help. Could you please help us Best regards, Peter

    Jenkins JIRA | 3 years ago | Peter Goebel
    hudson.util.IOException2: remote file operation failed: <http://10.66.180.27:8080/job/Integration%20Flow%20Designtime%20Gerrit%20Voter/ws/> at hudson.remoting.Channel@44250147:Avt_veavjen007_Orange
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hi we get frequently an error like this on our jobs on jenkins slaves: Wiping out workspace first. hudson.util.IOException2: remote file operation failed: <http://10.66.180.27:8080/job/Integration%20Flow%20Designtime%20Gerrit%20Voter/ws/> at hudson.remoting.Channel@44250147:Avt_veavjen007_Orange at hudson.FilePath.act(FilePath.java:900) at hudson.FilePath.act(FilePath.java:877) at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:942) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1108) at hudson.model.AbstractProject.checkout(AbstractProject.java:1369) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581) at hudson.model.Run.execute(Run.java:1575) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:241) Caused by: java.io.IOException: Unable to delete <http://10.66.180.27:8080/job/Integration%20Flow%20Designtime%20Gerrit%20Voter/ws/.git\objects\pack\pack-c0af26544495cb6c77a6901bd276613f26e4c5a6.pack> at hudson.Util.deleteFile(Util.java:256) at hudson.Util.deleteRecursive(Util.java:308) at hudson.Util.deleteContentsRecursive(Util.java:205 Our infrastructure consist of a Jenkins Master on Linux and slaves on Windows 2008 R2 Servers Attached you will find a screenshot of the task manager on the affected windows slave. Many ssh.exe, git.exe and some java.exe process run but should not run after a job is finished. What can we do to make jenkins killing the hanging processes? To fix this problem we tried one of the solution provide from the jenkins help page : https://issues.jenkins-ci.org/browse/JENKINS-15103 , included the parameter "-Dorg.jenkinsci.plugins.gitclient.Git.useCLI=true" in the JVM options for the slave but it does not help. Could you please help us Best regards, Peter

    Jenkins JIRA | 3 years ago | Peter Goebel
    hudson.util.IOException2: remote file operation failed: <http://10.66.180.27:8080/job/Integration%20Flow%20Designtime%20Gerrit%20Voter/ws/> at hudson.remoting.Channel@44250147:Avt_veavjen007_Orange
  6. 0

    With a long running windows/msbuild job running on master, another change is submitted, and the next job is queued up. If the current running job is cancelled, Jenkins immediately switches to running the next job. The job is configured to delete changed files and check out new. It looks like the previous job still has files open when jenkins starts to delete, which results in an IOException (Below) Deleting F:\jenkins\jobs\MyProject\workspace\my_service\MyProjectItemServiceInstaller\MyProjectItemServiceInstaller.sln.cache Deleting F:\jenkins\jobs\MyProject\workspace\my_service\MyProjectItemServiceInstaller\PSWixLib\bin Deleting F:\jenkins\jobs\MyProject\workspace\my_service\MyProjectItemServiceInstaller\PSWixLib\obj Deleting F:\jenkins\jobs\MyProject\workspace\my_service\MyProjectItemServiceInstaller\CommonLibWixLib\bin Deleting F:\jenkins\jobs\MyProject\workspace\my_service\MyProjectItemServiceInstaller\CommonLibWixLib\obj Deleting F:\jenkins\jobs\MyProject\workspace\my_service\MyProjectItemServiceInstaller\CRServiceInstaller\bin Deleting F:\jenkins\jobs\MyProject\workspace\my_service\MyProjectItemServiceInstaller\CRServiceInstaller\obj Deleting F:\jenkins\jobs\MyProject\workspace\my_service\MyProjectItemServiceInstaller\CRServiceWixLib\bin Deleting F:\jenkins\jobs\MyProject\workspace\my_service\MyProjectItemServiceInstaller\CRServiceWixLib\obj Deleting F:\jenkins\jobs\MyProject\workspace\my_service\NetSetup\NetSetup.sln.cache Deleting F:\jenkins\jobs\MyProject\workspace\my_service\NetSetup\Release Deleting F:\jenkins\jobs\MyProject\workspace\my_service\genericproject\Source\genericproject.sln.cache Deleting F:\jenkins\jobs\MyProject\workspace\my_service\genericproject\Source\hlp Deleting F:\jenkins\jobs\MyProject\workspace\my_service\genericproject\Source\obj ERROR: Failed to update https://svn.example.com/svn/my_service/trunk org.tmatesoft.svn.core.SVNException: svn: Unable to delete F:\jenkins\jobs\MyProject\workspace\my_service\genericproject\Source\obj\Release\BuildLog.htm at hudson.scm.subversion.UpdateWithCleanUpdater$TaskImpl$1.handleStatus(UpdateWithCleanUpdater.java:78) at org.tmatesoft.svn.core.internal.wc.SVNStatusEditor.sendUnversionedStatus(SVNStatusEditor.java:358) at org.tmatesoft.svn.core.internal.wc.SVNStatusEditor.getDirStatus(SVNStatusEditor.java:208) at org.tmatesoft.svn.core.internal.wc.SVNStatusEditor.handleDirEntry(SVNStatusEditor.java:318) at org.tmatesoft.svn.core.internal.wc.SVNStatusEditor.getDirStatus(SVNStatusEditor.java:253) at org.tmatesoft.svn.core.internal.wc.SVNStatusEditor.handleDirEntry(SVNStatusEditor.java:318) at org.tmatesoft.svn.core.internal.wc.SVNStatusEditor.getDirStatus(SVNStatusEditor.java:253) at org.tmatesoft.svn.core.internal.wc.SVNStatusEditor.closeEdit(SVNStatusEditor.java:114) at org.tmatesoft.svn.core.wc.SVNStatusClient.doStatus(SVNStatusClient.java:380) at hudson.scm.subversion.UpdateWithCleanUpdater$TaskImpl.preUpdate(UpdateWithCleanUpdater.java:83) at hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:133) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:136) at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:787) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:768) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:752) at hudson.FilePath.act(FilePath.java:783) at hudson.FilePath.act(FilePath.java:765) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:742) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:686) at hudson.model.AbstractProject.checkout(AbstractProject.java:1195) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:568) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:457) at hudson.model.Run.run(Run.java:1404) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:47) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: org.tmatesoft.svn.core.SVNErrorMessage: svn: Unable to delete F:\jenkins\jobs\MyProject\workspace\my_service\genericproject\Source\obj\Release\BuildLog.htm at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:101) at hudson.scm.subversion.UpdateWithCleanUpdater$TaskImpl$1.handleStatus(UpdateWithCleanUpdater.java:78) at org.tmatesoft.svn.core.internal.wc.SVNStatusEditor.sendUnversionedStatus(SVNStatusEditor.java:358) at org.tmatesoft.svn.core.internal.wc.SVNStatusEditor.getDirStatus(SVNStatusEditor.java:208) at org.tmatesoft.svn.core.internal.wc.SVNStatusEditor.handleDirEntry(SVNStatusEditor.java:318) at org.tmatesoft.svn.core.internal.wc.SVNStatusEditor.getDirStatus(SVNStatusEditor.java:253) at org.tmatesoft.svn.core.internal.wc.SVNStatusEditor.handleDirEntry(SVNStatusEditor.java:318) at org.tmatesoft.svn.core.internal.wc.SVNStatusEditor.getDirStatus(SVNStatusEditor.java:253) at org.tmatesoft.svn.core.internal.wc.SVNStatusEditor.closeEdit(SVNStatusEditor.java:114) at org.tmatesoft.svn.core.wc.SVNStatusClient.doStatus(SVNStatusClient.java:380) at hudson.scm.subversion.UpdateWithCleanUpdater$TaskImpl.preUpdate(UpdateWithCleanUpdater.java:66) at hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:133) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:136) at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:787) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:768) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:752) at hudson.FilePath.act(FilePath.java:783) at hudson.FilePath.act(FilePath.java:765) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:742) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:684) at hudson.model.AbstractProject.checkout(AbstractProject.java:1195) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:568) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:457) at hudson.model.Run.run(Run.java:1404) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) ... 2 more Caused by: java.io.IOException: Unable to delete F:\jenkins\jobs\MyProject\workspace\my_service\genericproject\Source\obj\Release\BuildLog.htm at hudson.Util.deleteFile(Util.java:266) at hudson.Util.deleteRecursive(Util.java:316) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.Util.deleteRecursive(Util.java:307) at hudson.scm.subversion.UpdateWithCleanUpdater$TaskImpl$1.handleStatus(UpdateWithCleanUpdater.java:74) at org.tmatesoft.svn.core.internal.wc.SVNStatusEditor.getDirStatus(SVNStatusEditor.java:208) at org.tmatesoft.svn.core.internal.wc.SVNStatusEditor.getDirStatus(SVNStatusEditor.java:253) at org.tmatesoft.svn.core.internal.wc.SVNStatusEditor.getDirStatus(SVNStatusEditor.java:253) at org.tmatesoft.svn.core.internal.wc.SVNStatusEditor.closeEdit(SVNStatusEditor.java:114) at org.tmatesoft.svn.core.wc.SVNStatusClient.doStatus(SVNStatusClient.java:380) at hudson.scm.subversion.UpdateWithCleanUpdater$TaskImpl.preUpdate(UpdateWithCleanUpdater.java:83) at hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:133) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:136) at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:787) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:768) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:752) at hudson.FilePath.act(FilePath.java:783) at hudson.FilePath.act(FilePath.java:765) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:742) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:686) at hudson.model.AbstractProject.checkout(AbstractProject.java:1195) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:568) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:457) at hudson.model.Run.run(Run.java:1404) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:47) ... 2 more FATAL: null java.lang.NullPointerException at java.util.ArrayList.addAll(ArrayList.java:472) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:742) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:684) at hudson.model.AbstractProject.checkout(AbstractProject.java:1195) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:568) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:457) at hudson.model.Run.run(Run.java:1404) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238)

    Jenkins JIRA | 5 years ago | b2jrock
    org.tmatesoft.svn.core.SVNException: svn: Unable to delete F:\jenkins\jobs\MyProject\workspace\my_service\genericproject\Source\obj\Release\BuildLog.htm

    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.io.IOException

      Unable to delete /home/mozilla/eideticker-ci/jenkins-master/jobs/b2g.inari.test.master/workspace/.env/include/python2.7/ImDib.h

      at hudson.Util.deleteFile()
    2. Hudson
      Util.deleteRecursive
      1. hudson.Util.deleteFile(Util.java:256)
      2. hudson.Util.deleteRecursive(Util.java:308)
      2 frames
    3. hudson.plugins.ws_cleanup
      Cleanup.invoke
      1. hudson.plugins.ws_cleanup.Cleanup.invoke(Cleanup.java:102)
      1 frame
    4. Hudson
      FilePath.act
      1. hudson.FilePath.act(FilePath.java:904)
      2. hudson.FilePath.act(FilePath.java:877)
      2 frames
    5. hudson.plugins.ws_cleanup
      PreBuildCleanup.preCheckout
      1. hudson.plugins.ws_cleanup.PreBuildCleanup.preCheckout(PreBuildCleanup.java:94)
      1 frame
    6. jenkins.scm
      SCMCheckoutStrategy.preCheckout
      1. jenkins.scm.SCMCheckoutStrategy.preCheckout(SCMCheckoutStrategy.java:78)
      1 frame
    7. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:578)
      2. hudson.model.Run.execute(Run.java:1575)
      3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      4. hudson.model.ResourceController.execute(ResourceController.java:88)
      5. hudson.model.Executor.run(Executor.java:237)
      5 frames