[rabbitmq-discuss] rabbitmq 1.5.1-1 from debian pool fails to start
christopher hoover
ch at murgatroid.com
Fri Jan 30 17:15:39 GMT 2009
> Just to be clear, you changed /etc/init.d/rabbitmq-server:28 from
> cd /
> to
> cd /var/lib/rabbitmq
> and then ran
> sudo /etc/init.d/rabbitmq-server start
> which now started rabbitmq successfully whereas previously it resulted
> in the "register/listen error" you reported?
Yes, precisely.
> If so, there are a few more things to check:
>
> 1) run
> sudo getent passwd rabbitmq
> which should print out something like
> rabbitmq:x:116:119:Rabbit AMQP Messaging
> Server:/var/lib/rabbitmq:/bin/false
> 2) run
> sudo su rabbitmq -s /bin/sh -c "erl -sname test"
> and at the prompt enter
> init:get_argument(home).
> which should display
> {ok,[["/var/lib/rabbitmq"]]}
ch at gato:~/src/sdc/daffy$ sudo getent passwd rabbitmq
rabbitmq:x:119:126:RabbitMQ messaging server:/var/lib/rabbitmq:/bin/false
ch at gato:~/src/sdc/daffy$ sudo getent group rabbitmq
rabbitmq:x:126:
ch at gato:~/src/sdc/daffy$ sudo su rabbitmq -s /bin/sh -c "erl -sname test"
Erlang (BEAM) emulator version 5.6.3 [source] [async-threads:0] [hipe]
[kernel-poll:false]
Eshell V5.6.3 (abort with ^G)
(test at gato)1> init:get_argument(home)
(test at gato)1> .
{ok,[["/var/lib/rabbitmq"]]}
(test at gato)2>
BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded
(v)ersion (k)ill (D)b-tables (d)istribution
^Cch at gato:~/src/sdc/daffy$
> 3) revert your change to /etc/init.d/rabbitmq-server:28 and instead add
> the line
> PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
> just after the initial comments (i.e. on line 11) and then attempt to
> start rabbit in the usual way, i.e. by running
> sudo /etc/init.d/rabbitmq-server start
> The line in question is the only line that has changed in the startup
> scripts between 1.5.0 and 1.5.1. I cannot see how it would make a
> difference, but it's worth a try.
I saw that and tried reverting it. No luck. Let me double-check. Nope,
no good.
ch at gato:~/src/sdc/daffy$ sudo /etc/init.d/rabbitmq-server stop
Stopping rabbitmq-server: rabbitmq-server.
ch at gato:~/src/sdc/daffy$
ch at gato:~/src/sdc/daffy$ ps -efw | grep erl
ch 2914 4179 0 09:12 pts/0 00:00:00 grep erl
rabbitmq 19633 1 0 Jan29 ? 00:00:00
/usr/lib/erlang/erts-5.6.3/bin/epmd -daemon
ch at gato:~/src/sdc/daffy$ sudo kill 19633
ch at gato:~/src/sdc/daffy$ ps -efw | grep erl
ch 2917 4179 0 09:12 pts/0 00:00:00 grep erl
ch at gato:~/src/sdc/daffy$ egrep '^cd|PATH' /etc/init.d/rabbitmq-server
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
cd /
ch at gato:~/src/sdc/daffy$ sudo /etc/init.d/rabbitmq-server start
Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_log, _err
rabbitmq-server.
ch at gato:~/src/sdc/daffy$ ps -efw | grep erlang
rabbitmq 2958 1 0 09:13 ? 00:00:00
/usr/lib/erlang/erts-5.6.3/bin/epmd -daemon
ch 3049 4179 0 09:13 pts/0 00:00:00 grep erlang
ch at gato:~/src/sdc/daffy$ sudo kill 2958
ch at gato:~/src/sdc/daffy$ egrep '^cd|PATH' /etc/init.d/rabbitmq-server
#PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
cd /var/lib/rabbitmq
ch at gato:~/src/sdc/daffy$ sudo /etc/init.d/rabbitmq-server start
Starting rabbitmq-server: SUCCESS
rabbitmq-server.
ch at gato:~/src/sdc/daffy$
-ch
More information about the rabbitmq-discuss
mailing list