I have been trying to setup a RabbitMQ Cluster for the past week and have been receiving a connection error No matter what I try. I am trying to remotely connect to three other devices (aka 3 different IP address) as my 3 different nodes. The command I ran is sudo rabbitmqctl join_cluster rabbit@hostname
Here's the connection error:
Error: unable to perform an operation on node 'rabbit@otherdevice'. Please see diagnostics information and suggestions below.
Most common reasons for this are:
* Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
* CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
* Target node is not running
In addition to the diagnostics info below:
* See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
* Consult server logs on node rabbit@otherdevice
* If target node is configured to use long node names, don't forget to use --longnames with CLI tools
DIAGNOSTICS
===========
attempted to contact: [rabbit@otherdevice]
rabbit@otherdevice:
* unable to connect to epmd (port 4369) on otherdevice: address (cannot connect to host/port)
Current node details:
* node name: 'rabbitmqcli-44-rabbit@my-virtual-machine'
* effective user's home directory: /var/lib/rabbitmq
* Erlang cookie hash:
I have put all of the other other ip addresses and host names (including mine) in the hosts file. The 4369 port is open and listening on all devices. I disabled the firewalls on all of the devices. I can ping all of the devices. I also added the hashed numbered I was receiving when I ran the sudo rabbitmqctl join_cluster rabbit@hostname
command in my .erlang.cookie file and so did the other person.