Unexpected end of ZLIB blocks agent start on Bamboo 4.4.2

Does anyone know how to prevent the problem with bamboo server's inability to provide access to remote agent jar file? This blocks agent start up and installation of new agents. It appears to be a server side problem.
I know restarting the server will resolve the problem but it will kill 20+ running builds so I'd like to find an alternative.
  • Can't download remote agent jar usig web ui
  • vmlbuild-16 agent fails to bootstrap with error "java.io.EOFException: Unexpected end of ZLIB input stream"


2 answers

1 accepted

We ran an agent and server/master on the same system. It is possible that the dual use to /tmp was the problem. At Armen's suggestion we added the following to our wrapper.conf


I can see that the two instances are using different directories
1 vote

Are you running cleanup cron jobs on the temp directory? If so, they've probably deleted the zip file sent to the agent. This issue will be fixed in Bamboo 5.0 - the jar file will be regenerated if deleted.

Until then you the only workaround is either to restart the server or reconfigure the /tmp cleanup.

I believe I did add a cleanup step on my plan because the build stores items in tmp. I'll modify the plans to use a subdir of temp.

I checked our plans and we only clear specific files (xauth and xvfb files) from /tmp. I have no cronjobs running that could do this either and looked through all users and the cron log. So, I don't think there's an automated process running that would clear this file.

Also, if I copy the file to the agent's tmp all is good

scp build@vmbamboo-01:/opt/atlassian/bamboo-agent-home/atlassian-bamboo-agent-installer-4.4.2.jar /tmp/jarClassPath6603717285566365500.jar

and see zero impact when I copy the file to server/master's tmp dir.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,824 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you