hudson.util.IOException2: remote file operation failed: E:\jenkins\workspace\VoiceFirst-WebServices-feature at hudson.remoting.Channel@3007615c:VHS-Lab-YosWin0

Jenkins JIRA | Jeff Koenig | 4 years ago
  1. 0

    When building a job with a git branch specifier that ends with a wildcard (ie origin/feature/* or origin/feature**) jenkins never releases its hold on .git/object/pack/*.pack files. This causes the next build to not be able to wipe the workspace. This is not a problem if the branch specifier does not end with a wildcard. The *.pack file cannot be deleted until the javaw.exe process (JNLP connection to jenkins) is killed. The only way I have been able to get by is to not wipe the workspace before builds. This is the stack trace that this causes... {quote} Using strategy: Default Last Built Revision: Revision cfd6d3ea8c621905444d4e84b4718bf5d40cbe59 (origin/feature/jeff-test) Wiping out workspace first. hudson.util.IOException2: remote file operation failed: E:\jenkins\workspace\VoiceFirst-WebServices-feature at hudson.remoting.Channel@3007615c:VHS-Lab-YosWin0 at hudson.FilePath.act(FilePath.java:838) at hudson.FilePath.act(FilePath.java:824) at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:1044) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1200) at hudson.model.AbstractProject.checkout(AbstractProject.java:1248) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494) at hudson.model.Run.execute(Run.java:1484) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: java.io.IOException: Unable to delete E:\jenkins\workspace\VoiceFirst-WebServices-feature\.git\objects\pack\pack-7afe54f6a971bd2518f1713140acd04dee21882c.pack at hudson.Util.deleteFile(Util.java:237) at hudson.Util.deleteRecursive(Util.java:287) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.Util.deleteRecursive(Util.java:278) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.Util.deleteRecursive(Util.java:278) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.Util.deleteRecursive(Util.java:278) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.FilePath$12.invoke(FilePath.java:922) at hudson.FilePath$12.invoke(FilePath.java:920) at hudson.FilePath.act(FilePath.java:842) at hudson.FilePath.act(FilePath.java:824) at hudson.FilePath.deleteContents(FilePath.java:920) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1057) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1044) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2180) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:287) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at hudson.remoting.Engine$1$1.run(Engine.java:60) at java.lang.Thread.run(Thread.java:662) {quote}

    Jenkins JIRA | 4 years ago | Jeff Koenig
    hudson.util.IOException2: remote file operation failed: E:\jenkins\workspace\VoiceFirst-WebServices-feature at hudson.remoting.Channel@3007615c:VHS-Lab-YosWin0
  2. 0

    When building a job with a git branch specifier that ends with a wildcard (ie origin/feature/* or origin/feature**) jenkins never releases its hold on .git/object/pack/*.pack files. This causes the next build to not be able to wipe the workspace. This is not a problem if the branch specifier does not end with a wildcard. The *.pack file cannot be deleted until the javaw.exe process (JNLP connection to jenkins) is killed. The only way I have been able to get by is to not wipe the workspace before builds. This is the stack trace that this causes... {quote} Using strategy: Default Last Built Revision: Revision cfd6d3ea8c621905444d4e84b4718bf5d40cbe59 (origin/feature/jeff-test) Wiping out workspace first. hudson.util.IOException2: remote file operation failed: E:\jenkins\workspace\VoiceFirst-WebServices-feature at hudson.remoting.Channel@3007615c:VHS-Lab-YosWin0 at hudson.FilePath.act(FilePath.java:838) at hudson.FilePath.act(FilePath.java:824) at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:1044) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1200) at hudson.model.AbstractProject.checkout(AbstractProject.java:1248) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494) at hudson.model.Run.execute(Run.java:1484) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: java.io.IOException: Unable to delete E:\jenkins\workspace\VoiceFirst-WebServices-feature\.git\objects\pack\pack-7afe54f6a971bd2518f1713140acd04dee21882c.pack at hudson.Util.deleteFile(Util.java:237) at hudson.Util.deleteRecursive(Util.java:287) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.Util.deleteRecursive(Util.java:278) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.Util.deleteRecursive(Util.java:278) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.Util.deleteRecursive(Util.java:278) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.FilePath$12.invoke(FilePath.java:922) at hudson.FilePath$12.invoke(FilePath.java:920) at hudson.FilePath.act(FilePath.java:842) at hudson.FilePath.act(FilePath.java:824) at hudson.FilePath.deleteContents(FilePath.java:920) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1057) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1044) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2180) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:287) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at hudson.remoting.Engine$1$1.run(Engine.java:60) at java.lang.Thread.run(Thread.java:662) {quote}

    Jenkins JIRA | 4 years ago | Jeff Koenig
    hudson.util.IOException2: remote file operation failed: E:\jenkins\workspace\VoiceFirst-WebServices-feature at hudson.remoting.Channel@3007615c:VHS-Lab-YosWin0
  3. 0

    We are running Jenkins 1.414. We added a file with name zdeněk-gromnica_infrared.zip to our code base, and found that the git plugins "wipe out workspace before build" fails when trying to remove this file. The log below shows that the filename is mangled: Wiping out workspace first. hudson.util.IOException2: remote file operation failed: /var/lib/hudson/workspace/Enterprise_Validate at hudson.remoting.Channel@6c8255:devdb at hudson.FilePath.act(FilePath.java:754) at hudson.FilePath.act(FilePath.java:740) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:908) at hudson.model.AbstractProject.checkout(AbstractProject.java:1181) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:536) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:424) at hudson.model.Run.run(Run.java:1375) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) Caused by: java.io.IOException: Unable to delete /var/lib/hudson/workspace/Enterprise_Validate/pear/pear/php/DocBlox/docs/design - files in dir: [/var/lib/hudson/workspace/Enterprise_Validate/pear/pear/php/DocBlox/docs/design/zden??k-gromnica_infrared.zip] at hudson.Util.deleteFile(Util.java:262) at hudson.Util.deleteRecursive(Util.java:305) at hudson.Util.deleteContentsRecursive(Util.java:224) at hudson.Util.deleteRecursive(Util.java:304) at hudson.Util.deleteContentsRecursive(Util.java:224) at hudson.Util.deleteRecursive(Util.java:304) at hudson.Util.deleteContentsRecursive(Util.java:224) at hudson.Util.deleteRecursive(Util.java:304) at hudson.Util.deleteContentsRecursive(Util.java:224) at hudson.Util.deleteRecursive(Util.java:304) at hudson.Util.deleteContentsRecursive(Util.java:224) at hudson.Util.deleteRecursive(Util.java:304) at hudson.Util.deleteContentsRecursive(Util.java:224) at hudson.FilePath$10.invoke(FilePath.java:838) at hudson.FilePath$10.invoke(FilePath.java:836) at hudson.FilePath.act(FilePath.java:758) at hudson.FilePath.act(FilePath.java:740) at hudson.FilePath.deleteContents(FilePath.java:836) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:921) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:908) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1980) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Let me know if there's anything else I can provide. Cheers, Bill

    Jenkins JIRA | 5 years ago | shupp
    hudson.util.IOException2: remote file operation failed: /var/lib/hudson/workspace/Enterprise_Validate at hudson.remoting.Channel@6c8255:devdb
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    We are running Jenkins 1.414. We added a file with name zdeněk-gromnica_infrared.zip to our code base, and found that the git plugins "wipe out workspace before build" fails when trying to remove this file. The log below shows that the filename is mangled: Wiping out workspace first. hudson.util.IOException2: remote file operation failed: /var/lib/hudson/workspace/Enterprise_Validate at hudson.remoting.Channel@6c8255:devdb at hudson.FilePath.act(FilePath.java:754) at hudson.FilePath.act(FilePath.java:740) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:908) at hudson.model.AbstractProject.checkout(AbstractProject.java:1181) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:536) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:424) at hudson.model.Run.run(Run.java:1375) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) Caused by: java.io.IOException: Unable to delete /var/lib/hudson/workspace/Enterprise_Validate/pear/pear/php/DocBlox/docs/design - files in dir: [/var/lib/hudson/workspace/Enterprise_Validate/pear/pear/php/DocBlox/docs/design/zden??k-gromnica_infrared.zip] at hudson.Util.deleteFile(Util.java:262) at hudson.Util.deleteRecursive(Util.java:305) at hudson.Util.deleteContentsRecursive(Util.java:224) at hudson.Util.deleteRecursive(Util.java:304) at hudson.Util.deleteContentsRecursive(Util.java:224) at hudson.Util.deleteRecursive(Util.java:304) at hudson.Util.deleteContentsRecursive(Util.java:224) at hudson.Util.deleteRecursive(Util.java:304) at hudson.Util.deleteContentsRecursive(Util.java:224) at hudson.Util.deleteRecursive(Util.java:304) at hudson.Util.deleteContentsRecursive(Util.java:224) at hudson.Util.deleteRecursive(Util.java:304) at hudson.Util.deleteContentsRecursive(Util.java:224) at hudson.FilePath$10.invoke(FilePath.java:838) at hudson.FilePath$10.invoke(FilePath.java:836) at hudson.FilePath.act(FilePath.java:758) at hudson.FilePath.act(FilePath.java:740) at hudson.FilePath.deleteContents(FilePath.java:836) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:921) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:908) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1980) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Let me know if there's anything else I can provide. Cheers, Bill

    Jenkins JIRA | 5 years ago | shupp
    hudson.util.IOException2: remote file operation failed: /var/lib/hudson/workspace/Enterprise_Validate at hudson.remoting.Channel@6c8255:devdb
  6. 0

    How to debug when Jenkins jobs fail with "java.io.IOException and unable to delete job

    Stack Overflow | 6 years ago | Deleted
    java.io.IOException: Unable to delete E:\jenkins\jobs\BusinessAdapterComponent\workspace\ControllerSW\Workspace\AccessoryBusinessAdapterComponentTest

    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 E:\jenkins\workspace\VoiceFirst-WebServices-feature\.git\objects\pack\pack-7afe54f6a971bd2518f1713140acd04dee21882c.pack

      at hudson.Util.deleteFile()
    2. Hudson
      FilePath.deleteContents
      1. hudson.Util.deleteFile(Util.java:237)
      2. hudson.Util.deleteRecursive(Util.java:287)
      3. hudson.Util.deleteContentsRecursive(Util.java:198)
      4. hudson.Util.deleteRecursive(Util.java:278)
      5. hudson.Util.deleteContentsRecursive(Util.java:198)
      6. hudson.Util.deleteRecursive(Util.java:278)
      7. hudson.Util.deleteContentsRecursive(Util.java:198)
      8. hudson.Util.deleteRecursive(Util.java:278)
      9. hudson.Util.deleteContentsRecursive(Util.java:198)
      10. hudson.FilePath$12.invoke(FilePath.java:922)
      11. hudson.FilePath$12.invoke(FilePath.java:920)
      12. hudson.FilePath.act(FilePath.java:842)
      13. hudson.FilePath.act(FilePath.java:824)
      14. hudson.FilePath.deleteContents(FilePath.java:920)
      14 frames
    3. Hudson GIT plugin
      GitSCM$2.invoke
      1. hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1057)
      2. hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1044)
      2 frames
    4. Hudson
      FilePath$FileCallableWrapper.call
      1. hudson.FilePath$FileCallableWrapper.call(FilePath.java:2180)
      1 frame
    5. Hudson :: Remoting Layer
      InterceptingExecutorService$1.call
      1. hudson.remoting.UserRequest.perform(UserRequest.java:118)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      3. hudson.remoting.Request$2.run(Request.java:287)
      4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      4 frames
    6. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      4 frames
    7. Hudson :: Remoting Layer
      Engine$1$1.run
      1. hudson.remoting.Engine$1$1.run(Engine.java:60)
      1 frame
    8. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:662)
      1 frame