Installed remote agents failing to start due to corrupt files

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

The remote agents that were working just stop all of a sudden and the following appears in the Bamboo server logs

The following appears in the atlassian-bamboo.log:


'http://bamboo.mydomain.net:8085/agentServer/classpath.zip?fingerprint=352840780966809798'

Exiting due to fatal exception.

java.io.EOFException: Unexpected end of ZLIB input stream
        at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:234)
        at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:152)
        at java.util.zip.ZipInputStream.read(ZipInputStream.java:157)
		....
		....
1130 [main] FATAL com.atlassian.bamboo.agent.bootstrap.AgentBootstrap  - Exiting due to fatal exception.
java.io.EOFException: Unexpected end of ZLIB input stream
        at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:234)
        at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:152)
        at java.util.zip.ZipInputStream.read(ZipInputStream.java:157)
        at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:452)
        at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:494)
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:222)
        at java.io.InputStreamReader.read(InputStreamReader.java:177)
        at java.io.BufferedReader.fill(BufferedReader.java:147)
        at java.io.BufferedReader.readLine(BufferedReader.java:310)

Cause

This is caused primarily by the fact that the temp files or the classpath files in the agent home are corrupted.

Resolution

Try the following suggestions in steps:

  1. (Only applicable to Bamboo Server) Restart the Bamboo server
  2. Restart the remote agent host
  3. If the above two steps have not fixed the issue, delete the agent home and reinstall the remote agents
  4. If the issue still persists, investigate for any corrupted files on the Bamboo Server as the Remote Agent will always synchronize its files from the Server
Last modified on Feb 15, 2023

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.