I'm trying to run a minimal installation of Bitbucket Data Center but whatever I do, http://host:7990/admin/clustering shows no nodes (I have no load balancer as it is optional according to documentation):
clustering.png
Though I expected to see at least one.
When I try to run another node with "shared" directory shared on NFS, it starts bu then I see this error in the browser:
---------------------------------------------------------------------
The following problem occurred, which prevents Atlassian Bitbucket from starting:
---------------------------------------------------------------------
So the fact that the directory is shared prevents it from starting.
When I tried to specify the same Postgres database to the second node, it complained that the database is not empty (of course, it's not empty, it was initialized by the first node).
So I'm absolutely confused.
My bitbucket.properties files is:
#>******************************************************* #> Migrated to database at jdbc:postgresql://IP1:5432/stashik #> Updated on 2015-10-23T23:22:32.416+02:00 #>******************************************************* jdbc.driver=org.postgresql.Driver jdbc.url=jdbc:postgresql://IP1:5432/stashik jdbc.user=postgres jdbc.password= # Use multicast to discover cluster nodes (recommended). hazelcast.network.multicast=false # If your network does not support multicast, you may uncomment the following lines and substitute # the IP addresses of some or all of your cluster nodes. (Not all of the cluster nodes have to be # listed here but at least one of them has to be active when a new node joins.) hazelcast.network.tcpip=true hazelcast.network.tcpip.members=IP1:5701,IP2:5701 # The following should uniquely identify your cluster on the LAN. hazelcast.group.name=your-bitbucket-cluster hazelcast.group.password=your-bitbucket-cluster
Where IP1 and IP2 are IP addresses of my 2 nodes. I tried both multicast and tcpip.
My setenv.sh file contains
JVM_SUPPORT_RECOMMENDED_ARGS="-Dcluster.node.name=bitbucket-1"
line.
The log file contains no errors.
What should I do to tell Bitbucket Server that my configuration should consist of multiple nodes?
We just need to create one folder on vm name shared on primary server( where nfs-kernal is running ).
Then mount both folder( /var/atlassian/application-data/bitbucket/shared ) from both the server to /shared folder which we created.
Then try to restart both server NFS will allow them to acquired shared lock and your both server will work fine.
Thanks team for your help and support.
Then try to restart both server NFS will allow them to acquired shared lock and your both server will work fine.
do you mean to restart the nfs server?
I have the same issue.
Caused by: com.atlassian.stash.internal.home.HomeLockDeniedException: Home directory '/mnt/bitbucket' is already locked by another running instance of Bitbucket.
Machine A
Machine B
nfs-server:/bitbucket mounted on /mnt/bitbucket and all the servers point at that folder as home for bitbucket.
in /etc/fstab on all servers:
nfs-server.local:/bitbucket /mnt/bitbucket/ nfs nfsvers=3,lookupcache=pos,noatime,intr,rsize=32768,wsize=32768 0 0
in file set-bitbucket-home.sh i set:
BITBUCKET_HOME=/mnt/bitbucket
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have 2 nodes in my bitbucket cluster but unable to see both nodes in "Clustering" information in bitbucket UI, only one node is reflecting even though my setup is all correct with all details required for DC.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I know this is an old thread, but maybe it will help someone. Check the license (settings-licensing)! If the license is for Bitbucket Server, of course it cannot start.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ganesh,
Can you share which documentation you were following and what version of Bitbucket you are trying to implement clustering on?
Regards,
Andre Marques
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am following https://confluence.atlassian.com/bitbucketserver/install-bitbucket-data-center-872139817.html this document.
And using version : atlassian-bitbucket-5.5.0-x64
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ganesh,
This is the correct documentation to the verson of Bitbucket that you are trying to install:
https://confluence.atlassian.com/bitbucketserver055/install-bitbucket-data-center-940683108.html
Can you revise it and see if you are able to accomplish your setup? Another thing that you mentioned is that you do not have an LB in place, however, this is definitely necessary for a DC setup.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.