java.io.IOException: Failed to install http://github.com/zaproxy/zaproxy/releases/download/2.5.0/ZAP_2.5.0_Linux.tar.gz to /build/jenkins-home/tools/com.cloudbees.jenkins.plugins.customtools.CustomTool/ZAP_2.5.0

Google Groups | Prakhash Sivakumar | 5 months ago
  1. 0

    ERROR: java.io.IOException: Failed to install ZAP_2.5.0_Linux.tar.gz

    Google Groups | 5 months ago | Prakhash Sivakumar
    java.io.IOException: Failed to install http://github.com/zaproxy/zaproxy/releases/download/2.5.0/ZAP_2.5.0_Linux.tar.gz to /build/jenkins-home/tools/com.cloudbees.jenkins.plugins.customtools.CustomTool/ZAP_2.5.0
  2. 0

    [JENKINS-19473] failed to archive slave artifacts. Unexpected end of ZLIB input stream - Jenkins JIRA

    jenkins-ci.org | 6 months ago
    hudson.util.IOException2: hudson.util.IOException2: Failed to extract /var/lib/jenkins/workspace/MainlineDevtest/ .log,product/ .log,product/ .xml,product/ / / .xml
  3. 0

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

    jenkins-ci.org | 6 months ago
    java.io.IOException: Failed to extract /foo/bar/slave/workspace/someJob/transfer of 7 files
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Prior to upgrading from 1.510 to 1.533 the CoypToSlave (version 1.3 I think) was working without any errors. After upgrading to Jenkins 1.533 the plugin would fail with a "Pipe already closed" exception. I cloned the git repository from https://github.com/jenkinsci/copy-to-slave-plugin and attempted to debug/fix what I believed was a double close error. I have a working branch where I'm no longer getting a double close error but an exception caused by "Unexpected end of ZLIB input stream" AFTER all the files have been copied to the remote. My current working branch ignores the failure as a short term fix for my environment. My working code can be found at: https://github.com/cmdrclueless/copy-to-slave-plugin/tree/pipe_already_closed The current exception stack track follows: Building remotely on lpiq-42-166 in workspace /backup/jenkins/workspace/liquibase-migrations [copy-to-slave] Copying 'liquibase-backups/**/*', excluding nothing, from 'file:/var/lib/jenkins/userContent/' on the master to 'file:/backup/jenkins/workspace/liquibase-migrations/' on 'lpiq-42-166'. processing entry: name liquibase-backups/backup-3.1.0.31-20121018102044.dat, size 133193737, directory false processing entry: name liquibase-backups/backup-4.0.1.4-20130226010513.dat, size 191426758, directory false processing entry: name liquibase-backups/backup-4.0.2.8-20130327010513.dat, size 116593913, directory false processing entry: name liquibase-backups/database-install.pl, size 6697, directory false processing entry: name liquibase-backups/test-backup-4.0.0.37-20121211095951.dat, size 10641581, directory false FATAL: hudson.util.IOException2: Failed to extract to /backup/jenkins/workspace/liquibase-migrations hudson.util.IOException2: hudson.util.IOException2: Failed to extract to /backup/jenkins/workspace/liquibase-migrations at com.michelin.cio.hudson.plugins.copytoslave.MyFilePath.copyRecursiveTo(MyFilePath.java:166) at com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper.setUp(CopyToSlaveBuildWrapper.java:138) at hudson.model.Build$BuildExecution.doRun(Build.java:154) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:567) at hudson.model.Run.execute(Run.java:1665) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:246) Caused by: java.util.concurrent.ExecutionException: hudson.util.IOException2: Failed to extract to /backup/jenkins/workspace/liquibase-migrations 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:55) at com.michelin.cio.hudson.plugins.copytoslave.MyFilePath.copyRecursiveTo(MyFilePath.java:162) ... 7 more Caused by: hudson.util.IOException2: Failed to extract to /backup/jenkins/workspace/liquibase-migrations at com.michelin.cio.hudson.plugins.copytoslave.MyFilePath.readFromTar(MyFilePath.java:236) at com.michelin.cio.hudson.plugins.copytoslave.MyFilePath$2.invoke(MyFilePath.java:144) at com.michelin.cio.hudson.plugins.copytoslave.MyFilePath$2.invoke(MyFilePath.java:139) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2444) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) 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:724) 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 com.michelin.cio.hudson.plugins.copytoslave.MyFilePath.readFromTar(MyFilePath.java:212) ... 12 more

    Jenkins JIRA | 3 years ago | Brian Weaver
    hudson.util.IOException2: hudson.util.IOException2: Failed to extract to /backup/jenkins/workspace/liquibase-migrations
  6. 0

    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

    Jenkins JIRA | 3 years ago | Matthew Veno
    hudson.util.IOException2: hudson.util.IOException2: Failed to extract /var/lib/jenkins/workspace/MainlineDevtest/*.xml,*.log,product/*/*.log,product/*/*.xml,product/*/*/*.log,product/*/*/*.xml

    1 unregistered visitors
    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.EOFException

      Unexpected end of ZLIB input stream

      at com.jcraft.jzlib.InflaterInputStream.fill()
    2. JZlib
      InflaterInputStream.read
      1. com.jcraft.jzlib.InflaterInputStream.fill(InflaterInputStream.java:186)
      2. com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:106)
      2 frames
    3. 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
    4. Hudson
      ToolInstallation.translateFor
      1. hudson.org.apache.tools.tar.TarInputStream.getNextEntry(TarInputStream.java:228)
      2. hudson.FilePath.readFromTar(FilePath.java:2276)
      3. hudson.FilePath.access$400(FilePath.java:191)
      4. hudson.FilePath$10.invoke(FilePath.java:721)
      5. hudson.FilePath$10.invoke(FilePath.java:719)
      6. hudson.FilePath.act(FilePath.java:991)
      7. hudson.FilePath.act(FilePath.java:969)
      8. hudson.FilePath.untarFrom(FilePath.java:719)
      9. hudson.FilePath.installIfNecessaryFrom(FilePath.java:825)
      10. hudson.tools.ZipExtractionInstaller.performInstallation(ZipExtractionInstaller.java:79)
      11. hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68)
      12. hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:108)
      13. hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206)
      13 frames
    5. com.cloudbees.jenkins
      CustomTool.forNode
      1. com.cloudbees.jenkins.plugins.customtools.CustomTool.forNode(CustomTool.java:154)
      2. com.cloudbees.jenkins.plugins.customtools.CustomTool.forNode(CustomTool.java:59)
      2 frames
    6. fr.novia.zaproxyplugin
      ZAProxyBuilder.perform
      1. fr.novia.zaproxyplugin.ZAProxy.retrieveZapHomeWithToolInstall(ZAProxy.java:739)
      2. fr.novia.zaproxyplugin.ZAProxy.checkParams(ZAProxy.java:797)
      3. fr.novia.zaproxyplugin.ZAProxy.startZAP(ZAProxy.java:856)
      4. fr.novia.zaproxyplugin.ZAProxyBuilder.perform(ZAProxyBuilder.java:189)
      4 frames
    7. Hudson
      AbstractBuild$AbstractBuildExecution.perform
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      2 frames
    8. Hudson Maven Embedder
      MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun
      1. hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.build(MavenModuleSetBuild.java:905)
      2. hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:856)
      2 frames
    9. Hudson
      Run.execute
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
      2. hudson.model.Run.execute(Run.java:1741)
      2 frames
    10. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:525)
      1 frame
    11. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:98)
      2. hudson.model.Executor.run(Executor.java:408)
      2 frames