java.io.FileNotFoundException: /var/lib/jenkins/jobs/atlas/workspace/atlas/src/Wrapper/atlas_wrapper.cc (Permission denied)

Jenkins JIRA | Tony Hart | 4 years ago
  1. 0

    I'm running Cobertura on a C++ project using a coverage.xml file generated by gcovr. After the plugin has run all the source files have been erased (the files are still present in the source tree but they have no contents). To check that it was Cobertura plugin that was causing this I write-protected one of the files (atlas_wrapper.cc) before running the Jenkins build. The following is the error from the Jenkins log file... Publishing Cobertura coverage report... Publishing Cobertura coverage results... ERROR: ERROR: Failure to paint ./var/lib/jenkins/jobs/atlas/workspace/atlas/src/Wrapper/atlas_wrapper.cc to /var/lib/jenkins/jobs/atlas/cobertura java.io.FileNotFoundException: /var/lib/jenkins/jobs/atlas/workspace/atlas/src/Wrapper/atlas_wrapper.cc (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:209) at java.io.FileOutputStream.<init>(FileOutputStream.java:160) at hudson.FilePath.write(FilePath.java:1474) at hudson.plugins.cobertura.renderers.SourceCodePainter.paintSourceCode(SourceCodePainter.java:62) at hudson.plugins.cobertura.renderers.SourceCodePainter.invoke(SourceCodePainter.java:148) at hudson.plugins.cobertura.renderers.SourceCodePainter.invoke(SourceCodePainter.java:34) at hudson.FilePath.act(FilePath.java:842) at hudson.FilePath.act(FilePath.java:824) at hudson.plugins.cobertura.CoberturaPublisher.perform(CoberturaPublisher.java:310) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1513) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Publishing Doxygen HTML results. The determined Doxygen directory is '/var/lib/jenkins/jobs/atlas/workspace/bld/doc/html'. End publishing Doxygen HTML results. Recording test results Here "/var/lib/jenkins/jobs/atlas/workspace/atlas" is the source tree from the subversion checkout. The coverage.xml file is a soft-link from /var/lib/jenkins/jobs/atlas/workspace/atlas/coverage.xml -> /var/lib/jenkins/jobs/atlas/workspace/bld/results/coverage.xml The build tree workspace/bld is separate from the source tree (if that matters).

    Jenkins JIRA | 4 years ago | Tony Hart
    java.io.FileNotFoundException: /var/lib/jenkins/jobs/atlas/workspace/atlas/src/Wrapper/atlas_wrapper.cc (Permission denied)
  2. 0

    I'm running Cobertura on a C++ project using a coverage.xml file generated by gcovr. After the plugin has run all the source files have been erased (the files are still present in the source tree but they have no contents). To check that it was Cobertura plugin that was causing this I write-protected one of the files (atlas_wrapper.cc) before running the Jenkins build. The following is the error from the Jenkins log file... Publishing Cobertura coverage report... Publishing Cobertura coverage results... ERROR: ERROR: Failure to paint ./var/lib/jenkins/jobs/atlas/workspace/atlas/src/Wrapper/atlas_wrapper.cc to /var/lib/jenkins/jobs/atlas/cobertura java.io.FileNotFoundException: /var/lib/jenkins/jobs/atlas/workspace/atlas/src/Wrapper/atlas_wrapper.cc (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:209) at java.io.FileOutputStream.<init>(FileOutputStream.java:160) at hudson.FilePath.write(FilePath.java:1474) at hudson.plugins.cobertura.renderers.SourceCodePainter.paintSourceCode(SourceCodePainter.java:62) at hudson.plugins.cobertura.renderers.SourceCodePainter.invoke(SourceCodePainter.java:148) at hudson.plugins.cobertura.renderers.SourceCodePainter.invoke(SourceCodePainter.java:34) at hudson.FilePath.act(FilePath.java:842) at hudson.FilePath.act(FilePath.java:824) at hudson.plugins.cobertura.CoberturaPublisher.perform(CoberturaPublisher.java:310) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1513) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Publishing Doxygen HTML results. The determined Doxygen directory is '/var/lib/jenkins/jobs/atlas/workspace/bld/doc/html'. End publishing Doxygen HTML results. Recording test results Here "/var/lib/jenkins/jobs/atlas/workspace/atlas" is the source tree from the subversion checkout. The coverage.xml file is a soft-link from /var/lib/jenkins/jobs/atlas/workspace/atlas/coverage.xml -> /var/lib/jenkins/jobs/atlas/workspace/bld/results/coverage.xml The build tree workspace/bld is separate from the source tree (if that matters).

    Jenkins JIRA | 4 years ago | Tony Hart
    java.io.FileNotFoundException: /var/lib/jenkins/jobs/atlas/workspace/atlas/src/Wrapper/atlas_wrapper.cc (Permission denied)
  3. 0

    Cobertura Plugin - Jenkins - Jenkins Wiki

    jenkins-ci.org | 2 days ago
    java.io.FileNotFoundException: /local/bamboo/.hudson/jobs/MYJOB/cobertura/com/foo/dec/framework/dataAccessServices (Is a directory)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins: Copy artifacts from another project (Access is denied error)

    Stack Overflow | 2 years ago | JustAnotherDev
    hudson.util.IOException2: Failed to copy C:\Jenkins\jobs\JenkinsTestDev\builds\2014-11-25_16-02- 39\archive\JenkinsTest.sln to C:\Jenkins\jobs\JenkinsTestSTAGING\workspace\JenkinsTest.sln
  6. 0

    I have the same Problem as described in http://issues.jenkins-ci.org/browse/JENKINS-3529 My Exception is: ERROR: Publisher hudson.plugins.violations.ViolationsPublisher aborted due to exception java.io.FileNotFoundException: C:\hudson\jobs\Test .Net Project\builds\2010-04-23_13-33-16\violations\file\RegExSearch\C:\hudson\jobs\Test .Net Project\workspace\RegExSearch\RegExSearch\Program.cs.xml (The filename, directory name, or volume label syntax is incorrect) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(Unknown Source) at java.io.FileOutputStream.<init>(Unknown Source) at hudson.FilePath.write(FilePath.java:1235) at hudson.plugins.violations.generate.ExecuteFilePath.execute(ExecuteFilePath.java:40) at hudson.plugins.violations.generate.GenerateXML.execute(GenerateXML.java:47) at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:124) at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:27) at hudson.FilePath.act(FilePath.java:747) at hudson.FilePath.act(FilePath.java:729) at hudson.plugins.violations.ViolationsPublisher.perform(ViolationsPublisher.java:74) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:584) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:564) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:550) at hudson.model.Build$RunnerImpl.post2(Build.java:158) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1267) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:122)

    Jenkins JIRA | 7 years ago | broec
    java.io.FileNotFoundException: C:\hudson\jobs\Test .Net Project\builds\2010-04-23_13-33-16\violations\file\RegExSearch\C:\hudson\jobs\Test .Net Project\workspace\RegExSearch\RegExSearch\Program.cs.xml (The filename, directory name, or volume label syntax is incorrect)

  1. eti22 3 times, last 2 weeks ago
  2. tyson925 49 times, last 1 week ago
  3. MoYapro 1 times, last 1 month ago
  4. musketyr 3 times, last 1 month ago
  5. iridic 12 times, last 1 month ago
