[rabbitmq-discuss] Init script hangs for rabbitmq daemon

Tim Watson tim at rabbitmq.com
Mon Oct 15 15:03:57 BST 2012


Please keep the list on CC.

On 10/15/2012 02:51 PM, deep desai wrote:
> hi,
>
> It runs it as root only..

Can you manually run that command on those machines? What exactly is 
puppet configured to do?

>
>>> >>
>>> >>  Okay let me try that once.
>>> >>  The problem is: I use puppet to check if rabbitmq is running or not,
>>> >>  and if not it starts it; when puppet runs and checks rabbitmq's status
>>> >>  it hangs and puppet run breaks.
>>>
>>> >
>>> >  What user is puppet trying to run that command as!?
>>> >
>>> >
>>> >>  On Mon, Oct 15, 2012 at 7:04 PM, Tim Watson<tim at rabbitmq.com>   wrote:
>>> >>>
>>> >>>  Hi,
>>> >>>
>>> >>>  As per the instructions on the website
>>> >>>  (http://www.rabbitmq.com/install-rpm.html) you should start and stop
>>> >>>  rabbitmq using `/sbin/service rabbitmq-server stop/start/etc` rather than
>>> >>>  interacting with the init scripts yourself.
>>> >>>
>>> >>>  Cheers,
>>> >>>  Tim
>>> >>>

On 10/15/2012 01:59 PM, Tim Watson wrote:
> Hi
>
> On 10/15/2012 01:49 PM, deep desai wrote:
>> I am running a rabbitmq-server version 2.8.7-1 Init script works fine
>> sometimes and it simply hangs sometimes even when checking status.
>> Running a strace shows it stops at wait4(-1 checking status..
>

The wait( -1 ) operating system call is pretty low level - do you have 
any idea *where* that call originated?

> Are you saying that /etc/init.d/rabbitmq-server status hangs?
>
>> I have tried killing all the processes run by user rabbitmq and then
>> start the server by /etc/init.d/rabbitmq-server start but the same
>> problem arises some times.
>
> What operating system are you running? How did you install RabbitMQ? 
> What user are you executing the init script as?
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss



More information about the rabbitmq-discuss mailing list