RabbitMQ worker shutdown, child_terminated with reason "badarg"

199 views
Skip to first unread message

Samuel Abels

unread,
Apr 23, 2017, 2:29:08 PM4/23/17
to rabbitmq-users
This is a follow up for this issue:

Your config has an incorrect value (a nested list) for TLS protocols.

The only occurences of "tls" I found in the config are:

[

{ssl, [{versions, ['tlsv1.2', 'tlsv1.1']}]},

{rabbit, [

{tcp_listeners, [5672]},

{ssl_listeners, [5671]},

{ssl_options, [{cacertfile,"/etc/ssl/mycerts/cacert.pem"},

{certfile, "/etc/ssl/mycerts/server/cert.pem"},

{keyfile, "/etc/ssl/mycerts/server/key.pem"},

{versions, ['tlsv1.2', 'tlsv1.1']},

{verify, verify_peer},

{fail_if_no_peer_cert, false}]}

]}

].


Which is, as far as I can see, what these docs contain:


https://www.rabbitmq.com/ssl.html


Where would the incorrect nesting come from?


> Also worth noting: the exception comes from the HTTP API (which uses an HTTP server

> called Mochiweb). I don't know what exactly you mean by "workers" but I'm not sure

> how this can affect client connections. So this may be a red herring.


Ah, I see what you mean. By "workers" I mean clients connected to RabbitMQ.

The error happens exactly at the time where those clients lose their connection.


-Samuel

Michael Klishin

unread,
Apr 23, 2017, 3:08:14 PM4/23/17
to rabbitm...@googlegroups.com
OK, so your config seems correct but something still manages to trip up
Mochiweb when an HTTP API request comes in.

The docs on rabbitmq.com cover the most recent release series. While TLS listener
settings haven't changed since the 3.3.x days (in fact, they are part of the standard Erlang/OTP library), you probably want to use the docs at http://previous.rabbitmq.com.

3.3.x is no longer supported in any way. Please consider upgrading at least to 3.5.8.
Starting with 3.6.7 Mochiweb was replaced with a different HTTP server and FWIW I don't recall similar issues reported in at least a couple of years.

--
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 post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages