Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Brent Villalobos
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 18, 2013

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

2 votes
Answer accepted
Adam Myatt
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 19, 2013

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
TAGS
AUG Leaders

Atlassian Community Events