Re: IOException: Unable to delete when building
Not sure if this is the issue, but I have seen similar cases when I have been inside of the workspace path somewhere when trying to build. In other words if any user is currently looking at that workspace, the build won't be able to delete. - Original Message - From: Justinas Urbanavicius justin...@gmail.com To: jenkinsci-users@googlegroups.com Sent: Wednesday, August 7, 2013 8:09:25 AM Subject: IOException: Unable to delete when building Hi, having trouble with a build, the first one worked fine. After that i renamed my build and now i always get this error: Building in workspace /var/lib/jenkins/jobs/sit/workspace java.io.IOException: Unable to delete /usr/bin/tsort at hudson.Util.deleteFile(Util.java:255) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:204) at hudson.Util.deleteRecursive(Util.java:298) at hudson.FilePath$12.invoke(FilePath.java:1062) at hudson.FilePath$12.invoke(FilePath.java:1059) at hudson.FilePath.act(FilePath.java:906) at hudson.FilePath.act(FilePath.java:879) at hudson.FilePath.deleteRecursive(FilePath.java:1059) at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:121) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:204) at hudson.model.JDK.forNode(JDK.java:126) at hudson.model.AbstractProject.getEnvironment(AbstractProject.java:356) at hudson.model.Run.getEnvironment(Run.java:2071) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:933) at hudson.plugins.mercurial.MercurialSCM.checkout(MercurialSCM.java:408) at hudson.model.AbstractProject.checkout(AbstractProject.java:1406) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581) at hudson.model.Run.execute(Run.java:1597) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:247) [PMD] Skipping publisher since build result is FAILURE Finished: FAILURE does anyone know how to resolve this? Jenkins v1.526, Linux Debian -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out . -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: IOException: Unable to delete when building
yeah, i was in the workspace folder, but after cd /root didn't work even tried closing ssh client to server it didn't help On Wed, Aug 7, 2013 at 4:21 PM, k.thiel...@comcast.net wrote: Not sure if this is the issue, but I have seen similar cases when I have been inside of the workspace path somewhere when trying to build. In other words if any user is currently looking at that workspace, the build won't be able to delete. -- *From: *Justinas Urbanavicius justin...@gmail.com *To: *jenkinsci-users@googlegroups.com *Sent: *Wednesday, August 7, 2013 8:09:25 AM *Subject: *IOException: Unable to delete when building Hi, having trouble with a build, the first one worked fine. After that i renamed my build and now i always get this error: Building in workspace /var/lib/jenkins/jobs/sit/workspace java.io.IOException: Unable to delete /usr/bin/tsort at hudson.Util.deleteFile(Util.java:255) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:204) at hudson.Util.deleteRecursive(Util.java:298) at hudson.FilePath$12.invoke(FilePath.java:1062) at hudson.FilePath$12.invoke(FilePath.java:1059) at hudson.FilePath.act(FilePath.java:906) at hudson.FilePath.act(FilePath.java:879) at hudson.FilePath.deleteRecursive(FilePath.java:1059) at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:121) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:204) at hudson.model.JDK.forNode(JDK.java:126) at hudson.model.AbstractProject.getEnvironment(AbstractProject.java:356) at hudson.model.Run.getEnvironment(Run.java:2071) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:933) at hudson.plugins.mercurial.MercurialSCM.checkout(MercurialSCM.java:408) at hudson.model.AbstractProject.checkout(AbstractProject.java:1406) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581) at hudson.model.Run.execute(Run.java:1597) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:247) [PMD] Skipping publisher since build result is FAILURE Finished: FAILURE does anyone know how to resolve this? Jenkins v1.526, Linux Debian -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to a topic in the Google Groups Jenkins Users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/__bR8pK4j5A/unsubscribe. To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Justinas -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
RE: IOException: Unable to delete when building
Is the problem that you want to delete /usr/bin/tsort and can't, or that your build is trying to do that in the first place? Unless you're actually building an operating system, deleting stuff in /usr/bin sounds like a dangerous build step, and would normally require you to run as the root user. --Rob From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Justinas Urbanavicius Sent: Wednesday, August 07, 2013 9:29 AM To: jenkinsci-users@googlegroups.com Subject: Re: IOException: Unable to delete when building yeah, i was in the workspace folder, but after cd /root didn't work even tried closing ssh client to server it didn't help On Wed, Aug 7, 2013 at 4:21 PM, k.thiel...@comcast.netmailto:k.thiel...@comcast.net wrote: Not sure if this is the issue, but I have seen similar cases when I have been inside of the workspace path somewhere when trying to build. In other words if any user is currently looking at that workspace, the build won't be able to delete. From: Justinas Urbanavicius justin...@gmail.commailto:justin...@gmail.com To: jenkinsci-users@googlegroups.commailto:jenkinsci-users@googlegroups.com Sent: Wednesday, August 7, 2013 8:09:25 AM Subject: IOException: Unable to delete when building Hi, having trouble with a build, the first one worked fine. After that i renamed my build and now i always get this error: Building in workspace /var/lib/jenkins/jobs/sit/workspace java.io.IOException: Unable to delete /usr/bin/tsort at hudson.Util.deleteFile(Util.java:255) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:204) at hudson.Util.deleteRecursive(Util.java:298) at hudson.FilePath$12.invoke(FilePath.java:1062) at hudson.FilePath$12.invoke(FilePath.java:1059) at hudson.FilePath.act(FilePath.java:906) at hudson.FilePath.act(FilePath.java:879) at hudson.FilePath.deleteRecursive(FilePath.java:1059) at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:121) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:204) at hudson.model.JDK.forNode(JDK.java:126) at hudson.model.AbstractProject.getEnvironment(AbstractProject.java:356) at hudson.model.Run.getEnvironment(Run.java:2071) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:933) at hudson.plugins.mercurial.MercurialSCM.checkout(MercurialSCM.java:408) at hudson.model.AbstractProject.checkout(AbstractProject.java:1406) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581) at hudson.model.Run.execute(Run.java:1597) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:247) [PMD] Skipping publisher since build result is FAILURE Finished: FAILURE does anyone know how to resolve this? Jenkins v1.526, Linux Debian -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.commailto:jenkinsci-users%2bunsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to a topic in the Google Groups Jenkins Users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/__bR8pK4j5A/unsubscribe. To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscr...@googlegroups.commailto:jenkinsci-users%2bunsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Justinas -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.commailto:jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. The information in this message is for the intended recipient(s) only and may be the proprietary and/or confidential property of Litle Co., LLC, and thus protected from disclosure. If you are not the intended recipient(s), or an employee or agent responsible for delivering this message to the intended recipient, you
Re: IOException: Unable to delete when building
Possible session stuck open? Maybe try a reboot of the build machine if possible? If you delete the workspace manually, will it then build, and then rebuild? - Original Message - From: Justinas Urbanavicius justin...@gmail.com To: jenkinsci-users@googlegroups.com Sent: Wednesday, August 7, 2013 8:29:15 AM Subject: Re: IOException: Unable to delete when building yeah, i was in the workspace folder, but after cd /root didn't work even tried closing ssh client to server it didn't help On Wed, Aug 7, 2013 at 4:21 PM, k.thiel...@comcast.net wrote: Not sure if this is the issue, but I have seen similar cases when I have been inside of the workspace path somewhere when trying to build. In other words if any user is currently looking at that workspace, the build won't be able to delete. From: Justinas Urbanavicius justin...@gmail.com To: jenkinsci-users@googlegroups.com Sent: Wednesday, August 7, 2013 8:09:25 AM Subject: IOException: Unable to delete when building Hi, having trouble with a build, the first one worked fine. After that i renamed my build and now i always get this error: blockquote Building in workspace /var/lib/jenkins/jobs/sit/workspace java.io.IOException: Unable to delete /usr/bin/tsort at hudson.Util.deleteFile(Util.java:255) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:204) at hudson.Util.deleteRecursive(Util.java:298) at hudson.FilePath$12.invoke(FilePath.java:1062) at hudson.FilePath$12.invoke(FilePath.java:1059) at hudson.FilePath.act(FilePath.java:906) at hudson.FilePath.act(FilePath.java:879) at hudson.FilePath.deleteRecursive(FilePath.java:1059) at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:121) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:204) at hudson.model.JDK.forNode(JDK.java:126) at hudson.model.AbstractProject.getEnvironment(AbstractProject.java:356) at hudson.model.Run.getEnvironment(Run.java:2071) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:933) at hudson.plugins.mercurial.MercurialSCM.checkout(MercurialSCM.java:408) at hudson.model.AbstractProject.checkout(AbstractProject.java:1406) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581) at hudson.model.Run.execute(Run.java:1597) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:247) [PMD] Skipping publisher since build result is FAILURE Finished: FAILURE does anyone know how to resolve this? Jenkins v1.526, Linux Debian -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com . For more options, visit https://groups.google.com/groups/opt_out . -- You received this message because you are subscribed to a topic in the Google Groups Jenkins Users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/__bR8pK4j5A/unsubscribe . To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscr...@googlegroups.com . For more options, visit https://groups.google.com/groups/opt_out . /blockquote -- Justinas -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out . -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: IOException: Unable to delete when building
tried rebooting the machine but no luck. and i don't want to delete /usr/bin/tsort the only thing the build is configured to do is to checkout the source to workspace from SCM that's it i don't know where the /usr/bin/tsrot comes from, i guest it could be where the exception originates from On Wednesday, August 7, 2013 4:09:25 PM UTC+3, Justinas Urbanavicius wrote: Hi, having trouble with a build, the first one worked fine. After that i renamed my build and now i always get this error: Building in workspace /var/lib/jenkins/jobs/sit/workspace java.io.IOException: Unable to delete /usr/bin/tsort at hudson.Util.deleteFile(Util.java:255) at hudson.Util.deleteRecursive(Util.java:307) at hudson.Util.deleteContentsRecursive(Util.java:204) at hudson.Util.deleteRecursive(Util.java:298) at hudson.FilePath$12.invoke(FilePath.java:1062) at hudson.FilePath$12.invoke(FilePath.java:1059) at hudson.FilePath.act(FilePath.java:906) at hudson.FilePath.act(FilePath.java:879) at hudson.FilePath.deleteRecursive(FilePath.java:1059) at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:121) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:204) at hudson.model.JDK.forNode(JDK.java:126) at hudson.model.AbstractProject.getEnvironment(AbstractProject.java:356) at hudson.model.Run.getEnvironment(Run.java:2071) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:933) at hudson.plugins.mercurial.MercurialSCM.checkout(MercurialSCM.java:408) at hudson.model.AbstractProject.checkout(AbstractProject.java:1406) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581) at hudson.model.Run.execute(Run.java:1597) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:247) [PMD] Skipping publisher since build result is FAILURE Finished: FAILURE does anyone know how to resolve this? Jenkins v1.526, Linux Debian -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.