Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Want to configure data center in cluster

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

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

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. 

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

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).

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.

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.

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?

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.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

473 views 5 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you