[rabbitmq-discuss] Error running rabbitmq-server on Mac OS X

Matthias Radestock matthias at lshift.net
Wed Jun 24 02:53:32 BST 2009


PanosJee wrote:
> Hi Matthias, I wanted to post to the google group but it would not
> allow me so i write to you personally and i hope you do not mind.

You really should subscribe to our mailing list at
   http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

This reply is cc'ed there.

> I have the typical problem upon booting of the server:
> $ sudo -H -u rabbitmq rabbitmq-server
> Password:
> {"init terminating in do_boot",{undef,[{rabbit,start,[]},
> {init,start_it,1},{init,start_em,1}]}}
> 
> Crash dump was written to: erl_crash.dump
> init terminating in do_boot ()
> 
> Only root should run rabbitmq-server
> 
> What seems very frustrating is the last warning about root only being
> able to run the server.

Is that a macports install? These are in a state of flux, and depending 
on when & where you got your version from the instructions on the web 
site are incorrect. Specifically, in the most recent versions you should 
now be able to start rabbit just with
   sudo rabbitmq-server
and, similarly, control it with
   sudo rabbitmqctl <command> ...

> Furthermore, i found that the rabbitmq library exists inside the
> erlang lib as it was pointed out in previous posts. But it seems that
> is not loaded into erl:
> 
> Eshell V5.7.1  (abort with ^G)
> 1> code:get_path().
> [".","/usr/local/lib/erlang/lib/kernel-2.13.1/ebin",
>  "/usr/local/lib/erlang/lib/stdlib-1.16.1/ebin",
>  "/usr/local/lib/erlang/lib/xmerl-1.1.12/ebin",
>  "/usr/local/lib/erlang/lib/wx-0.98.1/ebin",
>  "/usr/local/lib/erlang/lib/webtool-0.8.4/ebin",
>  "/usr/local/lib/erlang/lib/typer-0.1.7/ebin",
>  "/usr/local/lib/erlang/lib/tv-2.1.4.3/ebin",
>  "/usr/local/lib/erlang/lib/tools-2.6.4/ebin",
>  "/usr/local/lib/erlang/lib/toolbar-1.4/ebin",
>  "/usr/local/lib/erlang/lib/test_server-3.3.1/ebin",
>  "/usr/local/lib/erlang/lib/syntax_tools-1.6/ebin",
>  "/usr/local/lib/erlang/lib/ssl-3.10.1/ebin",
>  "/usr/local/lib/erlang/lib/ssh-1.1.2/ebin",
>  "/usr/local/lib/erlang/lib/snmp-4.13.1/ebin",
>  "/usr/local/lib/erlang/lib/sasl-2.1.6/ebin",
>  "/usr/local/lib/erlang/lib/runtime_tools-1.8/ebin",
>  "/usr/local/lib/erlang/lib/reltool-0.2.1/ebin",
>  "/usr/local/lib/erlang/lib/public_key-0.2/ebin",
>  "/usr/local/lib/erlang/lib/pman-2.7/ebin",
>  "/usr/local/lib/erlang/lib/percept-0.8.1/ebin",
>  "/usr/local/lib/erlang/lib/parsetools-1.4.7/ebin",
>  "/usr/local/lib/erlang/lib/otp_mibs-1.0.5/ebin",
>  "/usr/local/lib/erlang/lib/os_mon-2.2.1/ebin",
>  "/usr/local/lib/erlang/lib/orber-3.6.12/ebin",
>  "/usr/local/lib/erlang/lib/odbc-2.10.4/ebin",
>  "/usr/local/lib/erlang/lib/observer-0.9.8/ebin",
>  "/usr/local/lib/erlang/lib/mnesia-4.4.9/ebin",
>  [...]|...]
> 2>

You do actually need to display the *whole* list - the above has been 
truncated by the Erlang shell. Or, even better, just check where Erlang 
thinks rabbit lives (if anywhere):
   code:which(rabbit).

If that comes up with nothing, check that there really is a 
rabbitmq_server-<vsn> directory in /usr/local/lib/erlang/lib, alongside 
all the other erlang apps.


Regards,

Matthias.




More information about the rabbitmq-discuss mailing list