bamboo service, correct installation, still not running (possible misconfig in JRE path)
Asked by Steven_Gosseling:

At my CentOS server, I managed to install and setup the required files following the guide on <https://confluence.atlassian.com/bamboo/running-bamboo-as-a-linux-service-416056046.html>

When logged in as root I tried to start the bamboo service located in **/etc/init.d/** with running the command **./bamboo start**

I get the following output:

```
root@server [/etc/init.d]# ./bamboo start -fgStarting bambooBamboo Server Edition   Version : 5.9.10Detecting JVM PermGen support...PermGen switch is supported. Setting to 256mIf you encounter issues starting or stopping Bamboo Server, please see the Troubleshooting guide at https://confluence.atlassian.com/display/BAMBOO/Installing+and+upgrading+BambooUsing CATALINA_BASE:   /opt/atlassian/bamboo/currentUsing CATALINA_HOME:   /opt/atlassian/bamboo/currentUsing CATALINA_TMPDIR: /opt/atlassian/bamboo/current/tempUsing JRE_HOME:        /usr/local/jdkUsing CLASSPATH:       /opt/atlassian/bamboo/current/bin/bootstrap.jar:/opt/atlassian/bamboo/current/bin/tomcat-juli.jarTomcat started.root@server [/etc/init.d]#
```

Possibly this has got to do with the wrong JRE home, since this directory does not exist. In the logs of **catalina.out** i find the error:

```
/opt/atlassian/bamboo/current/bin/catalina.sh: line 385: /usr/local/jdk/bin/java: No such file or directory
```

Just for the sake of sanity I went looking at the running services using the **ps**command, it does not show anything about bamboo.

Could you help me out with this issue?

Besides of this, I am also wondering, once I have my service running, how to connect this server to my account on https://\*\*\*\*\*\*\*\*\*\*\*\*.atlassian.net ?


Answers:
author: Ezra Rezky
body: Hello Steven!  

Yes you won't be able to find bamboo service with the**ps** command because despite tomcat is started, bamboo itself failed to run because it's not using the required JAVA.  

According to [this documentation](https://confluence.atlassian.com/bamboo059/supported-platforms-800858742.html), the supported JAVA version for your bamboo is version 1.8. If you doesn't have JAVA 1.8 in your machine, you can check out this link to install it:  
[Install Java on CentOS](http://tecadmin.net/install-java-8-on-centos-rhel-and-fedora/)

After installing, the PATH to your JAVA should looks something like:

```
/opt/jdk1.8.0_72/bin/java
```

Next step is simply to add this path to your Bamboo, which you can achieve by following these steps:
Go to \<bamboo_installation_directory\>/bin/ folder (where your start-bamboo.sh is located), and inside that folder you can see a file called **setenv.sh**. Open that file and edit it, and enter these in the bottom of the file:

```
JAVA_HOME="/opt/jdk1.8.0_72/"export JAVA_HOME
```

You can then restart your Bamboo.

This will point your Bamboo to use the appropriate JAVA and your instance should be able to run.  

Hope this may help you, and I wish you a good day!  

Warm regards,  
Ezra A. R. A.

comments: author: Ezra Rezky
body: Steven, if this solution helps, do you mind accepting the answer so other users with similar situation can find this? ![laugh](/html/@BEA1CC333F4D830F5303329D7DC07DE4/images/emoticons/laugh.png "laugh") Thank you!


author: Admin
body: Thank you! @Ezra Rezky your solution worked for me.

Cheers!

\>


author: krishnapatel
body: Thanks [@Ezra Rezky](/t5/user/viewprofilepage/user-id/502237)