A remote agent loading on server ( ip )
Asked by devrimdemiroz:

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 &lt;bamboo-install&gt;/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? |


Answers:
author: devrimdemiroz
body: 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.


author: devrimdemiroz
body: 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.


author: Jeremy Test
body: @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](http://www.sycorr.com)


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

comments: author: devrimdemiroz
body: 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.


author: Przemek Bruski
body: 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.](http://support.atlassian.com) 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?


author: devrimdemiroz
body: 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.


author: devrimdemiroz
body: 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?


author: Przemek Bruski
body: You have to post some logs from the remote agent.

comments: author: devrimdemiroz
body: ```
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 existINFO   | 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/pluginsINFO   | 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/pluginsINFO   | 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&amp;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&amp;initialReconnectDelay=15000'
```

```

```


Tags: mac

remote-agent