0
votes

I have installed rabbitmq in two machines in linux OS.And they all worked well. Then I run the command:rabbitmqctl join_cluster rabbit@gz2, it's not work.And the error info :

Error: unable to connect to nodes [rabbit@gz2]: nodedown

attempted to contact: [rabbit@gz2]

rabbit@gz2:

  • connected to epmd (port 4369) on gz2
  • epmd reports node 'rabbit' running on port 25672
  • TCP connection succeeded but Erlang distribution failed
  • suggestion: hostname mismatch?
  • suggestion: is the cookie set correctly?
  • suggestion: is the Erlang distribution using TLS?
1
hosts config is ok(ping gz2 say it ok),and cookie is the same with other node,using this command md5sum /var/lib/rabbitmq/.erlang.cookie. I has search many answer with losts of time but it not the same problem.YuJia
The log file is empty(/var/log/rabbitmq/[email protected]). Reboot machine it's not work.YuJia

1 Answers

0
votes

suggestion: is the cookie set correctly?

You need to ensure both RabbitMQ nodes are using the same cookie file. Copy the file /var/lib/rabbitmq/.erlang.cookie from one node to the other, then restart RabbitMQ on the node to which you copied the file. You will be able to create a cluster after that.

Clustering and the Erlang cookie is documented here.


NOTE: the RabbitMQ team monitors the rabbitmq-users mailing list and only sometimes answers questions on StackOverflow.