hudson.util.IOException2: Failed to copy C:\Users\garepa.SEL\AppData\Local\Temp\build_step_template5292341656269454572.sh to M:\garepa_ux_view2/build_step_template5292341656269454572.sh

Jenkins JIRA | Garen Parham | 5 years ago
  1. 0

    Using a ClearCase dynamic view, the root path itself is read-only (which contains N number of VOBs or repos, managed by the server), which prevents me from using this really valuable plugin. The error text from a job console looks like so: {noformat} 15:25:59 Running Prebuild steps 15:25:59 executing script 'ScriptBuildStepConfigProvider.1325285620945' 15:25:59 FATAL: Cannot create temporary script 'Setup ClearCase environment' 15:25:59 hudson.util.IOException2: Failed to copy C:\Users\garepa.SEL\AppData\Local\Temp\build_step_template5292341656269454572.sh to M:\garepa_ux_view2/build_step_template5292341656269454572.sh 15:25:59 at hudson.FilePath.copyTo(FilePath.java:1415) 15:25:59 at org.jenkinsci.plugins.managedscripts.ScriptBuildStep.perform(ScriptBuildStep.java:167) 15:25:59 at org.jenkinsci.plugins.preSCMbuildstep.PreSCMBuildStepsWrapper.preCheckout(PreSCMBuildStepsWrapper.java:116) 15:25:59 at hudson.model.AbstractBuild$AbstractRunner.preCheckout(AbstractBuild.java:559) 15:25:59 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:459) 15:25:59 at hudson.model.Run.run(Run.java:1404) 15:25:59 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 15:25:59 at hudson.model.ResourceController.execute(ResourceController.java:88) 15:25:59 at hudson.model.Executor.run(Executor.java:238) 15:25:59 Caused by: java.io.FileNotFoundException: M:\garepa_ux_view2\build_step_template5292341656269454572.sh (The media is write protected) 15:25:59 at java.io.FileOutputStream.open(Native Method) 15:25:59 at java.io.FileOutputStream.<init>(Unknown Source) 15:25:59 at java.io.FileOutputStream.<init>(Unknown Source) 15:25:59 at hudson.FilePath$25.call(FilePath.java:1323) 15:25:59 at hudson.FilePath$25.call(FilePath.java:1319) 15:25:59 at hudson.remoting.LocalChannel.call(LocalChannel.java:45) 15:25:59 at hudson.FilePath.write(FilePath.java:1319) 15:25:59 at hudson.FilePath.copyTo(FilePath.java:1408) 15:25:59 ... 8 more 15:25:59 Failed build for org.jenkinsci.plugins.managedscripts.ScriptBuildStep@1ebae65 {noformat} The copying would have succeeded if instead the destination to copy to was taken from the path in the WORKSPACE environment variable (which I'd think would be the original intent?)

    Jenkins JIRA | 5 years ago | Garen Parham
    hudson.util.IOException2: Failed to copy C:\Users\garepa.SEL\AppData\Local\Temp\build_step_template5292341656269454572.sh to M:\garepa_ux_view2/build_step_template5292341656269454572.sh
  2. 0

    Using a ClearCase dynamic view, the root path itself is read-only (which contains N number of VOBs or repos, managed by the server), which prevents me from using this really valuable plugin. The error text from a job console looks like so: {noformat} 15:25:59 Running Prebuild steps 15:25:59 executing script 'ScriptBuildStepConfigProvider.1325285620945' 15:25:59 FATAL: Cannot create temporary script 'Setup ClearCase environment' 15:25:59 hudson.util.IOException2: Failed to copy C:\Users\garepa.SEL\AppData\Local\Temp\build_step_template5292341656269454572.sh to M:\garepa_ux_view2/build_step_template5292341656269454572.sh 15:25:59 at hudson.FilePath.copyTo(FilePath.java:1415) 15:25:59 at org.jenkinsci.plugins.managedscripts.ScriptBuildStep.perform(ScriptBuildStep.java:167) 15:25:59 at org.jenkinsci.plugins.preSCMbuildstep.PreSCMBuildStepsWrapper.preCheckout(PreSCMBuildStepsWrapper.java:116) 15:25:59 at hudson.model.AbstractBuild$AbstractRunner.preCheckout(AbstractBuild.java:559) 15:25:59 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:459) 15:25:59 at hudson.model.Run.run(Run.java:1404) 15:25:59 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 15:25:59 at hudson.model.ResourceController.execute(ResourceController.java:88) 15:25:59 at hudson.model.Executor.run(Executor.java:238) 15:25:59 Caused by: java.io.FileNotFoundException: M:\garepa_ux_view2\build_step_template5292341656269454572.sh (The media is write protected) 15:25:59 at java.io.FileOutputStream.open(Native Method) 15:25:59 at java.io.FileOutputStream.<init>(Unknown Source) 15:25:59 at java.io.FileOutputStream.<init>(Unknown Source) 15:25:59 at hudson.FilePath$25.call(FilePath.java:1323) 15:25:59 at hudson.FilePath$25.call(FilePath.java:1319) 15:25:59 at hudson.remoting.LocalChannel.call(LocalChannel.java:45) 15:25:59 at hudson.FilePath.write(FilePath.java:1319) 15:25:59 at hudson.FilePath.copyTo(FilePath.java:1408) 15:25:59 ... 8 more 15:25:59 Failed build for org.jenkinsci.plugins.managedscripts.ScriptBuildStep@1ebae65 {noformat} The copying would have succeeded if instead the destination to copy to was taken from the path in the WORKSPACE environment variable (which I'd think would be the original intent?)

    Jenkins JIRA | 5 years ago | Garen Parham
    hudson.util.IOException2: Failed to copy C:\Users\garepa.SEL\AppData\Local\Temp\build_step_template5292341656269454572.sh to M:\garepa_ux_view2/build_step_template5292341656269454572.sh
  3. 0

    Unable to use Hudson plugin Sonar for code quality analysis of my hudson jobs.

    Google Groups | 6 years ago | rahul jangra
    java.io.FileNotFoundException: /vobs/rsm/base/pom.xml (Read-only file system)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    So the problem was that I assumed that if you don't define a location for the file then it would default to just the file in the root of the workspace - which I think is not unreasonable (in fact I didn't notice the location field). And if you do so you get the kind of unhelpful message below: I created a new job that accepts a file parameter. I ran this job and selected a file. And I get this as the job output: ... Copying file to FATAL: d:\hudsonwork\workspace\generate_wer_submission_file (Access is denied) java.io.FileNotFoundException: d:\hudsonwork\workspace\generate_wer_submission_file (Access is denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(Unknown Source) at java.io.FileOutputStream.<init>(Unknown Source) at hudson.FilePath$25.call(FilePath.java:1298) at hudson.FilePath$25.call(FilePath.java:1294) 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(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:60) at java.lang.Thread.run(Unknown Source) So it seems that Jenkins can't write the uploaded file to the directory. Which itself created. I checked on the slave and the directory does exist, the path is correct and (as a different part of the job) svn files were checked out there.

    Jenkins JIRA | 5 years ago | sanga
    java.io.FileNotFoundException: d:\hudsonwork\workspace\generate_wer_submission_file (Access is denied)
  6. 0

    So the problem was that I assumed that if you don't define a location for the file then it would default to just the file in the root of the workspace - which I think is not unreasonable (in fact I didn't notice the location field). And if you do so you get the kind of unhelpful message below: I created a new job that accepts a file parameter. I ran this job and selected a file. And I get this as the job output: ... Copying file to FATAL: d:\hudsonwork\workspace\generate_wer_submission_file (Access is denied) java.io.FileNotFoundException: d:\hudsonwork\workspace\generate_wer_submission_file (Access is denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(Unknown Source) at java.io.FileOutputStream.<init>(Unknown Source) at hudson.FilePath$25.call(FilePath.java:1298) at hudson.FilePath$25.call(FilePath.java:1294) 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(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:60) at java.lang.Thread.run(Unknown Source) So it seems that Jenkins can't write the uploaded file to the directory. Which itself created. I checked on the slave and the directory does exist, the path is correct and (as a different part of the job) svn files were checked out there.

    Jenkins JIRA | 5 years ago | sanga
    java.io.FileNotFoundException: d:\hudsonwork\workspace\generate_wer_submission_file (Access is denied)

  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

    M:\garepa_ux_view2\build_step_template5292341656269454572.sh (The media is write protected)

    at java.io.FileOutputStream.open()
  2. Java RT
    FileOutputStream.<init>
    1. java.io.FileOutputStream.open(Native Method)
    2. java.io.FileOutputStream.<init>(Unknown Source)
    3. java.io.FileOutputStream.<init>(Unknown Source)
    3 frames
  3. Hudson
    FilePath$25.call
    1. hudson.FilePath$25.call(FilePath.java:1323)
    2. hudson.FilePath$25.call(FilePath.java:1319)
    2 frames
  4. Hudson :: Remoting Layer
    LocalChannel.call
    1. hudson.remoting.LocalChannel.call(LocalChannel.java:45)
    1 frame
  5. Hudson
    FilePath.copyTo
    1. hudson.FilePath.write(FilePath.java:1319)
    2. hudson.FilePath.copyTo(FilePath.java:1408)
    2 frames
  6. org.jenkinsci.plugins
    PreSCMBuildStepsWrapper.preCheckout
    1. org.jenkinsci.plugins.managedscripts.ScriptBuildStep.perform(ScriptBuildStep.java:167)
    2. org.jenkinsci.plugins.preSCMbuildstep.PreSCMBuildStepsWrapper.preCheckout(PreSCMBuildStepsWrapper.java:116)
    2 frames
  7. Hudson
    Executor.run
    1. hudson.model.AbstractBuild$AbstractRunner.preCheckout(AbstractBuild.java:559)
    2. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:459)
    3. hudson.model.Run.run(Run.java:1404)
    4. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    5. hudson.model.ResourceController.execute(ResourceController.java:88)
    6. hudson.model.Executor.run(Executor.java:238)
    6 frames