java.io.IOException: Unable to delete /ttvm3

Jenkins JIRA | tasat bar | 5 years ago
  1. 0

    I want the Jenkins master to build a small project on a slave. Slave and Master run Suse Linux. The same user (hans) which runs Jenkins is available on both machines and has rw permissions on the slave's remote working directory (/var/jenkins). The slave agent is launched on the slave ('ttvm3'). Building the project locally works. When I configure the project to be build on the slave, it fails. The console output on the master is: {quote} Started by user anonymous Building on master in workspace /home/hans/.jenkins/jobs/testproject/workspace Checkout:workspace / /home/hans/.jenkins/jobs/testproject/workspace - hudson.remoting.LocalChannel@11b1e39 Using strategy: Default Last Built Revision: Revision 97957e558fed7d0b116950e09dec1c248d1d0b54 (origin/HEAD, origin/master) Checkout:workspace / /home/hans/.jenkins/jobs/testproject/workspace - hudson.remoting.LocalChannel@11b1e39 Fetching changes from 1 remote Git repository Fetching upstream changes from <<blablabla>> Commencing build of Revision 69e242182e55e57b56c836a9c3a34f0232e5d56c (origin/master) Checking out Revision 69e242182e55e57b56c836a9c3a34f0232e5d56c (origin/master) Triggering ttvm3 ttvm3 completed with result FAILURE Finished: FAILURE {quote} The output on the slave for this build is: {quote} Started by upstream project "testproject" build number 29 Building remotely on ttvm3 in workspace /ttvm3 java.io.IOException: Failed to mkdirs: /ttvm3 at hudson.FilePath.mkdirs(FilePath.java:847) at hudson.model.AbstractProject.checkout(AbstractProject.java:1193) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:576) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:465) at hudson.model.Run.run(Run.java:1409) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Finished: FAILURE {quote} It seems as if Jenkins wants to create a directory called "ttvm3" (which is the name of the slave) in the root directory of the slave. When I (just for the fun of it) create the directory /ttvm3 on the slave and build the project again, the output for this build on the slave is: {quote} Started by upstream project "testproject" build number 30 Building remotely on ttvm3 in workspace /ttvm3 Checkout:ttvm3 / /ttvm3 - hudson.remoting.Channel@c4931d:ttvm3 Using strategy: Default Checkout:ttvm3 / /ttvm3 - hudson.remoting.LocalChannel@146c0f Cloning the remote Git repository Cloning repository origin ERROR: Failed to clean the workspace java.io.IOException: Unable to delete /ttvm3 at hudson.Util.deleteFile(Util.java:237) at hudson.Util.deleteRecursive(Util.java:287) at hudson.FilePath$9.invoke(FilePath.java:856) at hudson.FilePath$9.invoke(FilePath.java:854) at hudson.FilePath.act(FilePath.java:788) at hudson.FilePath.act(FilePath.java:770) at hudson.FilePath.deleteRecursive(FilePath.java:854) at hudson.plugins.git.GitAPI.clone(GitAPI.java:205) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1027) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:968) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2099) 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 java.lang.Thread.run(Thread.java:619) ERROR: Error cloning remote repo 'origin' : Failed to delete workspace ERROR: Cause: Unable to delete /ttvm3 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:1042) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:968) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2099) 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 java.lang.Thread.run(Thread.java:619) {quote}

    Jenkins JIRA | 5 years ago | tasat bar
    java.io.IOException: Unable to delete /ttvm3
  2. 0

    I want the Jenkins master to build a small project on a slave. Slave and Master run Suse Linux. The same user (hans) which runs Jenkins is available on both machines and has rw permissions on the slave's remote working directory (/var/jenkins). The slave agent is launched on the slave ('ttvm3'). Building the project locally works. When I configure the project to be build on the slave, it fails. The console output on the master is: {quote} Started by user anonymous Building on master in workspace /home/hans/.jenkins/jobs/testproject/workspace Checkout:workspace / /home/hans/.jenkins/jobs/testproject/workspace - hudson.remoting.LocalChannel@11b1e39 Using strategy: Default Last Built Revision: Revision 97957e558fed7d0b116950e09dec1c248d1d0b54 (origin/HEAD, origin/master) Checkout:workspace / /home/hans/.jenkins/jobs/testproject/workspace - hudson.remoting.LocalChannel@11b1e39 Fetching changes from 1 remote Git repository Fetching upstream changes from <<blablabla>> Commencing build of Revision 69e242182e55e57b56c836a9c3a34f0232e5d56c (origin/master) Checking out Revision 69e242182e55e57b56c836a9c3a34f0232e5d56c (origin/master) Triggering ttvm3 ttvm3 completed with result FAILURE Finished: FAILURE {quote} The output on the slave for this build is: {quote} Started by upstream project "testproject" build number 29 Building remotely on ttvm3 in workspace /ttvm3 java.io.IOException: Failed to mkdirs: /ttvm3 at hudson.FilePath.mkdirs(FilePath.java:847) at hudson.model.AbstractProject.checkout(AbstractProject.java:1193) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:576) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:465) at hudson.model.Run.run(Run.java:1409) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Finished: FAILURE {quote} It seems as if Jenkins wants to create a directory called "ttvm3" (which is the name of the slave) in the root directory of the slave. When I (just for the fun of it) create the directory /ttvm3 on the slave and build the project again, the output for this build on the slave is: {quote} Started by upstream project "testproject" build number 30 Building remotely on ttvm3 in workspace /ttvm3 Checkout:ttvm3 / /ttvm3 - hudson.remoting.Channel@c4931d:ttvm3 Using strategy: Default Checkout:ttvm3 / /ttvm3 - hudson.remoting.LocalChannel@146c0f Cloning the remote Git repository Cloning repository origin ERROR: Failed to clean the workspace java.io.IOException: Unable to delete /ttvm3 at hudson.Util.deleteFile(Util.java:237) at hudson.Util.deleteRecursive(Util.java:287) at hudson.FilePath$9.invoke(FilePath.java:856) at hudson.FilePath$9.invoke(FilePath.java:854) at hudson.FilePath.act(FilePath.java:788) at hudson.FilePath.act(FilePath.java:770) at hudson.FilePath.deleteRecursive(FilePath.java:854) at hudson.plugins.git.GitAPI.clone(GitAPI.java:205) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1027) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:968) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2099) 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 java.lang.Thread.run(Thread.java:619) ERROR: Error cloning remote repo 'origin' : Failed to delete workspace ERROR: Cause: Unable to delete /ttvm3 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:1042) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:968) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2099) 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 java.lang.Thread.run(Thread.java:619) {quote}

    Jenkins JIRA | 5 years ago | tasat bar
    java.io.IOException: Unable to delete /ttvm3
  3. 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
    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]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
    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]
  6. 0

    Build failed in Hudson: Grid Functionals - Linux - Firefox #104

    Google Groups | 7 years ago | hudson
    java.io.IOException: Unable to delete http://xserve.openqa.org:8080/job/Grid%20Functionals%20-%20Linux%20-%20Firefox/ws/trunk/.svn/format

    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 /ttvm3

      at hudson.Util.deleteFile()
    2. Hudson
      FilePath.deleteRecursive
      1. hudson.Util.deleteFile(Util.java:237)
      2. hudson.Util.deleteRecursive(Util.java:287)
      3. hudson.FilePath$9.invoke(FilePath.java:856)
      4. hudson.FilePath$9.invoke(FilePath.java:854)
      5. hudson.FilePath.act(FilePath.java:788)
      6. hudson.FilePath.act(FilePath.java:770)
      7. hudson.FilePath.deleteRecursive(FilePath.java:854)
      7 frames
    3. Hudson GIT plugin
      GitSCM$2.invoke
      1. hudson.plugins.git.GitAPI.clone(GitAPI.java:205)
      2. hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1027)
      3. hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:968)
      3 frames
    4. Hudson
      FilePath$FileCallableWrapper.call
      1. hudson.FilePath$FileCallableWrapper.call(FilePath.java:2099)
      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
      Thread.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)
      5. java.lang.Thread.run(Thread.java:619)
      5 frames