[rabbitmq-discuss] Rabbit won't start "Protocol: ~p: register error: ~p~n"

Nicolás César nico at nicocesar.com
Wed Sep 29 21:52:12 BST 2010


It's very hard for me to understand errors. I've added -x to shell scripts
so

First O've checked if anything is running
# ps ax | grep beam | grep -v grep
# ps ax | grep epmd | grep -v grep
#

then:

----------------------------------
/usr/sbin/rabbitmq-multi start_all 1
+ for arg in '"$@"'
++ sed -e 's/"/\\"/g'
+ arg=start_all
+ CMDLINE=' "start_all"'
+ for arg in '"$@"'
++ sed -e 's/"/\\"/g'
+ arg=1
+ CMDLINE=' "start_all" "1"'
+ cd /var/lib/rabbitmq
++ basename /usr/sbin/rabbitmq-multi
+ SCRIPT=rabbitmq-multi
++ id -u
+ '[' 0 = 0 ']'
+ su rabbitmq -s /bin/sh -c '/usr/lib/rabbitmq/bin/rabbitmq-multi
"start_all" "1"'
+ '[' x = xsendsorium.com ']'
+ NODENAME=rabbit at sendsorium
++ dirname /usr/lib/rabbitmq/bin/rabbitmq-multi
+ SCRIPT_HOME=/usr/lib/rabbitmq/bin
+ PIDS_FILE=/var/lib/rabbitmq/pids
+ MULTI_ERL_ARGS=
+ MULTI_START_ARGS=
+ CONFIG_FILE=/etc/rabbitmq/rabbitmq
++ dirname /usr/lib/rabbitmq/bin/rabbitmq-multi
+ . /usr/lib/rabbitmq/bin/rabbitmq-env
++ SCRIPT_PATH=/usr/lib/rabbitmq/bin/rabbitmq-multi
++ '[' -h /usr/lib/rabbitmq/bin/rabbitmq-multi ']'
+++ readlink -f /usr/lib/rabbitmq/bin/rabbitmq-multi
++ FULL_PATH=/usr/lib/rabbitmq/lib/rabbitmq_server-1.8.1/sbin/rabbitmq-multi
++ '[' 0 '!=' 0 ']'
++
SCRIPT_PATH=/usr/lib/rabbitmq/lib/rabbitmq_server-1.8.1/sbin/rabbitmq-multi
++ '[' -h /usr/lib/rabbitmq/lib/rabbitmq_server-1.8.1/sbin/rabbitmq-multi
']'
+++ dirname /usr/lib/rabbitmq/lib/rabbitmq_server-1.8.1/sbin/rabbitmq-multi
++ SCRIPT_DIR=/usr/lib/rabbitmq/lib/rabbitmq_server-1.8.1/sbin
++ RABBITMQ_HOME=/usr/lib/rabbitmq/lib/rabbitmq_server-1.8.1/sbin/..
++ '[' -f /etc/rabbitmq/rabbitmq.conf ']'
+ DEFAULT_NODE_IP_ADDRESS=0.0.0.0
+ DEFAULT_NODE_PORT=5672
+ '[' x = x ']'
+ '[' x '!=' x ']'
+ '[' x = x ']'
+ '[' x '!=' x ']'
+ '[' x = x ']'
+ '[' x '!=' x ']'
+ '[' x = x ']'
+ RABBITMQ_NODENAME=rabbit at sendsorium
+ '[' x = x ']'
+ RABBITMQ_SCRIPT_HOME=/usr/lib/rabbitmq/bin
+ '[' x = x ']'
+ RABBITMQ_PIDS_FILE=/var/lib/rabbitmq/pids
+ '[' x = x ']'
+ RABBITMQ_MULTI_ERL_ARGS=
+ '[' x = x ']'
+ RABBITMQ_MULTI_START_ARGS=
+ '[' x = x ']'
+ RABBITMQ_CONFIG_FILE=/etc/rabbitmq/rabbitmq
+ export RABBITMQ_NODENAME RABBITMQ_NODE_IP_ADDRESS RABBITMQ_NODE_PORT
RABBITMQ_SCRIPT_HOME RABBITMQ_PIDS_FILE RABBITMQ_CONFIG_FILE
+ RABBITMQ_CONFIG_ARG=
+ '[' -f /etc/rabbitmq/rabbitmq.config ']'
+ RABBITMQ_CONFIG_ARG='-config /etc/rabbitmq/rabbitmq'
+ set -f
+ exec erl -pa /usr/lib/rabbitmq/lib/rabbitmq_server-1.8.1/sbin/../ebin
-noinput -hidden -sname rabbitmq_multi16112 -config /etc/rabbitmq/rabbitmq
-s rabbit_multi -extra start_all 1
{error_logger,{{2010,9,29},{20,36,33}},"Protocol: ~p: register error:
~p~n",["inet_tcp",{{badmatch,{error,etimedout}},[{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},{net_kernel,start_protos,3},{net_kernel,init_node,2},{net_kernel,init,1},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}]}
{error_logger,{{2010,9,29},{20,36,33}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.19.0>},{registered_name,[]},{error_info,{exit,{error,badarg},[{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},{ancestors,[net_sup,kernel_sup,<0.9.0>]},{messages,[]},{links,[#Port<0.100>,<0.16.0>]},{dictionary,[{longnames,false}]},{trap_exit,true},{status,running},{heap_size,987},{stack_size,24},{reductions,513}],[]]}
{error_logger,{{2010,9,29},{20,36,33}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfargs,{net_kernel,start_link,[[rabbitmq_multi16112,shortnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}
{error_logger,{{2010,9,29},{20,36,33}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}
{error_logger,{{2010,9,29},{20,36,33}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}
{"Kernel pid
terminated",application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}"}

Crash dump was written to: erl_crash.dump
Kernel pid terminated (application_controller)
({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})
--------------------------


I'm using rabbit 1.8.1
Erlang R14A (erts-5.8) [source] [smp:2:2] [rq:2] [async-threads:0]
[kernel-poll:false]
Linux sendsorium.com 2.6.18-028stab069.6 #1 SMP Wed May 26 18:10:06 MSD 2010
i686 GNU/Linux



cat /etc/rabbitmq/rabbitmq.config
[{rabbit, [{vm_memory_high_watermark, 0.4}]}].


PS: erl_crash.dump  compressed is about 50K ..if anyone wants to see it.

Nico Cesar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20100929/97f367d4/attachment.htm>


More information about the rabbitmq-discuss mailing list