-
Community Support Policy
RabbitMQ version used4.0.3 Erlang version used26.2.x Operating system (distribution) usedLinux amazon How is RabbitMQ deployed?RPM package Logs from node 1 (with sensitive values edited out)
Logs from node 2 (if applicable, with sensitive values edited out)
Logs from node 3 (if applicable, with sensitive values edited out)
rabbitmq.conf
Steps to deploy RabbitMQ clusterFollow https://www.rabbitmq.com/docs/install-rpm to install rabbitmq on 3 nodes. Do not start rabbitmq on any nodes, just install and then leave alone. On one of the nodes, choose randomly, do the following
Continue on node-01 machine and run On the other 2 machines/nodes do the following run systemctl restart rabbitmq-server finally, if the erlang cookie is the same run Steps to reproduce the behavior in questionSame steps as above section. The problem occurs after normal installation. On a fresh install with no changes except replacing the erlang cookie with the same from node-01. And also adding a rabbitmq-env.conf file with a node name and set use-longname to true. What problem are you trying to solve?During a fresh install on ec2 machines following the rabbitmq rpm install guide online, with version 4.0.4 on all machines (erlang v27) i am getting an error when joining cluster. From the logs pasted above it seems an exception is thrown during the feature flag compatibility check. The logs are available above. Basically running node-02 join_cluster node-03 errors out. The issue occurs when trying to cluster. Here is an output of the join cluster command immediately followed the the last output of logs showing the issue. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 12 replies
-
My guess is that, since you are using long node names, the value of Rather than form your clusters manually, use the AWS peer discovery plugin: |
Beta Was this translation helpful? Give feedback.
-
The solution is to use the AWS peer discovery plugin. You haven't indicated what network troubleshooting steps you've taken - https://www.rabbitmq.com/docs/troubleshooting-networking I'll re-open this issue long enough to ensure that long name clustering works with 4.0.4 in my local test environment. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your help however I completely ripped up my ec2 instances and started from scratch following the instructions to the letter, and I am getting the exact same error. @lukebakken you mentioned each node only needs a rabbitmq-env.conf file (this indicates a config file is not needed). According to the cluster formation and peer discovery guide, a config file containing the AWS access/secret key is needed as well as the cluster_formation.peer_discovery_backend variable needing set. Can you confirm if the config file is not needed because the rabbitmq docs suggest it is. @lukebakken @michaelklishin The erpc no connection error, would you happen to know what this is related to? Below is the output if rabbitmq-diagnostics status on node1
All nodes can start independantly but when calling rabbitmq join_cluster node-01@x.x.x.x.x.internal I get the same error I have been getting since the beginning. |
Beta Was this translation helpful? Give feedback.
-
I thought you were still doing "plain jane" clustering, and NOT using the AWS peer discovery backend. When asking for support, it's really important to be crystal clear what you are attempting, and, if you move on to something else, let the people giving you free support know. I'm glad you figured the issue out. It turns out my original suggestion, to do the network troubleshooting, was correct. |
Beta Was this translation helpful? Give feedback.
Hi both.
I profusely apologise for having wasted your time. I can confirm the issue is resolved and clustering has been achieved.
Port 25672 was not opened.
Again, my sincere apologies.