[rabbitmq-discuss] error on startup

Matthias Radestock matthias at lshift.net
Mon Feb 2 18:38:14 GMT 2009


Billy,

Billy Chasen wrote:
> I'm on fc4 and installed rabbitmq with:
> 
> yum install erlang
> rpm -i rabbitmq-server-1.5.1-1.i386.rpm
> 
> Everything installed fine, but on startup, I get:
> 
> Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_log, _err
> 
> Output of that log file is:
> 
> Starting all nodes...
> Starting node rabbit at domU-11-22-33-01-BA-45...
> {error_logger,{{2009,2,2},{12,19,53}},"Protocol: ~p: register error:
> ~p~n",["inet_tcp",{function_clause,[{prim_inet,enc_opt_val,[[t],[22,[0,0,0,0],23,[0,0,0,2]\
> ]]},{prim_inet,setopts,2},{inet,open,7},{inet_tcp,listen,2},{inet_tcp_dist,do_listen,3},{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},{net_kernel,start_\
> protos,3}]}]}

That's a new one. Looks like Erlang is unhappy about some tcp socket 
options it was told to use.

What version of erlang are you running? Just start an erlang shell with 
'erl' and report the number it displays.

Also, try running the following:

erl -sname test -kernel inet_default_listen_options \
  '[{nodelay,true},{sndbuf,16384},{recbuf,4096}]'

and let me know whether that starts an erlang shell ok.

Finally, locate the rabbitmq-server script - it should live under 
/usr/lib/rabbitmq/bin/ - and change the line that reads
   exec erl \
to
   echo erl \
Then try to start the server normally (e.g. with 
"/etc/init.d/rabbitmq-server start") and send me the output of 
/var/log/rabbitmq/startup_log. That will tell me which options erlang is 
being started with.


Matthias.




More information about the rabbitmq-discuss mailing list