hudson.util.IOException2: Failed to copy /var/lib/jenkins/jobs/PROJECT_1/builds/2012-04-04_09-44-14/archive/deploy/some_file.txt to c:\jenkins\workspace\PROJECT_2\deploy\some_file.txt

Jenkins JIRA | Christoph Jaehnigen | 4 years ago
  1. 0

    We're experiencing the following exception when trying to copy artifacts: {code} ERROR: Failed to copy artifacts from PROJECT_1 with filter: deploy/**/*.* hudson.util.IOException2: Failed to copy /var/lib/jenkins/jobs/PROJECT_1/builds/2012-04-04_09-44-14/archive/deploy/some_file.txt to c:\jenkins\workspace\PROJECT_2\deploy\some_file.txt at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:91) at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyAll(FingerprintingCopyMethod.java:63) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:243) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:215) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) 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:499) at hudson.model.Run.execute(Run.java:1502) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: hudson.util.IOException2: remote file operation failed: c:\jenkins\workspace\PROJECT_2\deploy\some_file.txt at hudson.remoting.Channel@30e16a97:TW-FEQS-XP-LON at hudson.FilePath.act(FilePath.java:838) at hudson.FilePath.act(FilePath.java:824) at hudson.FilePath.touch(FilePath.java:1170) at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:79) ... 12 more Caused by: java.io.IOException: Failed to set the timestamp of c:\jenkins\workspace\PROJECT_2\deploy\some_file.txt to 1333525392000 at hudson.FilePath$19.invoke(FilePath.java:1176) at hudson.FilePath$19.invoke(FilePath.java:1170) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2196) 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 hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 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) Build step 'Copy artifacts from another project' marked build as failure {code} We followed the workaround mentioned in issue 9456. Be aware that the master is a Linux machine and the slave is Windows.

    Jenkins JIRA | 4 years ago | Christoph Jaehnigen
    hudson.util.IOException2: Failed to copy /var/lib/jenkins/jobs/PROJECT_1/builds/2012-04-04_09-44-14/archive/deploy/some_file.txt to c:\jenkins\workspace\PROJECT_2\deploy\some_file.txt
  2. 0

    We're experiencing the following exception when trying to copy artifacts: {code} ERROR: Failed to copy artifacts from PROJECT_1 with filter: deploy/**/*.* hudson.util.IOException2: Failed to copy /var/lib/jenkins/jobs/PROJECT_1/builds/2012-04-04_09-44-14/archive/deploy/some_file.txt to c:\jenkins\workspace\PROJECT_2\deploy\some_file.txt at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:91) at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyAll(FingerprintingCopyMethod.java:63) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:243) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:215) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) 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:499) at hudson.model.Run.execute(Run.java:1502) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: hudson.util.IOException2: remote file operation failed: c:\jenkins\workspace\PROJECT_2\deploy\some_file.txt at hudson.remoting.Channel@30e16a97:TW-FEQS-XP-LON at hudson.FilePath.act(FilePath.java:838) at hudson.FilePath.act(FilePath.java:824) at hudson.FilePath.touch(FilePath.java:1170) at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:79) ... 12 more Caused by: java.io.IOException: Failed to set the timestamp of c:\jenkins\workspace\PROJECT_2\deploy\some_file.txt to 1333525392000 at hudson.FilePath$19.invoke(FilePath.java:1176) at hudson.FilePath$19.invoke(FilePath.java:1170) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2196) 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 hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 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) Build step 'Copy artifacts from another project' marked build as failure {code} We followed the workaround mentioned in issue 9456. Be aware that the master is a Linux machine and the slave is Windows.

    Jenkins JIRA | 4 years ago | Christoph Jaehnigen
    hudson.util.IOException2: Failed to copy /var/lib/jenkins/jobs/PROJECT_1/builds/2012-04-04_09-44-14/archive/deploy/some_file.txt to c:\jenkins\workspace\PROJECT_2\deploy\some_file.txt
  3. 0

    Had a working Jenkins cluster. After upgrading to 1.466.2, many of our builds started failing due to something with the automated ant installation. The console log for the build reports: Unpacking http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.1-bin.zip to C:\hudson\tools\Ant\ant1.7.1 on nightly-win3 FATAL: remote file operation failed: C:\hudson\tools\Ant\ant1.7.1\apache-ant-1.7.1 at hudson.remoting.Channel@74a62a5d:nightly-win3 hudson.util.IOException2: remote file operation failed: C:\hudson\tools\Ant\ant1.7.1\apache-ant-1.7.1 at hudson.remoting.Channel@74a62a5d:nightly-win3 at hudson.FilePath.act(FilePath.java:835) at hudson.FilePath.act(FilePath.java:821) at hudson.FilePath.moveAllChildrenTo(FilePath.java:1543) at hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:76) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:198) at hudson.tasks.Ant$AntInstallation.forNode(Ant.java:371) at hudson.tasks.Ant.perform(Ant.java:151) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:710) at hudson.model.Build$RunnerImpl.build(Build.java:178) at hudson.model.Build$RunnerImpl.doRun(Build.java:139) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:480) at hudson.model.Run.run(Run.java:1438) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239) Caused by: java.io.IOException: Failed to rename C:\hudson\tools\Ant\ant1.7.1\apache-ant-1.7.1\docs to C:\hudson\tools\Ant\ant1.7.1\docs at hudson.FilePath$32.invoke(FilePath.java:1550) at hudson.FilePath$32.invoke(FilePath.java:1543) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2193) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 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) Note that manually moving that directory works fine. Maybe Jenkins is not properly cleaning up file handles when unpacking the .zip file? This same ant configuration works fine on a Linux slave (but Linux has much less strict file locking). I have worked around the problem for now by making an ant1.7.1 and an ant1.7.1win version in the configuration, where the win version is not attempting to auto-install. Thanks! We love Jenkins :-)

    Jenkins JIRA | 4 years ago | Nathan Sharp
    hudson.util.IOException2: remote file operation failed: C:\hudson\tools\Ant\ant1.7.1\apache-ant-1.7.1 at hudson.remoting.Channel@74a62a5d:nightly-win3
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    We are facing sometimes the situation that a unit test job is successful and a mail with success is sent out to the developers but when they look into their dashboards the job is marked as failure because something went wrong when deleting the workspace on a slave. This is somehow confusing and we would be glad if there could be an option to ignore failures of the ws-cleanup plugin for the overall job outcome. 22:57:42 Recording fingerprints 22:57:42 Email was triggered for: Success 22:57:42 Sending email for trigger: Success 22:57:42 Sending email to: tests@lists.internal.net 22:57:43 22:58:14 Deleting project workspace... ERROR: Publisher hudson.plugins.ws_cleanup.WsCleanup aborted due to exception 22:58:14 hudson.util.IOException2: remote file operation failed: C:\Workspace\Some_Tests at hudson.remoting.Channel@4260877a:SLAVE7 22:58:14 at hudson.FilePath.act(FilePath.java:838) 22:58:14 at hudson.FilePath.act(FilePath.java:824) 22:58:14 at hudson.FilePath.deleteRecursive(FilePath.java:908) 22:58:14 at hudson.plugins.ws_cleanup.WsCleanup.perform(WsCleanup.java:68) 22:58:14 at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) 22:58:14 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) 22:58:14 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) 22:58:14 at hudson.model.Build$BuildExecution.cleanUp(Build.java:192) 22:58:14 at hudson.model.Run.execute(Run.java:1546) 22:58:14 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 22:58:14 at hudson.model.ResourceController.execute(ResourceController.java:88) 22:58:14 at hudson.model.Executor.run(Executor.java:236) 22:58:14 Caused by: java.io.IOException: Unable to delete C:\Workspace\Some_Tests\Bin\Debug - files in dir: [C:\Workspace\Some_Tests\Bin\Debug\XmlSchemaUtilitiesTests.pdb] 22:58:14 at hudson.Util.deleteFile(Util.java:238) 22:58:14 at hudson.Util.deleteRecursive(Util.java:289) 22:58:14 at hudson.Util.deleteContentsRecursive(Util.java:200) 22:58:14 at hudson.Util.deleteRecursive(Util.java:280) 22:58:14 at hudson.Util.deleteContentsRecursive(Util.java:200) 22:58:14 at hudson.Util.deleteRecursive(Util.java:280) 22:58:14 at hudson.Util.deleteContentsRecursive(Util.java:200) 22:58:14 at hudson.Util.deleteRecursive(Util.java:280) 22:58:14 at hudson.Util.deleteContentsRecursive(Util.java:200) 22:58:14 at hudson.Util.deleteRecursive(Util.java:280) 22:58:14 at hudson.FilePath$11.invoke(FilePath.java:910) 22:58:14 at hudson.FilePath$11.invoke(FilePath.java:908) 22:58:14 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2200) 22:58:14 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 22:58:14 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 22:58:14 at hudson.remoting.Request$2.run(Request.java:287) 22:58:14 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 22:58:14 at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 22:58:14 at java.util.concurrent.FutureTask.run(Unknown Source) 22:58:14 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 22:58:14 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 22:58:14 at hudson.remoting.Engine$1$1.run(Engine.java:60) 22:58:14 at java.lang.Thread.run(Unknown Source) 22:58:14 Notifying upstream projects of job completion 22:58:14 Finished: FAILURE

    Jenkins JIRA | 4 years ago | Dirk Kuypers
    hudson.util.IOException2: remote file operation failed: C:\Workspace\Some_Tests at hudson.remoting.Channel@4260877a:SLAVE7
  6. 0

    After upgrading Copy artifacts plugin to 1.22 I have some problems of copy on a windows XP slave. Downgrading to 1.21 solves the problem. This is the same issue as https://issues.jenkins-ci.org/browse/JENKINS-11073 ERROR: Failed to copy artifacts from job with filter: **/* hudson.util.IOException2: Failed to copy /var/lib/jenkins/jobs/(filepath).html to C:\jenkins\workspace\(filepath).html at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:91) at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyAll(FingerprintingCopyMethod.java:63) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:243) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:211) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:705) at hudson.model.Build$RunnerImpl.build(Build.java:178) at hudson.model.Build$RunnerImpl.doRun(Build.java:139) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:475) at hudson.model.Run.run(Run.java:1421) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: hudson.util.IOException2: remote file operation failed: C:\jenkins\workspace\(filepath).html at hudson.remoting.Channel@2b0857d2:build-w7 at hudson.FilePath.act(FilePath.java:828) at hudson.FilePath.act(FilePath.java:814) at hudson.FilePath.touch(FilePath.java:1160) at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:79) ... 12 more Caused by: java.io.IOException: Failed to set the timestamp of C:\jenkins\workspace\(filepath).html to 1334755712000 at hudson.FilePath$19.invoke(FilePath.java:1166) at hudson.FilePath$19.invoke(FilePath.java:1160) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2154) 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 hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 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) Build step 'Copy artifacts from another project' marked build as failure

    Jenkins JIRA | 5 years ago | Bertrand Latinville
    hudson.util.IOException2: Failed to copy /var/lib/jenkins/jobs/(filepath).html to C:\jenkins\workspace\(filepath).html

    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 set the timestamp of c:\jenkins\workspace\PROJECT_2\deploy\some_file.txt to 1333525392000

      at hudson.FilePath$19.invoke()
    2. Hudson
      FilePath$FileCallableWrapper.call
      1. hudson.FilePath$19.invoke(FilePath.java:1176)
      2. hudson.FilePath$19.invoke(FilePath.java:1170)
      3. hudson.FilePath$FileCallableWrapper.call(FilePath.java:2196)
      3 frames
    3. Hudson :: Remoting Layer
      InterceptingExecutorService$1.call
      1. hudson.remoting.UserRequest.perform(UserRequest.java:118)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      3. hudson.remoting.Request$2.run(Request.java:287)
      4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      4 frames
    4. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      2. java.util.concurrent.FutureTask.run(Unknown Source)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      4 frames
    5. Hudson :: Remoting Layer
      Engine$1$1.run
      1. hudson.remoting.Engine$1$1.run(Engine.java:60)
      1 frame
    6. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame