java.io.IOException: Unable to delete /opt/srv/jenkins-workdir/jobs/PROJECT/workspace/./project/src/prod/doc/.svn/prop-base - files in dir: [/opt/srv/jenkins-workdir/jobs/PROJECT/workspace/./project/src/prod/doc/.svn/prop-base/filename.docx.svn-base, /opt/srv/jenkins-workdir/jobs/PROJECT/workspace/./project/src/prod/doc/.svn/prop-base/filename.docx.svn-base]

Jenkins JIRA | Thomas S. | 5 years ago
  1. 0

    Hello there, today we've got two errors, were jenkins was not able to check svn out. {code} Started by an SCM change Building on master Checking out a fresh workspace because there's no workspace at /opt/srv/jenkins-workdir/jobs/PROJECT/workspace Cleaning local Directory . java.io.IOException: Unable to delete /opt/srv/jenkins-workdir/jobs/PROJECT/workspace/./project/src/prod/doc/.svn/prop-base - files in dir: [/opt/srv/jenkins-workdir/jobs/PROJECT/workspace/./project/src/prod/doc/.svn/prop-base/filename.docx.svn-base, /opt/srv/jenkins-workdir/jobs/PROJECT/workspace/./project/src/prod/doc/.svn/prop-base/filename.docx.svn-base] at hudson.Util.deleteFile(Util.java:265) at hudson.Util.deleteRecursive(Util.java:316) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.scm.subversion.CheckoutUpdater$1.perform(CheckoutUpdater.java:71) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:136) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:144) at hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:121) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:136) at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:788) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:769) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:753) at hudson.FilePath.act(FilePath.java:758) at hudson.FilePath.act(FilePath.java:740) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:743) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:685) at hudson.model.AbstractProject.checkout(AbstractProject.java:1193) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:565) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:453) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:175) Retrying after 10 seconds Checking out a fresh workspace because there's no workspace at /opt/srv/jenkins-workdir/jobs/PROJECT/workspace Cleaning local Directory . java.io.IOException: Unable to delete /opt/srv/jenkins-workdir/jobs/PROJECT/workspace/./project/src/prod/doc/.svn/prop-base - files in dir: [/opt/srv/jenkins-workdir/jobs/PROJECT/workspace/./project/src/prod/doc/.svn/prop-base/filename.docx.svn-base, /opt/srv/jenkins-workdir/jobs/PROJECT/workspace/./project/src/prod/doc/.svn/prop-base/filename.docx.svn-base] at hudson.Util.deleteFile(Util.java:265) at hudson.Util.deleteRecursive(Util.java:316) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.scm.subversion.CheckoutUpdater$1.perform(CheckoutUpdater.java:71) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:136) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:144) at hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:121) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:136) at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:788) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:769) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:753) at hudson.FilePath.act(FilePath.java:758) at hudson.FilePath.act(FilePath.java:740) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:743) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:685) at hudson.model.AbstractProject.checkout(AbstractProject.java:1193) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:565) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:453) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:175) [TASKS] Skipping publisher since build result is FAILURE Recording test results An attempt to send an e-mail to empty list of recipients, ignored. Finished: FAILURE {code} The problem is, that no user was informed about this error. Everybody thought that the build was "green". This is caused, because jenkins cannot determine the committers of the build. Can you integrate a notification, when svn-checkout failed ?

    Jenkins JIRA | 5 years ago | Thomas S.
    java.io.IOException: Unable to delete /opt/srv/jenkins-workdir/jobs/PROJECT/workspace/./project/src/prod/doc/.svn/prop-base - files in dir: [/opt/srv/jenkins-workdir/jobs/PROJECT/workspace/./project/src/prod/doc/.svn/prop-base/filename.docx.svn-base, /opt/srv/jenkins-workdir/jobs/PROJECT/workspace/./project/src/prod/doc/.svn/prop-base/filename.docx.svn-base]
  2. 0

    Hello there, today we've got two errors, were jenkins was not able to check svn out. {code} Started by an SCM change Building on master Checking out a fresh workspace because there's no workspace at /opt/srv/jenkins-workdir/jobs/PROJECT/workspace Cleaning local Directory . java.io.IOException: Unable to delete /opt/srv/jenkins-workdir/jobs/PROJECT/workspace/./project/src/prod/doc/.svn/prop-base - files in dir: [/opt/srv/jenkins-workdir/jobs/PROJECT/workspace/./project/src/prod/doc/.svn/prop-base/filename.docx.svn-base, /opt/srv/jenkins-workdir/jobs/PROJECT/workspace/./project/src/prod/doc/.svn/prop-base/filename.docx.svn-base] at hudson.Util.deleteFile(Util.java:265) at hudson.Util.deleteRecursive(Util.java:316) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.scm.subversion.CheckoutUpdater$1.perform(CheckoutUpdater.java:71) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:136) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:144) at hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:121) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:136) at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:788) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:769) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:753) at hudson.FilePath.act(FilePath.java:758) at hudson.FilePath.act(FilePath.java:740) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:743) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:685) at hudson.model.AbstractProject.checkout(AbstractProject.java:1193) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:565) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:453) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:175) Retrying after 10 seconds Checking out a fresh workspace because there's no workspace at /opt/srv/jenkins-workdir/jobs/PROJECT/workspace Cleaning local Directory . java.io.IOException: Unable to delete /opt/srv/jenkins-workdir/jobs/PROJECT/workspace/./project/src/prod/doc/.svn/prop-base - files in dir: [/opt/srv/jenkins-workdir/jobs/PROJECT/workspace/./project/src/prod/doc/.svn/prop-base/filename.docx.svn-base, /opt/srv/jenkins-workdir/jobs/PROJECT/workspace/./project/src/prod/doc/.svn/prop-base/filename.docx.svn-base] at hudson.Util.deleteFile(Util.java:265) at hudson.Util.deleteRecursive(Util.java:316) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.scm.subversion.CheckoutUpdater$1.perform(CheckoutUpdater.java:71) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:136) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:144) at hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:121) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:136) at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:788) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:769) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:753) at hudson.FilePath.act(FilePath.java:758) at hudson.FilePath.act(FilePath.java:740) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:743) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:685) at hudson.model.AbstractProject.checkout(AbstractProject.java:1193) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:565) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:453) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:175) [TASKS] Skipping publisher since build result is FAILURE Recording test results An attempt to send an e-mail to empty list of recipients, ignored. Finished: FAILURE {code} The problem is, that no user was informed about this error. Everybody thought that the build was "green". This is caused, because jenkins cannot determine the committers of the build. Can you integrate a notification, when svn-checkout failed ?

    Jenkins JIRA | 5 years ago | Thomas S.
    java.io.IOException: Unable to delete /opt/srv/jenkins-workdir/jobs/PROJECT/workspace/./project/src/prod/doc/.svn/prop-base - files in dir: [/opt/srv/jenkins-workdir/jobs/PROJECT/workspace/./project/src/prod/doc/.svn/prop-base/filename.docx.svn-base, /opt/srv/jenkins-workdir/jobs/PROJECT/workspace/./project/src/prod/doc/.svn/prop-base/filename.docx.svn-base]
  3. 0

    Jenkins issues - [JIRA] (JENKINS-12610) java.io.IOException: Unable to delete - Deleting Project

    nabble.com | 7 months ago
    java.io.IOException: Unable to delete /home/jenkins/jobs/Fossology_Unit_Tests/workspace/./src/ununpack/agent_tests/Unit/test-result/threezip.zip.dir/Desktop.zip.dir - files in dir:
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    In order to reproduce do the following steps: * Create a new buildplan (free-style project) * Source code managment: select a subversion path (doesn't matter which, just something your can check out) * Set the Check-out strategy to 'Always check out a fresh copy' * Add a 'execute shell' build script and enter the following commands: {noformat} mkdir -p a/b/c/d/e mkdir -p a/b/c/d/f touch a/b/c/d/e/1 touch a/b/c/d/e/2 touch a/b/c/d/f/1 touch a/b/c/d/f/2 ln -s ../../../../../a/b/c/d/f/1 a/b/c/d/e/4 ln -s ../../../../../a/b/c/d/f/2 a/b/c/d/e/5 ln -s ../../../../../a/b/c/d/e/1 a/b/c/d/f/4 ln -s ../../../../../a/b/c/d/e/2 a/b/c/d/f/5 chmod -R 555 a chmod 444 a/b/c/d/e/* chmod 444 a/b/c/d/f/* {noformat} Now if you launch this job, this results in the following pattern: success, fail, success, fail, ... the reason for this pattern does not immediately make sense Where a fail contains the following log: {noformat} Started by user anonymous Building on master Cleaning workspace /home/hudson/.hudson/jobs/edb-bla/workspace java.io.IOException: Unable to delete /home/hudson/.hudson/jobs/edb-bla/workspace/a/b/c/d/e - files in dir: [/home/hudson/.hudson/jobs/edb-bla/workspace/a/b/c/d/e/5] 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.scm.subversion.CheckoutUpdater$1.perform(CheckoutUpdater.java:67) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:135) at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:726) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:707) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:691) at hudson.FilePath.act(FilePath.java:758) at hudson.FilePath.act(FilePath.java:740) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:684) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:633) at hudson.model.AbstractProject.checkout(AbstractProject.java:1182) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:537) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:425) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:146) Finished: FAILURE {noformat} This happens both on builds running locally as builds executed on a buildslave. Since this sometimes succeeds, this is not linked with a unix permission issue. Also, if the symlinks do not point to valid destinations then this doesn't change the story either. Now after a successful run the path looks like (excluding the svn checkout): {noformat} [hudson@mellon workspace]$ ls -Ral a a: total 24 dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 . drwxrwxr-x 4 hudson hudson 4096 Jun 27 14:27 .. dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 b a/b: total 24 dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 . dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 .. dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 c a/b/c: total 24 dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 . dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 .. dr-xr-xr-x 4 hudson hudson 4096 Jun 27 14:27 d a/b/c/d: total 32 dr-xr-xr-x 4 hudson hudson 4096 Jun 27 14:27 . dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 .. dr-xr-xr-x 2 hudson hudson 4096 Jun 27 14:27 e dr-xr-xr-x 2 hudson hudson 4096 Jun 27 14:27 f a/b/c/d/e: total 32 dr-xr-xr-x 2 hudson hudson 4096 Jun 27 14:27 . dr-xr-xr-x 4 hudson hudson 4096 Jun 27 14:27 .. -r--r--r-- 1 hudson hudson 0 Jun 27 14:27 1 -r--r--r-- 1 hudson hudson 0 Jun 27 14:27 2 lrwxrwxrwx 1 hudson hudson 26 Jun 27 14:27 4 -> ../../../../../a/b/c/d/f/1 lrwxrwxrwx 1 hudson hudson 26 Jun 27 14:27 5 -> ../../../../../a/b/c/d/f/2 a/b/c/d/f: total 32 dr-xr-xr-x 2 hudson hudson 4096 Jun 27 14:27 . dr-xr-xr-x 4 hudson hudson 4096 Jun 27 14:27 .. -r--r--r-- 1 hudson hudson 0 Jun 27 14:27 1 -r--r--r-- 1 hudson hudson 0 Jun 27 14:27 2 lrwxrwxrwx 1 hudson hudson 26 Jun 27 14:27 4 -> ../../../../../a/b/c/d/e/1 lrwxrwxrwx 1 hudson hudson 26 Jun 27 14:27 5 -> ../../../../../a/b/c/d/e/2 {noformat} After the failed build, it looks like this on the os: {noformat} [hudson@mellon workspace]$ ls -Ral a a: total 24 dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 . drwxrwxr-x 4 hudson hudson 4096 Jun 27 14:27 .. dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 b a/b: total 24 dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 . dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 .. dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 c a/b/c: total 24 dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 . dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 .. drwxr-xr-x 3 hudson hudson 4096 Jun 27 14:29 d a/b/c/d: total 24 drwxr-xr-x 3 hudson hudson 4096 Jun 27 14:29 . dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 .. drwxr-xr-x 2 hudson hudson 4096 Jun 27 14:29 e a/b/c/d/e: total 20 drwxr-xr-x 2 hudson hudson 4096 Jun 27 14:29 . drwxr-xr-x 3 hudson hudson 4096 Jun 27 14:29 .. lrwxrwxrwx 1 hudson hudson 26 Jun 27 14:27 5 -> ../../../../../a/b/c/d/f/2 {noformat} So it managed to clean 'something' and this something is enough to make it succeed the next time. (Note, while experimenting, I've also been able to create success, fail, fail, success, fail, fail, ... patterns, I've also seen this happen when the symlinks are not valid something (e.g. omit the ../../../../'s) but since on one of my projects it failed with a symlink I introduced this in my testcase).

    Jenkins JIRA | 5 years ago | Elie De Brauwer
    java.io.IOException: Unable to delete /home/hudson/.hudson/jobs/edb-bla/workspace/a/b/c/d/e - files in dir: [/home/hudson/.hudson/jobs/edb-bla/workspace/a/b/c/d/e/5]
  6. 0

    In order to reproduce do the following steps: * Create a new buildplan (free-style project) * Source code managment: select a subversion path (doesn't matter which, just something your can check out) * Set the Check-out strategy to 'Always check out a fresh copy' * Add a 'execute shell' build script and enter the following commands: {noformat} mkdir -p a/b/c/d/e mkdir -p a/b/c/d/f touch a/b/c/d/e/1 touch a/b/c/d/e/2 touch a/b/c/d/f/1 touch a/b/c/d/f/2 ln -s ../../../../../a/b/c/d/f/1 a/b/c/d/e/4 ln -s ../../../../../a/b/c/d/f/2 a/b/c/d/e/5 ln -s ../../../../../a/b/c/d/e/1 a/b/c/d/f/4 ln -s ../../../../../a/b/c/d/e/2 a/b/c/d/f/5 chmod -R 555 a chmod 444 a/b/c/d/e/* chmod 444 a/b/c/d/f/* {noformat} Now if you launch this job, this results in the following pattern: success, fail, success, fail, ... the reason for this pattern does not immediately make sense Where a fail contains the following log: {noformat} Started by user anonymous Building on master Cleaning workspace /home/hudson/.hudson/jobs/edb-bla/workspace java.io.IOException: Unable to delete /home/hudson/.hudson/jobs/edb-bla/workspace/a/b/c/d/e - files in dir: [/home/hudson/.hudson/jobs/edb-bla/workspace/a/b/c/d/e/5] 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.scm.subversion.CheckoutUpdater$1.perform(CheckoutUpdater.java:67) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:135) at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:726) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:707) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:691) at hudson.FilePath.act(FilePath.java:758) at hudson.FilePath.act(FilePath.java:740) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:684) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:633) at hudson.model.AbstractProject.checkout(AbstractProject.java:1182) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:537) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:425) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:146) Finished: FAILURE {noformat} This happens both on builds running locally as builds executed on a buildslave. Since this sometimes succeeds, this is not linked with a unix permission issue. Also, if the symlinks do not point to valid destinations then this doesn't change the story either. Now after a successful run the path looks like (excluding the svn checkout): {noformat} [hudson@mellon workspace]$ ls -Ral a a: total 24 dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 . drwxrwxr-x 4 hudson hudson 4096 Jun 27 14:27 .. dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 b a/b: total 24 dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 . dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 .. dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 c a/b/c: total 24 dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 . dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 .. dr-xr-xr-x 4 hudson hudson 4096 Jun 27 14:27 d a/b/c/d: total 32 dr-xr-xr-x 4 hudson hudson 4096 Jun 27 14:27 . dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 .. dr-xr-xr-x 2 hudson hudson 4096 Jun 27 14:27 e dr-xr-xr-x 2 hudson hudson 4096 Jun 27 14:27 f a/b/c/d/e: total 32 dr-xr-xr-x 2 hudson hudson 4096 Jun 27 14:27 . dr-xr-xr-x 4 hudson hudson 4096 Jun 27 14:27 .. -r--r--r-- 1 hudson hudson 0 Jun 27 14:27 1 -r--r--r-- 1 hudson hudson 0 Jun 27 14:27 2 lrwxrwxrwx 1 hudson hudson 26 Jun 27 14:27 4 -> ../../../../../a/b/c/d/f/1 lrwxrwxrwx 1 hudson hudson 26 Jun 27 14:27 5 -> ../../../../../a/b/c/d/f/2 a/b/c/d/f: total 32 dr-xr-xr-x 2 hudson hudson 4096 Jun 27 14:27 . dr-xr-xr-x 4 hudson hudson 4096 Jun 27 14:27 .. -r--r--r-- 1 hudson hudson 0 Jun 27 14:27 1 -r--r--r-- 1 hudson hudson 0 Jun 27 14:27 2 lrwxrwxrwx 1 hudson hudson 26 Jun 27 14:27 4 -> ../../../../../a/b/c/d/e/1 lrwxrwxrwx 1 hudson hudson 26 Jun 27 14:27 5 -> ../../../../../a/b/c/d/e/2 {noformat} After the failed build, it looks like this on the os: {noformat} [hudson@mellon workspace]$ ls -Ral a a: total 24 dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 . drwxrwxr-x 4 hudson hudson 4096 Jun 27 14:27 .. dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 b a/b: total 24 dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 . dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 .. dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 c a/b/c: total 24 dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 . dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 .. drwxr-xr-x 3 hudson hudson 4096 Jun 27 14:29 d a/b/c/d: total 24 drwxr-xr-x 3 hudson hudson 4096 Jun 27 14:29 . dr-xr-xr-x 3 hudson hudson 4096 Jun 27 14:27 .. drwxr-xr-x 2 hudson hudson 4096 Jun 27 14:29 e a/b/c/d/e: total 20 drwxr-xr-x 2 hudson hudson 4096 Jun 27 14:29 . drwxr-xr-x 3 hudson hudson 4096 Jun 27 14:29 .. lrwxrwxrwx 1 hudson hudson 26 Jun 27 14:27 5 -> ../../../../../a/b/c/d/f/2 {noformat} So it managed to clean 'something' and this something is enough to make it succeed the next time. (Note, while experimenting, I've also been able to create success, fail, fail, success, fail, fail, ... patterns, I've also seen this happen when the symlinks are not valid something (e.g. omit the ../../../../'s) but since on one of my projects it failed with a symlink I introduced this in my testcase).

    Jenkins JIRA | 5 years ago | Elie De Brauwer
    java.io.IOException: Unable to delete /home/hudson/.hudson/jobs/edb-bla/workspace/a/b/c/d/e - files in dir: [/home/hudson/.hudson/jobs/edb-bla/workspace/a/b/c/d/e/5]

    1 unregistered visitors
    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 /opt/srv/jenkins-workdir/jobs/PROJECT/workspace/./project/src/prod/doc/.svn/prop-base - files in dir: [/opt/srv/jenkins-workdir/jobs/PROJECT/workspace/./project/src/prod/doc/.svn/prop-base/filename.docx.svn-base, /opt/srv/jenkins-workdir/jobs/PROJECT/workspace/./project/src/prod/doc/.svn/prop-base/filename.docx.svn-base]

      at hudson.Util.deleteFile()
    2. Hudson
      Util.deleteContentsRecursive
      1. hudson.Util.deleteFile(Util.java:265)
      2. hudson.Util.deleteRecursive(Util.java:316)
      3. hudson.Util.deleteContentsRecursive(Util.java:227)
      4. hudson.Util.deleteRecursive(Util.java:307)
      5. hudson.Util.deleteContentsRecursive(Util.java:227)
      6. hudson.Util.deleteRecursive(Util.java:307)
      7. hudson.Util.deleteContentsRecursive(Util.java:227)
      8. hudson.Util.deleteRecursive(Util.java:307)
      9. hudson.Util.deleteContentsRecursive(Util.java:227)
      10. hudson.Util.deleteRecursive(Util.java:307)
      11. hudson.Util.deleteContentsRecursive(Util.java:227)
      12. hudson.Util.deleteRecursive(Util.java:307)
      13. hudson.Util.deleteContentsRecursive(Util.java:227)
      13 frames
    3. Hudson Subversion Plug-in
      WorkspaceUpdater$UpdateTask.delegateTo
      1. hudson.scm.subversion.CheckoutUpdater$1.perform(CheckoutUpdater.java:71)
      2. hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:136)
      3. hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:144)
      4. hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:121)
      5. hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:136)
      5 frames
    4. Hudson
      Executor.run
      1. hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:788)
      2. hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:769)
      3. hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:753)
      4. hudson.FilePath.act(FilePath.java:758)
      5. hudson.FilePath.act(FilePath.java:740)
      6. hudson.scm.SubversionSCM.checkout(SubversionSCM.java:743)
      7. hudson.scm.SubversionSCM.checkout(SubversionSCM.java:685)
      8. hudson.model.AbstractProject.checkout(AbstractProject.java:1193)
      9. hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:565)
      10. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:453)
      11. hudson.model.Run.run(Run.java:1376)
      12. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      13. hudson.model.ResourceController.execute(ResourceController.java:88)
      14. hudson.model.Executor.run(Executor.java:175)
      14 frames