Installed remote agents failing to start due to corrupt files
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
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
:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
'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:
(Only applicable to Bamboo Server) Restart the Bamboo server
Restart the remote agent host
If the above two steps have not fixed the issue, delete the agent home and reinstall the remote agents
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
Was this helpful?