Problem with Bamboo Remote Agent on MAC OS Sierra
Asked by Rump_ Matthias:

When I try to run an agent on a MAC i get the folling exception

INFO \[WrapperSimpleAppMain\] \[AgentContext\] Requesting fingerprint, url: [https://my.company.com/builds/agentServer/GetFingerprint.action?hostName=myhost.mycompany.net\&version=3\&agentUuid=47ccd75d-d0eb-46f5-9c25-13533f70deb5](https://my.company.com/builds/agentServer/GetFingerprint.action?hostName=myhost.mycompany.net&version=3&agentUuid=47ccd75d-d0eb-46f5-9c25-13533f70deb5)  
INFO \[WrapperSimpleAppMain\] \[RemoteAgentHttpClientFactory\] Creating a new HTTP client...  
INFO \[WrapperSimpleAppMain\] \[AgentContext\] Authenticating against Bamboo server at <https://my.company.com/builds/agentServer/>  
INFO \[WrapperSimpleAppMain\] \[AgentContext\] Successfully authenticated with Bamboo server  
Exiting due to fatal exception.  
java.lang.ArrayIndexOutOfBoundsException: 1  
at com.atlassian.bamboo.agent.bootstrap.GetFingerprintResponse.\<init\>(GetFingerprintResponse.java:24)  
at com.atlassian.bamboo.agent.bootstrap.AgentContext.initFingerprint(AgentContext.java:119)  
at com.atlassian.bamboo.agent.bootstrap.AgentContext.initServerSession(AgentContext.java:101)  
at com.atlassian.bamboo.agent.bootstrap.AgentContext.run(AgentContext.java:88)  
at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.run(AgentBootstrap.java:111)  
at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.main(AgentBootstrap.java:50)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)  
at java.lang.Thread.run(Thread.java:748)  
FATAL \[WrapperSimpleAppMain\] \[AgentBootstrap\] Exiting due to fatal exception.

With Windows based agent everything works fine.


Answers:
author: rsperafico
body: Hi [@Rump_ Matthias](/t5/user/viewprofilepage/user-id/2092702),

The issue mentioned suggests a networking problem.

Please refer to [Troubleshooting Remote Agents](https://confluence.atlassian.com/display/BAMKB/Troubleshooting+Remote+Agents) documentation.

Also, please make sure:

* the URL given to Bamboo is accurate (e.g <https://my.company.com/builds/agentServer/>) and this URL can reach Bamboo server
* check the fringerprint by issuing the command [https://my.company.com/builds/agentServer/GetFingerprint.action?hostName=myhost.mycompany.net\&version=3\&agentUuid=47ccd75d-d0eb-46f5-9c25-13533f70deb5](https://my.company.com/builds/agentServer/GetFingerprint.action?hostName=myhost.mycompany.net&version=3&agentUuid=47ccd75d-d0eb-46f5-9c25-13533f70deb5) from a web browser in Bamboo's Server box and Bamboo Remote Agent box. You can compare the results checking if output is the same, e.g:

  ```
  bootstrapVersion=1
  &fingerprint=-1111111111111111111
  &instanceFingerprint=2222222222222222222
  &agentClassName=com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent
  &userProperty.bamboo.agent.brokerCertificate=MIICwD...Wx3GzA
  &userProperty.bamboo.agent.brokerUrl=failover:(tcp://BAMBOO_BROKER_CLIENT_URL:54663?wireFormat.maxInactivityDuration=300000)?initialReconnectDelay=15000&maxReconnectAttempts=10&userProperty.bamboo.agent.heartbeatInterval=60
  ```

Kind regards,

Rafael


Tags: mac

remote-agent