Bamboo remote agent loading fails with JAVA exception.

I am trying to launch remote agent. Bamboo administration section of Remote agents tell "There are currently no online remote agents configured on this Bamboo instance."

Remote agent unsuccessfully try to connect with server

23.03.2016 15:53:55 A remote agent is loading on rzn.qtech.ru (127.0.0.1).
23.03.2016 15:54:00 A remote agent is loading on rzn.qtech.ru (127.0.0.1).
23.03.2016 15:54:05 A remote agent is loading on rzn.qtech.ru (127.0.0.1).

 

From log I see "ERROR  | wrapper  | 2016/03/23 17:00:28 | JVM exited while starting the application."

But I can`t understand the reason why wrapper fails after response

 INFO   | jvm 1    | 2016/03/23 17:00:27 | 2016-03-23 17:00:27,851 INFO [WrapperSimpleAppMain] [ClasspathBuilder] Syncing [/home/builder/bamboo-agent-home/classpath] with http://builder.qtech.ru/agentServer/classpath.zip?fingerprint=8516578912943025164

In my opinion one of the potential problem could be with ssl certificate. Agent host is CenOs. I will be very glad if you can help my understand what really happened.

 

STATUS | wrapper  | 2016/03/23 17:00:26 | --> Wrapper Started as Daemon
STATUS | wrapper  | 2016/03/23 17:00:26 | Launching a JVM...
INFO   | jvm 1    | 2016/03/23 17:00:27 | Wrapper (Version 3.2.3-atlassian-1) http://wrapper.tanukisoftware.org
INFO   | jvm 1    | 2016/03/23 17:00:27 |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
INFO   | jvm 1    | 2016/03/23 17:00:27 |
INFO   | jvm 1    | 2016/03/23 17:00:27 | 2016-03-23 17:00:27,234 INFO [WrapperSimpleAppMain] [AgentBootstrap] Starting Agent Bootstrap using Java 1.8.0_71 from Oracle Corporation Default charset: UT
F-8
INFO   | jvm 1    | 2016/03/23 17:00:27 | 2016-03-23 17:00:27,235 INFO [WrapperSimpleAppMain] [AgentBootstrap] Agent bootstrap using endpoint: http://builder.qtech.ru/agentServer/
INFO   | jvm 1    | 2016/03/23 17:00:27 | 2016-03-23 17:00:27,243 INFO [WrapperSimpleAppMain] [RemoteAgentHomeLocatorForBootstrap] Using agent home located at [/home/builder/bamboo-agent-home]
INFO   | jvm 1    | 2016/03/23 17:00:27 | 2016-03-23 17:00:27,243 INFO [WrapperSimpleAppMain] [RemoteAgentHomeLocatorForBootstrap] Using agent home located at [/home/builder/bamboo-agent-home]
INFO   | jvm 1    | 2016/03/23 17:00:27 | 2016-03-23 17:00:27,243 INFO [WrapperSimpleAppMain] [AgentUuidInitializer] Found agent UUID 'a9d0ddad-c8d5-44b2-a044-64572bf1346a' in temporary UUID file '/h
ome/builder/bamboo-agent-home/uuid-temp.properties'
INFO   | jvm 1    | 2016/03/23 17:00:27 | 2016-03-23 17:00:27,248 INFO [WrapperSimpleAppMain] [AgentContext] Requesting fingerprint, url: http://builder.qtech.ru/agentServer/GetFingerprint.action?hos
tName=rzn.qtech.ru&version=3&agentUuid=a9d0ddad-c8d5-44b2-a044-64572bf1346a
INFO   | jvm 1    | 2016/03/23 17:00:27 | 2016-03-23 17:00:27,252 INFO [WrapperSimpleAppMain] [RemoteAgentHttpClientFactory] Creating a new HTTP client...
INFO   | jvm 1    | 2016/03/23 17:00:27 | 2016-03-23 17:00:27,802 INFO [WrapperSimpleAppMain] [AgentContext] Successfully authenticated with Bamboo server at http://builder.qtech.ru/agentServer/
INFO   | jvm 1    | 2016/03/23 17:00:27 | 2016-03-23 17:00:27,811 INFO [WrapperSimpleAppMain] [BootstrapUpdater] Checking if bootstrap /home/builder/bamboo-agent-home/lib/bamboo-agent-bootstrap.jar i
s up to date, using url: http://builder.qtech.ru/agentServer/GetJar?name=bootstrap-with-deps&checksum=4162786551&fingerprint=8516578912943025164
INFO   | jvm 1    | 2016/03/23 17:00:27 | 2016-03-23 17:00:27,833 INFO [WrapperSimpleAppMain] [BootstrapUpdater] Existing bootstrap is up to date.
INFO   | jvm 1    | 2016/03/23 17:00:27 | 2016-03-23 17:00:27,833 INFO [WrapperSimpleAppMain] [AgentContext] Bootstrap Type: [REMOTE], agent class: com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent
INFO   | jvm 1    | 2016/03/23 17:00:27 | 2016-03-23 17:00:27,833 INFO [WrapperSimpleAppMain] [AgentContext] Preparing for a classloader switch
INFO   | jvm 1    | 2016/03/23 17:00:27 | 2016-03-23 17:00:27,833 INFO [WrapperSimpleAppMain] [RemoteAgentHomeLocatorForBootstrap] Using agent home located at [/home/builder/bamboo-agent-home]
INFO   | jvm 1    | 2016/03/23 17:00:27 | 2016-03-23 17:00:27,851 INFO [WrapperSimpleAppMain] [ClasspathBuilder] Syncing [/home/builder/bamboo-agent-home/classpath] with http://builder.qtech.ru/agent
Server/classpath.zip?fingerprint=8516578912943025164
INFO   | jvm 1    | 2016/03/23 17:00:28 | 2016-03-23 17:00:27,990 INFO [WrapperSimpleAppMain] [ClasspathBuilder] 312 file(s) currently in [/home/builder/bamboo-agent-home/classpath]
ERROR  | wrapper  | 2016/03/23 17:00:28 | JVM exited while starting the application.
INFO   | jvm 1    | 2016/03/23 17:00:28 | 2016-03-23 17:00:28,022 ERROR [WrapperSimpleAppMain] [ClasspathBuilder] An error has occurred when retrieving classpath data: HTTP/1.1 302 Found
INFO   | jvm 1    | 2016/03/23 17:00:28 | Exiting due to fatal exception.
INFO   | jvm 1    | 2016/03/23 17:00:28 | com.atlassian.bamboo.agent.bootstrap.RemoteAgentHttpException: Response: [HTTP/1.1 302 Found] received after 'classpath.zip' retrieval request.
INFO   | jvm 1    | 2016/03/23 17:00:28 |       at com.atlassian.bamboo.agent.bootstrap.ClasspathBuilder.getRemoteResources(ClasspathBuilder.java:118)
INFO   | jvm 1    | 2016/03/23 17:00:28 |       at com.atlassian.bamboo.agent.bootstrap.ClasspathBuilder.build(ClasspathBuilder.java:59)
INFO   | jvm 1    | 2016/03/23 17:00:28 |       at com.atlassian.bamboo.agent.bootstrap.AgentContext.newClassLoader(AgentContext.java:386)
INFO   | jvm 1    | 2016/03/23 17:00:28 |       at com.atlassian.bamboo.agent.bootstrap.AgentContext.run(AgentContext.java:98)
INFO   | jvm 1    | 2016/03/23 17:00:28 |       at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.run(AgentBootstrap.java:110)
INFO   | jvm 1    | 2016/03/23 17:00:28 |       at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.main(AgentBootstrap.java:45)
INFO   | jvm 1    | 2016/03/23 17:00:28 |       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2016/03/23 17:00:28 |       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
INFO   | jvm 1    | 2016/03/23 17:00:28 |       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO   | jvm 1    | 2016/03/23 17:00:28 |       at java.lang.reflect.Method.invoke(Method.java:497)
INFO   | jvm 1    | 2016/03/23 17:00:28 |       at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
INFO   | jvm 1    | 2016/03/23 17:00:28 |       at java.lang.Thread.run(Thread.java:745)

INFO   | jvm 1    | 2016/03/23 17:00:28 | 2016-03-23 17:00:28,024 FATAL [WrapperSimpleAppMain] [AgentBootstrap] Exiting due to fatal exception.

INFO   | jvm 1    | 2016/03/23 17:00:28 | com.atlassian.bamboo.agent.bootstrap.RemoteAgentHttpException: Response: [HTTP/1.1 302 Found] received after 'classpath.zip' retrieval request.

INFO   | jvm 1    | 2016/03/23 17:00:28 |       at com.atlassian.bamboo.agent.bootstrap.ClasspathBuilder.getRemoteResources(ClasspathBuilder.java:118)

INFO   | jvm 1    | 2016/03/23 17:00:28 |       at com.atlassian.bamboo.agent.bootstrap.ClasspathBuilder.build(ClasspathBuilder.java:59)

INFO   | jvm 1    | 2016/03/23 17:00:28 |       at com.atlassian.bamboo.agent.bootstrap.AgentContext.newClassLoader(AgentContext.java:386)

INFO   | jvm 1    | 2016/03/23 17:00:28 |       at com.atlassian.bamboo.agent.bootstrap.AgentContext.run(AgentContext.java:98)

INFO   | jvm 1    | 2016/03/23 17:00:28 |       at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.run(AgentBootstrap.java:110)

INFO   | jvm 1    | 2016/03/23 17:00:28 |       at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.main(AgentBootstrap.java:45)

INFO   | jvm 1    | 2016/03/23 17:00:28 |       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

INFO   | jvm 1    | 2016/03/23 17:00:28 |       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

INFO   | jvm 1    | 2016/03/23 17:00:28 |       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

INFO   | jvm 1    | 2016/03/23 17:00:28 |       at java.lang.reflect.Method.invoke(Method.java:497)

INFO   | jvm 1    | 2016/03/23 17:00:28 |       at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)

INFO   | jvm 1    | 2016/03/23 17:00:28 |       at java.lang.Thread.run(Thread.java:745)

 

 

 

 

1 answer

Have the exact same issue, did you find out what is causing it? We started seeing it on agents after upgrading to 5.14.0.2

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
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,814 views 0 6
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