How can I force a bamboo remote agent to connect to a specific server with port 54663

Olaf Heemskerk March 11, 2013

I'm trying to connect a bamboo remote agent to bamboo. In the log file of the remote agent I find the line

[BambooActiveMQConnectionFactory] Setting broker URL to 'failover:(tcp://our_bamboo_server.domain_old:54663?wireFormat.maxInactivityDuration=300000)?maxReconnectAttempts=10&initialReconnectDelay=15000'

The only thing I see is that the bamboo server it's trying to connect to is our_bamboo_server.domain_old (anonymised name). It should however be our_bamboo_server.domain_new.

Long before installing the remote agent we have changed our domain from domain_old to domain_new.
The bamboo instance is running on a Red-Hat linux server which has been migrated from domain_old to domain_new.

Now my question is two fold:

  1. How does the bamboo-remote-agent determine the name of the bamboo server. In it's wrapper.conf file it only states the configuration:
    wrapper.app.parameter.2=http://our_bamboo_server/bamboo/agentServer/
    I could not find any other reference to our_bamboo_server.
  2. Is it possible to add/change something in the configuration of the remote agent to force the connection to our_bamboo_server.domain_new:54663.

Thanks in advance.

3 answers

1 accepted

3 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.
March 11, 2013

The Bamboo server names is indeed specified in the wrapper.conf file as you listed in Q1. Additionally, check your Bamboo server's bamboo.cfg.xml file.

Ensure the correct domain is set for BOTH these properties :

bamboo.jms.broker.client.uri

...and...

bamboo.jms.broker.uri

Then in the Bamboo Admin UI, in the General Section ensure the Base URL is set correctly as well.

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.
March 11, 2013

Also this might be reflected if you reverse proxy through a server like Apache HTTPD to hide the actual host and/or port Bamboo is running on.

Additionally double check your old and new servers don't resolve to the same DNS entry, might be causing a conflict. If so perhaps on your remote agent machine you may want to flush the dns cache.

Olaf Heemskerk March 12, 2013

I never specify the domain anywhere, since normally I only have to specify the server itself.

I have only set

bamboo.jms.broker.uri=tcp://our_bamboo_server:54663

Must I also set bamboo.jms.broker.client.uri in the bamboo-init.properties file on the server?

And if so what should it be set to?

Olaf Heemskerk March 12, 2013

The option

bamboo.jms.broker.client.uri

in the bamboo.cfg.xml was set incorrectly. This pointed to the old domain instead of the new domain. So thanks Adam.

0 votes
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.
March 14, 2013

I don't place a lot of confidence in the NetworkAnalyser. I gave it a jibberish URL and got "Connection established!" messages:

% java NetworkAnalyser http://blahblahdlbhal
Testing connectivity to Bamboo Server: http://blahblahdlbhal
Trying to establish connection with remote server: http://blahblahdlbhal
Connection established!
Testing connectivity to Bamboo Server: http:∫//blahblahdlbhal:54663
Trying to establish connection with remote server: http:∫//blahblahdlbhal:54663

0 votes
Olaf Heemskerk March 12, 2013

I also ran the NetworkAnalyser which gave the following output:

Testing connectivity to Bamboo Server: http://our_bamboo_server/bamboo
Trying to establish connection with remote server: http://our_bamboo_server/bamboo
Connection
established!
Testing connectivity to Bamboo Server: http:?//our_bamboo_server:54663/bamboo
Trying to establish connection with remote server: http:?//our_bamboo_server:54663/bamboo
Connection established!

So the network analyser doesn't see a problem.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events