hudson.util.IOException2: Failed to copy /Users/Shared/Jenkins/Home/jobs/tets/builds/2014-03-31_17-56-04/archive/foo/baz to /tmp/workspace/tets2/foo/baz

Jenkins JIRA | Steven Christou | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    The copyartifact plugin fails to properly handle symlinks from a slave machine. When you create the symlink and archive it, the symlink returns a 404, and anything that tries to Copy Archive from the above project throws an exception. Steps to reproduce: Create a SLAVE NODE on a linux instance Create a Job (fooProject) that has `Execute ssh` with the following {noformat} mkdir -p foo echo $BUILD_TAG > foo/bar ln -s $( readlink -f foo/bar ) foo/baz {noformat} Then Archive the Artifacts on `foo/**` Execute job Create a new project (barProject) Copy artifacts from project (fooProject) Execute and you will receive the following stack trace below: {noformat} ERROR: Failed to copy artifacts from tets with filter: ** hudson.util.IOException2: Failed to copy /Users/Shared/Jenkins/Home/jobs/tets/builds/2014-03-31_17-56-04/archive/foo/baz to /tmp/workspace/tets2/foo/baz at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:107) at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyAll(FingerprintingCopyMethod.java:68) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:368) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:306) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:781) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562) at hudson.model.Run.execute(Run.java:1665) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:246) Caused by: java.io.FileNotFoundException: /Users/Shared/Jenkins/Home/jobs/tets/builds/2014-03-31_17-56-04/archive/foo/baz (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:138) at hudson.FilePath$34.invoke(FilePath.java:1797) at hudson.FilePath$34.invoke(FilePath.java:1792) at hudson.FilePath.act(FilePath.java:916) at hudson.FilePath.act(FilePath.java:889) at hudson.FilePath.copyTo(FilePath.java:1792) at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:79) ... 12 more Build step 'Copy artifacts from another project' marked build as failure Finished: FAILURE {noformat}

    Jenkins JIRA | 3 years ago | Steven Christou
    hudson.util.IOException2: Failed to copy /Users/Shared/Jenkins/Home/jobs/tets/builds/2014-03-31_17-56-04/archive/foo/baz to /tmp/workspace/tets2/foo/baz
  2. 0

    The copyartifact plugin fails to properly handle symlinks from a slave machine. When you create the symlink and archive it, the symlink returns a 404, and anything that tries to Copy Archive from the above project throws an exception. Steps to reproduce: Create a SLAVE NODE on a linux instance Create a Job (fooProject) that has `Execute ssh` with the following {noformat} mkdir -p foo echo $BUILD_TAG > foo/bar ln -s $( readlink -f foo/bar ) foo/baz {noformat} Then Archive the Artifacts on `foo/**` Execute job Create a new project (barProject) Copy artifacts from project (fooProject) Execute and you will receive the following stack trace below: {noformat} ERROR: Failed to copy artifacts from tets with filter: ** hudson.util.IOException2: Failed to copy /Users/Shared/Jenkins/Home/jobs/tets/builds/2014-03-31_17-56-04/archive/foo/baz to /tmp/workspace/tets2/foo/baz at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:107) at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyAll(FingerprintingCopyMethod.java:68) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:368) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:306) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:781) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562) at hudson.model.Run.execute(Run.java:1665) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:246) Caused by: java.io.FileNotFoundException: /Users/Shared/Jenkins/Home/jobs/tets/builds/2014-03-31_17-56-04/archive/foo/baz (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:138) at hudson.FilePath$34.invoke(FilePath.java:1797) at hudson.FilePath$34.invoke(FilePath.java:1792) at hudson.FilePath.act(FilePath.java:916) at hudson.FilePath.act(FilePath.java:889) at hudson.FilePath.copyTo(FilePath.java:1792) at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:79) ... 12 more Build step 'Copy artifacts from another project' marked build as failure Finished: FAILURE {noformat}

    Jenkins JIRA | 3 years ago | Steven Christou
    hudson.util.IOException2: Failed to copy /Users/Shared/Jenkins/Home/jobs/tets/builds/2014-03-31_17-56-04/archive/foo/baz to /tmp/workspace/tets2/foo/baz
  3. 0

    Copy artifacts sometimes fails to copy Mercial lock file

    GitHub | 4 years ago | davehunt
    hudson.util.IOException2: Failed to copy /home/mozauto/mozmill-ci/jenkins-master/jobs/get_mozmill-tests/workspace/mozmill-tests/.hg/store/lock to c:\jenkins\workspace\mozilla-aurora_endurance\mozmill-tests/.hg/store/lock
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Copy artifacts for mozmill-automation fails for esr10 jobs

    GitHub | 5 years ago | whimboo
    hudson.util.IOException2: Failed to copy /Users/mozilla/mozmill-ci/jenkins-master/jobs/get_mozmill-automation/workspace/mozmill-automation/.hg/store/lock to c:\jenkins\workspace\mozilla-esr10_functional\mozmill-automation/.hg/store/lock
  6. 0

    Roboelectric doesn't find androidmanifest.xml when the main and the test are in two different projects

    GitHub | 4 years ago | atali
    java.io.FileNotFoundException: ./AndroidManifest.xml (No such file or directory)

  1. jstrayer 1 times, last 2 days ago
  2. linxiaolong 1 times, last 3 weeks ago
  3. marcbouvierdav 15 times, last 3 weeks ago
  4. tyson925 9 times, last 1 month ago
  5. rp 1 times, last 1 month ago
54 more registered users
41 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

    /Users/Shared/Jenkins/Home/jobs/tets/builds/2014-03-31_17-56-04/archive/foo/baz (No such file or directory)

    at java.io.FileInputStream.open()
  2. Java RT
    FileInputStream.<init>
    1. java.io.FileInputStream.open(Native Method)
    2. java.io.FileInputStream.<init>(FileInputStream.java:138)
    2 frames
  3. Hudson
    FilePath.copyTo
    1. hudson.FilePath$34.invoke(FilePath.java:1797)
    2. hudson.FilePath$34.invoke(FilePath.java:1792)
    3. hudson.FilePath.act(FilePath.java:916)
    4. hudson.FilePath.act(FilePath.java:889)
    5. hudson.FilePath.copyTo(FilePath.java:1792)
    5 frames
  4. hudson.plugins.copyartifact
    CopyArtifact.perform
    1. hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:79)
    2. hudson.plugins.copyartifact.FingerprintingCopyMethod.copyAll(FingerprintingCopyMethod.java:68)
    3. hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:368)
    4. hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:306)
    4 frames
  5. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:781)
    3. hudson.model.Build$BuildExecution.build(Build.java:199)
    4. hudson.model.Build$BuildExecution.doRun(Build.java:160)
    5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562)
    6. hudson.model.Run.execute(Run.java:1665)
    7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    8. hudson.model.ResourceController.execute(ResourceController.java:88)
    9. hudson.model.Executor.run(Executor.java:246)
    9 frames