<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 07/11/2012 06:38 AM, Eric Ettes wrote:
<blockquote cite="mid:76282B0512BD48BB8D400BFBF5A7BD67@gmail.com"
type="cite">
<div> Hey everyone, </div>
<div><br>
</div>
<div>For a project I'm using RabbitMQ and I've encountered a
strange problem that I'm unable to solve. The rabbit-server will
automatically shut down every night with the following logging
(I cleaned the log files and just waited for the next shutdown
to occur :)):</div>
<div><br>
</div>
</blockquote>
<br>
Also.....<br>
<br>
<blockquote cite="mid:76282B0512BD48BB8D400BFBF5A7BD67@gmail.com"
type="cite">
<div><font face="'Courier New'"><b>shutdown_err:</b></font></div>
<div><font face="'Courier New'">Error:
{'EXIT',{error,{could_not_read_pid,{error,enoent}}}}</font></div>
<div><font face="'Courier New'"><br>
</font></div>
</blockquote>
<br>
Why can't the pid file be read? Where is rabbit installed and which
user is running this command?<br>
<br>
<blockquote cite="mid:76282B0512BD48BB8D400BFBF5A7BD67@gmail.com"
type="cite">
<div><font face="'Courier New'"><b>shutdown_log:</b></font></div>
<div><font face="'Courier New'">Stopping and halting node
rabbit@lukas …</font></div>
<div><font face="'Courier New'"><br>
</font></div>
<div><font face="'Courier New'"><b>startup_err:</b></font></div>
<div><font face="'Courier New'">/usr/lib/rabbitmq/bin/rabbitmq-server:
90: erl: not found</font></div>
<br>
</blockquote>
<font face="'Courier New'"><br>
Well this is very odd. Definitely looks like the user which
initiated the startup/shutdown isn't the rabbitmq user, as it
appears that the 'erl' program isn't found on this user's path.<br>
<br>
</font>
<blockquote cite="mid:76282B0512BD48BB8D400BFBF5A7BD67@gmail.com"
type="cite">
<div>I'm using a plain version of RabbitMQ 2.8.2 on Ubuntu 10.04.4
LTS, so far I've only installed RabbitMQ without changing the
configuration. Also, the app hasn't been released for testing
yet, so there's been no traffic over RabbitMQ... </div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>After re-starting Rabbit, this is the output of rabbitmqctl
status:</div>
<div><br>
</div>
<div>
<div><font face="'Courier New'">Status of node rabbit@lukas ...</font></div>
<div><font face="'Courier New'">[{pid,24404},</font></div>
<div><font face="'Courier New'"> {running_applications,</font></div>
<div><font face="'Courier New'">
[{rabbitmq_management,"RabbitMQ Management
Console","2.8.2"},</font></div>
<div><font face="'Courier New'"> {xmerl,"XML
parser","1.2.9"},</font></div>
<div><font face="'Courier New'">
{rabbitmq_management_agent,"RabbitMQ Management
Agent","2.8.2"},</font></div>
<div><font face="'Courier New'"> {amqp_client,"RabbitMQ
AMQP Client","2.8.2"},</font></div>
<div><font face="'Courier New'">
{rabbit,"RabbitMQ","2.8.2"},</font></div>
<div><font face="'Courier New'"> {os_mon,"CPO CXC 138
46","2.2.6"},</font></div>
<div><font face="'Courier New'"> {sasl,"SASL CXC 138
11","2.1.9.4"},</font></div>
<div><font face="'Courier New'">
{rabbitmq_mochiweb,"RabbitMQ Mochiweb Embedding","2.8.2"},</font></div>
<div><font face="'Courier New'">
{webmachine,"webmachine","1.7.0-rmq2.8.2-hg"},</font></div>
<div><font face="'Courier New'"> {mochiweb,"MochiMedia Web
Server","1.3-rmq2.8.2-git"},</font></div>
<div><font face="'Courier New'"> {inets,"INETS CXC 138
49","5.6"},</font></div>
<div><font face="'Courier New'"> {mnesia,"MNESIA CXC 138
12","4.4.19"},</font></div>
<div><font face="'Courier New'"> {stdlib,"ERTS CXC 138
10","1.17.4"},</font></div>
<div><font face="'Courier New'"> {kernel,"ERTS CXC 138
10","2.14.4"}]},</font></div>
</div>
</blockquote>
<br>
Unless I'm mistaken, these plugins should not be automatically
enabled with a stock rabbit. So have you really installed RabbitMQ
"without changing the configuration" at all?<br>
<br>
<blockquote cite="mid:76282B0512BD48BB8D400BFBF5A7BD67@gmail.com"
type="cite">
<div><br>
</div>
<div>
<div>I've searched the internet for a while now, but so far I
wasn't able to find anything -- perhaps someone on this
mailing encountered the same issue and has a solution?</div>
<div><br>
</div>
</div>
</blockquote>
<br>
I strongly suspect some other agent on your system is attempting to
shut down rabbit, though clearly making a botched job of it as 'erl'
isn't found at some point and the pid file isn't where it is
expected to be. <br>
</body>
</html>