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

0 votes
Accepted answer

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
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

956 views 3 9
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