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

102 views
Skip to first unread message

Prakhash Sivakumar

unread,
Jul 20, 2016, 2:08:07 AM7/20/16
to Jenkins Users
Hi all,

I'm using Jenkins 1.626, When I try to install ZAP by pointing the repository URL in the zaproxy plugin I'm getting the following error

Unpacking 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 on Jenkins
ERROR: 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
	at hudson.FilePath.installIfNecessaryFrom(FilePath.java:833)
	at hudson.tools.ZipExtractionInstaller.performInstallation(ZipExtractionInstaller.java:79)
	at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68)
	at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:108)
	at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206)
	at com.cloudbees.jenkins.plugins.customtools.CustomTool.forNode(CustomTool.java:154)
	at com.cloudbees.jenkins.plugins.customtools.CustomTool.forNode(CustomTool.java:59)
	at fr.novia.zaproxyplugin.ZAProxy.retrieveZapHomeWithToolInstall(ZAProxy.java:739)
	at fr.novia.zaproxyplugin.ZAProxy.checkParams(ZAProxy.java:797)
	at fr.novia.zaproxyplugin.ZAProxy.startZAP(ZAProxy.java:856)
	at fr.novia.zaproxyplugin.ZAProxyBuilder.perform(ZAProxyBuilder.java:189)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.build(MavenModuleSetBuild.java:905)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:856)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
	at hudson.model.Run.execute(Run.java:1741)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:525)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:408)
Caused by: java.io.IOException: Failed to unpack http://github.com/zaproxy/zaproxy/releases/download/2.5.0/ZAP_2.5.0_Linux.tar.gz (0 bytes read of total 0)
	at hudson.FilePath.installIfNecessaryFrom(FilePath.java:827)
	... 19 more
Caused by: java.io.IOException: Failed to extract input stream
	at hudson.FilePath.readFromTar(FilePath.java:2299)
	at hudson.FilePath.access$400(FilePath.java:191)
	at hudson.FilePath$10.invoke(FilePath.java:721)
	at hudson.FilePath$10.invoke(FilePath.java:719)
	at hudson.FilePath.act(FilePath.java:991)
	at hudson.FilePath.act(FilePath.java:969)
	at hudson.FilePath.untarFrom(FilePath.java:719)
	at hudson.FilePath.installIfNecessaryFrom(FilePath.java:825)
	... 19 more
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:2276)
	... 26 more


How to resolve this issue

Thanks

Daniel Beck

unread,
Aug 4, 2016, 5:13:18 AM8/4/16
to jenkins...@googlegroups.com
That URL is a redirect, and the tool installers only support that since Jenkins 2.4.
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/20445478-67d2-4baa-aa1d-78c14ee15a48%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages