hudson.util.IOException2: hudson.util.IOException2: Failed to extract C:\HudsonOnHudson\workspace\Hudson Main\jdk/SUN JDK 6.0/label/Windows/**/war/target/hudson.war

Jenkins JIRA | redsolo | 7 years ago
  1. 0

    I just had this build problem, that a job that normally takes 5-10 mins (building hudson/main at hudson.ramfelt.se) was still running after an hour. The build had stopped at "Archiving artifacts", which is a simple "**/war/target/hudson.war". The job was executed on a Hudson windows machine running JNLP. This may be related to that the Hudson just was updated to 1.236 and Im not sure what version the JNLP slave is using. Killing the job through the web UI, generated the below exception stack. For the job itself: http://hudson.ramfelt.se/job/Hudson%20Main/139/jdk=SUN%20JDK%206.0,label=Windows /console ERROR: Failed to archive artifacts: **/war/target/hudson.war hudson.util.IOException2: hudson.util.IOException2: Failed to extract C:\HudsonOnHudson\workspace\Hudson Main\jdk/SUN JDK 6.0/label/Windows/**/war/target/hudson.war at hudson.FilePath.readFromTar(FilePath.java:1731) at hudson.FilePath.copyRecursiveTo(FilePath.java:1402) 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:480) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java :466) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java :454) at hudson.model.Build$RunnerImpl.post2(Build.java:146) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:438) at hudson.model.Run.run(Run.java:1143) at hudson.matrix.MatrixRun.run(MatrixRun.java:130) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:123) Caused by: java.io.IOException at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:161) at hudson.util.HeadBufferingStream.read(HeadBufferingStream.java:61) at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:221) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141) at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:92) at org.apache.tools.tar.TarBuffer.readBlock(TarBuffer.java:257) at org.apache.tools.tar.TarBuffer.readRecord(TarBuffer.java:223) at hudson.org.apache.tools.tar.TarInputStream.read(TarInputStream.java:345) at java.io.FilterInputStream.read(FilterInputStream.java:90) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1025) at org.apache.commons.io.IOUtils.copy(IOUtils.java:999) at hudson.FilePath.readFromTar(FilePath.java:1716) ... 12 more at hudson.FilePath.copyRecursiveTo(FilePath.java:1409) 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:480) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java :466) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java :454) at hudson.model.Build$RunnerImpl.post2(Build.java:146) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:438) at hudson.model.Run.run(Run.java:1143) at hudson.matrix.MatrixRun.run(MatrixRun.java:130) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:123) Caused by: java.util.concurrent.ExecutionException: hudson.remoting.RequestAbortedException: java.net.SocketException: Connection timed out at hudson.remoting.Request$1.get(Request.java:210) at hudson.remoting.Request$1.get(Request.java:165) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59) at hudson.FilePath.copyRecursiveTo(FilePath.java:1405) ... 11 more Caused by: hudson.remoting.RequestAbortedException: java.net.SocketException: Connection timed out at hudson.remoting.Request.abort(Request.java:231) at hudson.remoting.Channel.terminate(Channel.java:596) at hudson.remoting.Channel$ReaderThread.run(Channel.java:871) Caused by: java.net.SocketException: Connection timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read(BufferedInputStream.java:237) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2249) at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2542) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2 552) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.Channel$ReaderThread.run(Channel.java:851)

    Jenkins JIRA | 7 years ago | redsolo
    hudson.util.IOException2: hudson.util.IOException2: Failed to extract C:\HudsonOnHudson\workspace\Hudson Main\jdk/SUN JDK 6.0/label/Windows/**/war/target/hudson.war
  2. 0

    [JENKINS-5073] hudson.util.IOException2: Failed to join the process - on a Windows slave - Jenkins JIRA

    jenkins-ci.org | 1 year ago
    hudson.util.IOException2: remote file operation failed: /tmp/hudson6048046841607430352.sh at hudson.remoting.Channel@af5ea0: (Ubuntu)
  3. 0

    Failed to join process v1.327/1.328 - crbeng - net.java.dev.hudson.users - MarkMail

    markmail.org | 1 year ago
    hudson.util.IOException2: Failed to join the process
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When Archive the Artifacts fails, e.g. when disk is full, still build is successful! This applies to the built-in "archive the artifacts" as well as to "archive for clone workspace SCM". Seems to be related to JENKINS-2058. Log output (sorry, partly in German; translations behind "--->") -----------------------------------8<------------------------------------- Archiviere Artefakte ---> archiving artifacts ERROR: Artefakte konnten nicht archiviert werden: fooProject/** ---> artifacts could not be archived hudson.util.IOException2: Failed to copy C:\BuildRoot\Config\.hudson\jobs\fooProject-barBranch\workspace/fooProject/** to C:\BuildRoot\Config\.hudson\jobs\fooProject-barBranch\builds\2010-08-05_14-32-18\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:1281) 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 C:\BuildRoot\Config\.hudson\jobs\fooProject-barBranch\workspace\fooProject\fooBar\fooBarProject to C:\BuildRoot\Config\.hudson\jobs\fooProject-barBranch\builds\2010-08-05_14-32-18\archive\fooProject\fooBar\fooBarProject due to Es steht nicht genug Speicherplatz auf dem Datenträger zur Verfügung ---> there isn't enough disk space available 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: Es steht nicht genug Speicherplatz auf dem Datenträger zur Verfügung ---> there isn't enough disk space available at sun.nio.ch.FileDispatcher.write0(Native Method) at sun.nio.ch.FileDispatcher.write(Unknown Source) at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source) at sun.nio.ch.IOUtil.write(Unknown Source) at sun.nio.ch.FileChannelImpl.write(Unknown Source) at sun.nio.ch.FileChannelImpl.transferToTrustedChannel(Unknown Source) at sun.nio.ch.FileChannelImpl.transferTo(Unknown Source) 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 Notifying upstream projects of job completion Finished: SUCCESS -----------------------------------8<-------------------------------------

    Jenkins JIRA | 6 years ago | Harry G.
    hudson.util.IOException2: Failed to copy C:\BuildRoot\Config\.hudson\jobs\fooProject-barBranch\workspace/fooProject/** to C:\BuildRoot\Config\.hudson\jobs\fooProject-barBranch\builds\2010-08-05_14-32-18\archive
  6. 0

    When Archive the Artifacts fails, e.g. when disk is full, still build is successful! This applies to the built-in "archive the artifacts" as well as to "archive for clone workspace SCM". Seems to be related to JENKINS-2058. Log output (sorry, partly in German; translations behind "--->") -----------------------------------8<------------------------------------- Archiviere Artefakte ---> archiving artifacts ERROR: Artefakte konnten nicht archiviert werden: fooProject/** ---> artifacts could not be archived hudson.util.IOException2: Failed to copy C:\BuildRoot\Config\.hudson\jobs\fooProject-barBranch\workspace/fooProject/** to C:\BuildRoot\Config\.hudson\jobs\fooProject-barBranch\builds\2010-08-05_14-32-18\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:1281) 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 C:\BuildRoot\Config\.hudson\jobs\fooProject-barBranch\workspace\fooProject\fooBar\fooBarProject to C:\BuildRoot\Config\.hudson\jobs\fooProject-barBranch\builds\2010-08-05_14-32-18\archive\fooProject\fooBar\fooBarProject due to Es steht nicht genug Speicherplatz auf dem Datenträger zur Verfügung ---> there isn't enough disk space available 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: Es steht nicht genug Speicherplatz auf dem Datenträger zur Verfügung ---> there isn't enough disk space available at sun.nio.ch.FileDispatcher.write0(Native Method) at sun.nio.ch.FileDispatcher.write(Unknown Source) at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source) at sun.nio.ch.IOUtil.write(Unknown Source) at sun.nio.ch.FileChannelImpl.write(Unknown Source) at sun.nio.ch.FileChannelImpl.transferToTrustedChannel(Unknown Source) at sun.nio.ch.FileChannelImpl.transferTo(Unknown Source) 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 Notifying upstream projects of job completion Finished: SUCCESS -----------------------------------8<-------------------------------------

    Jenkins JIRA | 6 years ago | Harry G.
    hudson.util.IOException2: Failed to copy C:\BuildRoot\Config\.hudson\jobs\fooProject-barBranch\workspace/fooProject/** to C:\BuildRoot\Config\.hudson\jobs\fooProject-barBranch\builds\2010-08-05_14-32-18\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

      hudson.util.IOException2: Failed to extract C:\HudsonOnHudson\workspace\Hudson Main\jdk/SUN JDK 6.0/label/Windows/**/war/target/hudson.war

      at hudson.FilePath.readFromTar()
    2. Hudson
      BuildStepMonitor$1.perform
      1. hudson.FilePath.readFromTar(FilePath.java:1731)
      2. hudson.FilePath.copyRecursiveTo(FilePath.java:1402)
      3. hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:117)
      4. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      4 frames