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

A remote agent loading on server ( ip )

devrimdemiroz April 5, 2012

With reference to thread http://forums.atlassian.com/thread.jspa?threadID=34704 :

Agent hangs after initial registrations. Available log on bamboo and agent is as follows.

[RemoteAgentManagerImpl] A remote agent is loading on 46.20.227.49 ....

I have tried instructions@http://confluence.atlassian.com/display/BAMKB/Troubleshooting+Remote+Agents

"java NetworkAnalyser BAMBOO_URL"

It passes tests with o problem.

I also tried
"copy the attached log4j.properties file into <bamboo-install>/webapp/WEB-INF/classes"

It did not produce any better log.

My Bamboo version 3.4.3
Just trying to evaluate remote agent on mac, however this is situation so far.....
Alone in dark, any light?

6 answers

1 accepted

0 votes
Answer accepted
devrimdemiroz October 9, 2012
It fınally came up to be a port problem at the end. As it was pointed you all. However , ıt ıs quite hard to locate the problem with the logs ın hand.
0 votes
devrimdemiroz November 9, 2012

It has been a while, so I shall try to express as I remember.

I changed agent ports/url's in wrapper.conf or the main config file or both to get basic commucation over 80 port.

Also, I added 54663 - 54666 inbound ports open for communication on serverside and outbound on Agent side. This was regarding the JMS. Anyway, one port open should be enough for JMS.

0 votes
Jeremy Jeremy November 9, 2012

@Ulas

What did you do to fix the problem? I have a very simular setup to you where I run Bamboo behind apache. When I try to connect my remote agents I get the exact same error as you. I have used the NetworkAnalyser tool, reviewed the wrapper settings, general settings, etc, but have not found what is going wrong. Any hints would be great.

Respectfully,

- Jeremy Neuharth | Founder

Sycorr

0 votes
Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 24, 2012

Please make sure your BaseURL in Bamboo Administration section is set to :80 and not :8085.

devrimdemiroz May 24, 2012

Yeah, I am sure your comment will help some guys out there reading this thread.

However , I have already passed that part. My question -as a rephrase- How to make it work over port 80? Suppose I have restrictions serving over 8085 and also have restrictions on agent side as well gor outbound to 8085.

Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 24, 2012

There are only two possible URL sources for the agent - one is the agentServer URL that you've provided on the command line and is now stored in wrapper.conf in your Agent's home directory. The other can come from the BaseURL defined in Bamboo Server.

I am pretty sure the first one is set to :80, because the one from wrapper.conf is used for initial communication which works in your case. My assumption was that the other one is set incorrectly.

But if you're saying that both are set to 80 then you should open a support issue. We'll figure out why it connects to 8085 when you have it configured for 80.

Just making sure: you do realise that you'll have to open a port/lift restrictions for JMS communication, right?

devrimdemiroz May 24, 2012

wrapper.conf is a good suggestion. I noticed I did not change it, or it has been overridden during my try-outs. It helped to get rid of the exception connecting to 8085. However situation and logs are still same as I opened the thread. I'll try to update thread with further findings.

I have temoprarily opened 54663-54666 range for JMS. That is another "boss" waiting ahead.

0 votes
devrimdemiroz May 24, 2012

I finally got some clue. I am serving bamboo over port 80 behind an apache proxy. NetworkAnalyser tool has no problem with BAMBOO_URL on port 80.

However, after some intial messaging with BAMBOO_URL at port 80, bamboo somehow sends agent BAMBOO_URL:8085. And outgoing 8085 is closed.

So to change my question:

I am serving bamboo over port 80 with behind a proxy.(it should be quite common)

How do I make agent to talk over port 80?

0 votes
Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 17, 2012

You have to post some logs from the remote agent.

devrimdemiroz April 18, 2012
Agent logs are as follows. Serverside logs is as I pasted in original entry.
 
INFO   | jvm 1    | 2012/04/18 19:53:27 | 2012-04-18 19:53:27,335 INFO [Thread-2] [RemoteAgentHomeLocatorForBootstrap] Agent home located at '/Users/user769/bamboo-agent-home'
INFO   | jvm 1    | 2012/04/18 19:53:27 | 2012-04-18 19:53:27,342 INFO [Thread-2] [RemoteAgent] Starting Bamboo Remote Agent...
INFO   | jvm 1    | 2012/04/18 19:53:27 | 2012-04-18 19:53:27,342 INFO [Thread-2] [RemoteAgent] Starting application context...
INFO   | jvm 1    | 2012/04/18 19:53:28 | 2012-04-18 19:53:28,901 WARN [Thread-2] [PropertyPlaceholderConfigurer] Could not load properties from class path resource [bamboo-init.properties]: class path resource [bamboo-init.properties] cannot be opened because it does not exist
INFO   | jvm 1    | 2012/04/18 19:53:29 | 2012-04-18 19:53:28,924 INFO [Thread-2] [RemoteAgentHomeLocatorForBootstrap] Agent home located at '/Users/user769/bamboo-agent-home'
INFO   | jvm 1    | 2012/04/18 19:53:29 | 2012-04-18 19:53:28,925 INFO [Thread-2] [RemoteAgentHomeDirectoryLayout] Plugin directory: /Users/user769/bamboo-agent-home/plugins
INFO   | jvm 1    | 2012/04/18 19:53:29 | 2012-04-18 19:53:28,925 INFO [Thread-2] [RemoteAgentHomeDirectoryLayout] Plugin cache directory: /Users/user769/bamboo-agent-home/caches/plugins
INFO   | jvm 1    | 2012/04/18 19:53:29 | 2012-04-18 19:53:29,043 INFO [Thread-2] [BambooActiveMQConnectionFactory] Setting broker URL to 'failover:(tcp://bamboo.infonebula.com:54666?wireFormat.maxInactivityDuration=300000)?maxReconnectAttempts=10&initialReconnectDelay=15000'
INFO   | jvm 1    | 2012/04/18 19:53:29 | 2012-04-18 19:53:29,383 INFO [Thread-2] [BambooActiveMQConnectionFactory] Setting broker URL to 'failover:(tcp://bamboo.infonebula.com:54666?wireFormat.maxInactivityDuration=300000)?maxReconnectAttempts=10&initialReconnectDelay=15000'


					
				
			
			
			
				
			
			
			
			
			
			
		

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events