Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bamboo agent behind proxy


I'm trying to configure Bamboo remote agent located in a closed cluster network. As a proxy server, I use Squid on cluster managment node which have access to bamboo server host . The agent setup is failing with message:

INFO   | jvm 1    | 2018/09/03 21:23:27 | 2018-09-03 21:23:27,452 INFO [AgentRunnerThread] [AgentRegistrationBean] Registering agent on the server,

INFO   | jvm 1    | 2018/09/03 21:27:42 | 2018-09-03 21:27:42,644 ERROR [ActiveMQ Task-1] [FailoverTransport] Failed to connect to [tcp://<bamboo server host>:54663?wireFormat.maxInactivityDuration=300000] after: 10 attempt(s)

How correctly to set up a proxy for JMS connection? HTTP/HTTPS proxying works well through -Dhttps.proxyHost, -Dhttps.proxyPort, -Dhttp.proxyHost and -Dhttp.proxyPort options.


1 answer

Simon says:

" The JMS connection is configured on your Bamboo server to use the TCP transport. This means that on the remote agent side you would need to use a forward proxy that can proxy TCP connections.

Since you are running Squid (which proxies HTTP/HTTPS maninly) you can change the transport in the JMS configuration to HTTP or HTTPS. If you use the latter please don't forget to set certificates correctly.

To change the JMS transport edit the file <Bamboo home directory>/bamboo.cfg.xml (which is located on your Bamboo server) and edit the lines below to use TCP transport (http was used below):

<property name="">failover:(http://<bamboo_server_hostname>:54663?wireFormat.maxInactivityDuration=300000)?maxReconnectAttempts=10&amp;initialReconnectDelay=15000</property>
<property name="">nio://</property>

(Make sure to replace <bamboo_server_hostname> with the actual hostname).

Restart your Bamboo server to apply the changes. The remote agent reads these properties once it connects to the server via the Base URL and then attempts the JMS connection.


Simon out.

There was new error:

INFO | jvm 68 | 2018/09/12 10:17:49 | 2018-09-12 10:17:49,490 INFO [Acti
erty> │veMQ Task-1] [DefaultHttpClient] Retrying request to {}->http://bamboo-server:54663

INFO   | jvm 68   | 2018/09/12 10:18:42 | 2018-09-12 10:18:42,851 INFO [ActiveMQ Task-1] [DefaultHttpClient] I/O exception ( caught when processing request to {}->http://bamboo-server:54663: Connection reset

When trying to access http://bamboo-server:54663 i receive page with something about ActiveMQ. What blocks Java http client from accessing this page?

Simon says:

" Check your forward proxy logs for connection termination as well as the Bamboo server logs for Active MQ entries.

You can increase log verbosity on the remote agent and the Bamboo server to get more information. Use this page to find the classes to adjust the verbosity level:


Simon out.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo Data Center 8.1 is now available

G’day Bamboo customers, Bamboo DC 8.1 is now available with it the following features and programs: SAML 2.0, OpenID Connect, and Crowd SSO In order to help admins with a simplified user manage...

204 views 0 4
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you