[rabbitmq-discuss] rabbitmq fails on start

Simon MacMullen simon at rabbitmq.com
Wed Jun 29 18:00:35 BST 2011


On 29/06/11 16:53, Jeff Hinrichs wrote:
> ...BOOT ERROR: FAILED
> Reason: badarg
> Stacktrace: [{inet6_tcp,listen,2},
>               {rabbit_networking,ipv6_status,1},

So RabbitMQ is failing while trying to figure out the IPv6 status of 
your machine (basically, does it need to explicitly open an IPv4 socket 
as well as IPv6 or is IPv4 considered part of IPv6).

Assuming you're not using IPv6, the simplest way to get over this would 
be to disable it. A complete rabbitmq.config file that would do so looks 
like:

   [
     {rabbit, [{tcp_listeners, [{"0.0.0.0", 5672}]}]}
   ].

You would also need to change ssl_listeners too if you're using SSL.

However, this really *should* work. Could your machine be in a weird 
state with respect to IPv6 (or have changed recently)? Have you 
configured anything about Erlang socket options? (e.g. 
inet_default_listen_options)?

What does:

erl -noinput  -eval 'io:format("~p~n", 
[inet:listen_options([{port,10000}, inet6, {ip, {0,0,0,0,0,0,0,0}}], 
inet6)]), halt().'

(all one line) say?


> versions...
> rabbitmq-2.3.1_2
> erlang-lite-r14b03,1
> FreeBSD 8.1

I was initially rather suspicious of erlang-lite, but looking at the 
port file it seems to just exclude Java, X11 and ODBC, which should be fine.

Cheers, Simon
-- 
Simon MacMullen
RabbitMQ, VMware


More information about the rabbitmq-discuss mailing list