Since upgrading to from bamboo 4.4.2 to 5.8.1 builds sometimes fail to transfer artifacts from remote agent to bamboo server. One out of 20 builds or so seems to exhibit the problem and I see the errors in server/agents logs and worked with Atlassian support to change http.socket.timeout and client.timeout with not much impact.
anyone got a clue how to dig deeper and figure out a) what's going on? b) how to fix it?
Server Config Changes:
- wrapper.java.additional.3=-Dbamboo.agent.heartbeatTimeoutSeconds=1800
- wrapper.java.additional.4=-Dbamboo.agent.heartbeatCheckInterval=30
- wrapper.java.additional.5=-Dbamboo.agent.http.client.timeout=600 DO NOTHING CHANGE
- wrapper.java.additional.6=-Dbamboo.agent.http.client.retries=20 DO NOTHING CHANGE
Agent Config Changes:
- wrapper.java.additional.7=-Dbamboo.agent.http.client.timeout=600
- wrapper.java.additional.8=-Dbamboo.agent.http.client.retries=20
Server
2015-05-12 05:40:07,277 ERROR [http-bio-8085-exec-60] [DeliverMessageServlet] Failed to deserialise message sent to /agentServer/message&fingerprint=-612195218561972921 : Artifact [Logs] for FEATURE-PLAT31487-JOB1-23
java.net.SocketTimeoutException: Read timed out
Remote Agent
2015-05-12 05:39:40,288 INFO [0-BAM::linengbld36::Agent:pool-3-thread-1] [BuildArtifactPostProcessor] Copying the build artifacts for build: FEATURE-PLAT31487-JOB1-23
2015-05-12 05:39:47,091 INFO [0-BAM::linengbld36::Agent:pool-3-thread-1] [AbstractArtifactManager] Publishing [Logs] for FEATURE-PLAT31487-JOB1-23: 1343 file(s) matching [**/target/logs/**] in directory /opt/builds/build-dir/FEATURE-PLAT31487-JOB1/.
2015-05-12 05:39:47,316 INFO [0-BAM::linengbld36::Agent:pool-3-thread-1] [AbstractArtifactManager] Trying to publish the artifact with handler: com.atlassian.bamboo.build.artifact.BambooRemoteArtifactHandler
2015-05-12 05:41:16,382 ERROR [0-BAM::linengbld36::Agent:pool-3-thread-1] [HttpMessageSender] Failed to send message.
java.io.IOException: Unexpected HTTP status code: HTTP/1.1 500 Internal Server Error
at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender.send(HttpMessageSender.java:129)