Agent disconnected: "java.net.ConnectException: Connection timed out"

Still need help?

The Atlassian Community is here for you.

Ask the community


Problem

The remote agent is dropping out due to errors similar to:

java.net.ConnectException: Connection timed out

Resolution

  1. Firewall/Router: Ensure that you don't have a firewall/router which might be closing network connections due to inactivity.

  2. Low Network Throughput: The error can also occur, whilst sending large messages over slow network link:
    This problem arises because the ActiveMQ message broker continuously checks for activity on a socket, and whilst building a large message in the TCP socket buffer, the inactivity monitor will time out

As the document suggests, edit your <Bamboo_Home>/bamboo.cfg.xml file and update the section below. Set the maxInactivityDuration value to a number > 300000:

<property name="bamboo.jms.broker.client.uri">failover:(tcp://192.168.35.128:54663?wireFormat.maxInactivityDuration=300000)?maxReconnectAttempts=10&amp;initialReconnectDelay=15000</property>

Last modified on Jun 1, 2018

Was this helpful?

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