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

failed to archive slave artifacts. Unexpected end of ZLIB input stream

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Since updating to 1.529 the slave archive artifacts is failing with this stack trace.

      ERROR: Failed to archive artifacts: .xml,.log,product//.log,product//.xml,product///.log,product///.xml
      hudson.util.IOException2: hudson.util.IOException2: Failed to extract /var/lib/jenkins/workspace/MainlineDevtest/.xml,.log,product//.log,product//.xml,product///.log,product///.xml
      at hudson.FilePath.readFromTar(FilePath.java:2044)
      at hudson.FilePath.copyRecursiveTo(FilePath.java:1956)
      at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:137)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776)
      at hudson.model.Build$BuildExecution.post2(Build.java:183)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726)
      at hudson.model.Run.execute(Run.java:1628)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:247)
      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.read(TarInputStream.java:345)
      at java.io.FilterInputStream.read(FilterInputStream.java:107)
      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:2034)
      ... 11 more

      at hudson.FilePath.copyRecursiveTo(FilePath.java:1963)
      at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:137)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776)
      at hudson.model.Build$BuildExecution.post2(Build.java:183)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726)
      at hudson.model.Run.execute(Run.java:1628)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:247)
      Caused by: java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException
      at hudson.remoting.Channel$3.adapt(Channel.java:747)
      at hudson.remoting.Channel$3.adapt(Channel.java:742)
      at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
      at hudson.FilePath.copyRecursiveTo(FilePath.java:1959)
      ... 10 more
      Caused by: java.lang.ArrayIndexOutOfBoundsException

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            8deb42bf89b0ced99a1ef5a9721986b35deda244 should be backported to the 1.532.x line.

            Show
            jglick Jesse Glick added a comment - 8deb42bf89b0ced99a1ef5a9721986b35deda244 should be backported to the 1.532.x line.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            core/pom.xml
            core/src/main/java/hudson/FilePath.java
            http://jenkins-ci.org/commit/jenkins/774c54a652a063e06274b13c511997758ca6f762
            Log:
            JENKINS-19473 Removing workaround since root bug should be fixed in jzlib 1.1.3.
            (cherry picked from commit 8deb42bf89b0ced99a1ef5a9721986b35deda244)

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/pom.xml core/src/main/java/hudson/FilePath.java http://jenkins-ci.org/commit/jenkins/774c54a652a063e06274b13c511997758ca6f762 Log: JENKINS-19473 Removing workaround since root bug should be fixed in jzlib 1.1.3. (cherry picked from commit 8deb42bf89b0ced99a1ef5a9721986b35deda244)
            Hide
            fommil Sam Halliday added a comment -

            We're still seeing this on Jenkins 1.544

            Archiving artifacts
            ERROR: Failed to archive artifacts: <<<REMOVED>>>
            java.io.IOException: Failed to extract <<<REMOVED>>> /transfer of 353 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:785)
            	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:757)
            	at hudson.model.Build$BuildExecution.post2(Build.java:183)
            	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:706)
            	at hudson.model.Run.execute(Run.java:1703)
            	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.read(TarInputStream.java:345)
            	at java.io.FilterInputStream.read(FilterInputStream.java:107)
            	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:2078)
            	... 12 more
            Build step 'Archive the artifacts' changed build result to FAILURE
            Finished: FAILURE
            
            
            Show
            fommil Sam Halliday added a comment - We're still seeing this on Jenkins 1.544 Archiving artifacts ERROR: Failed to archive artifacts: <<<REMOVED>>> java.io.IOException: Failed to extract <<<REMOVED>>> /transfer of 353 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:785) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:757) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:706) at hudson.model.Run.execute(Run.java:1703) 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.read(TarInputStream.java:345) at java.io.FilterInputStream.read(FilterInputStream.java:107) 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:2078) ... 12 more Build step 'Archive the artifacts' changed build result to FAILURE Finished: FAILURE
            Hide
            jglick Jesse Glick added a comment -

            @fommil might be some other bug in jzlib; best to have a self-contained test case for this kind of thing.

            Show
            jglick Jesse Glick added a comment - @fommil might be some other bug in jzlib; best to have a self-contained test case for this kind of thing.
            Hide
            sroth Steve Roth added a comment -

            @fommil – I am seeing the same thing, and have created bug JENKINS-21905 for that issue.

            Show
            sroth Steve Roth added a comment - @fommil – I am seeing the same thing, and have created bug JENKINS-21905 for that issue.

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                flyingchipmunk Matthew Veno
              • Votes:
                0 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: