Skip to content

Consul service discovery plugin fails when using Erlang/OTP 24 #3875

@Enealor

Description

@Enealor

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:

2021-12-09 22:16:57.766 [error] <0.192.0> CRASH REPORT Process <0.192.0> with 0 neighbours exited with reason: call to undefined function crypto:hmac(sha512, <<21,135,13,108,158,208,40,165,61,185,76,223,138,4,217,204,82,238,158,155,125,225,178,98,187,13,...>>, [<<240,243,234,37,111,247,141,108,169,76,161,178,141,246,206,162>>,<<0,0,0,1>>], 64) in application_master:init/4 line 142

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions