RabbitMQ on Fedora 14

November 5, 2010

I've just installed a fresh fedora 14 install on a new box. I installed rabbitmq using

yum install rabbitmq-server

I then tried to start it using

/etc/init.d/rabbitmq-server start

This failed, with the following error in the logs:

[root@host init.d]# cat /var/log/rabbitmq/startup_log
Starting all nodes...
Starting node rabbit@host...
Activating RabbitMQ plugins ...
ERROR: generation of boot script file /var/lib/rabbitmq/mnesia/rabbit@host/plugins-scratch/rabbit.script failed:
{{module_not_found,os_mon,nteventlog},
 {nteventlog,'$$ignore$$',os_mon,"2.2.5",
         "/usr/lib/erlang/lib/os_mon-2.2.5/ebin"}}

There are details of this problem in http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2010-May.txt, with the following instructions to fix:

Edit the file /usr/lib/erlang/lib/os_mon-2.2.5/ebin/os_mon.app (or or /usr/lib64/erlang/lib/os_mon-2.2.5/ebin/os_mon.app) depending on whether your Fedora is 32- or 64-bit and change

{modules, [os_mon, os_mon_mib, os_sup,
       disksup, memsup, cpu_sup, os_mon_sysinfo, nteventlog]},

so that it reads

{modules, [os_mon, os_mon_mib, os_sup,
       disksup, memsup, cpu_sup, os_mon_sysinfo]},

After this change, RabbitMQ should start normally.

Autostarting

Fedora doesn't automatically start services that you install, like Debian does. chkconfig will show what runlevels the server starts at:

[root@host init.d]# chkconfig --list rabbitmq-server
rabbitmq-server 0:off   1:off   2:off   3:off   4:off   5:off   6:off

To start at 3 and 5, issue this command:

[root@host init.d]# chkconfig --level 35 rabbitmq-server on

The service will be installed at run levels 3 and 5

[root@host init.d]# chkconfig --list rabbitmq-server
rabbitmq-server 0:off   1:off   2:off   3:on    4:off   5:on    6:off