Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-21905

intermittent Failed to archive artifacts: Failed to extract caused by Unexpected end of ZLIB input stream

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • core
    • None

      Since approximately 1/30 we have seen 15 very intermittent archiving failures in Jenkins, of the form:

      Archiving artifacts
      ERROR: Failed to archive artifacts: versions/**, archive/**
      java.io.IOException: Failed to extract /foo/bar/slave/workspace/someJob/transfer of 7 files
      	at hudson.FilePath.readFromTar(FilePath.java:2088)
      	at hudson.FilePath.copyRecursiveTo(FilePath.java:2000)
      	at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:57)
      	at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:140)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:784)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:756)
      	at hudson.model.Build$BuildExecution.post2(Build.java:183)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:705)
      	at hudson.model.Run.execute(Run.java:1695)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:231)
      Caused by: java.io.EOFException: Unexpected end of ZLIB input stream
      	at com.jcraft.jzlib.InflaterInputStream.fill(InflaterInputStream.java:186)
      	at com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:106)
      	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.getNextEntry(TarInputStream.java:228)
      	at hudson.FilePath.readFromTar(FilePath.java:2066)
      	... 12 more
      Build step 'Archive the artifacts' changed build result to FAILURE
      

      We definitely have seen this running 1.548 and later, especially with 1.549. I cannot confirm if we saw it with 1.547 or earlier, but if so, I think it was less frequent. It seems to be a relatively new issue we are seeing.

          [JENKINS-21905] intermittent Failed to archive artifacts: Failed to extract caused by Unexpected end of ZLIB input stream

          Steve Roth added a comment -

          I saw JENKINS-19473, but this seems to be a different issue. The caused by clause is different. [in that case, it was a java.lang.ArrayIndexOutOfBoundsException]

          Steve Roth added a comment - I saw JENKINS-19473 , but this seems to be a different issue. The caused by clause is different. [in that case, it was a java.lang.ArrayIndexOutOfBoundsException]

          Steve Roth added a comment -

          Forgot to mention, we are seeing this even in the latest Jenkins version (1.551)

          Steve Roth added a comment - Forgot to mention, we are seeing this even in the latest Jenkins version (1.551)

          Jesse Glick added a comment -

          If it is reproducible, it can probably be fixed. Otherwise there is not much to go on from the stack trace. Best would be to capture a complete copy of the files which you were attempting to archive, and check whether a fresh job can just unzip those into its workspace, archive all files, and reproduce the bug.

          Jesse Glick added a comment - If it is reproducible, it can probably be fixed. Otherwise there is not much to go on from the stack trace. Best would be to capture a complete copy of the files which you were attempting to archive, and check whether a fresh job can just unzip those into its workspace, archive all files, and reproduce the bug.

          Steve Roth added a comment - - edited

          Thanks Jesse. I've been able to capture artifacts for two cases in which archiving subsequently failed with this exception. Unfortunately, I cannot repro the issue in a test job by unpacking and archiving. So it seems like there might be more to this issue than just the file-to-archive structure.

          Is there any logging I can enable which might be helpful in identifying the underlying issue?

          Steve Roth added a comment - - edited Thanks Jesse. I've been able to capture artifacts for two cases in which archiving subsequently failed with this exception. Unfortunately, I cannot repro the issue in a test job by unpacking and archiving. So it seems like there might be more to this issue than just the file-to-archive structure. Is there any logging I can enable which might be helpful in identifying the underlying issue?

          Jesse Glick added a comment -

          There is no relevant logging. Fixing this would really hinge on finding a fully reproducible test case.

          Or, someone with detailed knowledge of jzlib would need to inject low-level diagnostics, as we did for JENKINS-20618 and JENKINS-20114. Unfortunately an EOFException is very generic and I cannot think of a diagnostic other than capturing the entire stream to that point, which would be unacceptable from a performance standpoint. (How large are your artifacts?)

          It would be nice to use the standard gzip support in the JRE. Unfortunately, that seems to cause occasional 100% CPU freezes that were a major issue for many Jenkins users (worse than issues like this).

          Jesse Glick added a comment - There is no relevant logging. Fixing this would really hinge on finding a fully reproducible test case. Or, someone with detailed knowledge of jzlib would need to inject low-level diagnostics, as we did for JENKINS-20618 and JENKINS-20114 . Unfortunately an EOFException is very generic and I cannot think of a diagnostic other than capturing the entire stream to that point, which would be unacceptable from a performance standpoint. (How large are your artifacts?) It would be nice to use the standard gzip support in the JRE. Unfortunately, that seems to cause occasional 100% CPU freezes that were a major issue for many Jenkins users (worse than issues like this).

          Steve Roth added a comment -

          FWIW, I have not seen this in quite awhile. We are currently running 1.558 so it is possible this issue is no longer occurring. I will monitor for the next couple of weeks and close if I do not see it again.

          Steve Roth added a comment - FWIW, I have not seen this in quite awhile. We are currently running 1.558 so it is possible this issue is no longer occurring. I will monitor for the next couple of weeks and close if I do not see it again.

          Steve Roth added a comment -

          I have not seen this in more than a month – closing. Thanks!

          Steve Roth added a comment - I have not seen this in more than a month – closing. Thanks!

          Danny Staple added a comment -

          Is this due to the size of the artifact?

          Danny Staple added a comment - Is this due to the size of the artifact?

          morlajb added a comment -

          I have the same problem - working with the latest LTS version 1.580.1. The master runs on windows 2012R2 , and it happen when I try to archive files when I have 4 java processes on the machine - the size of the artifact are minor.
          BTW , I think it will be great to archive the files only for the failure jobs ...

          If you need any more logs I can try and repreduce it.

          morlajb added a comment - I have the same problem - working with the latest LTS version 1.580.1. The master runs on windows 2012R2 , and it happen when I try to archive files when I have 4 java processes on the machine - the size of the artifact are minor. BTW , I think it will be great to archive the files only for the failure jobs ... If you need any more logs I can try and repreduce it.

          I am running version 1.630 and have the same issue.

          • I am running a master with 3 slaves
          • It is intermittent, around once every 40 runs (5 times daily). Cannot yet determine any pattern.
          • File being archived is small (less than 40 KB)

          If anyone has any ideas on troubleshooting this or how to introduce debugging to get a reproducible case, I can try it on our servers.

          The stacktrace is as follows:
          Archiving artifacts
          ERROR: Failed to archive artifacts: apache/logs/error_log
          java.io.IOException: java.io.IOException: Failed to extract /jenkins/TWH/transfer of 1 files
          at hudson.FilePath.readFromTar(FilePath.java:2301)
          at hudson.FilePath.copyRecursiveTo(FilePath.java:2210)
          at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)
          at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:219)
          at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:75)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
          at hudson.model.Build$BuildExecution.post2(Build.java:185)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
          at hudson.model.Run.execute(Run.java:1766)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:408)
          Caused by: java.io.EOFException: Unexpected end of ZLIB input stream
          at com.jcraft.jzlib.InflaterInputStream.fill(InflaterInputStream.java:186)
          at com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:106)
          at org.apache.commons.compress.utils.IOUtils.readFully(IOUtils.java:160)
          at org.apache.commons.compress.utils.IOUtils.readFully(IOUtils.java:134)
          at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.readRecord(TarArchiveInputStream.java:419)
          at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getRecord(TarArchiveInputStream.java:388)
          at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getNextTarEntry(TarArchiveInputStream.java:269)
          at hudson.FilePath.readFromTar(FilePath.java:2279)
          ... 13 more

          at hudson.FilePath.copyRecursiveTo(FilePath.java:2217)
          at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)
          at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:219)
          at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:75)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
          at hudson.model.Build$BuildExecution.post2(Build.java:185)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
          at hudson.model.Run.execute(Run.java:1766)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:408)
          Caused by: java.util.concurrent.ExecutionException: java.io.IOException: This archives contains unclosed entries.
          at hudson.remoting.Channel$2.adapt(Channel.java:810)
          at hudson.remoting.Channel$2.adapt(Channel.java:805)
          at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
          at hudson.FilePath.copyRecursiveTo(FilePath.java:2213)
          ... 12 more
          Caused by: java.io.IOException: This archives contains unclosed entries.
          at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.finish(TarArchiveOutputStream.java:225)
          at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.close(TarArchiveOutputStream.java:241)
          at hudson.util.io.TarArchiver.close(TarArchiver.java:115)
          at hudson.FilePath.writeToTar(FilePath.java:2264)
          at hudson.FilePath.access$2100(FilePath.java:191)
          at hudson.FilePath$45.invoke(FilePath.java:2203)
          at hudson.FilePath$45.invoke(FilePath.java:2199)
          at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2691)
          at hudson.remoting.UserRequest.perform(UserRequest.java:121)
          at hudson.remoting.UserRequest.perform(UserRequest.java:49)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
          at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:745)
          at ......remote call to unit(Native Method)
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1413)
          at hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
          at hudson.remoting.Channel$2.adapt(Channel.java:808)
          ... 15 more

          Mauritz Hansen added a comment - I am running version 1.630 and have the same issue. I am running a master with 3 slaves It is intermittent, around once every 40 runs (5 times daily). Cannot yet determine any pattern. File being archived is small (less than 40 KB) If anyone has any ideas on troubleshooting this or how to introduce debugging to get a reproducible case, I can try it on our servers. The stacktrace is as follows: Archiving artifacts ERROR: Failed to archive artifacts: apache/logs/error_log java.io.IOException: java.io.IOException: Failed to extract /jenkins/TWH/transfer of 1 files at hudson.FilePath.readFromTar(FilePath.java:2301) at hudson.FilePath.copyRecursiveTo(FilePath.java:2210) at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:219) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:75) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Caused by: java.io.EOFException: Unexpected end of ZLIB input stream at com.jcraft.jzlib.InflaterInputStream.fill(InflaterInputStream.java:186) at com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:106) at org.apache.commons.compress.utils.IOUtils.readFully(IOUtils.java:160) at org.apache.commons.compress.utils.IOUtils.readFully(IOUtils.java:134) at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.readRecord(TarArchiveInputStream.java:419) at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getRecord(TarArchiveInputStream.java:388) at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getNextTarEntry(TarArchiveInputStream.java:269) at hudson.FilePath.readFromTar(FilePath.java:2279) ... 13 more at hudson.FilePath.copyRecursiveTo(FilePath.java:2217) at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:219) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:75) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Caused by: java.util.concurrent.ExecutionException: java.io.IOException: This archives contains unclosed entries. at hudson.remoting.Channel$2.adapt(Channel.java:810) at hudson.remoting.Channel$2.adapt(Channel.java:805) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59) at hudson.FilePath.copyRecursiveTo(FilePath.java:2213) ... 12 more Caused by: java.io.IOException: This archives contains unclosed entries. at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.finish(TarArchiveOutputStream.java:225) at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.close(TarArchiveOutputStream.java:241) at hudson.util.io.TarArchiver.close(TarArchiver.java:115) at hudson.FilePath.writeToTar(FilePath.java:2264) at hudson.FilePath.access$2100(FilePath.java:191) at hudson.FilePath$45.invoke(FilePath.java:2203) at hudson.FilePath$45.invoke(FilePath.java:2199) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2691) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) at ......remote call to unit(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1413) at hudson.remoting.UserResponse.retrieve(UserRequest.java:221) at hudson.remoting.Channel$2.adapt(Channel.java:808) ... 15 more

          Liya Katz added a comment -

          experience the same issue on rhel slave
          Jenkins 1.643
          CopyArtifacts plugin 1.36.1

          ERROR: Failed to archive artifacts: logs/*/
          17:48:30 java.io.IOException: java.io.IOException: Failed to extract xxx transfer of 21 files
          17:48:30 at hudson.FilePath.readFromTar(FilePath.java:2300)
          17:48:30 at hudson.FilePath.copyRecursiveTo(FilePath.java:2209)
          17:48:30 at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)
          17:48:30 at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:236)
          17:48:30 at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
          17:48:30 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          17:48:30 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
          17:48:30 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
          17:48:30 at hudson.model.Build$BuildExecution.post2(Build.java:185)
          17:48:30 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
          17:48:30 at hudson.model.Run.execute(Run.java:1763)
          17:48:30 at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
          17:48:30 at hudson.model.ResourceController.execute(ResourceController.java:98)
          17:48:30 at hudson.model.Executor.run(Executor.java:410)
          17:48:30 Caused by: java.io.EOFException: Unexpected end of ZLIB input stream
          17:48:30 at com.jcraft.jzlib.InflaterInputStream.fill(InflaterInputStream.java:186)
          17:48:30 at com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:106)
          17:48:30 at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.read(TarArchiveInputStream.java:614)
          17:48:30 at java.io.InputStream.read(InputStream.java:101)
          17:48:30 at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792)
          17:48:30 at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769)
          17:48:30 at org.apache.commons.io.IOUtils.copy(IOUtils.java:1744)
          17:48:30 at hudson.util.IOUtils.copy(IOUtils.java:40)
          17:48:30 at hudson.FilePath.readFromTar(FilePath.java:2290)
          17:48:30 ... 13 more
          17:48:30
          17:48:30 at hudson.FilePath.copyRecursiveTo(FilePath.java:2216)
          17:48:30 at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)
          17:48:30 at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:236)
          17:48:30 at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
          17:48:30 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          17:48:30 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
          17:48:30 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
          17:48:30 at hudson.model.Build$BuildExecution.post2(Build.java:185)
          17:48:30 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
          17:48:30 at hudson.model.Run.execute(Run.java:1763)
          17:48:30 at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
          17:48:30 at hudson.model.ResourceController.execute(ResourceController.java:98)
          17:48:30 at hudson.model.Executor.run(Executor.java:410)
          17:48:30 Caused by: java.util.concurrent.ExecutionException: java.io.IOException: This archives contains unclosed entries.
          17:48:30 at hudson.remoting.Channel$2.adapt(Channel.java:813)
          17:48:30 at hudson.remoting.Channel$2.adapt(Channel.java:808)
          17:48:30 at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
          17:48:30 at hudson.FilePath.copyRecursiveTo(FilePath.java:2212)
          17:48:30 ... 12 more
          17:48:30 Caused by: java.io.IOException: This archives contains unclosed entries.
          17:48:30 at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.finish(TarArchiveOutputStream.java:225)
          17:48:30 at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.close(TarArchiveOutputStream.java:241)
          17:48:30 at hudson.util.io.TarArchiver.close(TarArchiver.java:111)
          17:48:30 at hudson.FilePath.writeToTar(FilePath.java:2263)
          17:48:30 at hudson.FilePath.access$2100(FilePath.java:190)
          17:48:30 at hudson.FilePath$45.invoke(FilePath.java:2202)
          17:48:30 at hudson.FilePath$45.invoke(FilePath.java:2198)
          17:48:30 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2719)
          17:48:30 at hudson.remoting.UserRequest.perform(UserRequest.java:120)
          17:48:30 at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          17:48:30 at hudson.remoting.Request$2.run(Request.java:326)
          17:48:30 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
          17:48:30 at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          17:48:30 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          17:48:30 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          17:48:30 at java.lang.Thread.run(Thread.java:745)
          17:48:30 at ......remote call to jslave-e2e-rhel-3(Native Method)
          17:48:30 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
          17:48:30 at hudson.remoting.UserResponse.retrieve(UserRequest.java:220)
          17:48:30 at hudson.remoting.Channel$2.adapt(Channel.java:811)
          17:48:30 ... 15 more
          17:48:30 Build step 'Archive the artifacts' changed build result to FAILURE

          Liya Katz added a comment - experience the same issue on rhel slave Jenkins 1.643 CopyArtifacts plugin 1.36.1 ERROR: Failed to archive artifacts: logs/* / 17:48:30 java.io.IOException: java.io.IOException: Failed to extract xxx transfer of 21 files 17:48:30 at hudson.FilePath.readFromTar(FilePath.java:2300) 17:48:30 at hudson.FilePath.copyRecursiveTo(FilePath.java:2209) 17:48:30 at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61) 17:48:30 at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:236) 17:48:30 at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78) 17:48:30 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 17:48:30 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) 17:48:30 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) 17:48:30 at hudson.model.Build$BuildExecution.post2(Build.java:185) 17:48:30 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) 17:48:30 at hudson.model.Run.execute(Run.java:1763) 17:48:30 at hudson.matrix.MatrixRun.run(MatrixRun.java:146) 17:48:30 at hudson.model.ResourceController.execute(ResourceController.java:98) 17:48:30 at hudson.model.Executor.run(Executor.java:410) 17:48:30 Caused by: java.io.EOFException: Unexpected end of ZLIB input stream 17:48:30 at com.jcraft.jzlib.InflaterInputStream.fill(InflaterInputStream.java:186) 17:48:30 at com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:106) 17:48:30 at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.read(TarArchiveInputStream.java:614) 17:48:30 at java.io.InputStream.read(InputStream.java:101) 17:48:30 at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792) 17:48:30 at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769) 17:48:30 at org.apache.commons.io.IOUtils.copy(IOUtils.java:1744) 17:48:30 at hudson.util.IOUtils.copy(IOUtils.java:40) 17:48:30 at hudson.FilePath.readFromTar(FilePath.java:2290) 17:48:30 ... 13 more 17:48:30 17:48:30 at hudson.FilePath.copyRecursiveTo(FilePath.java:2216) 17:48:30 at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61) 17:48:30 at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:236) 17:48:30 at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78) 17:48:30 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 17:48:30 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) 17:48:30 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) 17:48:30 at hudson.model.Build$BuildExecution.post2(Build.java:185) 17:48:30 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) 17:48:30 at hudson.model.Run.execute(Run.java:1763) 17:48:30 at hudson.matrix.MatrixRun.run(MatrixRun.java:146) 17:48:30 at hudson.model.ResourceController.execute(ResourceController.java:98) 17:48:30 at hudson.model.Executor.run(Executor.java:410) 17:48:30 Caused by: java.util.concurrent.ExecutionException: java.io.IOException: This archives contains unclosed entries. 17:48:30 at hudson.remoting.Channel$2.adapt(Channel.java:813) 17:48:30 at hudson.remoting.Channel$2.adapt(Channel.java:808) 17:48:30 at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59) 17:48:30 at hudson.FilePath.copyRecursiveTo(FilePath.java:2212) 17:48:30 ... 12 more 17:48:30 Caused by: java.io.IOException: This archives contains unclosed entries. 17:48:30 at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.finish(TarArchiveOutputStream.java:225) 17:48:30 at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.close(TarArchiveOutputStream.java:241) 17:48:30 at hudson.util.io.TarArchiver.close(TarArchiver.java:111) 17:48:30 at hudson.FilePath.writeToTar(FilePath.java:2263) 17:48:30 at hudson.FilePath.access$2100(FilePath.java:190) 17:48:30 at hudson.FilePath$45.invoke(FilePath.java:2202) 17:48:30 at hudson.FilePath$45.invoke(FilePath.java:2198) 17:48:30 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2719) 17:48:30 at hudson.remoting.UserRequest.perform(UserRequest.java:120) 17:48:30 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 17:48:30 at hudson.remoting.Request$2.run(Request.java:326) 17:48:30 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) 17:48:30 at java.util.concurrent.FutureTask.run(FutureTask.java:262) 17:48:30 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 17:48:30 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 17:48:30 at java.lang.Thread.run(Thread.java:745) 17:48:30 at ......remote call to jslave-e2e-rhel-3(Native Method) 17:48:30 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416) 17:48:30 at hudson.remoting.UserResponse.retrieve(UserRequest.java:220) 17:48:30 at hudson.remoting.Channel$2.adapt(Channel.java:811) 17:48:30 ... 15 more 17:48:30 Build step 'Archive the artifacts' changed build result to FAILURE

          I have the same or a very similar problem on a couple of my builds, running Jenkins 1.643 on Windows build nodes. The files I am attempting to archive add up to around 100Mb.

          java.io.IOException: java.io.IOException: Failed to extract xxx/transfer of 8 files
          at hudson.FilePath.readFromTar(FilePath.java:2300)
          at hudson.FilePath.copyRecursiveTo(FilePath.java:2209)
          at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)
          at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:236)
          at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
          at hudson.model.Build$BuildExecution.post2(Build.java:185)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
          at hudson.model.Run.execute(Run.java:1763)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:410)
          Caused by: java.io.IOException: java.io.EOFException
          at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:169)
          at hudson.util.HeadBufferingStream.read(HeadBufferingStream.java:61)
          at com.jcraft.jzlib.InflaterInputStream.fill(InflaterInputStream.java:175)
          at com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:106)
          at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.read(TarArchiveInputStream.java:614)
          at java.io.InputStream.read(Unknown Source)
          at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792)
          at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769)
          at org.apache.commons.io.IOUtils.copy(IOUtils.java:1744)
          at hudson.util.IOUtils.copy(IOUtils.java:40)
          at hudson.FilePath.readFromTar(FilePath.java:2290)
          ... 13 more
          Caused by: java.io.EOFException
          at org.jenkinsci.remoting.nio.NioChannelHub$3.run(NioChannelHub.java:613)
          at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
          at java.util.concurrent.FutureTask.run(Unknown Source)
          at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)
          at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
          at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
          at java.util.concurrent.FutureTask.run(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)

          at hudson.FilePath.copyRecursiveTo(FilePath.java:2216)
          at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)
          at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:236)
          at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
          at hudson.model.Build$BuildExecution.post2(Build.java:185)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
          at hudson.model.Run.execute(Run.java:1763)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:410)
          Caused by: java.util.concurrent.ExecutionException: hudson.remoting.RequestAbortedException: java.io.EOFException
          at hudson.remoting.Request$1.get(Request.java:276)
          at hudson.remoting.Request$1.get(Request.java:207)
          at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
          at hudson.FilePath.copyRecursiveTo(FilePath.java:2212)
          ... 12 more
          Caused by: hudson.remoting.RequestAbortedException: java.io.EOFException
          at hudson.remoting.Request.abort(Request.java:297)
          at hudson.remoting.Channel.terminate(Channel.java:847)
          at org.jenkinsci.remoting.nio.NioChannelHub$3.run(NioChannelHub.java:613)
          at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
          at java.util.concurrent.FutureTask.run(Unknown Source)
          at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)
          at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
          at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
          at java.util.concurrent.FutureTask.run(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
          Caused by: java.io.EOFException
          ... 10 more

          Stuart Holliday added a comment - I have the same or a very similar problem on a couple of my builds, running Jenkins 1.643 on Windows build nodes. The files I am attempting to archive add up to around 100Mb. java.io.IOException: java.io.IOException: Failed to extract xxx/transfer of 8 files at hudson.FilePath.readFromTar(FilePath.java:2300) at hudson.FilePath.copyRecursiveTo(FilePath.java:2209) at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:236) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) at hudson.model.Run.execute(Run.java:1763) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.io.IOException: java.io.EOFException at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:169) at hudson.util.HeadBufferingStream.read(HeadBufferingStream.java:61) at com.jcraft.jzlib.InflaterInputStream.fill(InflaterInputStream.java:175) at com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:106) at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.read(TarArchiveInputStream.java:614) at java.io.InputStream.read(Unknown Source) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769) at org.apache.commons.io.IOUtils.copy(IOUtils.java:1744) at hudson.util.IOUtils.copy(IOUtils.java:40) at hudson.FilePath.readFromTar(FilePath.java:2290) ... 13 more Caused by: java.io.EOFException at org.jenkinsci.remoting.nio.NioChannelHub$3.run(NioChannelHub.java:613) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) at hudson.FilePath.copyRecursiveTo(FilePath.java:2216) at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:236) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) at hudson.model.Run.execute(Run.java:1763) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.util.concurrent.ExecutionException: hudson.remoting.RequestAbortedException: java.io.EOFException at hudson.remoting.Request$1.get(Request.java:276) at hudson.remoting.Request$1.get(Request.java:207) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59) at hudson.FilePath.copyRecursiveTo(FilePath.java:2212) ... 12 more Caused by: hudson.remoting.RequestAbortedException: java.io.EOFException at hudson.remoting.Request.abort(Request.java:297) at hudson.remoting.Channel.terminate(Channel.java:847) at org.jenkinsci.remoting.nio.NioChannelHub$3.run(NioChannelHub.java:613) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.EOFException ... 10 more

          Louis Thomas added a comment - - edited

          We ran into a similar (but not identical) problem. In diagnosing, I noticed FilePath.writeToTar() eats the exception from scan() when there is a subsequent exception on close() (which there usually is). If writeToTar() were to report the first exception, it would probably make debugging easier.

           --- core/src/main/java/hudson/FilePath.java	(revision 48e42ae94a693a7d83c61ad0bb60f0ec397b5e8c)
          +++ core/src/main/java/hudson/FilePath.java	(revision )
          @@ -2257,11 +2257,24 @@
                */
               private Integer writeToTar(File baseDir, DirScanner scanner, OutputStream out) throws IOException {
                   Archiver tw = ArchiverFactory.TAR.create(out);
          +        IOException ioException = null;
                   try {
                       scanner.scan(baseDir,reading(tw));
          +        } catch (IOException e) {
          +            ioException = e;
                   } finally {
          +            try {
          -            tw.close();
          +                tw.close();
          +            } catch (IOException e) {
          +                // ignore the exception thrown by close if scan already threw an exception
          +                if (null == ioException) {
          +                    ioException = e;
          -        }
          +                }
          +            }
          +        }
          +        if (null != ioException) {
          +            throw ioException;
          +        }
                   return tw.countEntries();
               }
          

          In our case, we did not have permissions to create a directory, which would have been more clear if the mkdir had reported an error.

           --- core/src/main/java/hudson/FilePath.java	(revision 48e42ae94a693a7d83c61ad0bb60f0ec397b5e8c)
          +++ core/src/main/java/hudson/FilePath.java	(revision )
          @@ -2281,7 +2294,7 @@
                               mkdirs(f);
                           } else {
                               File parent = f.getParentFile();
          -                    if (parent != null) mkdirs(parent);
          +                    if (parent != null) mkdirsE(parent);
                               writing(f);
           
                               if (te.isSymbolicLink()) {
          

          Louis Thomas added a comment - - edited We ran into a similar (but not identical) problem. In diagnosing, I noticed FilePath.writeToTar() eats the exception from scan() when there is a subsequent exception on close() (which there usually is). If writeToTar() were to report the first exception, it would probably make debugging easier. --- core/src/main/java/hudson/FilePath.java (revision 48e42ae94a693a7d83c61ad0bb60f0ec397b5e8c) +++ core/src/main/java/hudson/FilePath.java (revision ) @@ -2257,11 +2257,24 @@ */ private Integer writeToTar(File baseDir, DirScanner scanner, OutputStream out) throws IOException { Archiver tw = ArchiverFactory.TAR.create(out); + IOException ioException = null ; try { scanner.scan(baseDir,reading(tw)); + } catch (IOException e) { + ioException = e; } finally { + try { - tw.close(); + tw.close(); + } catch (IOException e) { + // ignore the exception thrown by close if scan already threw an exception + if ( null == ioException) { + ioException = e; - } + } + } + } + if ( null != ioException) { + throw ioException; + } return tw.countEntries(); } In our case, we did not have permissions to create a directory, which would have been more clear if the mkdir had reported an error. --- core/src/main/java/hudson/FilePath.java (revision 48e42ae94a693a7d83c61ad0bb60f0ec397b5e8c) +++ core/src/main/java/hudson/FilePath.java (revision ) @@ -2281,7 +2294,7 @@ mkdirs(f); } else { File parent = f.getParentFile(); - if (parent != null ) mkdirs(parent); + if (parent != null ) mkdirsE(parent); writing(f); if (te.isSymbolicLink()) {

          ikedam added a comment -

          Looks an issue of `FilePath` in Jenkins core.
          Anyway, all reports are exceptions from artifactarchiver and doesn't look related to copyartifact.

          Removed copyartifact from component/s.

          ikedam added a comment - Looks an issue of `FilePath` in Jenkins core. Anyway, all reports are exceptions from artifactarchiver and doesn't look related to copyartifact. Removed copyartifact from component/s.

          We started having this issue a few weeks ago. It's random like others have stated, though it's happening enough to where it's a real problem. Not all builds have it but one in 5 or so do.

          Using Jenkins 1.651.3. Had the problem when using 1.651.1 as well. The master server and all nodes that have experienced the problem are running Linux.

          I can provide other details if it would help to diagnose and solve this problem. The issue seems to have started without updating anything within Jenkins (if I recall), so not sure if it's something in the files we are archiving (just log and XML files).

          Michael Leister added a comment - We started having this issue a few weeks ago. It's random like others have stated, though it's happening enough to where it's a real problem. Not all builds have it but one in 5 or so do. Using Jenkins 1.651.3. Had the problem when using 1.651.1 as well. The master server and all nodes that have experienced the problem are running Linux. I can provide other details if it would help to diagnose and solve this problem. The issue seems to have started without updating anything within Jenkins (if I recall), so not sure if it's something in the files we are archiving (just log and XML files).

          Logan V added a comment -

          I'm seeing this on Jenkins 2.7.1

          http://cdn.pasteraw.com/9pfrpe9kd82cbxj82revnqn6gs8ogvk

          Roughly 40-50 files per build, all log files. We're seeing the failure about 75+% of the time.

          Logan V added a comment - I'm seeing this on Jenkins 2.7.1 http://cdn.pasteraw.com/9pfrpe9kd82cbxj82revnqn6gs8ogvk Roughly 40-50 files per build, all log files. We're seeing the failure about 75+% of the time.

          Following up... We tracked down our issue to archiving of the log files only. We were archiving a 4-5 logs plus all JUnit XML files (couple thousand of them) and once we stopped saving the logs our builds didn't fail anymore. I started saving the logs by having them copied elsewhere via a post-build task. From there I found that it looked like some of the logs were still being written to when they were trying to be archived. I added a 60 second pause as the final build task before the post-build tasks and added back archiving of the logs...and then all the logs got archived again. We have run builds for 4-5 days without incident now. So apparently the issue (ours at least) was that the archiving wasn't waiting for the previous tasks to fully complete.

          Michael Leister added a comment - Following up... We tracked down our issue to archiving of the log files only. We were archiving a 4-5 logs plus all JUnit XML files (couple thousand of them) and once we stopped saving the logs our builds didn't fail anymore. I started saving the logs by having them copied elsewhere via a post-build task. From there I found that it looked like some of the logs were still being written to when they were trying to be archived. I added a 60 second pause as the final build task before the post-build tasks and added back archiving of the logs...and then all the logs got archived again. We have run builds for 4-5 days without incident now. So apparently the issue (ours at least) was that the archiving wasn't waiting for the previous tasks to fully complete.

          Paresh Sao added a comment -

          I am using Jenkins for, openstack CI testing. And i am facing same issues. Out of 5 jobs, one of are failing because 'archiving artifacts', please provide any solution for this. It is very critical for us. The logs are below:

          03:04:12 SSH: Transferred 52 file(s)
          03:04:13 Archiving artifacts
          03:04:13 ERROR: Failed to archive artifacts: *
          03:04:13 java.io.IOException: java.io.IOException: Failed to extract /home/ubuntu/workspace/gate-tempest-ironic-ilo-driver-agent_ilo/transfer of 52 files
          03:04:13 at hudson.FilePath.readFromTar(FilePath.java:2300)
          03:04:13 at hudson.FilePath.copyRecursiveTo(FilePath.java:2209)
          03:04:13 at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)
          03:04:13 at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:236)
          03:04:13 at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
          03:04:13 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          03:04:13 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
          03:04:13 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
          03:04:13 at hudson.model.Build$BuildExecution.post2(Build.java:185)
          03:04:13 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
          03:04:13 at hudson.model.Run.execute(Run.java:1763)
          03:04:13 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          03:04:13 at hudson.model.ResourceController.execute(ResourceController.java:98)
          03:04:13 at hudson.model.Executor.run(Executor.java:410)
          03:04:13 Caused by: java.io.EOFException: Unexpected end of ZLIB input stream
          03:04:13 at com.jcraft.jzlib.InflaterInputStream.fill(InflaterInputStream.java:186)
          03:04:13 at com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:106)
          03:04:13 at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.read(TarArchiveInputStream.java:614)
          03:04:13 at java.io.InputStream.read(InputStream.java:101)
          03:04:13 at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792)
          03:04:13 at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769)
          03:04:13 at org.apache.commons.io.IOUtils.copy(IOUtils.java:1744)
          03:04:13 at hudson.util.IOUtils.copy(IOUtils.java:40)
          03:04:13 at hudson.FilePath.readFromTar(FilePath.java:2290)
          03:04:13 ... 13 more
          03:04:13
          03:04:13 at hudson.FilePath.copyRecursiveTo(FilePath.java:2216)
          03:04:13 at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)
          03:04:13 at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:236)
          03:04:13 at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
          03:04:13 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          03:04:13 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
          03:04:13 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
          03:04:13 at hudson.model.Build$BuildExecution.post2(Build.java:185)
          03:04:13 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
          03:04:13 at hudson.model.Run.execute(Run.java:1763)
          03:04:13 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          03:04:13 at hudson.model.ResourceController.execute(ResourceController.java:98)
          03:04:13 at hudson.model.Executor.run(Executor.java:410)
          03:04:13 Caused by: java.util.concurrent.ExecutionException: java.io.IOException: This archives contains unclosed entries.
          03:04:13 at hudson.remoting.Channel$2.adapt(Channel.java:813)
          03:04:13 at hudson.remoting.Channel$2.adapt(Channel.java:808)
          03:04:13 at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
          03:04:13 at hudson.FilePath.copyRecursiveTo(FilePath.java:2212)
          03:04:13 ... 12 more
          03:04:13 Caused by: java.io.IOException: This archives contains unclosed entries.
          03:04:13 at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.finish(TarArchiveOutputStream.java:225)
          03:04:13 at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.close(TarArchiveOutputStream.java:241)
          03:04:13 at hudson.util.io.TarArchiver.close(TarArchiver.java:111)
          03:04:13 at hudson.FilePath.writeToTar(FilePath.java:2263)
          03:04:13 at hudson.FilePath.access$2100(FilePath.java:190)
          03:04:13 at hudson.FilePath$45.invoke(FilePath.java:2202)
          03:04:13 at hudson.FilePath$45.invoke(FilePath.java:2198)
          03:04:13 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2719)
          03:04:13 at hudson.remoting.UserRequest.perform(UserRequest.java:120)
          03:04:13 at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          03:04:13 at hudson.remoting.Request$2.run(Request.java:332)
          03:04:13 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
          03:04:13 at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          03:04:13 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          03:04:13 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          03:04:13 at java.lang.Thread.run(Thread.java:745)
          03:04:13 at ......remote call to jenkins-slave3-gen9(Native Method)
          03:04:13 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
          03:04:13 at hudson.remoting.UserResponse.retrieve(UserRequest.java:220)
          03:04:13 at hudson.remoting.Channel$2.adapt(Channel.java:811)
          03:04:13 ... 15 more
          03:04:13 Build step 'Archive the artifacts' changed build result to FAILURE
          03:04:13 Finished: FAILURE

          Paresh Sao added a comment - I am using Jenkins for, openstack CI testing. And i am facing same issues. Out of 5 jobs, one of are failing because 'archiving artifacts', please provide any solution for this. It is very critical for us. The logs are below: 03:04:12 SSH: Transferred 52 file(s) 03:04:13 Archiving artifacts 03:04:13 ERROR: Failed to archive artifacts: * 03:04:13 java.io.IOException: java.io.IOException: Failed to extract /home/ubuntu/workspace/gate-tempest-ironic-ilo-driver-agent_ilo/transfer of 52 files 03:04:13 at hudson.FilePath.readFromTar(FilePath.java:2300) 03:04:13 at hudson.FilePath.copyRecursiveTo(FilePath.java:2209) 03:04:13 at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61) 03:04:13 at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:236) 03:04:13 at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78) 03:04:13 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 03:04:13 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) 03:04:13 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) 03:04:13 at hudson.model.Build$BuildExecution.post2(Build.java:185) 03:04:13 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) 03:04:13 at hudson.model.Run.execute(Run.java:1763) 03:04:13 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 03:04:13 at hudson.model.ResourceController.execute(ResourceController.java:98) 03:04:13 at hudson.model.Executor.run(Executor.java:410) 03:04:13 Caused by: java.io.EOFException: Unexpected end of ZLIB input stream 03:04:13 at com.jcraft.jzlib.InflaterInputStream.fill(InflaterInputStream.java:186) 03:04:13 at com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:106) 03:04:13 at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.read(TarArchiveInputStream.java:614) 03:04:13 at java.io.InputStream.read(InputStream.java:101) 03:04:13 at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792) 03:04:13 at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769) 03:04:13 at org.apache.commons.io.IOUtils.copy(IOUtils.java:1744) 03:04:13 at hudson.util.IOUtils.copy(IOUtils.java:40) 03:04:13 at hudson.FilePath.readFromTar(FilePath.java:2290) 03:04:13 ... 13 more 03:04:13 03:04:13 at hudson.FilePath.copyRecursiveTo(FilePath.java:2216) 03:04:13 at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61) 03:04:13 at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:236) 03:04:13 at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78) 03:04:13 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 03:04:13 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) 03:04:13 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) 03:04:13 at hudson.model.Build$BuildExecution.post2(Build.java:185) 03:04:13 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) 03:04:13 at hudson.model.Run.execute(Run.java:1763) 03:04:13 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 03:04:13 at hudson.model.ResourceController.execute(ResourceController.java:98) 03:04:13 at hudson.model.Executor.run(Executor.java:410) 03:04:13 Caused by: java.util.concurrent.ExecutionException: java.io.IOException: This archives contains unclosed entries. 03:04:13 at hudson.remoting.Channel$2.adapt(Channel.java:813) 03:04:13 at hudson.remoting.Channel$2.adapt(Channel.java:808) 03:04:13 at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59) 03:04:13 at hudson.FilePath.copyRecursiveTo(FilePath.java:2212) 03:04:13 ... 12 more 03:04:13 Caused by: java.io.IOException: This archives contains unclosed entries. 03:04:13 at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.finish(TarArchiveOutputStream.java:225) 03:04:13 at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.close(TarArchiveOutputStream.java:241) 03:04:13 at hudson.util.io.TarArchiver.close(TarArchiver.java:111) 03:04:13 at hudson.FilePath.writeToTar(FilePath.java:2263) 03:04:13 at hudson.FilePath.access$2100(FilePath.java:190) 03:04:13 at hudson.FilePath$45.invoke(FilePath.java:2202) 03:04:13 at hudson.FilePath$45.invoke(FilePath.java:2198) 03:04:13 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2719) 03:04:13 at hudson.remoting.UserRequest.perform(UserRequest.java:120) 03:04:13 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 03:04:13 at hudson.remoting.Request$2.run(Request.java:332) 03:04:13 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) 03:04:13 at java.util.concurrent.FutureTask.run(FutureTask.java:262) 03:04:13 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 03:04:13 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 03:04:13 at java.lang.Thread.run(Thread.java:745) 03:04:13 at ......remote call to jenkins-slave3-gen9(Native Method) 03:04:13 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416) 03:04:13 at hudson.remoting.UserResponse.retrieve(UserRequest.java:220) 03:04:13 at hudson.remoting.Channel$2.adapt(Channel.java:811) 03:04:13 ... 15 more 03:04:13 Build step 'Archive the artifacts' changed build result to FAILURE 03:04:13 Finished: FAILURE

          yan bi added a comment -

          I saw the same problem in Jenkins Version: 1.651.3.

          yan bi added a comment - I saw the same problem in Jenkins Version: 1.651.3.

          trejkaz added a comment -

          We're seeing this in 1.656.

          trejkaz added a comment - We're seeing this in 1.656.

          Danek Duvall added a comment -

          I'd been seeing this consistently, but the issue for me was that the files being archived weren't readable by the jenkins slave. After having the build script do a chown (a chmod would have done) to the right user, the error went away. I'm adding this so that anyone else who might be having the same issue will see this, as this issue comes up near the top of a google search for the key bits in the error output.

          Danek Duvall added a comment - I'd been seeing this consistently, but the issue for me was that the files being archived weren't readable by the jenkins slave. After having the build script do a chown (a chmod would have done) to the right user, the error went away. I'm adding this so that anyone else who might be having the same issue will see this, as this issue comes up near the top of a google search for the key bits in the error output.

          I managed to reproduce this with unredable file with older Jenkins. Never versions fails with something bit more reasonable but it is still nasty:

          Archiving artifacts
          ERROR: Failed to archive artifacts: file
          java.nio.file.AccessDeniedException: /some/path/workspace/test0/file
            at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
            at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
            at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
            at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
            at java.nio.file.Files.newByteChannel(Files.java:361)
            at java.nio.file.Files.newByteChannel(Files.java:407)
            at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
            at java.nio.file.Files.newInputStream(Files.java:152)
            at hudson.util.io.TarArchiver.visit(TarArchiver.java:106)
            at hudson.util.DirScanner.scanSingle(DirScanner.java:49)
            at hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2823)
            at hudson.FilePath.writeToTar(FilePath.java:2269)
            at hudson.FilePath.access$2100(FilePath.java:197)
            at hudson.FilePath$45.invoke(FilePath.java:2212)
            at hudson.FilePath$45.invoke(FilePath.java:2208)
            at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2750)
            at hudson.remoting.UserRequest.perform(UserRequest.java:181)
            at hudson.remoting.UserRequest.perform(UserRequest.java:52)
            at hudson.remoting.Request$2.run(Request.java:336)
            at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
            at java.lang.Thread.run(Thread.java:748)
          Caused: java.io.IOException: Error writing to tar file from: /some/path/workspace/test0/file
            at hudson.util.io.TarArchiver.visit(TarArchiver.java:113)
            at hudson.util.DirScanner.scanSingle(DirScanner.java:49)
            at hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2823)
            at hudson.FilePath.writeToTar(FilePath.java:2269)
            at hudson.FilePath.access$2100(FilePath.java:197)
            at hudson.FilePath$45.invoke(FilePath.java:2212)
            at hudson.FilePath$45.invoke(FilePath.java:2208)
            at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2750)
            at hudson.remoting.UserRequest.perform(UserRequest.java:181)
            at hudson.remoting.UserRequest.perform(UserRequest.java:52)
            at hudson.remoting.Request$2.run(Request.java:336)
            at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
            at java.lang.Thread.run(Thread.java:748)
            at ......remote call to slave0(Native Method)
            at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1554)
            at hudson.remoting.UserResponse.retrieve(UserRequest.java:281)
            at hudson.remoting.Channel$2.adapt(Channel.java:869)
          Caused: java.util.concurrent.ExecutionException
            at hudson.remoting.Channel$2.adapt(Channel.java:871)
            at hudson.remoting.Channel$2.adapt(Channel.java:866)
            at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
            at hudson.FilePath.copyRecursiveTo(FilePath.java:2231)
          Caused: java.io.IOException
            at hudson.FilePath.copyRecursiveTo(FilePath.java:2233)
            at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)
            at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:244)
            at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
            at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
            at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:730)
            at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:676)
            at hudson.model.Build$BuildExecution.post2(Build.java:186)
            at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:621)
            at hudson.model.Run.execute(Run.java:1760)
            at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
            at hudson.model.ResourceController.execute(ResourceController.java:97)
            at hudson.model.Executor.run(Executor.java:415)
          Build step 'Archive the artifacts' changed build result to FAILURE
          Finished: FAILURE
          

          Oliver Gondža added a comment - I managed to reproduce this with unredable file with older Jenkins. Never versions fails with something bit more reasonable but it is still nasty: Archiving artifacts ERROR: Failed to archive artifacts: file java.nio.file.AccessDeniedException: /some/path/workspace/test0/file at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214) at java.nio.file.Files.newByteChannel(Files.java:361) at java.nio.file.Files.newByteChannel(Files.java:407) at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384) at java.nio.file.Files.newInputStream(Files.java:152) at hudson.util.io.TarArchiver.visit(TarArchiver.java:106) at hudson.util.DirScanner.scanSingle(DirScanner.java:49) at hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2823) at hudson.FilePath.writeToTar(FilePath.java:2269) at hudson.FilePath.access$2100(FilePath.java:197) at hudson.FilePath$45.invoke(FilePath.java:2212) at hudson.FilePath$45.invoke(FilePath.java:2208) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2750) at hudson.remoting.UserRequest.perform(UserRequest.java:181) at hudson.remoting.UserRequest.perform(UserRequest.java:52) at hudson.remoting.Request$2.run(Request.java:336) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused: java.io.IOException: Error writing to tar file from: /some/path/workspace/test0/file at hudson.util.io.TarArchiver.visit(TarArchiver.java:113) at hudson.util.DirScanner.scanSingle(DirScanner.java:49) at hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2823) at hudson.FilePath.writeToTar(FilePath.java:2269) at hudson.FilePath.access$2100(FilePath.java:197) at hudson.FilePath$45.invoke(FilePath.java:2212) at hudson.FilePath$45.invoke(FilePath.java:2208) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2750) at hudson.remoting.UserRequest.perform(UserRequest.java:181) at hudson.remoting.UserRequest.perform(UserRequest.java:52) at hudson.remoting.Request$2.run(Request.java:336) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) at ......remote call to slave0(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1554) at hudson.remoting.UserResponse.retrieve(UserRequest.java:281) at hudson.remoting.Channel$2.adapt(Channel.java:869) Caused: java.util.concurrent.ExecutionException at hudson.remoting.Channel$2.adapt(Channel.java:871) at hudson.remoting.Channel$2.adapt(Channel.java:866) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55) at hudson.FilePath.copyRecursiveTo(FilePath.java:2231) Caused: java.io.IOException at hudson.FilePath.copyRecursiveTo(FilePath.java:2233) at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:244) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:730) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:676) at hudson.model.Build$BuildExecution.post2(Build.java:186) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:621) at hudson.model.Run.execute(Run.java:1760) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:415) Build step 'Archive the artifacts' changed build result to FAILURE Finished: FAILURE

          Fix proposed.

          Oliver Gondža added a comment - Fix proposed.

          Code changed in jenkins
          User: Oliver Gondža
          Path:
          test/src/test/java/hudson/tasks/ArtifactArchiverTest.java
          http://jenkins-ci.org/commit/jenkins/489068e753b79cbdab82b5caab69b04289405d66
          Log:
          JENKINS-21905 Reproduce in unittest

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: test/src/test/java/hudson/tasks/ArtifactArchiverTest.java http://jenkins-ci.org/commit/jenkins/489068e753b79cbdab82b5caab69b04289405d66 Log: JENKINS-21905 Reproduce in unittest

          Code changed in jenkins
          User: Oliver Gondža
          Path:
          core/src/main/java/hudson/FilePath.java
          http://jenkins-ci.org/commit/jenkins/a9d7caa81fd02d027f2f0a69ac7eba2c1eea8e74
          Log:
          JENKINS-21905 Unwrap the unnecessary ExecutionExceptions

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: core/src/main/java/hudson/FilePath.java http://jenkins-ci.org/commit/jenkins/a9d7caa81fd02d027f2f0a69ac7eba2c1eea8e74 Log: JENKINS-21905 Unwrap the unnecessary ExecutionExceptions

          Code changed in jenkins
          User: Oliver Gondža
          Path:
          core/src/main/java/hudson/FilePath.java
          http://jenkins-ci.org/commit/jenkins/4948d60345576f783666f1a8e9bbe7e9a8cbd438
          Log:
          JENKINS-21905 Do not rewrap possibly more specific exception into a less specific one

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: core/src/main/java/hudson/FilePath.java http://jenkins-ci.org/commit/jenkins/4948d60345576f783666f1a8e9bbe7e9a8cbd438 Log: JENKINS-21905 Do not rewrap possibly more specific exception into a less specific one

          Code changed in jenkins
          User: Oliver Gondža
          Path:
          core/src/main/java/hudson/FilePath.java
          http://jenkins-ci.org/commit/jenkins/3f3e3b80a09e4e82d923445637b7a01276d12ba1
          Log:
          JENKINS-21905 Take advantage of suppressed exceptions

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: core/src/main/java/hudson/FilePath.java http://jenkins-ci.org/commit/jenkins/3f3e3b80a09e4e82d923445637b7a01276d12ba1 Log: JENKINS-21905 Take advantage of suppressed exceptions

          Code changed in jenkins
          User: Oliver Gondža
          Path:
          core/src/main/java/hudson/util/io/TarArchiver.java
          http://jenkins-ci.org/commit/jenkins/d3f75a90366f1020d4b6cf140ca9aea80a4065f9
          Log:
          JENKINS-21905 Do not wrap problem with reading into an exception indicating write problem

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: core/src/main/java/hudson/util/io/TarArchiver.java http://jenkins-ci.org/commit/jenkins/d3f75a90366f1020d4b6cf140ca9aea80a4065f9 Log: JENKINS-21905 Do not wrap problem with reading into an exception indicating write problem

          Code changed in jenkins
          User: Oliver Gondža
          Path:
          core/src/main/java/hudson/tasks/ArtifactArchiver.java
          http://jenkins-ci.org/commit/jenkins/7139382011b2e4f8548d796ba250f6f8c870038f
          Log:
          JENKINS-21905 Diagnose the known cause without printing stacktrace

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: core/src/main/java/hudson/tasks/ArtifactArchiver.java http://jenkins-ci.org/commit/jenkins/7139382011b2e4f8548d796ba250f6f8c870038f Log: JENKINS-21905 Diagnose the known cause without printing stacktrace

          Code changed in jenkins
          User: Oliver Gondža
          Path:
          core/src/main/java/hudson/tasks/ArtifactArchiver.java
          http://jenkins-ci.org/commit/jenkins/9bd9c48af3c3652aee8d0a810ecf744654259525
          Log:
          JENKINS-21905 Log the diagnosed cause just in case

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: core/src/main/java/hudson/tasks/ArtifactArchiver.java http://jenkins-ci.org/commit/jenkins/9bd9c48af3c3652aee8d0a810ecf744654259525 Log: JENKINS-21905 Log the diagnosed cause just in case

          Code changed in jenkins
          User: Oliver Gondža
          Path:
          test/src/test/java/hudson/tasks/ArtifactArchiverTest.java
          http://jenkins-ci.org/commit/jenkins/efbdac0f76378105d4b2ada8d9b639b65a41cf3b
          Log:
          JENKINS-21905 Skip unittest on windows

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: test/src/test/java/hudson/tasks/ArtifactArchiverTest.java http://jenkins-ci.org/commit/jenkins/efbdac0f76378105d4b2ada8d9b639b65a41cf3b Log: JENKINS-21905 Skip unittest on windows

          Code changed in jenkins
          User: Oliver Gondža
          Path:
          core/src/main/java/hudson/util/io/TarArchiver.java
          http://jenkins-ci.org/commit/jenkins/08a4c5d05ee6d91376603479b3044ecbdf759d08
          Log:
          JENKINS-21905 fix typo

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: core/src/main/java/hudson/util/io/TarArchiver.java http://jenkins-ci.org/commit/jenkins/08a4c5d05ee6d91376603479b3044ecbdf759d08 Log: JENKINS-21905 fix typo

          I am closing this issue as the better diagnosing facility has been put in place. If you experience what seems like a similar issue with newer core, please create a separate issue with details attached.

          Oliver Gondža added a comment - I am closing this issue as the better diagnosing facility has been put in place. If you experience what seems like a similar issue with newer core, please create a separate issue with details attached.

            olivergondza Oliver Gondža
            sroth Steve Roth
            Votes:
            10 Vote for this issue
            Watchers:
            25 Start watching this issue

              Created:
              Updated:
              Resolved: