RabbitMQ-server won't start

969 views
Skip to first unread message

Suzi B

unread,
Nov 27, 2014, 11:36:50 AM11/27/14
to rabbitm...@googlegroups.com
Hello,

Anyone have any idea what might cause the following error when starting rabbitmq server? I'm running it in RHEL 5, erlang OTP 17.3 and rabbitmq-server 3.4.2

=ERROR REPORT==== 28-Nov-2014::00:31:04 ===
** Generic server rabbit_web_dispatch_registry terminating 
** Last message in was {add,rabbit_mgmt,
                            [{port,15672}],
                            #Fun<rabbit_web_dispatch.1.31447083>,
                            #Fun<rabbit_mgmt_app.0.15521781>,
                            {[],"RabbitMQ Management"}}
** When Server state == undefined
** Reason for termination == 
** {could_not_start_listener,
       [{port,15672}],
       {'EXIT',
           {undef,
               [{lists,keyfind,
                    [name,1,
                     [{loop,
                          {mochiweb_http,loop,
                              [#Fun<rabbit_web_dispatch_sup.0.23589304>]}},
                      {name,rabbit_web_dispatch_sup_15672},
                      {port,15672}]]},
                {mochilists,is_defined,2},
                {mochilists,set_default,2},
                {lists,foldl,3},
                {mochiweb_http,start,1},
                {supervisor,do_start_child,2},
                {supervisor,handle_start_child,2},
                {supervisor,handle_call,3}]}}}

=INFO REPORT==== 28-Nov-2014::00:31:04 ===
stopped TCP Listener on [::]:5672

=INFO REPORT==== 28-Nov-2014::00:31:04 ===
Error description:
   {could_not_start,rabbitmq_management,
       {could_not_start_listener,
           [{port,15672}],
           {'EXIT',
               {undef,
                   [{lists,keyfind,
                        [name,1,
                         [{loop,
                              {mochiweb_http,loop,
                                  [#Fun<rabbit_web_dispatch_sup.0.23589304>]}},
                          {name,rabbit_web_dispatch_sup_15672},
                          {port,15672}]]},
                    {mochilists,is_defined,2},
                    {mochilists,set_default,2},
                    {lists,foldl,3},
                    {mochiweb_http,start,1},
                    {supervisor,do_start_child,2},
                    {supervisor,handle_start_child,2},
                    {supervisor,handle_call,3}]}}}}

Log files (may contain more information):
   /var/log/rabbitmq/rab...@dev101.log
   /var/log/rabbitmq/rab...@dev101-sasl.log



Simon MacMullen

unread,
Nov 27, 2014, 11:41:28 AM11/27/14
to Suzi B, rabbitm...@googlegroups.com
On 27/11/14 16:36, Suzi B wrote:
> RHEL 5

> erlang OTP 17.3

> {undef, [{lists,keyfind,

You probably aren't running 17.3. lists:keyfind/3 was added in R13B; I
suspect you're actually picking up Erlang R12B-something, which I think
was what was available for RHEL 5 originally.

The Erlang version gets logged at startup - what does the log message
"Starting RabbitMQ 3.4.2..." say?

Cheers, Simon

suzi bermudez

unread,
Nov 27, 2014, 11:45:18 AM11/27/14
to Simon MacMullen, rabbitm...@googlegroups.com
Hi Simon,

It says:

Starting rabbitmq-server: SUCCESS
rabbitmq-server.


Regards,
Suzi

Simon MacMullen

unread,
Nov 27, 2014, 11:46:59 AM11/27/14
to suzi bermudez, rabbitm...@googlegroups.com
I meant the main log - something like
/var/log/rabbitmq/rab...@somehostname.log if installed via RPM.

Cheers, Simon
> --
> You received this message because you are subscribed to the Google
> Groups "rabbitmq-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to rabbitmq-user...@googlegroups.com
> <mailto:rabbitmq-user...@googlegroups.com>.
> To post to this group, send email to rabbitm...@googlegroups.com
> <mailto:rabbitm...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

suzi bermudez

unread,
Nov 27, 2014, 11:57:09 AM11/27/14
to Simon MacMullen, rabbitm...@googlegroups.com
Sorry, it says:

Starting RabbitMQ 3.4.2 on Erlang R12B

I checked my packages and it has erlang-R12B-5.11.el5. I deleted that since I installed 17.3 via src. When I start rabbitmq it now says:

Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_{log, _err}
rabbitmq-server.
In the startup_err file, it says:
/usr/lib/rabbitmq/bin/rabbitmq-server: line 50: erl: command not found

but when I enter erl in the prompt, I can execute the command.

[suzi@xxxxxx ~]$ erl
Erlang/OTP 17 [erts-6.2] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] Eshell V6.2 (abort with ^G)
1>  


Regards,
Suzi

On Fri, Nov 28, 2014 at 12:46 AM, Simon MacMullen <si...@rabbitmq.com> wrote:
I meant the main log - something like /var/log/rabbitmq/rabbit@somehostname.log if installed via RPM.


Cheers, Simon

On 27/11/14 16:44, suzi bermudez wrote:
Hi Simon,

It says:

Starting rabbitmq-server: SUCCESS
rabbitmq-server.


Regards,
Suzi

On Fri, Nov 28, 2014 at 12:41 AM, Simon MacMullen <si...@rabbitmq.com
<mailto:si...@rabbitmq.com>> wrote:

    On 27/11/14 16:36, Suzi B wrote:

        RHEL 5


        erlang OTP 17.3


        {undef, [{lists,keyfind,


    You probably aren't running 17.3. lists:keyfind/3 was added in R13B;
    I suspect you're actually picking up Erlang R12B-something, which I
    think was what was available for RHEL 5 originally.

    The Erlang version gets logged at startup - what does the log
    message "Starting RabbitMQ 3.4.2..." say?

    Cheers, Simon


--
You received this message because you are subscribed to the Google
Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send

Simon MacMullen

unread,
Nov 27, 2014, 12:01:47 PM11/27/14
to suzi bermudez, rabbitm...@googlegroups.com
On 27/11/14 16:56, suzi bermudez wrote:
> In the startup_err file, it says:
>
> /usr/lib/rabbitmq/bin/rabbitmq-server: line 50: erl: command not found
>
>
> but when I enter erl in the prompt, I can execute the command.
>
> [suzi@xxxxxx ~]$ erl
> Erlang/OTP 17 [erts-6.2] [source] [64-bit] [smp:4:4]
> [async-threads:10] [hipe] [kernel-poll:false] Eshell V6.2 (abort
> with ^G)
> 1>

Presumably this is caused by a difference in the PATH that is available
to you in an interactive session vs the system-wide one.

It sounds like you installed Erlang from source and RabbitMQ from the
RPM. This can certainly be made to work, but it's a configuration that
lots of people have problems with and we can't really provide general
Unix support on configuring paths and so on.

You may find it easiest to go back to
http://www.rabbitmq.com/install-rpm.html and follow the instructions on
getting an RPM for Erlang - the ones from Erlang Solutions are probably
best in general.

Cheers, Simon

suzi bermudez

unread,
Nov 27, 2014, 12:06:48 PM11/27/14
to Simon MacMullen, rabbitm...@googlegroups.com
OK. Thanks!

Regards,
Suzi

suzi bermudez

unread,
Nov 27, 2014, 12:37:07 PM11/27/14
to Simon MacMullen, rabbitm...@googlegroups.com
For future reference, I solved this by doing the following:
 
sudo ln -s /usr/local/lib/erlang/bin/erl /usr/bin/.
sudo ln -s /usr/local/lib/erlang/bin/erl /bin/.

Regards,
Suzi
Reply all
Reply to author
Forward
0 new messages