Bamboo Remote Agent installed As service But startup fails

sridhara March 20, 2018

JAVA_HOME is \jdk 1.8

Agent version is 6.2.5

Here is log,

STATUS | wrapper | 2018/03/20 17:53:27 | --> Wrapper Started as Service
STATUS | wrapper | 2018/03/20 17:53:27 | Launching a JVM...
INFO | jvm 1 | 2018/03/20 17:53:28 | Wrapper (Version 3.2.3-atlassian-1) http://wrapper.tanukisoftware.org
INFO | jvm 1 | 2018/03/20 17:53:28 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
INFO | jvm 1 | 2018/03/20 17:53:28 |
INFO | jvm 1 | 2018/03/20 17:53:28 | WrapperSimpleApp: Unable to locate the class com.atlassian.bamboo.agent.bootstrap.AgentBootstrap: java.lang.UnsupportedClassVersionError: com/atlassian/bamboo/agent/bootstrap/AgentBootstrap : Unsupported major.minor version 52.0
INFO | jvm 1 | 2018/03/20 17:53:28 |
INFO | jvm 1 | 2018/03/20 17:53:28 | WrapperSimpleApp Usage:
INFO | jvm 1 | 2018/03/20 17:53:28 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} [app_arguments]
INFO | jvm 1 | 2018/03/20 17:53:28 |
INFO | jvm 1 | 2018/03/20 17:53:28 | Where:
INFO | jvm 1 | 2018/03/20 17:53:28 | app_class: The fully qualified class name of the application to run.
INFO | jvm 1 | 2018/03/20 17:53:28 | app_arguments: The arguments that would normally be passed to the
INFO | jvm 1 | 2018/03/20 17:53:28 | application.
STATUS | wrapper | 2018/03/20 17:53:30 | <-- Wrapper Stopped

1 answer

2 votes
Mirek
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 20, 2018

You probably have multiple Java versions installed.

Please make sure that the latest one is used by Bamboo. In other words you need to ensure Bamboo is starting up using Java 8, otherwise it won't work. You can force this to always use specific version.. you can do this by editing <BAMBOO_INSTALL>/bin/start-bamboo.sh and edit this line..

JAVA_HOME="your/java/path"
sridhara March 20, 2018

Sorry My question header was not complete. Actually I have installed my Remote Agent as a service in windows but when I tried to start the service I am getting above warning in log.

Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 20, 2018

Mirek's comment was on point - it looks like the agent is starting with a too new version of Java.

Cheers,

Christian

Premier Support Engineer

Atlassian

sridhara March 20, 2018

after changing JAVA_HOME to my java path getting below error

STATUS | wrapper | 2018/03/20 18:52:22 | Starting the Bamboo Remote Agent service...
INFO | wrapper | 2018/03/20 18:52:28 | Waiting to start...
INFO | wrapper | 2018/03/20 18:52:33 | Waiting to start...
INFO | wrapper | 2018/03/20 18:52:38 | Waiting to start...
INFO | wrapper | 2018/03/20 18:52:43 | Waiting to start...
ERROR | wrapper | 2018/03/20 18:52:44 | The Bamboo Remote Agent service was launched, but failed to start.

sridhara March 20, 2018

I even tried with jdk 1.7 but no luck.

Mirek
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 20, 2018

Please check your PATH,JAVA_HOME, JAVA_JDK or JAVA_JRE variables. If that is correctly set you can alternatively verify wrapper.java.command located in the file <bamboo-agent-home>/conf/wrapper.conf

wrapper.java.command=%JAVA_HOME%/bin/java
Like Nikos Antonatos likes this
sridhara March 20, 2018

It worked,Thank you @Mirek

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events