[rabbitmq-discuss] getting started, broker runs; can't get status
christopher hoover
ch at murgatroid.com
Thu Feb 5 06:05:26 GMT 2009
> It occurs to me that the problem you are seeing may be the same as that
> experienced by Billy Chasen, except you are running a more recent
> version of Erlang and hence it gets reported slightly differently.
>
> To check whether that is the case, please perform the same test Billy
> ran:
>
> 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. Do this for both the original init.d
> script containing the "cd /", and your modified version containing "cd
> /var/lib/rabbitmq".
OK, here you go. The inet_defalt bits are telling.
# with "cd /" in /etc/init.d/rabbitmq
ch at gato:~$ sudo /etc/init.d/rabbitmq-server start
Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_log, _err
rabbitmq-server.
ch at gato:~$ cat /var/log/rabbitmq/startup_log
Starting all nodes...
Starting node rabbit at gato...
erl -pa /usr/lib/rabbitmq/bin/../ebin -noinput -s rabbit -sname rabbit -boot
start_sasl +W w +K true +A30 -kernel inet_default_listen_options a -kernel
inet_default_connect_options a -rabbit tcp_listeners [{"0.0.0.0", 5672}]
-sasl errlog_type error -kernel error_logger
{file,"/var/log/rabbitmq/rabbit.log"} -sasl sasl_error_logger
{file,"/var/log/rabbitmq/rabbit-sasl.log"} -os_mon start_cpu_sup true
-os_mon start_disksup false -os_mon start_memsup false -os_mon start_os_sup
false -os_mon memsup_system_only true -os_mon system_memory_high_watermark
0.95 -mnesia dir "/var/lib/rabbitmq/mnesia/rabbit" -pa /usr/local/ebin
-rabbit rabbit_http_conf "/usr/local/etc/rabbitmq-httpd.conf"
extra_startup_steps [{"HTTP-JSON-listeners",rabbit_http,kickstart,[]}]
-noinput
<clean up>
# with "cd /var/log/rabbitmq" in /etc/init.d/rabbitmq
ch at gato:~$ sudo /etc/init.d/rabbitmq-server start
Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_log, _err
rabbitmq-server.
ch at gato:~$ cat /var/log/rabbitmq/startup_log
Starting all nodes...
Starting node rabbit at gato...
erl -pa /usr/lib/rabbitmq/bin/../ebin -noinput -s rabbit -sname rabbit -boot
start_sasl +W w +K true +A30 -kernel inet_default_listen_options
[{nodelay,true},{sndbuf,16384},{recbuf,4096}] -kernel
inet_default_connect_options [{nodelay,true}] -rabbit tcp_listeners
[{"0.0.0.0", 5672}] -sasl errlog_type error -kernel error_logger
{file,"/var/log/rabbitmq/rabbit.log"} -sasl sasl_error_logger
{file,"/var/log/rabbitmq/rabbit-sasl.log"} -os_mon start_cpu_sup true
-os_mon start_disksup false -os_mon start_memsup false -os_mon start_os_sup
false -os_mon memsup_system_only true -os_mon system_memory_high_watermark
0.95 -mnesia dir "/var/lib/rabbitmq/mnesia/rabbit" -pa /usr/local/ebin
-rabbit rabbit_http_conf "/usr/local/etc/rabbitmq-httpd.conf"
extra_startup_steps [{"HTTP-JSON-listeners",rabbit_http,kickstart,[]}]
-noinput
ch at gato:~$
Obviously I left http in there. (I didn't mean to. I will re-run if you'd
like.)
For the record:
ch at gato:~$ dpkg --search /bin/sh
diversion by dash from: /bin/sh
diversion by dash to: /bin/sh.distrib
bash: /bin/sh
ch at gato:~$ ls -l /bin/sh*
lrwxrwxrwx 1 root root 4 2007-04-22 11:49 /bin/sh -> dash
lrwxrwxrwx 1 root root 4 2008-08-20 22:28 /bin/sh.distrib -> bash
ch at gato:~$
-ch
More information about the rabbitmq-discuss
mailing list