hudson.util.IOException2: hudson.util.IOException2: Failed to extract /home/jenkins-slave9/workspace/wkw_cssjs/unitTesting/build/code-browser/**/*

Jenkins JIRA | Markus Schulte | 4 years ago
  1. 0

    Hi, in my jenkins-setup i am using a master/slave system. When a Job is executed, everything works fine until htmlpublisher is supposed to archive one HTML report. Usually the execution hangs, sometimes an exception is reported[1] As you can see, htmlpublisher tries to extract /home/jenkins-slave9/.../code-browser from slave, this fails. Problem occurred in Jenkins v. 1.456, I tried some versions in between, also the current v. 1.483 is affected. [1] {code} [htmlpublisher] Archiving HTML reports... [htmlpublisher] Archiving at BUILD level /home/jenkins-slave9/workspace/wkw_cssjs/unitTesting/build/code-browser to /var/wkw/jenkins/jobs/wkw_cssjs/builds/2012-09-25_10-30-44/htmlreports/Code_Browser FATAL: HTML Publisher failure hudson.util.IOException2: hudson.util.IOException2: Failed to extract /home/jenkins-slave9/workspace/wkw_cssjs/unitTesting/build/code-browser/**/* at hudson.FilePath.readFromTar(FilePath.java:1936) at hudson.FilePath.copyRecursiveTo(FilePath.java:1848) at hudson.FilePath.copyRecursiveTo(FilePath.java:1756) at htmlpublisher.HtmlPublisher.perform(HtmlPublisher.java:212) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1527) 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: java.io.IOException at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:175) 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.util.IOUtils.copy(IOUtils.java:37) at hudson.FilePath.readFromTar(FilePath.java:1926) ... 12 more at hudson.FilePath.copyRecursiveTo(FilePath.java:1855) at hudson.FilePath.copyRecursiveTo(FilePath.java:1756) at htmlpublisher.HtmlPublisher.perform(HtmlPublisher.java:212) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1527) 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: java.util.concurrent.ExecutionException: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel at hudson.remoting.Request$1.get(Request.java:278) at hudson.remoting.Request$1.get(Request.java:210) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59) at hudson.FilePath.copyRecursiveTo(FilePath.java:1851) ... 11 more Caused by: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel at hudson.remoting.Request.abort(Request.java:299) at hudson.remoting.Channel.terminate(Channel.java:724) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:69) Caused by: java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2553) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at hudson.remoting.Command.readFrom(Command.java:90) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) {code}

    Jenkins JIRA | 4 years ago | Markus Schulte
    hudson.util.IOException2: hudson.util.IOException2: Failed to extract /home/jenkins-slave9/workspace/wkw_cssjs/unitTesting/build/code-browser/**/*
  2. 0

    Hi, in my jenkins-setup i am using a master/slave system. When a Job is executed, everything works fine until htmlpublisher is supposed to archive one HTML report. Usually the execution hangs, sometimes an exception is reported[1] As you can see, htmlpublisher tries to extract /home/jenkins-slave9/.../code-browser from slave, this fails. Problem occurred in Jenkins v. 1.456, I tried some versions in between, also the current v. 1.483 is affected. [1] {code} [htmlpublisher] Archiving HTML reports... [htmlpublisher] Archiving at BUILD level /home/jenkins-slave9/workspace/wkw_cssjs/unitTesting/build/code-browser to /var/wkw/jenkins/jobs/wkw_cssjs/builds/2012-09-25_10-30-44/htmlreports/Code_Browser FATAL: HTML Publisher failure hudson.util.IOException2: hudson.util.IOException2: Failed to extract /home/jenkins-slave9/workspace/wkw_cssjs/unitTesting/build/code-browser/**/* at hudson.FilePath.readFromTar(FilePath.java:1936) at hudson.FilePath.copyRecursiveTo(FilePath.java:1848) at hudson.FilePath.copyRecursiveTo(FilePath.java:1756) at htmlpublisher.HtmlPublisher.perform(HtmlPublisher.java:212) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1527) 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: java.io.IOException at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:175) 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.util.IOUtils.copy(IOUtils.java:37) at hudson.FilePath.readFromTar(FilePath.java:1926) ... 12 more at hudson.FilePath.copyRecursiveTo(FilePath.java:1855) at hudson.FilePath.copyRecursiveTo(FilePath.java:1756) at htmlpublisher.HtmlPublisher.perform(HtmlPublisher.java:212) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1527) 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: java.util.concurrent.ExecutionException: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel at hudson.remoting.Request$1.get(Request.java:278) at hudson.remoting.Request$1.get(Request.java:210) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59) at hudson.FilePath.copyRecursiveTo(FilePath.java:1851) ... 11 more Caused by: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel at hudson.remoting.Request.abort(Request.java:299) at hudson.remoting.Channel.terminate(Channel.java:724) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:69) Caused by: java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2553) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at hudson.remoting.Command.readFrom(Command.java:90) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) {code}

    Jenkins JIRA | 4 years ago | Markus Schulte
    hudson.util.IOException2: hudson.util.IOException2: Failed to extract /home/jenkins-slave9/workspace/wkw_cssjs/unitTesting/build/code-browser/**/*
  3. 0

    Copy files back to master fails, mail notification says otherwise

    Google Groups | 6 years ago | S, Venkatraman
    hudson.util.IOException2: Failed to extract /home/userdata/hudson/workspace/build/axis1/value1/label/label2/*.properties,output/*.tgz,info/*.html,info/*.txt
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Child jobs occasionally fail to copy logs back to master node with {noformat} INFO: test-job Ā» tomcat-test,suite1 #3 main build action completed: SUCCESS Dec 30, 2011 7:24:16 PM hudson.model.Run run INFO: test-job #3 main build action completed: UNSTABLE Dec 30, 2011 7:24:16 PM hudson.model.AbstractBuild$AbstractRunner performAllBuildSteps WARNING: Publisher com.michelin.cio.hudson.plugins.copytoslave.CopyToMasterNotifier aborted due to exception hudson.util.IOException2: hudson.util.IOException2: Failed to extract /home/a/workspace/test-job/label/tomcat-test/suites/suite1/log/* at hudson.FilePath.readFromTar(FilePath.java:1698) at hudson.FilePath.copyRecursiveTo(FilePath.java:1616) at com.michelin.cio.hudson.plugins.copytoslave.CopyToMasterNotifier.perform(CopyToMasterNotifier.java:82) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1448) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: java.io.IOException at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:175) 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.util.IOUtils.copy(IOUtils.java:36) at hudson.FilePath.readFromTar(FilePath.java:1690) ... 11 more at hudson.FilePath.copyRecursiveTo(FilePath.java:1623) at com.michelin.cio.hudson.plugins.copytoslave.CopyToMasterNotifier.perform(CopyToMasterNotifier.java:82) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1448) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: java.util.concurrent.ExecutionException: java.io.IOException: Pipe is already closed at hudson.remoting.Channel$2.adapt(Channel.java:714) at hudson.remoting.Channel$2.adapt(Channel.java:709) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59) at hudson.FilePath.copyRecursiveTo(FilePath.java:1619) ... 10 more Caused by: java.io.IOException: Pipe is already closed at hudson.remoting.PipeWindow.checkDeath(PipeWindow.java:83) at hudson.remoting.PipeWindow$Real.get(PipeWindow.java:171) at hudson.remoting.ProxyOutputStream._write(ProxyOutputStream.java:118) at hudson.remoting.ProxyOutputStream.write(ProxyOutputStream.java:103) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:109) at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:161) at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:118) at java.util.zip.GZIPOutputStream.write(GZIPOutputStream.java:72) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:105) at org.apache.tools.tar.TarBuffer.writeBlock(TarBuffer.java:410) at org.apache.tools.tar.TarBuffer.writeRecord(TarBuffer.java:351) at hudson.org.apache.tools.tar.TarOutputStream.writeEOFRecord(TarOutputStream.java:356) at hudson.org.apache.tools.tar.TarOutputStream.finish(TarOutputStream.java:137) at hudson.org.apache.tools.tar.TarOutputStream.close(TarOutputStream.java:149) at hudson.util.io.TarArchiver.close(TarArchiver.java:119) at hudson.FilePath.writeToTar(FilePath.java:1670) at hudson.FilePath.access$1000(FilePath.java:164) at hudson.FilePath$33.invoke(FilePath.java:1609) at hudson.FilePath$33.invoke(FilePath.java:1606) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2030) 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(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.io.IOException: Pipe is already closed at hudson.remoting.FastPipedOutputStream.write(FastPipedOutputStream.java:147) at hudson.remoting.FastPipedOutputStream.write(FastPipedOutputStream.java:131) at hudson.remoting.ProxyOutputStream$Chunk$1.run(ProxyOutputStream.java:211) ... 6 more Caused by: hudson.remoting.FastPipedInputStream$ClosedBy: The pipe was closed at... at hudson.remoting.FastPipedInputStream.close(FastPipedInputStream.java:112) at java.io.FilterInputStream.close(FilterInputStream.java:155) at java.util.zip.InflaterInputStream.close(InflaterInputStream.java:210) at java.util.zip.GZIPInputStream.close(GZIPInputStream.java:113) at org.apache.tools.tar.TarBuffer.close(TarBuffer.java:456) at hudson.org.apache.tools.tar.TarInputStream.close(TarInputStream.java:110) at hudson.FilePath.readFromTar(FilePath.java:1700) at hudson.FilePath.copyRecursiveTo(FilePath.java:1616) at com.michelin.cio.hudson.plugins.copytoslave.CopyToMasterNotifier.perform(CopyToMasterNotifier.java:82) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1448) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) {noformat} Pipe is closed because it is interrupted from {noformat} Thread 'Thread[Executor #2 for pylon : executing test-job y Ā» tomcat-test,suite1 #3,5,main] interrupted java.lang.Throwable at java.lang.Thread.interrupt(Thread.java:895) at hudson.model.Executor.interrupt(Executor.java:146) at hudson.model.Executor.interrupt(Executor.java:127) at hudson.model.Executor.interrupt(Executor.java:115) at hudson.matrix.MatrixBuild$RunnerImpl.doRun(MatrixBuild.java:320) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:462) at hudson.model.Run.run(Run.java:1404) at hudson.matrix.MatrixBuild.run(MatrixBuild.java:219) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) at hudson.model.OneOffExecutor.run(OneOffExecutor.java:66) {noformat} As far as I can tell this happens because hudson.model.Run#run sets state = State.POST_PRODUCTION; before job.cleanUp(listener); which makes hudson.matrix.MatrixBuild#waitForCompletion believe that build has completed and interrupt the executor while copy to slave is still in progress.

    Jenkins JIRA | 5 years ago | Lauri Tulmin
    hudson.util.IOException2: hudson.util.IOException2: Failed to extract /home/a/workspace/test-job/label/tomcat-test/suites/suite1/log/*
  6. 0

    Child jobs occasionally fail to copy logs back to master node with {noformat} INFO: test-job Ā» tomcat-test,suite1 #3 main build action completed: SUCCESS Dec 30, 2011 7:24:16 PM hudson.model.Run run INFO: test-job #3 main build action completed: UNSTABLE Dec 30, 2011 7:24:16 PM hudson.model.AbstractBuild$AbstractRunner performAllBuildSteps WARNING: Publisher com.michelin.cio.hudson.plugins.copytoslave.CopyToMasterNotifier aborted due to exception hudson.util.IOException2: hudson.util.IOException2: Failed to extract /home/a/workspace/test-job/label/tomcat-test/suites/suite1/log/* at hudson.FilePath.readFromTar(FilePath.java:1698) at hudson.FilePath.copyRecursiveTo(FilePath.java:1616) at com.michelin.cio.hudson.plugins.copytoslave.CopyToMasterNotifier.perform(CopyToMasterNotifier.java:82) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1448) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: java.io.IOException at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:175) 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.util.IOUtils.copy(IOUtils.java:36) at hudson.FilePath.readFromTar(FilePath.java:1690) ... 11 more at hudson.FilePath.copyRecursiveTo(FilePath.java:1623) at com.michelin.cio.hudson.plugins.copytoslave.CopyToMasterNotifier.perform(CopyToMasterNotifier.java:82) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1448) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: java.util.concurrent.ExecutionException: java.io.IOException: Pipe is already closed at hudson.remoting.Channel$2.adapt(Channel.java:714) at hudson.remoting.Channel$2.adapt(Channel.java:709) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59) at hudson.FilePath.copyRecursiveTo(FilePath.java:1619) ... 10 more Caused by: java.io.IOException: Pipe is already closed at hudson.remoting.PipeWindow.checkDeath(PipeWindow.java:83) at hudson.remoting.PipeWindow$Real.get(PipeWindow.java:171) at hudson.remoting.ProxyOutputStream._write(ProxyOutputStream.java:118) at hudson.remoting.ProxyOutputStream.write(ProxyOutputStream.java:103) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:109) at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:161) at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:118) at java.util.zip.GZIPOutputStream.write(GZIPOutputStream.java:72) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:105) at org.apache.tools.tar.TarBuffer.writeBlock(TarBuffer.java:410) at org.apache.tools.tar.TarBuffer.writeRecord(TarBuffer.java:351) at hudson.org.apache.tools.tar.TarOutputStream.writeEOFRecord(TarOutputStream.java:356) at hudson.org.apache.tools.tar.TarOutputStream.finish(TarOutputStream.java:137) at hudson.org.apache.tools.tar.TarOutputStream.close(TarOutputStream.java:149) at hudson.util.io.TarArchiver.close(TarArchiver.java:119) at hudson.FilePath.writeToTar(FilePath.java:1670) at hudson.FilePath.access$1000(FilePath.java:164) at hudson.FilePath$33.invoke(FilePath.java:1609) at hudson.FilePath$33.invoke(FilePath.java:1606) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2030) 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(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.io.IOException: Pipe is already closed at hudson.remoting.FastPipedOutputStream.write(FastPipedOutputStream.java:147) at hudson.remoting.FastPipedOutputStream.write(FastPipedOutputStream.java:131) at hudson.remoting.ProxyOutputStream$Chunk$1.run(ProxyOutputStream.java:211) ... 6 more Caused by: hudson.remoting.FastPipedInputStream$ClosedBy: The pipe was closed at... at hudson.remoting.FastPipedInputStream.close(FastPipedInputStream.java:112) at java.io.FilterInputStream.close(FilterInputStream.java:155) at java.util.zip.InflaterInputStream.close(InflaterInputStream.java:210) at java.util.zip.GZIPInputStream.close(GZIPInputStream.java:113) at org.apache.tools.tar.TarBuffer.close(TarBuffer.java:456) at hudson.org.apache.tools.tar.TarInputStream.close(TarInputStream.java:110) at hudson.FilePath.readFromTar(FilePath.java:1700) at hudson.FilePath.copyRecursiveTo(FilePath.java:1616) at com.michelin.cio.hudson.plugins.copytoslave.CopyToMasterNotifier.perform(CopyToMasterNotifier.java:82) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1448) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) {noformat} Pipe is closed because it is interrupted from {noformat} Thread 'Thread[Executor #2 for pylon : executing test-job y Ā» tomcat-test,suite1 #3,5,main] interrupted java.lang.Throwable at java.lang.Thread.interrupt(Thread.java:895) at hudson.model.Executor.interrupt(Executor.java:146) at hudson.model.Executor.interrupt(Executor.java:127) at hudson.model.Executor.interrupt(Executor.java:115) at hudson.matrix.MatrixBuild$RunnerImpl.doRun(MatrixBuild.java:320) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:462) at hudson.model.Run.run(Run.java:1404) at hudson.matrix.MatrixBuild.run(MatrixBuild.java:219) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) at hudson.model.OneOffExecutor.run(OneOffExecutor.java:66) {noformat} As far as I can tell this happens because hudson.model.Run#run sets state = State.POST_PRODUCTION; before job.cleanUp(listener); which makes hudson.matrix.MatrixBuild#waitForCompletion believe that build has completed and interrupt the executor while copy to slave is still in progress.

    Jenkins JIRA | 5 years ago | Lauri Tulmin
    hudson.util.IOException2: hudson.util.IOException2: Failed to extract /home/a/workspace/test-job/label/tomcat-test/suites/suite1/log/*

    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

      No message provided

      at hudson.remoting.FastPipedInputStream.read()
    2. Hudson :: Remoting Layer
      FastPipedInputStream.read
      1. hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:175)
      1 frame
    3. Hudson
      HeadBufferingStream.read
      1. hudson.util.HeadBufferingStream.read(HeadBufferingStream.java:61)
      1 frame
    4. Java RT
      GZIPInputStream.read
      1. java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:221)
      2. java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141)
      3. java.util.zip.GZIPInputStream.read(GZIPInputStream.java:92)
      3 frames
    5. Ant
      TarBuffer.readRecord
      1. org.apache.tools.tar.TarBuffer.readBlock(TarBuffer.java:257)
      2. org.apache.tools.tar.TarBuffer.readRecord(TarBuffer.java:223)
      2 frames
    6. Hudson
      TarInputStream.read
      1. hudson.org.apache.tools.tar.TarInputStream.read(TarInputStream.java:345)
      1 frame
    7. Java RT
      FilterInputStream.read
      1. java.io.FilterInputStream.read(FilterInputStream.java:90)
      1 frame
    8. Commons IO
      IOUtils.copy
      1. org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1025)
      2. org.apache.commons.io.IOUtils.copy(IOUtils.java:999)
      2 frames
    9. Hudson
      FilePath.copyRecursiveTo
      1. hudson.util.IOUtils.copy(IOUtils.java:37)
      2. hudson.FilePath.readFromTar(FilePath.java:1926)
      3. hudson.FilePath.copyRecursiveTo(FilePath.java:1848)
      4. hudson.FilePath.copyRecursiveTo(FilePath.java:1756)
      4 frames
    10. htmlpublisher
      HtmlPublisher.perform
      1. htmlpublisher.HtmlPublisher.perform(HtmlPublisher.java:212)
      1 frame
    11. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692)
      4. hudson.model.Build$BuildExecution.post2(Build.java:183)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639)
      6. hudson.model.Run.execute(Run.java:1527)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:236)
      9 frames