hudson.util.IOException2: Failed to unpack http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.5-bin.zip (5013504 bytes read of total 10070771)

Jenkins JIRA | lidiam | 7 years ago
  1. 0

    Hudson fails to install ant on windows slaves with the following error: Unpacking http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.5-bin.zip to C:\hudson\tools\ant1.6.5 on jed-asqe-39.sfbay.sun.com FATAL: Failed to unpack http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.5-bin.zip (5013504 bytes read of total 10070771) hudson.util.IOException2: Failed to unpack http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.5-bin.zip (5013504 bytes read of total 10070771) at hudson.FilePath.installIfNecessaryFrom(FilePath.java:567) at hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:72) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:99) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:155) at hudson.tasks.Ant$AntInstallation.forNode(Ant.java:379) at hudson.tasks.Ant.perform(Ant.java:137) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:480) at hudson.model.Build$RunnerImpl.build(Build.java:158) at hudson.model.Build$RunnerImpl.doRun(Build.java:98) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:354) at hudson.model.Run.run(Run.java:1117) at hudson.matrix.MatrixRun.run(MatrixRun.java:128) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:122) Caused by: hudson.util.IOException2: remote file operation failed at hudson.FilePath.act(FilePath.java:672) at hudson.FilePath.act(FilePath.java:660) at hudson.FilePath.unzipFrom(FilePath.java:385) at hudson.FilePath.installIfNecessaryFrom(FilePath.java:563) ... 15 more Caused by: java.io.EOFException: Unexpected end of ZLIB input stream at java.util.zip.InflaterInputStream.fill(Unknown Source) at java.util.zip.InflaterInputStream.read(Unknown Source) at java.util.zip.ZipInputStream.read(Unknown Source) at java.io.FilterInputStream.read(Unknown Source) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1025) at org.apache.commons.io.IOUtils.copy(IOUtils.java:999) at hudson.FilePath.unzip(FilePath.java:409) at hudson.FilePath.access$200(FilePath.java:157) at hudson.FilePath$4.invoke(FilePath.java:387) at hudson.FilePath$4.invoke(FilePath.java:385) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2032) at hudson.remoting.UserRequest.perform(UserRequest.java:104) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:236) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) This is still happening after upgrade to v 1.328.

    Jenkins JIRA | 7 years ago | lidiam
    hudson.util.IOException2: Failed to unpack http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.5-bin.zip (5013504 bytes read of total 10070771)
  2. 0

    Hudson fails to install ant on windows slaves with the following error: Unpacking http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.5-bin.zip to C:\hudson\tools\ant1.6.5 on jed-asqe-39.sfbay.sun.com FATAL: Failed to unpack http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.5-bin.zip (5013504 bytes read of total 10070771) hudson.util.IOException2: Failed to unpack http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.5-bin.zip (5013504 bytes read of total 10070771) at hudson.FilePath.installIfNecessaryFrom(FilePath.java:567) at hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:72) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:99) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:155) at hudson.tasks.Ant$AntInstallation.forNode(Ant.java:379) at hudson.tasks.Ant.perform(Ant.java:137) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:480) at hudson.model.Build$RunnerImpl.build(Build.java:158) at hudson.model.Build$RunnerImpl.doRun(Build.java:98) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:354) at hudson.model.Run.run(Run.java:1117) at hudson.matrix.MatrixRun.run(MatrixRun.java:128) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:122) Caused by: hudson.util.IOException2: remote file operation failed at hudson.FilePath.act(FilePath.java:672) at hudson.FilePath.act(FilePath.java:660) at hudson.FilePath.unzipFrom(FilePath.java:385) at hudson.FilePath.installIfNecessaryFrom(FilePath.java:563) ... 15 more Caused by: java.io.EOFException: Unexpected end of ZLIB input stream at java.util.zip.InflaterInputStream.fill(Unknown Source) at java.util.zip.InflaterInputStream.read(Unknown Source) at java.util.zip.ZipInputStream.read(Unknown Source) at java.io.FilterInputStream.read(Unknown Source) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1025) at org.apache.commons.io.IOUtils.copy(IOUtils.java:999) at hudson.FilePath.unzip(FilePath.java:409) at hudson.FilePath.access$200(FilePath.java:157) at hudson.FilePath$4.invoke(FilePath.java:387) at hudson.FilePath$4.invoke(FilePath.java:385) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2032) at hudson.remoting.UserRequest.perform(UserRequest.java:104) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:236) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) This is still happening after upgrade to v 1.328.

    Jenkins JIRA | 7 years ago | lidiam
    hudson.util.IOException2: Failed to unpack http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.5-bin.zip (5013504 bytes read of total 10070771)
  3. 0

    I'm using a tool installer which, for some downloads, the URL returns a 302 redirect. However, Jenkins reads the contents of the redirect page (i.e. some text like "This page has moved to http://foo/bar") and attempts to parse that as the zip/tar/whatever file. The stacktrace users see when this happens is pretty cryptic: {noformat} Unpacking Go from http://golang.org/dl/go1.3.darwin-amd64-osx10.6.tar.gz to /Users/Shared/Jenkins/Home/tools/org.jenkinsci.plugins.golang.GolangInstallation/Go_1.3 on Jenkins FATAL: Failed to install http://golang.org/dl/go1.3.darwin-amd64-osx10.6.tar.gz to /Users/Shared/Jenkins/Home/tools/org.jenkinsci.plugins.golang.GolangInstallation/Go_1.3 hudson.util.IOException2: Failed to install http://golang.org/dl/go1.3.darwin-amd64-osx10.6.tar.gz to /Users/Shared/Jenkins/Home/tools/org.jenkinsci.plugins.golang.GolangInstallation/Go_1.3 at hudson.FilePath.installIfNecessaryFrom(FilePath.java:768) at org.jenkinsci.plugins.golang.GolangInstaller.performInstallation(GolangInstaller.java:53) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:204) at org.jenkinsci.plugins.golang.GolangInstallation.forNode(GolangInstallation.java:41) at org.jenkinsci.plugins.golang.GolangBuildWrapper.setUp(GolangBuildWrapper.java:34) ... Caused by: hudson.util.IOException2: Failed to unpack http://golang.org/dl/go1.3.darwin-amd64-osx10.6.tar.gz (28 bytes read of total -1) at hudson.FilePath.installIfNecessaryFrom(FilePath.java:762) ... 12 more Caused by: hudson.util.IOException2: Failed to extract input stream at hudson.FilePath.readFromTar(FilePath.java:2071) ... Caused by: java.io.IOException: incorrect header check at com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:112) at org.apache.tools.tar.TarBuffer.readBlock(TarBuffer.java:257) ... {noformat} I will try and fix the tool installer in question to resolve the end URL, but this isn't a great idea in the long run — Jenkins should follow the 30x redirects itself.

    Jenkins JIRA | 2 years ago | Christopher Orr
    hudson.util.IOException2: Failed to install http://golang.org/dl/go1.3.darwin-amd64-osx10.6.tar.gz to /Users/Shared/Jenkins/Home/tools/org.jenkinsci.plugins.golang.GolangInstallation/Go_1.3
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I'm using a tool installer which, for some downloads, the URL returns a 302 redirect. However, Jenkins reads the contents of the redirect page (i.e. some text like "This page has moved to http://foo/bar") and attempts to parse that as the zip/tar/whatever file. The stacktrace users see when this happens is pretty cryptic: {noformat} Unpacking Go from http://golang.org/dl/go1.3.darwin-amd64-osx10.6.tar.gz to /Users/Shared/Jenkins/Home/tools/org.jenkinsci.plugins.golang.GolangInstallation/Go_1.3 on Jenkins FATAL: Failed to install http://golang.org/dl/go1.3.darwin-amd64-osx10.6.tar.gz to /Users/Shared/Jenkins/Home/tools/org.jenkinsci.plugins.golang.GolangInstallation/Go_1.3 hudson.util.IOException2: Failed to install http://golang.org/dl/go1.3.darwin-amd64-osx10.6.tar.gz to /Users/Shared/Jenkins/Home/tools/org.jenkinsci.plugins.golang.GolangInstallation/Go_1.3 at hudson.FilePath.installIfNecessaryFrom(FilePath.java:768) at org.jenkinsci.plugins.golang.GolangInstaller.performInstallation(GolangInstaller.java:53) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:204) at org.jenkinsci.plugins.golang.GolangInstallation.forNode(GolangInstallation.java:41) at org.jenkinsci.plugins.golang.GolangBuildWrapper.setUp(GolangBuildWrapper.java:34) ... Caused by: hudson.util.IOException2: Failed to unpack http://golang.org/dl/go1.3.darwin-amd64-osx10.6.tar.gz (28 bytes read of total -1) at hudson.FilePath.installIfNecessaryFrom(FilePath.java:762) ... 12 more Caused by: hudson.util.IOException2: Failed to extract input stream at hudson.FilePath.readFromTar(FilePath.java:2071) ... Caused by: java.io.IOException: incorrect header check at com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:112) at org.apache.tools.tar.TarBuffer.readBlock(TarBuffer.java:257) ... {noformat} I will try and fix the tool installer in question to resolve the end URL, but this isn't a great idea in the long run — Jenkins should follow the 30x redirects itself.

    Jenkins JIRA | 2 years ago | Christopher Orr
    hudson.util.IOException2: Failed to install http://golang.org/dl/go1.3.darwin-amd64-osx10.6.tar.gz to /Users/Shared/Jenkins/Home/tools/org.jenkinsci.plugins.golang.GolangInstallation/Go_1.3
  6. 0

    Ant 1.9.3 and jenkins 1_539 installation issue

    Stack Overflow | 3 years ago | wadi3
    hudson.util.IOException2: Failed to install <a href="http://archive.apache.org/dist/ant/binaries/apache-ant-1.9.3-bin.zip" rel="nofollow">http://archive.apache.org/dist/ant/binaries/apache-ant-1.9.3-bin.zip</a> to /root/.jenkins/tools/hudson.tasks.Ant_AntInstallation/ant1.9.3

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. hudson.util.IOException2

      Failed to unpack http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.5-bin.zip (5013504 bytes read of total 10070771)

      at hudson.FilePath.installIfNecessaryFrom()
    2. Hudson
      FilePath.installIfNecessaryFrom
      1. hudson.FilePath.installIfNecessaryFrom(FilePath.java:567)
      1 frame