Downloading Bamboo remote agent installer fails with ZipException: invalid entry compressed size.
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
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.
1
2
3
4
5
6
7
8
9
10
11
12
13
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:
1
%define __jar_repack %{nil}
Repack your RPM using the new spec.
Reinstall Bamboo using the repacked RPM.
Was this helpful?