Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Install multiple Bitbucket instances on same linux server

Jason Ashplant August 14, 2018

Currently running Bitbucket v4.7.1 on Linux and there is a requirement to install a second instance on same server. I require advice on how to do the install where there is an instance already installed. I am aware that a different directory and port need to be used but during the install I receive the message 'it looks like a Bitbucket service is already installed in the target environment'

2 answers

0 votes
Mark August 14, 2018

The tar.gz install process should be used for the additional instance(s) as the bin install may not support multiple instances on a server. Also, if I remember correctly, at most, only one of the bitbucket instances on the server can run the search (seems the ports used by search process are hard-coded/cannot be changed). 

_start-webapp.sh: echo "To start the Bitbucket webapp without starting search, run start-bitbucket.sh --no-search"

Also, ensure all instances have different context paths. Ports in URLs are ignored by Atlassian login cookies.

0 votes
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 14, 2018

Hi Jason,

Bitbucket Server depends on certain environment variables, and since they would be set to the same for all instances of Bitbucket Server running on the same machine you cannot run more than one instance of Bitbucket Server on a single machine.

Maybe Docker is a solution?

Cheers,

Christian

Premier Support Engineer

Atlassian

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events