Downloading Bamboo remote agent installer fails with ZipException: invalid entry compressed size.
Problem
Downloading Bamboo remote agent installer / jar fails with ZipException: invalid entry compressed size.
The following appears in the $BAMBOO_HOME/logs/atlassian-bamboo.log
or in the UI after attempting to download the agent installer.
io.atlassian.util.concurrent.LazyReference$InitializationException: java.util.zip.ZipException: invalid entry compressed size (expected 724 but got 726 bytes)
at io.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:156)
at io.atlassian.util.concurrent.LazyReference.get(LazyReference.java:116)
at io.atlassian.util.concurrent.ResettableLazyReference.get(ResettableLazyReference.java:95)
at com.atlassian.bamboo.agent.classserver.AgentInstallerServlet.doGet(AgentInstallerServlet.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:39)
Diagnosis
Environment
Your Bamboo installation was installed via a RPM package.
Resolution
RPM repackages JAR files (unarchives them and re-archives them) by default which causes a size conflict with what we're expecting. We recommend:
Disabling the JAR repack by adding this to your RPM spec:
%define __jar_repack %{nil}
- Repack your RPM using the new spec.
- Reinstall Bamboo using the repacked RPM.