hudson.util.IOException2: Failed to copy D:\Jenkins\.jenkins\jobs\TIER_1_BUILD_SMOKE\builds\2012-04-28_09-07-27\archive\source_settings.ini to E:\JenkinsSlave\workspace\BUILD_WINDOWS_ALL\source_settings.ini

Jenkins JIRA | Jason Swager | 5 years ago
  1. 0

    Occassionally, copyartifact will fail to copy the proper artifacts, throw and exception, and terminate the build. Suspected cause is concurrent builds attempting to retrieve the same artifacts at the same time. Our setup performs a build, then archives the output to artifacts. Several hundred test jobs will pull down those artifacts to run builds. During a typical build-and-test run, about one third of the test builds will fail trying to retrieve the artifacts. Copying a sample failure from the log files; all failures origina in the same method: FingerprintingCopyMethod.copyOne(): ERROR: Failed to copy artifacts from TIER_1_BUILD_SMOKE with filter: source_settings.ini 09:08:54 hudson.util.IOException2: Failed to copy D:\Jenkins\.jenkins\jobs\TIER_1_BUILD_SMOKE\builds\2012-04-28_09-07-27\archive\source_settings.ini to E:\JenkinsSlave\workspace\BUILD_WINDOWS_ALL\source_settings.ini 09:08:54 at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:91) 09:08:54 at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyAll(FingerprintingCopyMethod.java:63) 09:08:54 at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:243) 09:08:54 at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:215) 09:08:54 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 09:08:54 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:705) 09:08:54 at hudson.model.Build$RunnerImpl.build(Build.java:178) 09:08:54 at hudson.model.Build$RunnerImpl.doRun(Build.java:139) 09:08:54 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:475) 09:08:54 at hudson.model.Run.run(Run.java:1434) 09:08:54 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 09:08:54 at hudson.model.ResourceController.execute(ResourceController.java:88) 09:08:54 at hudson.model.Executor.run(Executor.java:239)

    Jenkins JIRA | 5 years ago | Jason Swager
    hudson.util.IOException2: Failed to copy D:\Jenkins\.jenkins\jobs\TIER_1_BUILD_SMOKE\builds\2012-04-28_09-07-27\archive\source_settings.ini to E:\JenkinsSlave\workspace\BUILD_WINDOWS_ALL\source_settings.ini
  2. 0

    Occassionally, copyartifact will fail to copy the proper artifacts, throw and exception, and terminate the build. Suspected cause is concurrent builds attempting to retrieve the same artifacts at the same time. Our setup performs a build, then archives the output to artifacts. Several hundred test jobs will pull down those artifacts to run builds. During a typical build-and-test run, about one third of the test builds will fail trying to retrieve the artifacts. Copying a sample failure from the log files; all failures origina in the same method: FingerprintingCopyMethod.copyOne(): ERROR: Failed to copy artifacts from TIER_1_BUILD_SMOKE with filter: source_settings.ini 09:08:54 hudson.util.IOException2: Failed to copy D:\Jenkins\.jenkins\jobs\TIER_1_BUILD_SMOKE\builds\2012-04-28_09-07-27\archive\source_settings.ini to E:\JenkinsSlave\workspace\BUILD_WINDOWS_ALL\source_settings.ini 09:08:54 at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:91) 09:08:54 at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyAll(FingerprintingCopyMethod.java:63) 09:08:54 at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:243) 09:08:54 at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:215) 09:08:54 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 09:08:54 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:705) 09:08:54 at hudson.model.Build$RunnerImpl.build(Build.java:178) 09:08:54 at hudson.model.Build$RunnerImpl.doRun(Build.java:139) 09:08:54 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:475) 09:08:54 at hudson.model.Run.run(Run.java:1434) 09:08:54 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 09:08:54 at hudson.model.ResourceController.execute(ResourceController.java:88) 09:08:54 at hudson.model.Executor.run(Executor.java:239)

    Jenkins JIRA | 5 years ago | Jason Swager
    hudson.util.IOException2: Failed to copy D:\Jenkins\.jenkins\jobs\TIER_1_BUILD_SMOKE\builds\2012-04-28_09-07-27\archive\source_settings.ini to E:\JenkinsSlave\workspace\BUILD_WINDOWS_ALL\source_settings.ini
  3. 0

    *Steps to reproduce :* 1.Install build-flow and envinject 2.Create a build-flow job 3.Successfully run the build-flow job 4.Restart jenkins *The following occurs:* No builds will be displayed in the history. Relevant jenkins log entry is attached. {quote} 08.08.2012 12:33:25 hudson.model.RunMap load WARNING: could not load E:\Jenkins\jobs\test111\builds\2012-07-31_17-20-02 hudson.util.IOException2: Unable to read E:\Jenkins\jobs\test111\builds\2012-07-31_17-20-02\build.xml at hudson.XmlFile.unmarshal(XmlFile.java:164) at hudson.model.Run.reload(Run.java:290) at hudson.model.Run.<init>(Run.java:279) .... Caused by: com.thoughtworks.xstream.converters.ConversionException: Could not call org.jenkinsci.plugins.envinject.EnvInjectPluginAction.readResolve() : null : Could not call org.jenkinsci.plugins.envinject.EnvInjectPluginAction.readResolve() : null ---- Debugging information ---- message : Could not call org.jenkinsci.plugins.envinject.EnvInjectPluginAction.readResolve() : null cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException cause-message : Could not call org.jenkinsci.plugins.envinject.EnvInjectPluginAction.readResolve() : null class : com.cloudbees.plugins.flow.FlowRun required-type : org.jenkinsci.plugins.envinject.EnvInjectPluginAction path : /com.cloudbees.plugins.flow.FlowRun/builds/edgeMap/entry/org.jgrapht.graph.IntrusiveEdge/target/actions/org.jenkinsci.plugins.envinject.EnvInjectPluginAction line number : 59 ------------------------------- {quote} *Note:* Manually deleting all lines containing "envinject" from Jenkins\jobs\test111\builds\2012-07-31_17-20-02\build.xml allows for the build to properly be loaded and displayed in the build history.

    Jenkins JIRA | 4 years ago | Andrei Ababei
    hudson.util.IOException2: Unable to read E:\Jenkins\jobs\test111\builds\2012-07-31_17-20-02\build.xml
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    *Steps to reproduce :* 1.Install build-flow and envinject 2.Create a build-flow job 3.Successfully run the build-flow job 4.Restart jenkins *The following occurs:* No builds will be displayed in the history. Relevant jenkins log entry is attached. {quote} 08.08.2012 12:33:25 hudson.model.RunMap load WARNING: could not load E:\Jenkins\jobs\test111\builds\2012-07-31_17-20-02 hudson.util.IOException2: Unable to read E:\Jenkins\jobs\test111\builds\2012-07-31_17-20-02\build.xml at hudson.XmlFile.unmarshal(XmlFile.java:164) at hudson.model.Run.reload(Run.java:290) at hudson.model.Run.<init>(Run.java:279) .... Caused by: com.thoughtworks.xstream.converters.ConversionException: Could not call org.jenkinsci.plugins.envinject.EnvInjectPluginAction.readResolve() : null : Could not call org.jenkinsci.plugins.envinject.EnvInjectPluginAction.readResolve() : null ---- Debugging information ---- message : Could not call org.jenkinsci.plugins.envinject.EnvInjectPluginAction.readResolve() : null cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException cause-message : Could not call org.jenkinsci.plugins.envinject.EnvInjectPluginAction.readResolve() : null class : com.cloudbees.plugins.flow.FlowRun required-type : org.jenkinsci.plugins.envinject.EnvInjectPluginAction path : /com.cloudbees.plugins.flow.FlowRun/builds/edgeMap/entry/org.jgrapht.graph.IntrusiveEdge/target/actions/org.jenkinsci.plugins.envinject.EnvInjectPluginAction line number : 59 ------------------------------- {quote} *Note:* Manually deleting all lines containing "envinject" from Jenkins\jobs\test111\builds\2012-07-31_17-20-02\build.xml allows for the build to properly be loaded and displayed in the build history.

    Jenkins JIRA | 4 years ago | Andrei Ababei
    hudson.util.IOException2: Unable to read E:\Jenkins\jobs\test111\builds\2012-07-31_17-20-02\build.xml
  6. 0

    Before the update from (approx.) 1.357 to 1.367 the copying of a large artifact file (~2.1 GByte) worked fine. The changelog says that in release 1.363 the bundled Ant version, which is used internally by Hudson to copy files, was updated to 1.8.1 (JENKINS-6562). I assume that this might cause the problems. I have downgraded Hudson to 1.362 and the archiving was successful again. The following stack trace supports this assumption: ERROR: Artefakte konnten nicht archiviert werden: >>stripped name of artifact file<< hudson.util.IOException2: Failed to copy e:\hudson_home\jobs\>>stripped some path<<\workspace/>>stripped name of artifact<< to e:\hudson_home\jobs\>>stripped some path<<\builds\2010-07-21_09-54-24\archive at hudson.FilePath$31.invoke(FilePath.java:1451) at hudson.FilePath$31.invoke(FilePath.java:1418) at hudson.FilePath.act(FilePath.java:753) at hudson.FilePath.act(FilePath.java:735) at hudson.FilePath.copyRecursiveTo(FilePath.java:1418) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:117) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558) 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:1280) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:129) Caused by: Failed to copy e:\hudson_home\jobs\>>stripped some path<<\workspace\>>stripped name of artifact file<< to e:\hudson_home\jobs\>>stripped some path<<\builds\2010-07-21_09-54-24\archive\>>stripped name of artifact file<< due to Falscher Parameter at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:853) at hudson.FilePath$31$1CopyImpl.doFileOperations(FilePath.java:1434) at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:523) at hudson.FilePath$31.invoke(FilePath.java:1448) ... 15 more Caused by: java.io.IOException: Falscher Parameter at sun.nio.ch.FileChannelImpl.map0(Native Method) at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:747) at sun.nio.ch.FileChannelImpl.transferToTrustedChannel(FileChannelImpl.java:450) at sun.nio.ch.FileChannelImpl.transferTo(FileChannelImpl.java:523) at org.apache.tools.ant.util.ResourceUtils.copyResource(ResourceUtils.java:475) at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:519) at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:481) at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:310) at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:841) ... 18 more The German parts in the description say: "artifacts could not be archived" and "Failed to copy [...] due to wrong parameter"

    Jenkins JIRA | 6 years ago | ma_ids
    hudson.util.IOException2: Failed to copy e:\hudson_home\jobs\>>stripped some path<<\workspace/>>stripped name of artifact<< to e:\hudson_home\jobs\>>stripped some path<<\builds\2010-07-21_09-54-24\archive

    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. hudson.util.IOException2

      Failed to copy D:\Jenkins\.jenkins\jobs\TIER_1_BUILD_SMOKE\builds\2012-04-28_09-07-27\archive\source_settings.ini to E:\JenkinsSlave\workspace\BUILD_WINDOWS_ALL\source_settings.ini

      at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne()
    2. hudson.plugins.copyartifact
      CopyArtifact.perform
      1. hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:91)
      2. hudson.plugins.copyartifact.FingerprintingCopyMethod.copyAll(FingerprintingCopyMethod.java:63)
      3. hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:243)
      4. hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:215)
      4 frames
    3. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:705)
      3. hudson.model.Build$RunnerImpl.build(Build.java:178)
      4. hudson.model.Build$RunnerImpl.doRun(Build.java:139)
      5. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:475)
      6. hudson.model.Run.run(Run.java:1434)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:239)
      9 frames