jonny hieu nguyen
jonny hieu nguyen

Reputation: 15

Unable join_cluster rabbitmq

I have 2 nodes rabbitmq01 and rabbitmq2 when i try to join_cluster rabbitmq2 the following error appears enter image description here

I also tried to check the version of erl enter image description here

Upvotes: 0

Views: 241

Answers (1)

JesseChen
JesseChen

Reputation: 1

at first, on node rabbitmq01 execute command:

sudo cat /var/lib/rabbitmq/.erlang.cookie

then, on node rabbitmq02

sudo service rabbitmq-server stop
sudo bash -c "echo rabbitmq01's cookie > /var/lib/rabbitmq/.erlang.cookie"
sudo service rabbitmq-server start
sudo rabbitmqctl stop_app
sudo rabbitmqctl reset  
sudo rabbitmqctl join_cluster rabbit@<rabbitmq01's hostname>
sudo rabbitmqctl start_app

if join_cluster failed, please check whether /var/lib/rabbitmq/.erlang.cookie access pemission is 400 or 600

Upvotes: 0

Related Questions