23 more registered users
72 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.FileNotFoundException

    /var/lib/jenkins/jobs/atlas/workspace/atlas/src/Wrapper/atlas_wrapper.cc (Permission denied)

    at java.io.FileOutputStream.open()
  2. Java RT
    FileOutputStream.<init>
    1. java.io.FileOutputStream.open(Native Method)
    2. java.io.FileOutputStream.<init>(FileOutputStream.java:209)
    3. java.io.FileOutputStream.<init>(FileOutputStream.java:160)
    3 frames
  3. Hudson
    FilePath.write
    1. hudson.FilePath.write(FilePath.java:1474)
    1 frame
  4. hudson.plugins.cobertura
    SourceCodePainter.invoke
    1. hudson.plugins.cobertura.renderers.SourceCodePainter.paintSourceCode(SourceCodePainter.java:62)
    2. hudson.plugins.cobertura.renderers.SourceCodePainter.invoke(SourceCodePainter.java:148)
    3. hudson.plugins.cobertura.renderers.SourceCodePainter.invoke(SourceCodePainter.java:34)
    3 frames
  5. Hudson
    FilePath.act
    1. hudson.FilePath.act(FilePath.java:842)
    2. hudson.FilePath.act(FilePath.java:824)
    2 frames
  6. hudson.plugins.cobertura
    CoberturaPublisher.perform
    1. hudson.plugins.cobertura.CoberturaPublisher.perform(CoberturaPublisher.java:310)
    1 frame
  7. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
    3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692)
    4. hudson.model.Build$BuildExecution.post2(Build.java:183)
    5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639)
    6. hudson.model.Run.execute(Run.java:1513)
    7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    8. hudson.model.ResourceController.execute(ResourceController.java:88)
    9. hudson.model.Executor.run(Executor.java:236)
    9 frames