Forums

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

Want to configure data center in cluster

Ganesh Bhise February 16, 2018

HI team,

I am trying to setup bitbucket data center (  on 1st linux system )and bitbucket server ( on 2nd linux system).

I wan to add 2nd server into data-center as a cluster. For that I followed below document :

https://confluence.atlassian.com/bitbucketserver/install-bitbucket-data-center-872139817.html

So as per step 6( 4 shared home ). Provision application cluster nodes I tried to mount shared folder.
After mounting /var/atlassian/application-data/bitbucket/shared folder from data-center server to the node server ( bitbucket server ) at location /var/atlassian/application-data/bitbucket/shared 

After server restart getting below error on bitbucket server( 2nd system ) :

The following problem occurred, which prevents Atlassian Bitbucket from starting:

  • Unable to create and acquire shared lock file '/var/atlassian/application-data/bitbucket/shared/.lock' for Bitbucket shared home directory '/var/atlassian/application-data/bitbucket/shared'.

    Please ensure that the user running Bitbucket has permission to write to this directory and that file locking is enabled for your network file system.

    If this is already the case, please check the logs for more information.

 

Can you please help me If I am missing something.

4 answers

0 votes
basu May 27, 2020

You can login to NFS server and give chmod 777 to the folder which you are mounting in other servers. The you don't see any permission issues.

0 votes
Shankar Asam {Appfire}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 16, 2018

It appears that the user (user account) runs the bitbucket doesn't have write/read permissions to the shared folder which is /var/atlassian/application-data/bitbucket/shared. Can you confirm this by going into above location and create a test file with some test data and see if you are able to do that? If not, then you would have to adjust the permissions on the folder.

Lance Horwitz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 12, 2018

I have the same error. I have tested the user and the user does have read write permissions. Not sure how to fix this. 

 

Is there a solution to this?

0 votes
Shankar Asam {Appfire}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 16, 2018 edited

What do you mean by Bitbucket server? Is it a standalone one?

You can't have one node with bitbucket data center and another node with bitbucket server standalone. This is not going to be work. All nodes in the cluster should have a similar version of bitbucket and it must be a data center (not standalone server).

Ganesh Bhise February 16, 2018

Hey now I have installed data center on both node but still I am getting following error: 
A fatal error has occurred

The following problem occurred, which prevents Atlassian Bitbucket from starting:

  • Unable to create and acquire shared lock file '/var/atlassian/application-data/bitbucket/shared/.lock' for Bitbucket shared home directory '/var/atlassian/application-data/bitbucket/shared'.

    Please ensure that the user running Bitbucket has permission to write to this directory and that file locking is enabled for your network file system.
0 votes
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 16, 2018

Hi Ganesh,

What is the data-center server you're referring to? The shared volume needs to be on an NFS server accessible by all nodes in the cluster.

 

Cheers,

Christian

Premier Support Engineer

Atlassian

Ganesh Bhise February 16, 2018

data-center server mean it's first machine where I have installed bitbucket data center. 

And using NFS I have mounted /var/atlassian/application-data/bitbucket/shared folder from first machine( where  bitbucket data center installed) to /var/atlassian/application-data/bitbucket/shared path on second machine where bitbucket server is installed. 

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

Hi Ganesh,

For Bitbucket Data Center you'll actually need to use an NFS server - how are you mounting this directory at the moment?

Cheers,

Christian

Premier Support Engineer

Atlassian

Suggest an answer

Log in or Sign up to answer
TAGS
loom essentials certification, loom training, get certified in loom, atlassian certification, loom async video, video messaging skills, atlassian learning, loom for teams, online certification, loom badge, loom for business, atlassian education

Get Certified in Loom! 🧑‍🎓

Time to up your Loom game! The new Loom Essentials Certification is here! Show off your skills, learn pro tips, and get officially recognized. Perfect for taking your video messaging to the next level.

Learn more
AUG Leaders

Atlassian Community Events