hudson.util.IOException2: Failed to clean up temp dirs


Solutions on the web7

Solution icon of googlegroups
via Google Groups by Slide, 1 month ago
Failed to clean up temp dirs

Solution icon of jenkins
via Jenkins JIRA by Patrik Johansson, 1 year ago
Failed to clean up temp dirs

Solution icon of jenkins
via Jenkins JIRA by ikedam, 1 year ago
Failed to clean up temp dirs

Solution icon of jenkins
via Jenkins JIRA by Patrik Johansson, 1 year ago
Failed to clean up temp dirs

Solution icon of jenkins
via Jenkins JIRA by Simon Westcott, 1 year ago
Failed to clean up temp dirs

Solution icon of jenkins
via Jenkins JIRA by ikedam, 1 year ago
Failed to clean up temp dirs

Solution icon of jenkins
via Jenkins JIRA by Simon Westcott, 1 year ago
Failed to clean up temp dirs

Stack trace

hudson.util.IOException2: Failed to clean up temp dirs
	at org.jvnet.hudson.test.TemporaryDirectoryAllocator.dispose(TemporaryDirectoryAllocator.java:87)
	at org.jvnet.hudson.test.TestEnvironment.dispose(TestEnvironment.java:53)
	at org.jvnet.hudson.test.HudsonTestCase.tearDown(HudsonTestCase.java:352)
	at junit.framework.TestCase.runBare(TestCase.java:140)
	at org.jvnet.hudson.test.HudsonTestCase.runBare(HudsonTestCase.java:264)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:243)
	at junit.framework.TestSuite.run(TestSuite.java:238)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:119)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:101)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)
	at $Proxy0.invoke(Unknown Source)
	at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)
	at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)
Caused by: java.io.IOException: Unable to delete C:\Users\xxx\AppData\Local\Temp\hudson2103820071219030666test\slave-slave0.log
	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.FilePath$9.invoke(FilePath.java:826)
	at hudson.FilePath$9.invoke(FilePath.java:824)
	at hudson.FilePath.act(FilePath.java:758)
	at hudson.FilePath.act(FilePath.java:740)
	at hudson.FilePath.deleteRecursive(FilePath.java:824)
	at org.jvnet.hudson.test.TemporaryDirectoryAllocator.dispose(TemporaryDirectoryAllocator.java:82)
	... 23 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago