Hmm. Needless to say, this does not happen when I try it :(
Does anything show up in the logs on that node at this point?
Cheers, Simon
--
Simon MacMullen
RabbitMQ, VMware
_______________________________________________
rabbitmq-discuss mailing list
rabbitmq...@lists.rabbitmq.com
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
On 23/02/12 00:30, Matt Pietrek wrote:
> Let me add some additional information, and re-summarize what I'm seeing.
>
> In our startup script for RabbitMQ we do the following;
>
> rabbitmq-server -detached
> rabbitmqctl status
> <Extract the PID from rabbitmqctl status, write to our PIDFILE>
There's a potential race here if an old server is running (maybe about
to shut down?). rabbitmqctl status could pick up the old pid.
> rabbitmqctl wait PIDFILE
However, rabbitmqctl wait should then detect that the pid has died and
fail. Unless the pid gets reused by the OS but that is presumably unlikely.
But rabbitmqctl wait will wait indefinitely as long as the pid is alive
and not a fully functional rabbit node. So I'd check two things:
1) You should fix that race, it can be done safely:
Do not use rabbitmq-server -detached and rabbitmqctl status to get the
pid. Instead set RABBITMQ_PID_FILE and background the rabbitmq-server
script. You will then *definitely* get the right pid since the script
writes its own pid then execs - no race possible.
2) Capture the stdout of rabbitmq-server when you start it - if
rabbitmqctl wait still hangs, see how far it's got / what it's doing.
Cheers, Simon
--
Simon MacMullen
RabbitMQ, VMware
<snip>
> starting database ...
So how long are you waiting when determining it's hanging? Less than 30
seconds?
Because that looks like Rabbit is waiting for another cluster node (if
it was not the last to shut down, but is the first to start up, it will
wait for the one that was the last to shut down. But it will only wait
for 30 seconds before spitting out an error. I'm not sure how else you
could get it to stop there *without* any further output though.
Cheers, Simon
--
Simon MacMullen
RabbitMQ, VMware