java.io.IOException: Failed to mkdirs: /view/ci_FOO_i22/foo/fooDo//cppunitpluginTemp

Jenkins JIRA | jbauernberger | 7 years ago
  1. 0

    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

    Jenkins JIRA | 7 years ago | jbauernberger
    java.io.IOException: Failed to mkdirs: /view/ci_FOO_i22/foo/fooDo//cppunitpluginTemp
  2. 0

    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

    Jenkins JIRA | 7 years ago | jbauernberger
    java.io.IOException: Failed to mkdirs: /view/ci_FOO_i22/foo/fooDo//cppunitpluginTemp
  3. 0

    changing workspace of jenkins in linux

    Stack Overflow | 5 years ago | vinod
    java.io.IOException: Failed to mkdirs: /root/bhanu
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Add projectRoot option to Cobertura reporter

    GitHub | 1 year ago | bartoszkaczorek
    java.io.IOException: Failed to mkdirs: C:\Users\SomeProject\xxx\yyy

    2 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

      Failed to mkdirs: /view/ci_FOO_i22/foo/fooDo//cppunitpluginTemp

      at hudson.FilePath.mkdirs()
    2. Hudson
      FilePath.mkdirs
      1. hudson.FilePath.mkdirs(FilePath.java:753)
      1 frame
    3. hudson.plugins.cppunit
      CppUnitPublisher.perform
      1. hudson.plugins.cppunit.CppUnitPublisher.perform(CppUnitPublisher.java:89)
      1 frame
    4. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:582)
      3. hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:563)
      4. hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:550)
      5. hudson.model.Build$RunnerImpl.post2(Build.java:152)
      6. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
      7. hudson.model.Run.run(Run.java:1233)
      8. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      9. hudson.model.ResourceController.execute(ResourceController.java:88)
      10. hudson.model.Executor.run(Executor.java:122)
      10 frames