[rabbitmq-discuss] RabbitMQ shuts itself down every night?

Eric Ettes eric.ettes at gmail.com
Wed Jul 11 06:38:55 BST 2012


Hey everyone,  

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 :)):

shutdown_err:
Error: {'EXIT',{error,{could_not_read_pid,{error,enoent}}}}

shutdown_log:
Stopping and halting node rabbit at lukas …

startup_err:
/usr/lib/rabbitmq/bin/rabbitmq-server: 90: erl: not found

startup_log is empty

rabbit at lukas-sasl.log.1:  
=SUPERVISOR REPORT==== 11-Jul-2012::04:33:51 ===
     Supervisor: {<0.720.0>,rabbit_channel_sup_sup}
     Context:    shutdown_error
     Reason:     shutdown
     Offender:   [{pid,<0.722.0>},
                  {name,channel_sup},
                  {mfa,{rabbit_channel_sup,start_link,[]}},
                  {restart_type,temporary},
                  {shutdown,infinity},
                  {child_type,supervisor}]


rabbit at lukas.log:
=INFO REPORT==== 10-Jul-2012::06:16:55 === <- This is when I started the server
accepting AMQP connection <0.721.0> (127.0.0.1:54219 -> 127.0.0.1:5672)

=INFO REPORT==== 11-Jul-2012::04:33:51 === <- From here, it went wrong
Stopping Rabbit

=INFO REPORT==== 11-Jul-2012::04:33:51 ===
    application: rabbitmq_management
    exited: stopped
    type: permanent

=INFO REPORT==== 11-Jul-2012::04:33:51 ===
    application: rabbitmq_management_agent
    exited: stopped
    type: permanent

=INFO REPORT==== 11-Jul-2012::04:33:51 ===
stopped TCP Listener on [::]:5672

=INFO REPORT==== 11-Jul-2012::04:33:51 ===
    application: rabbit
    exited: stopped
    type: permanent

=INFO REPORT==== 11-Jul-2012::04:33:51 ===
    application: os_mon
    exited: stopped
    type: permanent

=INFO REPORT==== 11-Jul-2012::04:33:51 ===
    application: mnesia
    exited: stopped
    type: permanent

=INFO REPORT==== 11-Jul-2012::04:33:51 ===
Halting Erlang VM




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...  



After re-starting Rabbit, this is the output of rabbitmqctl status:

Status of node rabbit at lukas ...
[{pid,24404},
 {running_applications,
     [{rabbitmq_management,"RabbitMQ Management Console","2.8.2"},
      {xmerl,"XML parser","1.2.9"},
      {rabbitmq_management_agent,"RabbitMQ Management Agent","2.8.2"},
      {amqp_client,"RabbitMQ AMQP Client","2.8.2"},
      {rabbit,"RabbitMQ","2.8.2"},
      {os_mon,"CPO  CXC 138 46","2.2.6"},
      {sasl,"SASL  CXC 138 11","2.1.9.4"},
      {rabbitmq_mochiweb,"RabbitMQ Mochiweb Embedding","2.8.2"},
      {webmachine,"webmachine","1.7.0-rmq2.8.2-hg"},
      {mochiweb,"MochiMedia Web Server","1.3-rmq2.8.2-git"},
      {inets,"INETS  CXC 138 49","5.6"},
      {mnesia,"MNESIA  CXC 138 12","4.4.19"},
      {stdlib,"ERTS  CXC 138 10","1.17.4"},
      {kernel,"ERTS  CXC 138 10","2.14.4"}]},
 {os,{unix,linux}},
 {erlang_version,
     "Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:2:2] [rq:2] [async-threads:30] [hipe] [kernel-poll:true]\n"},
 {memory,
     [{total,34184288},
      {processes,11938464},
      {processes_used,11925920},
      {system,22245824},
      {atom,1545609},
      {atom_used,1533234},
      {binary,274032},
      {code,17459254},
      {ets,1181624}]},
 {vm_memory_high_watermark,0.39999999990469176},
 {vm_memory_limit,839381811},
 {disk_free_limit,2098454528},
 {disk_free,33166905344},
 {file_descriptors,
     [{total_limit,924},{total_used,4},{sockets_limit,829},{sockets_used,2}]},
 {processes,[{limit,1048576},{used,185}]},
 {run_queue,0},
 {uptime,20}]
...done.



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?

Thanks!

Kind regards,

--  
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120711/6ca8c348/attachment.htm>


More information about the rabbitmq-discuss mailing list