<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><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><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><div><font face="'Courier New'"><br></font></div><div><font face="'Courier New'"><b>startup_log</b> is empty</font></div><div><font face="'Courier New'"><br></font></div><div><div><font face="'Courier New'"><b>rabbit@lukas-sasl.log.1: </b></font></div><div><font face="'Courier New'">=SUPERVISOR REPORT==== 11-Jul-2012::04:33:51 ===</font></div><div><font face="'Courier New'"> Supervisor: {<0.720.0>,rabbit_channel_sup_sup}</font></div><div><font face="'Courier New'"> Context: shutdown_error</font></div><div><font face="'Courier New'"> Reason: shutdown</font></div><div><font face="'Courier New'"> Offender: [{pid,<0.722.0>},</font></div><div><font face="'Courier New'"> {name,channel_sup},</font></div><div><font face="'Courier New'"> {mfa,{rabbit_channel_sup,start_link,[]}},</font></div><div><font face="'Courier New'"> {restart_type,temporary},</font></div><div><font face="'Courier New'"> {shutdown,infinity},</font></div><div><font face="'Courier New'"> {child_type,supervisor}]</font></div></div><div><font face="'Courier New'"><br></font></div><div><font face="'Courier New'"><b>rabbit@lukas.log:</b></font></div><div><div><font face="'Courier New'">=INFO REPORT==== 10-Jul-2012::06:16:55 === <font color="#4646fb"><b><- This is when I started the server</b></font></font></div><div><font face="'Courier New'">accepting AMQP connection <0.721.0> (127.0.0.1:54219 -> 127.0.0.1:5672)</font></div><div><font face="'Courier New'"><br></font></div><div><font face="'Courier New'">=INFO REPORT==== 11-Jul-2012::04:33:51 === <font color="#4646fb"><b><- From here, it went wrong</b></font></font></div><div><font face="'Courier New'">Stopping Rabbit</font></div><div><font face="'Courier New'"><br></font></div><div><font face="'Courier New'">=INFO REPORT==== 11-Jul-2012::04:33:51 ===</font></div><div><font face="'Courier New'"> application: rabbitmq_management</font></div><div><font face="'Courier New'"> exited: stopped</font></div><div><font face="'Courier New'"> type: permanent</font></div><div><font face="'Courier New'"><br></font></div><div><font face="'Courier New'">=INFO REPORT==== 11-Jul-2012::04:33:51 ===</font></div><div><font face="'Courier New'"> application: rabbitmq_management_agent</font></div><div><font face="'Courier New'"> exited: stopped</font></div><div><font face="'Courier New'"> type: permanent</font></div><div><font face="'Courier New'"><br></font></div><div><font face="'Courier New'">=INFO REPORT==== 11-Jul-2012::04:33:51 ===</font></div><div><font face="'Courier New'">stopped TCP Listener on [::]:5672</font></div><div><font face="'Courier New'"><br></font></div><div><font face="'Courier New'">=INFO REPORT==== 11-Jul-2012::04:33:51 ===</font></div><div><font face="'Courier New'"> application: rabbit</font></div><div><font face="'Courier New'"> exited: stopped</font></div><div><font face="'Courier New'"> type: permanent</font></div><div><font face="'Courier New'"><br></font></div><div><font face="'Courier New'">=INFO REPORT==== 11-Jul-2012::04:33:51 ===</font></div><div><font face="'Courier New'"> application: os_mon</font></div><div><font face="'Courier New'"> exited: stopped</font></div><div><font face="'Courier New'"> type: permanent</font></div><div><font face="'Courier New'"><br></font></div><div><font face="'Courier New'">=INFO REPORT==== 11-Jul-2012::04:33:51 ===</font></div><div><font face="'Courier New'"> application: mnesia</font></div><div><font face="'Courier New'"> exited: stopped</font></div><div><font face="'Courier New'"> type: permanent</font></div><div><font face="'Courier New'"><br></font></div><div><font face="'Courier New'">=INFO REPORT==== 11-Jul-2012::04:33:51 ===</font></div><div><font face="'Courier New'">Halting Erlang VM</font></div></div><div><br></div><div><br></div><div><br></div><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><font face="'Courier New'"> {os,{unix,linux}},</font></div><div><font face="'Courier New'"> {erlang_version,</font></div><div><font face="'Courier New'"> "Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:2:2] [rq:2] [async-threads:30] [hipe] [kernel-poll:true]\n"},</font></div><div><font face="'Courier New'"> {memory,</font></div><div><font face="'Courier New'"> [{total,34184288},</font></div><div><font face="'Courier New'"> {processes,11938464},</font></div><div><font face="'Courier New'"> {processes_used,11925920},</font></div><div><font face="'Courier New'"> {system,22245824},</font></div><div><font face="'Courier New'"> {atom,1545609},</font></div><div><font face="'Courier New'"> {atom_used,1533234},</font></div><div><font face="'Courier New'"> {binary,274032},</font></div><div><font face="'Courier New'"> {code,17459254},</font></div><div><font face="'Courier New'"> {ets,1181624}]},</font></div><div><font face="'Courier New'"> {vm_memory_high_watermark,0.39999999990469176},</font></div><div><font face="'Courier New'"> {vm_memory_limit,839381811},</font></div><div><font face="'Courier New'"> {disk_free_limit,2098454528},</font></div><div><font face="'Courier New'"> {disk_free,33166905344},</font></div><div><font face="'Courier New'"> {file_descriptors,</font></div><div><font face="'Courier New'"> [{total_limit,924},{total_used,4},{sockets_limit,829},{sockets_used,2}]},</font></div><div><font face="'Courier New'"> {processes,[{limit,1048576},{used,185}]},</font></div><div><font face="'Courier New'"> {run_queue,0},</font></div><div><font face="'Courier New'"> {uptime,20}]</font></div><div><font face="'Courier New'">...done.</font></div></div><div><br></div><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>Thanks!</div><div><br></div><div>Kind regards,</div><div><br></div>-- <br>Eric</div>