Could not join cluster in 300000 ms Error migrating Database

Trying to perform a database migration from internal postgres to external 9.5 Postgres database we always get the same errors in log /opt/atlassian/bitbucket-data/log/atlassian-bitbucket.log

ERROR [threadpool:thread-4] c.a.s.i.c.StateTransferringExecutor Error while processing asynchronous task
ERROR [cached3] com.hazelcast.instance.Node [3.5.2-atlassian-37] Could not join cluster in 300000 ms. Shutting down now!

 

We are using  Atlassian Bitbucket v4.11.0 and want upgrade after database migration to 5.1

 

I created postgres database as doc said:

postgres=# CREATE ROLE bitbucketuser WITH LOGIN PASSWORD 'jellyfish' VALID UNTIL 'infinity';CREATE ROLE

postgres=# CREATE DATABASE bitbucket WITH ENCODING='UTF8' OWNER=bitbucketuser CONNECTION LIMIT=-1;

 

Thanks

2 answers

Hi @Daniel Blazquez,

Did you ever find a fix for your issue? I found a similar problem with 4.14.0.

 

Thankd and regards,

Antonio

Hi Antonio.

We have cloned the server to test the process, and the new server was still trying to connect with somthing in the old environment.

 

Have found this in logs:

 

2017-06-12 08:46:03,927 WARN [cached1] c.h.c.i.o.MergeClustersOperation [192.168.10.188]:5701 [jira] [3.5.2-atlassian-37] Address[192.168.10.188]:5701 is merging to Address[192.168.10.11]:5701, because: instructed by master Address[192.168.10.188]:5701

 

So i added 2 new iptables rules to block traffic with old server and database  and try it again. And it Works!

 

Regards

Thanks Daniel for your quick reply and sharing your solution!

 

Will check the logs to see if we're hitting the same issue.

 

Best regards!

Antonio

What finally worked for us was to disable AWS discovery and add the cluster IPs for unicast discovery:

hazelcast.network.aws=false

hazelcast.network.tcpip.members=X.X.X.X

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

697 views 0 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot