Index
Downloads (PDF, HTML & XML formats)
[Bamboo Knowledge Base Home]
Documentation for Bamboo 4.0.x. Documentation for earlier versions of Bamboo is available too.
This page contains instructions to help you install Bamboo on Linux. If you want to use your application server, rather than the bundled Jetty server, see the Bamboo EAR-WAR installation guide instead.
Before you begin
Please ensure that you have read the Requirements section of the Bamboo Installation Guide.
On this page:
Set up your Bamboo home directory — this is the directory where Bamboo will store its configuration data. To do this, open the file named bamboo-init.properties
in the <Bamboo installation directory>/webapp/WEB-INF/classes
directory. In this file, insert the property "bamboo.home", with an absolute path to your Bamboo home directory. Your file should look something like this:
bamboo.home=/test/bamboo-home
You must use forward-slashes in your directory path. Backslashes are not recognised by Bamboo. Please ensure that the Bamboo home directory is not located inside the Bamboo installation directory
Alternatively, you can specify an environment variable 'BAMBOO_HOME' which specifies the absolute path to your {BAMBOO_HOME} directory. Bamboo will check if an environment variable is defined.
There are two ways you can launch Bamboo on Linux — via a startup script or via a Java Service Wrapper:
bamboo.sh
startup scriptYou can start Bamboo with the default bamboo.sh
file in your installation root directory. The bamboo.sh
command accepts the following options (e.g. ./bamboo.sh start
):
start
— this starts Bamboo.stop
— this stops Bamboo.restart
— this restarts Bamboostatus
— this provides the current status of Bamboo.The wrapper is platform-specific and doesn't work on SunOS.
Alternatively, you can start Bamboo via a Java Service Wrapper, which provides services such as automatic restarting. To do this, you will need to use the start-bamboo
command available in the /wrapper
folder of the Bamboo installation. You will need to fire the command with one of the following options (e.g. ./start-bamboo start
):
console
— this starts Bamboo in a console. The logs will scroll to standard out.start
— this starts Bamboo.stop
— this stops Bamboo.restart
— this restarts Bamboostatus
— this provides the current status of Bamboo.dump
— stops Bamboo abruptly by killing the process If you have installed Bamboo on a machine with multiple interfaces, and need to bind Bamboo to a single IP address, please see Binding Bamboo to one IP address.
http://localhost:8085/
.
19 Comments
Anonymous
Jul 02, 2009Bamboo 2.2.3, Launch via Java Service Wrapper.
The file wrapper.conf seems to have a wrong reference to the lib directory containing the files wrapper.jar and libwrapper.so.
The following properties should refer the directory lib that is located under wrapper:
So, they should be set as:
Thanks,
Enzo
Andrew
Jul 06, 2009Hi Enzo,
Thanks for your feedback on the documentation. The three properties that you've referred two actually are correct (i.e. require two periods, not one period, in the path).
The wrapper.conf file is located in the
conf
directory, which is a sibling of the lib directory in the Bamboo directory structure. Hence, two periods are required for the wrapper.conf file to reference the files in the lib directory.Kind Regards,
Andrew
Castrenze Migliore
Jul 06, 2009Hi Andrew,
Thanks for your feedback.
I actually downloaded again the Bamboo tarball file (atlassian-bamboo-2.2.3-standalone.tar.gz - for linux) for a double check, and it seems that there isn't any lib directory at the same level than the conf one.
It seems that lib is located under the wrapper directory (Bamboo/wrapper/lib).
Is it possible that the linux version has a little different directory structure? In this case I think that the wrapper.conf needs to be changed. Is it correct?
Thanks again,
Warm Regards,
Enzo
Ulrich Kuhnhardt
Jul 13, 2009Dear Enzo,
thanks for bringing this to our attention. We were able to verify the problem and have raised http://jira.atlassian.com/browse/BAM-4197 http://jira.atlassian.com/browse/BAM-4198
Please follow (watch) these issues and add your comments.
Thanks again for your help.
Anonymous
Jul 28, 2010Trying to install on Ubuntu 10.04 (mysql 5 backend) - getting the error "Could not instantiate bean class [com.octo.captcha.service.image.DefaultManageableImageCaptchaService]: Constructor threw exception; nested exception is java.lang.Error: Probable fatal error:No fonts found." I've read online that it's probably because the captcha is referencing only windows fonts. I am going to try to use redhats "liberation fonts" to get it to work using the following: http://grumpymole.blogspot.com/2007/05/ubuntu-with-liberation-fonts-i.html ... but I don't want captcha support in the first place; I hate them. Why is this required?
... hehehe I have to do a captcha to post this ... hehehe
Anonymous
Jul 28, 2010By the way I was using: &useUnicode=true&characterEncoding=utf8 in the mysql URL.
If you: sudo apt-get install msttcorefonts gsfonts gsfonts-x11
and restart ./bamboo.sh stop / start
That seems to have sorted it.
Anonymous
Jul 30, 2010I have this same problem with ubuntu server and I really don't want to have to install fonts on a server. Is there another way around this error?
Anonymous
Feb 18, 2011this issue occurs on Amazon-Linux used on Amazon EC2/AWS environment.
Simple resolution is to install the liberation-fonts package
sudo yum install liberation-fonts
Anonymous
Dec 17, 2010Hello!
Can we run it as linux service? (/etc/init.d) and if not then WHY?
Marc Bogaerts
Jan 09, 2011I installed Bamboo succesfully, but now I'm stuck with this problem when I try to run GUI tests:
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
I've been searching but can't figure out how to change the DISPLAY. Even when I export some value in the .profile, Bamboo still shows the environment variable DISPLAY=0:0.
Any help is welcome.
Richard Gareau
Mar 02, 2011Make sure that you don't have a DISPLAY variable set before starting bamboo. I had the same problem and I fixed it by removing the DISPLAY variable from the environment.
Anonymous
May 18, 2011Doesn't work. Jetty hangs. This is with 3.1.
1. unpacked .tar.gz
2. edited webapp/WEB-INF/classes/bamboo-init.properties
3. ./bamboo.sh start
I've tried debugging the start script, the wrapper config, fixing java to be 32bit because there's no 64 .so supplied with the wrapper.
Netstat -an | grep 8085 is empty
There's only this in the logs
Anonymous
May 19, 2011bamboo 3.1 standalone linux doesn't start if I follow the above instructions on redhat EL5.4 or ubuntu 10.10. could someone from atlassian please figure out why and fix either instructions or application ?
Anonymous
May 20, 2011Same here, doesn't start. Same Jetty log as May 18 comment.
Anonymous
May 20, 2011Correction. In the time it took me to find this forum and post the comment, it started. Apparently it was just a matter of waiting a fairly long time (> 1 minute).
Marcus Bointon
Jun 16, 2011Anyone have an upstart script for bamboo? I've had a go at adapting one of Daniel Harvey's excellent ones for other Atlassian apps, but Bamboo seems to work differently and I can't find one for it. This is my attempt so far, which doesn't work:
All those env vars are what is set in /etc/init.d/bamboo, so I'm using that as a reference. When I do 'service bamboo start', nothing happens - no errors, but no bamboo either. Ideas?
Stuart Fenton
Jul 26, 2011I've been using this one. Stored in init.d called bamboo
but you need to add it to the service by calling this command
sudo /sbin/chkconfig --add bamboo
Marcus Bointon
Jul 26, 2011That's not an upstart script; it's an old-style init.d script. Systems with upstart tend not to have chkconfig either.
Anonymous
Dec 07, 2011Starting Bamboo using "./bamboo.sh start" stays attached to console, so I Ctrl-C to disconnect, then "./bamboo.sh stop" to stop Bamboo.
So, I tried the Java Service Wrapper. Started using "./start-bamboo start" and get:
Starting Bamboo Continuous Integration Server...
./start-bamboo: /opt/Bamboo/3.3.3/wrapper/wrapper: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
This is on RHEL 6.0 in Amazon EC2.