RabbitMQ Join Cluster Erlang Error

3,029 views
Skip to first unread message

Dillon Jones

unread,
Jul 8, 2020, 5:41:41 AM7/8/20
to rabbitmq-users
Hello everybody, I seem to be running into a tricky error to debug and was wondering whether anybody had any ideas what the issue could be:I'm trying to cluster two nodes together in an environment running Windows Server 2016 on VM's. Getting the components to run on the server was fine but the error occurs when trying to join the cluster from the second node. As far as I could see, all host entries, cookies and configurations on both servers were correct. Running the command below to join the clusters causes the failure.

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.4\sbin>rabbitmqctl join_cluster rabbit@X 
Clustering node rabbit@Y with rabbit@X

For context I ran this off the machine which would be specified as "rabbit@Y".
The error:
Error:{:badarg, [{:rpc, :rpcify_exception, 2, [file: 'rpc.erl', line: 467]}, {:rpc, :call, 5, [file: 'rpc.erl', line: 410]}, {:lists, :foldl, 3, [file: 'lists.erl', line: 1263]}, {:rabbit_mnesia, :discover_cluster, 1, [file: 'src/rabbit_mnesia.erl', line: 803]}, {:rabbit_mnesia, :join_cluster, 2, [file: 'src/rabbit_mnesia.erl', line: 236]}]}

Any help would be greatly appreciated. Am able to provide more detail on request.
Thanks

Warren Pang

unread,
Jul 8, 2020, 8:35:21 PM7/8/20
to rabbitm...@googlegroups.com
This is maybe due to:

hostname resolution issue
erlang cookie problem
network connection problem such as port filter
system issues such as filesystem error

Please check the log details.

Thanks.



--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/1ee27e09-0a62-4198-8a02-56eeb441f0dfn%40googlegroups.com.

Joao Lalanda

unread,
Apr 23, 2021, 6:01:27 AM4/23/21
to rabbitmq-users
Hello,

I need your help because i am facing the same issue.

I cannot create a cluster of two windows machines running the same rabbitmq Version and erlang version. (RabbitMQ 3.8.14 and Erlang 23.3.1)

-Both machines ping each other by ip and by its hostname. And for reassuring that i configured the ip and FQDN on the hosts file
-cookie is exactly the same between the folders of the user running the windows service and the windows folder
-All of the ports are opened between both machines (i have done the telnet client test for all ports)

When i try to join clusters this is the error im getting:

Clustering node rabbit@Machine1 with rabbit@Machine2
Error:
{:badarg, [{:rpc, :rpcify_exception, 2, [file: 'rpc.erl', line: 467]}, {:rpc, :call, 5, [file: 'rpc.erl', line: 410]}, {:lists, :foldl, 3, [file: 'lists.erl', line: 1267]}, {:rabbit_mnesia, :discover_cluster, 1, [file: 'src/rabbit_mnesia.erl', line: 795]}, {:rabbit_mnesia, :join_cluster, 2, [file: 'src/rabbit_mnesia.erl', line: 227]}]}

This are the commands i am doing:
-reset
-stop_app
-join_cluster rabbit@Machine2

The last command (join_cluster) results on the error i have sent you...

I am desperate because i am trying to implement this message broker on my project and i cant get it to work and i need at least a cluster of 3 nodes.

Can you help-me?

X Guest

unread,
Apr 23, 2021, 9:28:53 PM4/23/21
to rabbitmq users
Do the two nodes run successfully by standalone mode?

regards.

Joao Lalanda

unread,
Apr 24, 2021, 4:25:29 AM4/24/21
to rabbitmq-users
Hello,

Yes both nodes run rabbitmq successufully and they receive and process messages correctly.

I have done also the stop_app, reset and start_app on the other onde just to garantee that is all ok.

Thanks

Joao Lalanda

unread,
Apr 26, 2021, 5:39:21 AM4/26/21
to rabbitmq-users
Hello,

Is this reason enough for me to open a issue on github?

Thanks

João Lalanda

M K

unread,
Apr 28, 2021, 6:15:18 AM4/28/21
to rabbitmq-users
There is no evidence of an issue in RabbitMQ. If this was common we would be flooded with reports like this.

Joao Lalanda

unread,
Apr 28, 2021, 6:34:50 AM4/28/21
to rabbitmq-users
Hello,

I have used all guides present on rabbitmq site and it still not working.

Also the error i am getting its not clear on what is wrong because the message is empty and i need help from you guys to understand why i am getting that error on that line of code.

Thanks

Reply all
Reply to author
Forward
0 new messages