hudson.plugins.git.GitException: Failed to delete workspace

Jenkins JIRA | Julien Carsique | 4 years ago
  1. 0

    I see that issue happening on long paths. A workaround was to use drive mapping in order to reduce the length but it doesn't solve the issue and we came to the limit of path shortening possibilities. Here's a stacktrace from a Matrix job: https://qa.nuxeo.org/jenkins/job/nuxeo-master-fullbuild-part2-distribution-multios/218/Slave=MULTIDB_WINDOWS {code}08:59:26 Building remotely on tweedledum in workspace C:\Jenkins\workspace\nuxeo-master-fullbuild-part2-distribution-multios\Slave\MULTIDB_WINDOWS 08:59:26 Checkout:MULTIDB_WINDOWS / C:\Jenkins\workspace\nuxeo-master-fullbuild-part2-distribution-multios\Slave\MULTIDB_WINDOWS - hudson.remoting.Channel@4a58a509:tweedledum 08:59:26 Using strategy: Default 08:59:26 Last Built Revision: Revision 3676821964588c85aa8b71e288c743c24edd00a3 (origin/master) 08:59:27 Cloning the remote Git repository 08:59:27 Cloning repository git://github.com/nuxeo/nuxeo-distribution.git 08:59:27 git --version 08:59:27 git version 1.7.6.msysgit.0 08:59:27 ERROR: Failed to clean the workspace 08:59:27 java.io.IOException: Unable to delete C:\Jenkins\workspace\nuxeo-master-fullbuild-part2-distribution-multios\Slave\MULTIDB_WINDOWS\nuxeo-distribution-jboss\target\nuxeo-cap-5.7-SNAPSHOT-jboss\server\default\deploy\jbossws.sar\jbossws-management.war\META-INF\maven\org.jboss.ws.native\jbossws-native-management - files in dir: [C:\Jenkins\workspace\nuxeo-master-fullbuild-part2-distribution-multios\Slave\MULTIDB_WINDOWS\nuxeo-distribution-jboss\target\nuxeo-cap-5.7-SNAPSHOT-jboss\server\default\deploy\jbossws.sar\jbossws-management.war\META-INF\maven\org.jboss.ws.native\jbossws-native-management\pom.properties, C:\Jenkins\workspace\nuxeo-master-fullbuild-part2-distribution-multios\Slave\MULTIDB_WINDOWS\nuxeo-distribution-jboss\target\nuxeo-cap-5.7-SNAPSHOT-jboss\server\default\deploy\jbossws.sar\jbossws-management.war\META-INF\maven\org.jboss.ws.native\jbossws-native-management\pom.xml] 08:59:27 at hudson.Util.deleteFile(Util.java:238) 08:59:27 at hudson.Util.deleteRecursive(Util.java:289) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.FilePath$11.invoke(FilePath.java:910) 08:59:27 at hudson.FilePath$11.invoke(FilePath.java:908) 08:59:27 at hudson.FilePath.act(FilePath.java:842) 08:59:27 at hudson.FilePath.act(FilePath.java:824) 08:59:27 at hudson.FilePath.deleteRecursive(FilePath.java:908) 08:59:27 at hudson.plugins.git.GitAPI.clone(GitAPI.java:239) 08:59:27 at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1040) 08:59:27 at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:982) 08:59:27 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2200) 08:59:27 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 08:59:27 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 08:59:27 at hudson.remoting.Request$2.run(Request.java:326) 08:59:27 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 08:59:27 at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 08:59:27 at java.util.concurrent.FutureTask.run(Unknown Source) 08:59:27 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) 08:59:27 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 08:59:27 at hudson.remoting.Engine$1$1.run(Engine.java:60) 08:59:27 at java.lang.Thread.run(Unknown Source) 08:59:27 ERROR: Error cloning remote repo 'origin' : Failed to delete workspace 08:59:27 hudson.plugins.git.GitException: Failed to delete workspace 08:59:27 at hudson.plugins.git.GitAPI.clone(GitAPI.java:242) 08:59:27 at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1040) 08:59:27 at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:982) 08:59:27 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2200) 08:59:27 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 08:59:27 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 08:59:27 at hudson.remoting.Request$2.run(Request.java:326) 08:59:27 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 08:59:27 at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 08:59:27 at java.util.concurrent.FutureTask.run(Unknown Source) 08:59:27 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) 08:59:27 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 08:59:27 at hudson.remoting.Engine$1$1.run(Engine.java:60) 08:59:27 at java.lang.Thread.run(Unknown Source) 08:59:27 Caused by: java.io.IOException: Unable to delete C:\Jenkins\workspace\nuxeo-master-fullbuild-part2-distribution-multios\Slave\MULTIDB_WINDOWS\nuxeo-distribution-jboss\target\nuxeo-cap-5.7-SNAPSHOT-jboss\server\default\deploy\jbossws.sar\jbossws-management.war\META-INF\maven\org.jboss.ws.native\jbossws-native-management - files in dir: [C:\Jenkins\workspace\nuxeo-master-fullbuild-part2-distribution-multios\Slave\MULTIDB_WINDOWS\nuxeo-distribution-jboss\target\nuxeo-cap-5.7-SNAPSHOT-jboss\server\default\deploy\jbossws.sar\jbossws-management.war\META-INF\maven\org.jboss.ws.native\jbossws-native-management\pom.properties, C:\Jenkins\workspace\nuxeo-master-fullbuild-part2-distribution-multios\Slave\MULTIDB_WINDOWS\nuxeo-distribution-jboss\target\nuxeo-cap-5.7-SNAPSHOT-jboss\server\default\deploy\jbossws.sar\jbossws-management.war\META-INF\maven\org.jboss.ws.native\jbossws-native-management\pom.xml] 08:59:27 at hudson.Util.deleteFile(Util.java:238) 08:59:27 at hudson.Util.deleteRecursive(Util.java:289) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.FilePath$11.invoke(FilePath.java:910) 08:59:27 at hudson.FilePath$11.invoke(FilePath.java:908) 08:59:27 at hudson.FilePath.act(FilePath.java:842) 08:59:27 at hudson.FilePath.act(FilePath.java:824) 08:59:27 at hudson.FilePath.deleteRecursive(FilePath.java:908) 08:59:27 at hudson.plugins.git.GitAPI.clone(GitAPI.java:239) 08:59:27 ... 13 more 08:59:27 Trying next repository 08:59:27 ERROR: Could not clone repository 08:59:27 FATAL: Could not clone 08:59:27 hudson.plugins.git.GitException: Could not clone 08:59:27 at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1052) 08:59:27 at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:982) 08:59:27 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2200) 08:59:27 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 08:59:27 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 08:59:27 at hudson.remoting.Request$2.run(Request.java:326) 08:59:27 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 08:59:27 at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 08:59:27 at java.util.concurrent.FutureTask.run(Unknown Source) 08:59:27 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) 08:59:27 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 08:59:27 at hudson.remoting.Engine$1$1.run(Engine.java:60) 08:59:27 at java.lang.Thread.run(Unknown Source) {code} It is still possible to manually delete the files. FYI, we encountered such a seemingly similar issue in a Python script using Python internal delTree implementation, and it has been resolved by using Windows Shell command: "rmdir /s /q path/to/file" instead. Using a matrix job is increasing the path length. We would also need to use a different workspace path when under Windows.

    Jenkins JIRA | 4 years ago | Julien Carsique
    hudson.plugins.git.GitException: Failed to delete workspace
  2. 0

    I see that issue happening on long paths. A workaround was to use drive mapping in order to reduce the length but it doesn't solve the issue and we came to the limit of path shortening possibilities. Here's a stacktrace from a Matrix job: https://qa.nuxeo.org/jenkins/job/nuxeo-master-fullbuild-part2-distribution-multios/218/Slave=MULTIDB_WINDOWS {code}08:59:26 Building remotely on tweedledum in workspace C:\Jenkins\workspace\nuxeo-master-fullbuild-part2-distribution-multios\Slave\MULTIDB_WINDOWS 08:59:26 Checkout:MULTIDB_WINDOWS / C:\Jenkins\workspace\nuxeo-master-fullbuild-part2-distribution-multios\Slave\MULTIDB_WINDOWS - hudson.remoting.Channel@4a58a509:tweedledum 08:59:26 Using strategy: Default 08:59:26 Last Built Revision: Revision 3676821964588c85aa8b71e288c743c24edd00a3 (origin/master) 08:59:27 Cloning the remote Git repository 08:59:27 Cloning repository git://github.com/nuxeo/nuxeo-distribution.git 08:59:27 git --version 08:59:27 git version 1.7.6.msysgit.0 08:59:27 ERROR: Failed to clean the workspace 08:59:27 java.io.IOException: Unable to delete C:\Jenkins\workspace\nuxeo-master-fullbuild-part2-distribution-multios\Slave\MULTIDB_WINDOWS\nuxeo-distribution-jboss\target\nuxeo-cap-5.7-SNAPSHOT-jboss\server\default\deploy\jbossws.sar\jbossws-management.war\META-INF\maven\org.jboss.ws.native\jbossws-native-management - files in dir: [C:\Jenkins\workspace\nuxeo-master-fullbuild-part2-distribution-multios\Slave\MULTIDB_WINDOWS\nuxeo-distribution-jboss\target\nuxeo-cap-5.7-SNAPSHOT-jboss\server\default\deploy\jbossws.sar\jbossws-management.war\META-INF\maven\org.jboss.ws.native\jbossws-native-management\pom.properties, C:\Jenkins\workspace\nuxeo-master-fullbuild-part2-distribution-multios\Slave\MULTIDB_WINDOWS\nuxeo-distribution-jboss\target\nuxeo-cap-5.7-SNAPSHOT-jboss\server\default\deploy\jbossws.sar\jbossws-management.war\META-INF\maven\org.jboss.ws.native\jbossws-native-management\pom.xml] 08:59:27 at hudson.Util.deleteFile(Util.java:238) 08:59:27 at hudson.Util.deleteRecursive(Util.java:289) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.FilePath$11.invoke(FilePath.java:910) 08:59:27 at hudson.FilePath$11.invoke(FilePath.java:908) 08:59:27 at hudson.FilePath.act(FilePath.java:842) 08:59:27 at hudson.FilePath.act(FilePath.java:824) 08:59:27 at hudson.FilePath.deleteRecursive(FilePath.java:908) 08:59:27 at hudson.plugins.git.GitAPI.clone(GitAPI.java:239) 08:59:27 at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1040) 08:59:27 at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:982) 08:59:27 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2200) 08:59:27 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 08:59:27 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 08:59:27 at hudson.remoting.Request$2.run(Request.java:326) 08:59:27 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 08:59:27 at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 08:59:27 at java.util.concurrent.FutureTask.run(Unknown Source) 08:59:27 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) 08:59:27 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 08:59:27 at hudson.remoting.Engine$1$1.run(Engine.java:60) 08:59:27 at java.lang.Thread.run(Unknown Source) 08:59:27 ERROR: Error cloning remote repo 'origin' : Failed to delete workspace 08:59:27 hudson.plugins.git.GitException: Failed to delete workspace 08:59:27 at hudson.plugins.git.GitAPI.clone(GitAPI.java:242) 08:59:27 at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1040) 08:59:27 at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:982) 08:59:27 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2200) 08:59:27 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 08:59:27 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 08:59:27 at hudson.remoting.Request$2.run(Request.java:326) 08:59:27 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 08:59:27 at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 08:59:27 at java.util.concurrent.FutureTask.run(Unknown Source) 08:59:27 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) 08:59:27 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 08:59:27 at hudson.remoting.Engine$1$1.run(Engine.java:60) 08:59:27 at java.lang.Thread.run(Unknown Source) 08:59:27 Caused by: java.io.IOException: Unable to delete C:\Jenkins\workspace\nuxeo-master-fullbuild-part2-distribution-multios\Slave\MULTIDB_WINDOWS\nuxeo-distribution-jboss\target\nuxeo-cap-5.7-SNAPSHOT-jboss\server\default\deploy\jbossws.sar\jbossws-management.war\META-INF\maven\org.jboss.ws.native\jbossws-native-management - files in dir: [C:\Jenkins\workspace\nuxeo-master-fullbuild-part2-distribution-multios\Slave\MULTIDB_WINDOWS\nuxeo-distribution-jboss\target\nuxeo-cap-5.7-SNAPSHOT-jboss\server\default\deploy\jbossws.sar\jbossws-management.war\META-INF\maven\org.jboss.ws.native\jbossws-native-management\pom.properties, C:\Jenkins\workspace\nuxeo-master-fullbuild-part2-distribution-multios\Slave\MULTIDB_WINDOWS\nuxeo-distribution-jboss\target\nuxeo-cap-5.7-SNAPSHOT-jboss\server\default\deploy\jbossws.sar\jbossws-management.war\META-INF\maven\org.jboss.ws.native\jbossws-native-management\pom.xml] 08:59:27 at hudson.Util.deleteFile(Util.java:238) 08:59:27 at hudson.Util.deleteRecursive(Util.java:289) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.Util.deleteContentsRecursive(Util.java:200) 08:59:27 at hudson.Util.deleteRecursive(Util.java:280) 08:59:27 at hudson.FilePath$11.invoke(FilePath.java:910) 08:59:27 at hudson.FilePath$11.invoke(FilePath.java:908) 08:59:27 at hudson.FilePath.act(FilePath.java:842) 08:59:27 at hudson.FilePath.act(FilePath.java:824) 08:59:27 at hudson.FilePath.deleteRecursive(FilePath.java:908) 08:59:27 at hudson.plugins.git.GitAPI.clone(GitAPI.java:239) 08:59:27 ... 13 more 08:59:27 Trying next repository 08:59:27 ERROR: Could not clone repository 08:59:27 FATAL: Could not clone 08:59:27 hudson.plugins.git.GitException: Could not clone 08:59:27 at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1052) 08:59:27 at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:982) 08:59:27 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2200) 08:59:27 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 08:59:27 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 08:59:27 at hudson.remoting.Request$2.run(Request.java:326) 08:59:27 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 08:59:27 at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 08:59:27 at java.util.concurrent.FutureTask.run(Unknown Source) 08:59:27 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) 08:59:27 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 08:59:27 at hudson.remoting.Engine$1$1.run(Engine.java:60) 08:59:27 at java.lang.Thread.run(Unknown Source) {code} It is still possible to manually delete the files. FYI, we encountered such a seemingly similar issue in a Python script using Python internal delTree implementation, and it has been resolved by using Windows Shell command: "rmdir /s /q path/to/file" instead. Using a matrix job is increasing the path length. We would also need to use a different workspace path when under Windows.

    Jenkins JIRA | 4 years ago | Julien Carsique
    hudson.plugins.git.GitException: Failed to delete workspace
  3. 0

    multiple problems setting up Jenkins and Git and Maven, as well as code analysis tools - start with git...

    Google Groups | 4 years ago | Rob Withers
    hudson.plugins.git.GitException: Failed to delete workspace
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    (as an aside, I love the idea of Jenkins. Thanks for your hard work!) New user so it's possible I may have missed something basic, but I've been reading/testing for 4+ hours now. I don't even seem to be able to get to the point where I can pull the source from github (it fails while cleaning the workspace). I have tried reinstalling Jenkins from Program Files (x86) to C:\Jenkins, and then I eventually specified the specific workspace below of E:\JenkinsWorkspace to test it out. All are failing, so I ruled out spaces and extra-long paths I think. Happy to provide any other information to help troubleshoot. Looking forward to getting this solved! {code:title=Build Output Log|borderStyle=solid} tarted by user anonymous Building in workspace E:\JenkinsWorkspace Checkout:JenkinsWorkspace / E:\JenkinsWorkspace - hudson.remoting.LocalChannel@1c1b26c Using strategy: Default Cloning the remote Git repository Cloning repository https://github.com/SeanKilleen/Skillustrator git --version Process leaked file descriptors. See http://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build for more information ERROR: Failed to clean the workspace java.io.IOException: Unable to delete E:\JenkinsWorkspace at hudson.Util.deleteFile(Util.java:243) at hudson.Util.deleteRecursive(Util.java:293) at hudson.FilePath$11.invoke(FilePath.java:982) at hudson.FilePath$11.invoke(FilePath.java:980) at hudson.FilePath.act(FilePath.java:851) at hudson.FilePath.act(FilePath.java:824) at hudson.FilePath.deleteRecursive(FilePath.java:980) at hudson.plugins.git.GitAPI.clone(GitAPI.java:241) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1044) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986) at hudson.FilePath.act(FilePath.java:851) at hudson.FilePath.act(FilePath.java:824) at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:986) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1142) at hudson.model.AbstractProject.checkout(AbstractProject.java:1325) 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:1516) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) ERROR: Error cloning remote repo 'origin' : Failed to delete workspace hudson.plugins.git.GitException: Failed to delete workspace at hudson.plugins.git.GitAPI.clone(GitAPI.java:244) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1044) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986) at hudson.FilePath.act(FilePath.java:851) at hudson.FilePath.act(FilePath.java:824) at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:986) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1142) at hudson.model.AbstractProject.checkout(AbstractProject.java:1325) 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:1516) 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:\JenkinsWorkspace at hudson.Util.deleteFile(Util.java:243) at hudson.Util.deleteRecursive(Util.java:293) at hudson.FilePath$11.invoke(FilePath.java:982) at hudson.FilePath$11.invoke(FilePath.java:980) at hudson.FilePath.act(FilePath.java:851) at hudson.FilePath.act(FilePath.java:824) at hudson.FilePath.deleteRecursive(FilePath.java:980) at hudson.plugins.git.GitAPI.clone(GitAPI.java:241) ... 14 more Trying next repository ERROR: Could not clone repository FATAL: Could not clone hudson.plugins.git.GitException: Could not clone at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1056) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986) at hudson.FilePath.act(FilePath.java:851) at hudson.FilePath.act(FilePath.java:824) at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:986) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1142) at hudson.model.AbstractProject.checkout(AbstractProject.java:1325) 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:1516) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) {code}

    Jenkins JIRA | 4 years ago | Sean Killeen
    hudson.plugins.git.GitException: Failed to delete workspace
  6. 0

    (as an aside, I love the idea of Jenkins. Thanks for your hard work!) New user so it's possible I may have missed something basic, but I've been reading/testing for 4+ hours now. I don't even seem to be able to get to the point where I can pull the source from github (it fails while cleaning the workspace). I have tried reinstalling Jenkins from Program Files (x86) to C:\Jenkins, and then I eventually specified the specific workspace below of E:\JenkinsWorkspace to test it out. All are failing, so I ruled out spaces and extra-long paths I think. Happy to provide any other information to help troubleshoot. Looking forward to getting this solved! {code:title=Build Output Log|borderStyle=solid} tarted by user anonymous Building in workspace E:\JenkinsWorkspace Checkout:JenkinsWorkspace / E:\JenkinsWorkspace - hudson.remoting.LocalChannel@1c1b26c Using strategy: Default Cloning the remote Git repository Cloning repository https://github.com/SeanKilleen/Skillustrator git --version Process leaked file descriptors. See http://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build for more information ERROR: Failed to clean the workspace java.io.IOException: Unable to delete E:\JenkinsWorkspace at hudson.Util.deleteFile(Util.java:243) at hudson.Util.deleteRecursive(Util.java:293) at hudson.FilePath$11.invoke(FilePath.java:982) at hudson.FilePath$11.invoke(FilePath.java:980) at hudson.FilePath.act(FilePath.java:851) at hudson.FilePath.act(FilePath.java:824) at hudson.FilePath.deleteRecursive(FilePath.java:980) at hudson.plugins.git.GitAPI.clone(GitAPI.java:241) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1044) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986) at hudson.FilePath.act(FilePath.java:851) at hudson.FilePath.act(FilePath.java:824) at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:986) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1142) at hudson.model.AbstractProject.checkout(AbstractProject.java:1325) 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:1516) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) ERROR: Error cloning remote repo 'origin' : Failed to delete workspace hudson.plugins.git.GitException: Failed to delete workspace at hudson.plugins.git.GitAPI.clone(GitAPI.java:244) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1044) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986) at hudson.FilePath.act(FilePath.java:851) at hudson.FilePath.act(FilePath.java:824) at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:986) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1142) at hudson.model.AbstractProject.checkout(AbstractProject.java:1325) 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:1516) 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:\JenkinsWorkspace at hudson.Util.deleteFile(Util.java:243) at hudson.Util.deleteRecursive(Util.java:293) at hudson.FilePath$11.invoke(FilePath.java:982) at hudson.FilePath$11.invoke(FilePath.java:980) at hudson.FilePath.act(FilePath.java:851) at hudson.FilePath.act(FilePath.java:824) at hudson.FilePath.deleteRecursive(FilePath.java:980) at hudson.plugins.git.GitAPI.clone(GitAPI.java:241) ... 14 more Trying next repository ERROR: Could not clone repository FATAL: Could not clone hudson.plugins.git.GitException: Could not clone at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1056) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986) at hudson.FilePath.act(FilePath.java:851) at hudson.FilePath.act(FilePath.java:824) at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:986) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1142) at hudson.model.AbstractProject.checkout(AbstractProject.java:1325) 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:1516) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) {code}

    Jenkins JIRA | 4 years ago | Sean Killeen
    hudson.plugins.git.GitException: Failed to delete workspace

    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 C:\Jenkins\workspace\nuxeo-master-fullbuild-part2-distribution-multios\Slave\MULTIDB_WINDOWS\nuxeo-distribution-jboss\target\nuxeo-cap-5.7-SNAPSHOT-jboss\server\default\deploy\jbossws.sar\jbossws-management.war\META-INF\maven\org.jboss.ws.native\jbossws-native-management - files in dir: [C:\Jenkins\workspace\nuxeo-master-fullbuild-part2-distribution-multios\Slave\MULTIDB_WINDOWS\nuxeo-distribution-jboss\target\nuxeo-cap-5.7-SNAPSHOT-jboss\server\default\deploy\jbossws.sar\jbossws-management.war\META-INF\maven\org.jboss.ws.native\jbossws-native-management\pom.properties, C:\Jenkins\workspace\nuxeo-master-fullbuild-part2-distribution-multios\Slave\MULTIDB_WINDOWS\nuxeo-distribution-jboss\target\nuxeo-cap-5.7-SNAPSHOT-jboss\server\default\deploy\jbossws.sar\jbossws-management.war\META-INF\maven\org.jboss.ws.native\jbossws-native-management\pom.xml]

      at hudson.Util.deleteFile()
    2. Hudson
      FilePath.deleteRecursive
      1. hudson.Util.deleteFile(Util.java:238)
      2. hudson.Util.deleteRecursive(Util.java:289)
      3. hudson.Util.deleteContentsRecursive(Util.java:200)
      4. hudson.Util.deleteRecursive(Util.java:280)
      5. hudson.Util.deleteContentsRecursive(Util.java:200)
      6. hudson.Util.deleteRecursive(Util.java:280)
      7. hudson.Util.deleteContentsRecursive(Util.java:200)
      8. hudson.Util.deleteRecursive(Util.java:280)
      9. hudson.Util.deleteContentsRecursive(Util.java:200)
      10. hudson.Util.deleteRecursive(Util.java:280)
      11. hudson.Util.deleteContentsRecursive(Util.java:200)
      12. hudson.Util.deleteRecursive(Util.java:280)
      13. hudson.Util.deleteContentsRecursive(Util.java:200)
      14. hudson.Util.deleteRecursive(Util.java:280)
      15. hudson.Util.deleteContentsRecursive(Util.java:200)
      16. hudson.Util.deleteRecursive(Util.java:280)
      17. hudson.Util.deleteContentsRecursive(Util.java:200)
      18. hudson.Util.deleteRecursive(Util.java:280)
      19. hudson.Util.deleteContentsRecursive(Util.java:200)
      20. hudson.Util.deleteRecursive(Util.java:280)
      21. hudson.Util.deleteContentsRecursive(Util.java:200)
      22. hudson.Util.deleteRecursive(Util.java:280)
      23. hudson.Util.deleteContentsRecursive(Util.java:200)
      24. hudson.Util.deleteRecursive(Util.java:280)
      25. hudson.Util.deleteContentsRecursive(Util.java:200)
      26. hudson.Util.deleteRecursive(Util.java:280)
      27. hudson.FilePath$11.invoke(FilePath.java:910)
      28. hudson.FilePath$11.invoke(FilePath.java:908)
      29. hudson.FilePath.act(FilePath.java:842)
      30. hudson.FilePath.act(FilePath.java:824)
      31. hudson.FilePath.deleteRecursive(FilePath.java:908)
      31 frames
    3. Hudson GIT plugin
      GitSCM$2.invoke
      1. hudson.plugins.git.GitAPI.clone(GitAPI.java:239)
      2. hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1040)
      3. hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:982)
      3 frames
    4. Hudson
      FilePath$FileCallableWrapper.call
      1. hudson.FilePath$FileCallableWrapper.call(FilePath.java:2200)
      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:326)
      4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      4 frames
    6. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      2. java.util.concurrent.FutureTask.run(Unknown Source)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      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(Unknown Source)
      1 frame