Uploaded image for project: 'Erlang/OTP'
  1. Erlang/OTP
  2. ERL-1031

Erlang crypto errors in rabbitmq log

    XMLWordPrintable

    Details

    • Type: Question
    • Status: Resolved
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 22.0
    • Fix Version/s: None
    • Component/s: crypto
    • Labels:
      None

      Description

      Hello,

      We recently upgraded our Rabbitmq and Erlang from 3.6.14 and 19.0 respectively, to 3.7.16 and 22.0.

      Rabbitmq and Erlang were built on Ubuntu 16.04.6 LTS box on which OpenSSL 1.0.2g is installed. When the Rabbitmq services are started, although the processes are up and running, the following errrors were seen in the Rabbitmq log file:

      ------------------

      2019-08-21 02:13:57.220 [warning] <0.400.0> Setting Ranch options together with socket options is deprecated. Please use the new map syntax that allows specifying socket options separately from other options.
      2019-08-21 02:13:57.221 [error] <0.403.0> CRASH REPORT Process <0.403.0> with 0 neighbours crashed with reason: bad argument in call to erlang:'--'(undefined, [x25519,x448]) in crypto_ec_curves:curves/0 line 6
      2019-08-21 02:13:57.221 [error] <0.401.0> Supervisor

      {<0.401.0>,ranch_listener_sup}

      had child ranch_acceptors_sup started with ranch_acceptors_sup:start_link({acceptor,

      {0,0,0,0,0,0,0,0},5671}, ranch_ssl) at undefined exit with reason bad argument in call to erlang:'--'(undefined, [x25519,x448]) in crypto_ec_curves:curves/0 line 6 in context start_error
      2019-08-21 02:13:57.221 [info] <0.284.0> Running boot step direct_client defined by app rabbit
      2019-08-21 02:13:57.222 [error] <0.400.0> Supervisor {<0.400.0>,tcp_listener_sup} had child {ranch_listener_sup,{acceptor,{0,0,0,0,0,0,0,0}

      ,5671}} started with ranch_listener_sup:start_link({acceptor,

      {0,0,0,0,0,0,0,0}

      ,5671}, ranch_ssl, #

      {connection_type => supervisor,handshake_timeout => 5000,max_connections => infinity,num_acceptors => ...,...}

      , rabbit_connection_sup, []) at undefined exit with reason {shutdown,{failed_to_start_child,ranch_acceptors_sup,{badarg,[

      {erlang,'--',[undefined,[x25519,x448]],[]}

      ,{crypto_ec_curves,curves,0,[

      {file,"crypto_ec_curves.erl"}

      ,

      {line,6}

      ]},{ssl,eccs_filter_supported,1,[

      {file,"ssl.erl"},{line,1099}]},{ssl,handle_options,3,[{file,"ssl.erl"}

      ,

      {line,1541}

      ]},{ssl,listen,2,[

      {file,"ssl.erl"}

      ,

      {line,547}

      ]},{ranch_acceptors_sup,init,1,[

      {file,"src/ranch_acceptors_sup.erl"}

      ,

      {line,39}

      ]},{supervisor,init,1,[

      {file,"supervisor.erl"}

      ,

      {line,295}

      ]},{gen_server,init_it,2,[

      {file,...}

      ,...]}]}}} in context start_error

      -------------------

      Subsequently, rabbitmq connections are failing.

      I'm not sure what the aforesaid errors mean and if they have something to do with connection failures.

      Please advise.

      Thanks,
      Madhu

        Attachments

          Activity

            People

            Assignee:
            hans Hans Nilsson
            Reporter:
            madhurjf Madhusudan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: