Can I set a longer connection timeout for Bamboo remote agents?

I'm setting up some new remote agents in a distant location from the main Bamboo server and I'm running into errors when the agent starts like this:

INFO   | jvm 1    | 2013/02/19 11:32:55 | 2013-02-19 11:32:55,275 INFO [WrapperSimpleAppMain] [AgentContext] Requesting fingerprint, url: http://bamboo.mycompany.com:8080/agentServer/GetFingerprint.action?hostName=foo.remotedomain.com&version=3&agentUuid=2918f14c-9f69-484a-a05d-5c00c3a5a14c
INFO   | jvm 1    | 2013/02/19 11:33:25 | Exiting due to fatal exception.
INFO   | jvm 1    | 2013/02/19 11:33:25 | org.apache.commons.httpclient.ConnectTimeoutException: The host did not accept the connection within timeout of 30000 ms

Perhaps there are some firewall issues or something. But I would like to first test whether all I need is longer time to connect. Is there a configuration file somewhere where I can increase the connection timeout to something more than 30 seconds? I grep'd around and didn't find anything, but perhaps there is a key I don't know about that I can set in the wrapper.conf file.

Suggestions?

1 answer

1 accepted

Brent - try looking in the bamboo.cfg.xml file.

There is a field "bamboo.jms.broker.client.uri" and "bamboo.jms.broker.uri". They both have URLs with parameters that affect the agents, especially the first parameter which has the URL parameter :

initialReconnectDelay=30000

and

maxReconnectAttempts=1000

You can tweak these to get the desired timing. Obviously, after changing the values you need to restart Bamboo before attempting to restart the agents.

THere is also some Atlassian docs here that can affect agent performance and timings : https://confluence.atlassian.com/display/BAMBOO/Changing+the+remote+agent+heartbeat+interval

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,071 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot