etcd peer discovery logs an error #11595
-
Describe the bugi have an etcd instance on initial setup when rabbitmq instances are coming up they can't or dont register themselves on etcd part of the logs that is showing rabbitmq instance cant find any peers bec no one has registered on etcd yet
then after like 30 seconds i get these on the logs of each rabbitmq instance:
and in the meantime i try fetching data from etcd and verify that no data has been written "yet" then after proceeding as a standalone node i can verify that each instance writes to etcd as below:
despite being able to connect to etcd and writing to it unless i remove all instances volumes but not the data from etcd and here is my
am i doing anything wrong anywhere? Reproduction steps1.setup etcd instance with no authentication enabled Expected behaviori expect instances of rabbitmq to be able to register themselves before falling to standalone mode, then discover the registered instances and create the cluster exactly how it works when there is already the data of registered instances on etcd! Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 3 replies
-
so if i join instances of rabbitmq one by one
i dont understand |
Beta Was this translation helpful? Give feedback.
-
@sinawic thanks for using RabbitMQ. Team RabbitMQ uses discussions to assist users until a bug or other actionable work is discovered. In this case, you do not tell us the following essential information:
Please see Team RabbitMQ's community support policy. You must be using the latest version of RabbitMQ, AND provide a way for us to reproduce this issue, before we will assist you. It should be very simple to provide a script, or docker compose project, to demonstrate this issue. |
Beta Was this translation helpful? Give feedback.
-
@sinawic we don't guess in this community and you haven't even provided any details on the RabbitMQ version used and your config file.
likely should not be an error because one of the nodes, the first one to boot, will not discover any peers and will continue as a standalone node. That message likely should have been an The best way to know if it can "detect any peers or not" is to form a cluster with more than one node (I know, this is such a brilliant idea). |
Beta Was this translation helpful? Give feedback.
-
Also, enabling debug logging will particularly help with troubleshooting peer discovery, if there's anything to troubleshoot at all. |
Beta Was this translation helpful? Give feedback.
-
hi thanks for the quick response! here's my
and here's the config file that is mapped to the rabbitmq containers as their primary config file to boot up:
so the versions and envs are clear in the docker-compose |
Beta Was this translation helpful? Give feedback.
-
so when i hit
here's the log file for the whole |
Beta Was this translation helpful? Give feedback.
-
I've reached to this finally: like if these data exists in etcd before instances come up:
then things work as expected |
Beta Was this translation helpful? Give feedback.
-
damn this is driving me crazy 🤣 only i have another problem with setting policy now |
Beta Was this translation helpful? Give feedback.
-
@sinawic - I've taken the information you have provided and imported here - https://github.com/lukebakken/rabbitmq-server-11595 |
Beta Was this translation helpful? Give feedback.
@sinawic - You're correct, etcd peer discover is broken in RabbitMQ 3.13.3, but it has since been fixed by this PR - #11439
In order to use that fix, you must use a docker image built on the
main
branch of the RabbitMQ server source code. I updated my project to use that and peer discovery works:https://github.com/lukebakken/rabbitmq-server-11595/blob/main/docker-compose.yml#L9
The fix will ship in RabbitMQ 3.13.4.
Thanks, and sorry for this hassle!