java.io.IOException: Unable to delete workspace\xunitTemp\file-1791802469.xml

Jenkins JIRA | torbent | 7 years ago
  1. 0

    This is a spin-off of issue 4305, which is roughly the same issue, but for the older cppunit plugin. The attached XML output file is an edit of a file that gave me problems. CppUnit crashes completely, which xUnit apparently doesn't. The build that was given this file resulted in these lines in the build console output: [xUnit] [CppUnit] - Processing 18 files with the pattern 'build/**/unittest-*.xml' relative to 'workspace'. [xUnit] [ERROR] - Couldn't convert the file 'workspace\build\dir\unittest-01.xml' into a JUnit file. That's very good, and I was sent an email with this. However, the next build (with the offending XML fixed) resulted in this: FATAL: Unable to delete workspace\xunitTemp\file-1791802469.xml java.io.IOException: Unable to delete workspace\xunitTemp\file-1791802469.xml at hudson.Util.deleteFile(Util.java:225) at hudson.Util.deleteRecursive(Util.java:257) at hudson.Util.deleteContentsRecursive(Util.java:186) at hudson.Util.deleteRecursive(Util.java:256) at hudson.FilePath$9.invoke(FilePath.java:748) at hudson.FilePath$9.invoke(FilePath.java:746) at hudson.FilePath.act(FilePath.java:676) at hudson.FilePath.act(FilePath.java:660) at hudson.FilePath.deleteRecursive(FilePath.java:746) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:89) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:480) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:466) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:454) at hudson.model.Build$RunnerImpl.post2(Build.java:146) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:438) at hudson.model.Run.run(Run.java:1129) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:122) And indeed I cannot delete the temp file manually either. It seems that, despite the nice error message in previous build, something crashed internally and is keeping that file open. It is listed as 0 bytes long. I'm running Hudson 1.321, xUnit 0.1.3, on a Windows XP machine. Restarting Hudson cleared the problem, but that's not a good solution ;-)

    Jenkins JIRA | 7 years ago | torbent
    java.io.IOException: Unable to delete workspace\xunitTemp\file-1791802469.xml
  2. 0

    This is a spin-off of issue 4305, which is roughly the same issue, but for the older cppunit plugin. The attached XML output file is an edit of a file that gave me problems. CppUnit crashes completely, which xUnit apparently doesn't. The build that was given this file resulted in these lines in the build console output: [xUnit] [CppUnit] - Processing 18 files with the pattern 'build/**/unittest-*.xml' relative to 'workspace'. [xUnit] [ERROR] - Couldn't convert the file 'workspace\build\dir\unittest-01.xml' into a JUnit file. That's very good, and I was sent an email with this. However, the next build (with the offending XML fixed) resulted in this: FATAL: Unable to delete workspace\xunitTemp\file-1791802469.xml java.io.IOException: Unable to delete workspace\xunitTemp\file-1791802469.xml at hudson.Util.deleteFile(Util.java:225) at hudson.Util.deleteRecursive(Util.java:257) at hudson.Util.deleteContentsRecursive(Util.java:186) at hudson.Util.deleteRecursive(Util.java:256) at hudson.FilePath$9.invoke(FilePath.java:748) at hudson.FilePath$9.invoke(FilePath.java:746) at hudson.FilePath.act(FilePath.java:676) at hudson.FilePath.act(FilePath.java:660) at hudson.FilePath.deleteRecursive(FilePath.java:746) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:89) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:480) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:466) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:454) at hudson.model.Build$RunnerImpl.post2(Build.java:146) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:438) at hudson.model.Run.run(Run.java:1129) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:122) And indeed I cannot delete the temp file manually either. It seems that, despite the nice error message in previous build, something crashed internally and is keeping that file open. It is listed as 0 bytes long. I'm running Hudson 1.321, xUnit 0.1.3, on a Windows XP machine. Restarting Hudson cleared the problem, but that's not a good solution ;-)

    Jenkins JIRA | 7 years ago | torbent
    java.io.IOException: Unable to delete workspace\xunitTemp\file-1791802469.xml
  3. 0

    Hudson and gitosis

    Stack Overflow | 5 years ago | Jon
    java.io.IOException: Unable to delete C:\Documents and Settings\hudson\.hudson\jobs\<job>\workspace
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Failed to clean up temp dirs

    GitHub | 2 years ago | RZhou94
    java.io.IOException: Failed to clean up temp dirs
  6. 0

    Unable to delete unicode files during workspace cleanup

    Google Groups | 4 years ago | grayaii
    java.io.IOException: Unable to delete /.../XmlParseUtilityTestFiles/��ҿ]

    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 workspace\xunitTemp\file-1791802469.xml

      at hudson.Util.deleteFile()
    2. Hudson
      FilePath.deleteRecursive
      1. hudson.Util.deleteFile(Util.java:225)
      2. hudson.Util.deleteRecursive(Util.java:257)
      3. hudson.Util.deleteContentsRecursive(Util.java:186)
      4. hudson.Util.deleteRecursive(Util.java:256)
      5. hudson.FilePath$9.invoke(FilePath.java:748)
      6. hudson.FilePath$9.invoke(FilePath.java:746)
      7. hudson.FilePath.act(FilePath.java:676)
      8. hudson.FilePath.act(FilePath.java:660)
      9. hudson.FilePath.deleteRecursive(FilePath.java:746)
      9 frames