Remote agent DNS connection issue

Hi All,

I am having an issue with getting a remote bamboo agent to connect to the main server due to a dns resolving issue.

The wrapper has the following config:

But looking at the log file it fails because:

INFO | jvm 1 | 2012/01/24 00:49:07 | 2012-01-24 00:49:07,539 ERROR [ActiveMQ Task] [FailoverTransport] Failed to connect to transport after: 10 attempt(s) 
INFO | jvm 1 | 2012/01/24 00:49:07 | 2012-01-24 00:49:07,539 WARN [Thread-1] [BambooJmsProxyFactoryBean] Exception when running afterPropertiesSet
INFO | jvm 1 | 2012/01/24 00:49:07 | javax.jms.JMSException:

The problem here is that does not resolve, only THRALL or

I am not sure where it is getting the first resolution from.

I have tried setting some properties in bamboo-agent.cfg.xml to force the name

<property name="">failover:(tcp://</property> 
<property name="">tcp://</property>

but the log still shows it using tcp:// for some reason:

INFO | jvm 1 | 2012/01/24 00:44:52 | 2012-01-24 00:44:51,990 INFO [Thread-1] [BambooActiveMQConnectionFactory] Setting broker URL to 'failover:(tcp://' 
INFO | jvm 1 | 2012/01/24 00:44:52 | 2012-01-24 00:44:52,178 INFO [Thread-1] [Bamboo
ActiveMQConnectionFactory] Setting broker URL to 'failover:(tcp://'

I've set the DNS resolution options in the windows TCP/IP settings, and looked at this page which outlines the problem:

Following it's suggestion (both links goto the same page) i updated the general page config to use the fully qualified domain but it still doesn't work.

Any ideas?

(Sorry about the formatting, it seems to have removed all the new line characters)

2 answers

1 accepted

3 votes

The value is taken from bamboo.cfg.xml file on the server. Can you change the there?

Wow, Thanks. I had no idea that setting was on the main server. I wonder why it would have automatically set it to that? During the install?

No matter, with '' and '' set correctly it works fine.

(I did not set, does that matter?)

Yeah, during the install it tries to autodetect the uris.

I think there's a fallback to broker uri if the client uri is not set.

As a bonus comment - I had a similar issue on our Bamboo server where we used the hostname in the server's bamboo.cfg.xml file but the server could not resolve it, so didn't bind to any IP. Adding an entry to the hosts file so it resolved fixed the problem (I'm sure DNS would have worked too).

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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,321 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