Remote agent points to incorrect hostname instead of Bamboo's server IP

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

Summary

Problem

Remote Agent is started on remote machine and has been given approval on Bamboo server (if Agent authentication is configured).

However, the remote agent does not appear as Online.

The following appears in Bamboo Overview > Build Resources > Agents > Online Remote Agents tab:

1 May 17, 2015 4:03:38 AM A remote agent is loading on <hostname> (10.10.2.250).

The following appears in the remote agent's atlassian-bamboo.log:

1 2 3 4 INFO | jvm 1 | 2015/08/11 17:37:18 | 2015-08-11 17:37:18,650 ERROR [ActiveMQ Task-1] [FailoverTransport] Failed to connect to [tcp://<hostname>:54663?wireFormat.maxInactivityDuration=300000] after: 10 attempt(s) INFO | jvm 1 | 2015/08/11 17:37:18 | 2015-08-11 17:37:18,666 INFO [ActiveMQ Connection Executor: unconnected] [PooledConnectionFactory] Expiring connection ActiveMQConnection {id=ID:id-vm-2316-1439285557288-1:1,clientId=ID:id-vm-2316-1439285557288-0:1,started=false} on IOException: java.net.UnknownHostException: <hostname> INFO | jvm 1 | 2015/08/11 17:37:18 | Exiting due to fatal exception. INFO | jvm 1 | 2015/08/11 17:37:18 | java.lang.reflect.InvocationTargetException

OR

1 2 3 4 INFO | jvm 1 | 2015/05/17 19:35:47 | 2015-05-17 19:35:46,988 INFO [Thread-0] [BambooActiveMQConnectionFactory] Setting broker URL to 'failover:(tcp://localhost:54663?wireFormat.maxInactivityDuration=300000) ?initialReconnectDelay=15000&maxReconnectAttempts=10' INFO | jvm 1 | 2015/05/17 19:35:47 | 2015-05-17 19:35:46,991 WARN [Thread-0] [BambooActiveMQConnectionFactory] Broker URI: tcp://localhost:54663?wireFormat.maxInactivityDuration=300000 is invalid: java.net. ConnectException: Connection refused

Diagnosis

Check the hostname of Broker client URL configured atOverview >> System >> General Configuration.

"Ping" the hostname in the remote agent machine.

Cause

The remote agent in another machine is trying to connect to an unknown hostname or localhost instead of Bamboo's IP address.

The agent obtains the Broker client URL from the Bamboo configuration to connect to Bamboo server.

Solution

Resolution

  1. Stop Remote Agent.

  2. Set the correct hostname or Bamboo's IP address for Broker client URL at bambooOverview >> System >> General Configuration.

  3. Restart Bamboo server as this change is not applied until then.

  4. Start Remote Agent.

    Please refer to our documentation that describes the Broker URL in Bamboo for more details.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.