java.io.IOException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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).
    via by Elie De Brauwer,
  • 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).
    via by Elie De Brauwer,
  • 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 ?
    via by Thomas S.,
  • 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 ?
    via by Thomas S.,
  • This seems to happen only on Windows XP so far (we have windows 2003, 2008, redhat, suse10 slave boxes). The console log shows SVN checkout was unsuccessful and any subsequent retries result in error. I went into the box to investigate and found out it's the slave JVM process is the one that holding the lock on the checkout folder. That also prevents me from deleting the folder by hand. (see the screen shot attachment for proof, I used "unlocker" to find out which process holding the file lock) It does seem subversion checkout is tripping over itself by holding a lock on a file itself is trying to delete. AU system-tests\src\test\resources\terracotta-license.key A system-tests\src\test\resources\nonstop-servermap-cache-test.xml AU system-tests\src\test\resources\concurrency-value-test.xml AU system-tests\src\test\resources\explicit-locking-test.xml A system-tests\src\test\resources\nonstop-explicit-lock-test.xml ERROR: Failed to check out http://svn-mirror.terracotta.lan/svn/forge/enterprise/terracotta-ehcache-ee/branches/tc-3.5 org.tmatesoft.svn.core.SVNException: svn: REPORT /svn/forge/!svn/vcc/default failed at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:291) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:276) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:264) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.doReport(DAVConnection.java:266) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.runReport(DAVRepository.java:1263) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.update(DAVRepository.java:820) at org.tmatesoft.svn.core.wc.SVNUpdateClient.update(SVNUpdateClient.java:564) at org.tmatesoft.svn.core.wc.SVNUpdateClient.doCheckout(SVNUpdateClient.java:922) at hudson.scm.subversion.CheckoutUpdater$1.perform(CheckoutUpdater.java:90) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:136) at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:773) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:754) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:738) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1995) 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 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 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:662) Caused by: org.tmatesoft.svn.core.SVNErrorMessage: svn: REPORT /svn/forge/!svn/vcc/default failed at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:200) at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:146) at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:89) ... 23 more Caused by: org.tmatesoft.svn.core.SVNException: svn: REPORT request failed on '/svn/forge/!svn/vcc/default' svn: Connection reset at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64) at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:644) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:285) ... 22 more Caused by: org.tmatesoft.svn.core.SVNErrorMessage: svn: REPORT request failed on '/svn/forge/!svn/vcc/default' at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:200) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:642) ... 23 more Caused by: org.tmatesoft.svn.core.SVNErrorMessage: svn: Connection reset at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:101) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:408) ... 23 more Caused by: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:168) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read1(BufferedInputStream.java:258) at java.io.BufferedInputStream.read(BufferedInputStream.java:317) at org.tmatesoft.svn.core.internal.util.ChunkedInputStream.read(ChunkedInputStream.java:70) at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:221) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141) at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:92) at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264) at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158) at java.io.InputStreamReader.read(InputStreamReader.java:167) at org.tmatesoft.svn.core.internal.io.dav.http.XMLReader.read(XMLReader.java:39) at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.readData(HTTPConnection.java:754) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.readData(HTTPConnection.java:719) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest.dispatch(HTTPRequest.java:216) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:364) ... 23 more Retrying after 10 seconds Cleaning workspace C:\jenkins\workspace\terracotta-ehcache-ee_tc-3.5_tests_tomcat-5.0.30_JDK_1.6_3.5.x_active-passive hudson.util.IOException2: remote file operation failed: C:\jenkins\workspace\terracotta-ehcache-ee_tc-3.5_tests_tomcat-5.0.30_JDK_1.6_3.5.x_active-passive at hudson.remoting.Channel@e4e20a:wxpvmo103 at hudson.FilePath.act(FilePath.java:754) at hudson.FilePath.act(FilePath.java:740) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:731) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:676) at hudson.model.AbstractProject.checkout(AbstractProject.java:1193) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:566) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:454) 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:230) Caused by: java.io.IOException: Unable to delete C:\jenkins\workspace\terracotta-ehcache-ee_tc-3.5_tests_tomcat-5.0.30_JDK_1.6_3.5.x_active-passive\tc-3.5\system-tests\src\test\resources\.svn\tmp\text-base\basic-blocking-cache-nonstop-test.xml.svn-base at hudson.Util.deleteFile(Util.java:266) at hudson.Util.deleteRecursive(Util.java:316) at hudson.Util.deleteContentsRecursive(Util.java:227) at hudson.Util.deleteRecursive(Util.java:307) at hudson.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.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:74) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:136) at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:773) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:754) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:738) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1995) 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 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 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:662) Retrying after 10 seconds Cleaning workspace C:\jenkins\workspace\terracotta-ehcache-ee_tc-3.5_tests_tomcat-5.0.30_JDK_1.6_3.5.x_active-passive hudson.util.IOException2: remote file operation failed: C:\jenkins\workspace\terracotta-ehcache-ee_tc-3.5_tests_tomcat-5.0.30_JDK_1.6_3.5.x_active-passive at hudson.remoting.Channel@e4e20a:wxpvmo103
    via by hhuynh,
    • 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)

    Users with the same issue

    Unknown visitor1 times, last one,