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

This widget could not be displayed.

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 Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

165 views 1 3
Join discussion

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