Consul service discovery plugin fails when using Erlang/OTP 24 #3876
-
Hello! I am trying to use the consul plugin (rabbitmq_peer_discovery_consul) for cluster formation. I followed the steps at https://rabbitmq.com/cluster-formation.html#peer-discovery-consul, but I get the following error when starting the server:
This plugin works when running erlang 1.22, but fails for erlang 1.24. I found that this function (crypto:hmac/4) is deprecated in 1.23 and removed in 1.24. This currently stops me from using the latest version of OTP. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
I will convert this issue to a GitHub discussion. Currently GitHub will automatically close and lock the issue even though your question will be transferred and responded to elsewhere. This is to let you know that we do not intend to ignore this but this is how the current GitHub conversion mechanism makes it seem for the users :( |
Beta Was this translation helpful? Give feedback.
-
Indeed, |
Beta Was this translation helpful? Give feedback.
-
Another important aspect not mentioned is that the only way to reproduce this is to use an HTTPS endpoint. Which is why neither unit tests nor my local development environment run into this. Anyhow, I filed #3877 and will add more details as I find them. |
Beta Was this translation helpful? Give feedback.
-
I cannot find any direct uses of The Consul plugin relies on Please provide as much information as possible about your environment, configuration and so on. We do not guess in this community. |
Beta Was this translation helpful? Give feedback.
-
Also keep in mind that only RabbitMQ 3.8.16 and later versions support Erlang 24. Previous versions are not expected to run on it. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the information. After reading your last comment, I realized that I did not check versions. I had assumed I was installing latest, and found that I was installing the ubuntu hosted package (version 3.8.2). I updated to 3.9 and the server comes up without the aforementioned error. Thank you again for your time. |
Beta Was this translation helpful? Give feedback.
Also keep in mind that only RabbitMQ 3.8.16 and later versions support Erlang 24. Previous versions are not expected to run on it.