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.

  • The issue happens when trying to publish cobertura-coverage.xml report with relative paths i.e.: {code:xml} ... <sources> <source>C:\Users\myUser\.jenkins\workspace\SomeWorkspaceName\SomeProject\aaa\bbb\ccc\ddd </sources> ... ... <class name="SomeFile.js" filename="..\..\..\..\..\SomeProject\xxx\yyy\SomeFile.js /> ... {code} It's causing below errors: {code:java} 16:33:58 ERROR: ERROR: Failure to paint C:\Users\myUser\.jenkins\workspace\SomeWorkspaceName\SomeProject\aaa\bbb\ccc\ddd\..\..\..\..\..\SomeProject\xxx\yyy\SomeFile.js to C:\Users\myUser\.jenkins\jobs\SomeWorkspaceName\cobertura 16:33:58 java.io.IOException: Failed to mkdirs: C:\Users\SomeProject\xxx\yyy 16:33:58 at hudson.FilePath.mkdirs(FilePath.java:1164) 16:33:58 at hudson.plugins.cobertura.renderers.SourceCodePainter.paintSourceCode(SourceCodePainter.java:62) 16:33:58 at hudson.plugins.cobertura.renderers.SourceCodePainter.invoke(SourceCodePainter.java:135) 16:33:58 at hudson.plugins.cobertura.renderers.SourceCodePainter.invoke(SourceCodePainter.java:30) 16:33:58 at hudson.FilePath.act(FilePath.java:991) 16:33:58 at hudson.FilePath.act(FilePath.java:969) 16:33:58 at hudson.plugins.cobertura.CoberturaPublisher.perform(CoberturaPublisher.java:403) 16:33:58 at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) 16:33:58 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) 16:33:58 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) 16:33:58 at hudson.model.Build$BuildExecution.post2(Build.java:185) 16:33:58 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) 16:33:58 at hudson.model.Run.execute(Run.java:1769) 16:33:58 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 16:33:58 at hudson.model.ResourceController.execute(ResourceController.java:98) 16:33:58 at hudson.model.Executor.run(Executor.java:374) {code} See also related issue on intern github page: [https://github.com/theintern/intern/issues/504]
    via by Bartosz Kaczorek,
  • The issue happens when trying to publish cobertura-coverage.xml report with relative paths i.e.: {code:xml} ... <sources> <source>C:\Users\myUser\.jenkins\workspace\SomeWorkspaceName\SomeProject\aaa\bbb\ccc\ddd </sources> ... ... <class name="SomeFile.js" filename="..\..\..\..\..\SomeProject\xxx\yyy\SomeFile.js /> ... {code} It's causing below errors: {code:java} 16:33:58 ERROR: ERROR: Failure to paint C:\Users\myUser\.jenkins\workspace\SomeWorkspaceName\SomeProject\aaa\bbb\ccc\ddd\..\..\..\..\..\SomeProject\xxx\yyy\SomeFile.js to C:\Users\myUser\.jenkins\jobs\SomeWorkspaceName\cobertura 16:33:58 java.io.IOException: Failed to mkdirs: C:\Users\SomeProject\xxx\yyy 16:33:58 at hudson.FilePath.mkdirs(FilePath.java:1164) 16:33:58 at hudson.plugins.cobertura.renderers.SourceCodePainter.paintSourceCode(SourceCodePainter.java:62) 16:33:58 at hudson.plugins.cobertura.renderers.SourceCodePainter.invoke(SourceCodePainter.java:135) 16:33:58 at hudson.plugins.cobertura.renderers.SourceCodePainter.invoke(SourceCodePainter.java:30) 16:33:58 at hudson.FilePath.act(FilePath.java:991) 16:33:58 at hudson.FilePath.act(FilePath.java:969) 16:33:58 at hudson.plugins.cobertura.CoberturaPublisher.perform(CoberturaPublisher.java:403) 16:33:58 at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) 16:33:58 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) 16:33:58 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) 16:33:58 at hudson.model.Build$BuildExecution.post2(Build.java:185) 16:33:58 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) 16:33:58 at hudson.model.Run.execute(Run.java:1769) 16:33:58 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 16:33:58 at hudson.model.ResourceController.execute(ResourceController.java:98) 16:33:58 at hudson.model.Executor.run(Executor.java:374) {code} See also related issue on intern github page: [https://github.com/theintern/intern/issues/504]
    via by Bartosz Kaczorek,
  • I tried using "*Check out to a sub-directory*" option in Git SCM configuration with absolute path to required directory. My hope was that word "*sub-directory*" is just a hint for default behaviour until absolute path is specified. But it didn't work: {quote} java.io.IOException: Failed to mkdirs: /path/to/directory/jenkins/has/required/permissions/for/ at hudson.FilePath.mkdirs(FilePath.java:1164) at hudson.plugins.git.GitSCM.createClient(GitSCM.java:636) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:978) at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:129) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1277) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Notifying upstream projects of job completion {quote} I'm using environment where all (chained and inter-related) jobs share common (absolute) local Git repositories. h2. Proposed solution The same field "*Check out to a sub-directory*" can be renamed into "*Check out to a directory*" with explanation that unless path is absolute, the specified directory is relative to workspace.
    via by Alexey Pakseykin,
  • I tried using "*Check out to a sub-directory*" option in Git SCM configuration with absolute path to required directory. My hope was that word "*sub-directory*" is just a hint for default behaviour until absolute path is specified. But it didn't work: {quote} java.io.IOException: Failed to mkdirs: /path/to/directory/jenkins/has/required/permissions/for/ at hudson.FilePath.mkdirs(FilePath.java:1164) at hudson.plugins.git.GitSCM.createClient(GitSCM.java:636) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:978) at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:129) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1277) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Notifying upstream projects of job completion {quote} I'm using environment where all (chained and inter-related) jobs share common (absolute) local Git repositories. h2. Proposed solution The same field "*Check out to a sub-directory*" can be renamed into "*Check out to a directory*" with explanation that unless path is absolute, the specified directory is relative to workspace.
    via by Alexey Pakseykin,
  • changing workspace of jenkins in linux
    via Stack Overflow by vinod
    ,
  • Hi, please consider the following scenario: hudson is set up on master and has several slaves considered for running builds in clearcase. All works fine but builds that have been passed to a slave will fail in case nobody has previously set the view manually on that host. In such a case hudson will not be able to access the view under /view/<viewname>/ and fail. I have built a workaround (cronjob) for this which continuously logs into all slaves (ever couple of minutes) and does a $> cleartool setview -exec 'cleartool pwv -s' <viewname> in order to ensure that the slaves have been mounted whenever hudson needs them. This is ugly but have currently no idea on how to get around this. Here is what is in the logs (this is the complete log) Started by an SCM change Building remotely on nxnci5 Failed to mkdirs: /view/ci_FOO_i22/foo/fooDo/ [CppUnit] Recording of the CppUnit tests results. ERROR: Publisher hudson.plugins.cppunit.CppUnitPublisher aborted due to exception java.io.IOException: Failed to mkdirs: /view/ci_FOO_i22/foo/fooDo//cppunitpluginTemp at hudson.FilePath.mkdirs(FilePath.java:753) at hudson.plugins.cppunit.CppUnitPublisher.perform(CppUnitPublisher.java:89) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:582) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:563) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:550) at hudson.model.Build$RunnerImpl.post2(Build.java:152) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1233) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:122) [htmlpublisher] Archiving HTML reports... [htmlpublisher] Archiving at PROJECT level /view/ci_FOO_i22/foo/fooDo/coverage/FOO/ to /user/ci/.hudson/jobs/FOO_i22/htmlreports/LCOV_Report ERROR: Specified HTML directory '/view/ci_FOO_i22/foo/fooDo/coverage/FOO/' does not exist. Sending e-mails to: COORAMRDBTSCPFTALL@internal.nsn.com Finished: FAILURE
    via by jbauernberger,
  • Hi, please consider the following scenario: hudson is set up on master and has several slaves considered for running builds in clearcase. All works fine but builds that have been passed to a slave will fail in case nobody has previously set the view manually on that host. In such a case hudson will not be able to access the view under /view/<viewname>/ and fail. I have built a workaround (cronjob) for this which continuously logs into all slaves (ever couple of minutes) and does a $> cleartool setview -exec 'cleartool pwv -s' <viewname> in order to ensure that the slaves have been mounted whenever hudson needs them. This is ugly but have currently no idea on how to get around this. Here is what is in the logs (this is the complete log) Started by an SCM change Building remotely on nxnci5 Failed to mkdirs: /view/ci_FOO_i22/foo/fooDo/ [CppUnit] Recording of the CppUnit tests results. ERROR: Publisher hudson.plugins.cppunit.CppUnitPublisher aborted due to exception java.io.IOException: Failed to mkdirs: /view/ci_FOO_i22/foo/fooDo//cppunitpluginTemp at hudson.FilePath.mkdirs(FilePath.java:753) at hudson.plugins.cppunit.CppUnitPublisher.perform(CppUnitPublisher.java:89) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:582) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:563) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:550) at hudson.model.Build$RunnerImpl.post2(Build.java:152) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1233) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:122) [htmlpublisher] Archiving HTML reports... [htmlpublisher] Archiving at PROJECT level /view/ci_FOO_i22/foo/fooDo/coverage/FOO/ to /user/ci/.hudson/jobs/FOO_i22/htmlreports/LCOV_Report ERROR: Specified HTML directory '/view/ci_FOO_i22/foo/fooDo/coverage/FOO/' does not exist. Sending e-mails to: COORAMRDBTSCPFTALL@internal.nsn.com Finished: FAILURE
    via by jbauernberger,
    • java.io.IOException: Failed to mkdirs: C:\Users\SomeProject\xxx\yyy at hudson.FilePath.mkdirs(FilePath.java:1164) at hudson.plugins.cobertura.renderers.SourceCodePainter.paintSourceCode(SourceCodePainter.java:62) at hudson.plugins.cobertura.renderers.SourceCodePainter.invoke(SourceCodePainter.java:135) at hudson.plugins.cobertura.renderers.SourceCodePainter.invoke(SourceCodePainter.java:30) at hudson.FilePath.act(FilePath.java:991) at hudson.FilePath.act(FilePath.java:969) at hudson.plugins.cobertura.CoberturaPublisher.perform(CoberturaPublisher.java:403) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) at hudson.model.Run.execute(Run.java:1769) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    2 more bugmates