Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Bitbucket cluster authentication failed due to and

Setup two nodes in AWS EC2 to form clustering. An error is appeared:

com.atlassian.stash.internal.cluster.NodeConnectionException: Cluster authentication failed. Please make sure all members share the same value for '' and '' in
at com.atlassian.stash.internal.cluster.DefaultClusterJoinManager.accept(

at com.atlassian.stash.internal.hazelcast.ClusterJoinSocketInterceptor.onAccept(
at com.hazelcast.nio.NodeIOService.interceptSocket(
at com.hazelcast.nio.tcp.TcpIpAcceptor$AcceptorIOThread.configureAndAssignSocket(
at com.hazelcast.nio.tcp.TcpIpAcceptor$AcceptorIOThread.access$1400(
at com.hazelcast.nio.tcp.TcpIpAcceptor$AcceptorIOThread$
at com.hazelcast.util.executor.CachedExecutorServiceDelegate$
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.base/
at com.hazelcast.util.executor.HazelcastManagedThread.executeRun(

... 1 frame trimmed


My in the bitbucket shared folder is



The bitbucket is setup by docker in ansible:

- name: Start bitbucket container
     name: "{{ bitbucket_container_name }}"
     image: "{{ bitbucket_docker_image }}:{{ docker_images.bitbucket.tag }}"
     state: started
     restart_policy: unless-stopped
     container_default_behavior: compatibility
       - "{{ bitbucket_shared_host_location }}:{{ bitbucket_shared_home }}/"
       - "{{ bitbucket_private_host_location }}:{{ bitbucket_home }}/"
       - "/etc/atlassian/bitbucket/tls.p12:/etc/atlassian/bitbucket/tls.p12"
     detach: true
     network_mode: default
       - 5701:5701
       - "{{ bitbucket_https_port }}:8444"
       "JDBC_DRIVER": "org.postgresql.Driver",
       "JDBC_URL": "jdbc:postgresql://{{ bitbucket_postgresql_host }}:{{ bitbucket_postgresql_nodeport }}/{{ bitbucket_postgresql_database }}",
       "JDBC_USER": "{{ bitbucket_postgresql_user }}",
       "JDBC_PASSWORD": "{{ bitbucket_postgresql_password }}",
       "JAVA_OPTS": "{{ inventory_hostname }} -Duser.timezone=Etc/GMT+0 -Dhazelcast.local.publicAddress={{ ansible_default_ipv4.address }}:5701",
     - "label:disable"


Can anyone please shed some lights on? 


1 answer

0 votes


I solved the issue in the end. That is because the group name and password are verified before any other checks. By adding a line in
The default value of the attribute above is true.

I don't know how/why does it work. But this line resolves the issue. I post the solution just in case someone encounter the similar issue.

Like Kevin Wang likes this

Thanks Andrew, nice notice here, I met the similar issue and resolved based on your solution! Appreciate~

Like Andrew Yu likes this

Suggest an answer

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

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,231 views 2 9
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