Hi. I'm using CentOS 8 and installed everything up via yum. I have 3 nodes. All 3 nodes were running separately. For some reason, all 3 nodes were missing /var/lib/rabbitmq/.erlang.cookie during installation. The only cookie that was ever created on all 3 nodes existed on $HOME. So I copied that cookie to /var/lib/rabbitmq as well as $HOME on both slave nodes. I then stopped and reset and then tried to join the master but it's giving me:
Error: unable to perform an operation on node 'rabbit@node03'. 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@node03
* If target node is configured to use long node names, don't forget to use --longnames with CLI tools
DIAGNOSTICS
===========
attempted to contact: [rabbit@node03]
rabbit@node03:
* connected to epmd (port 4369) on node03
* epmd reports node 'rabbit' uses port 25672 for inter-node and CLI tool traffic
* TCP connection succeeded but Erlang distribution failed
* suggestion: check if the Erlang cookie identical for all server nodes and CLI tools
* suggestion: check if all server nodes and CLI tools use consistent hostnames when addressing each other
* suggestion: check if inter-node connections may be configured to use TLS. If so, all nodes and CLI tools must do that
* suggestion: see the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
Looking at the log at /var/log/... on node 03 I see many messages like
Connection attempt from node 'rabbitmqcli-277-rabbit@node03' rejected. Invalid challenge reply. **
It seems like the cookie mismatch but I verified all 3 nodes have the same value in $HOME as well as the cookie that I created in /var/lib/rabbitmq. I noticed that on the 2 slaves, node 02 and node03, I can't even start the app anymore with the same message as above.
What can I check?