rabbitmq 3.6.6 failed to start

583 views
Skip to first unread message

zhenbo zeng

unread,
Nov 29, 2016, 6:48:29 AM11/29/16
to rabbitmq-users
Hi, when I start my rabbitmq server, it generates some error, and couldn't startup successfully
What's the problem, and what should I do?

OS:CentOS Linux release 7.2.1511 (Core) 
Erlang/OTP:esl-erlang-19.1.5-1-centos7.x86_64.rpm
RabbitMQ:rabbitmq-server-3.6.6-1.el7.noarch.rpm


=INFO REPORT==== 29-Nov-2016::17:49:48 ===
Error description:
   enoent

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

Stack trace:
   [{erlang,open_port,
            [{spawn_executable,false},
             [{args,["unix-sendto:/run/systemd/notify","STDIO"]},
              use_stdio,out]],
            []},
    {rabbit,sd_notify_socat,1,[{file,"src/rabbit.erl"},{line,351}]},
    {rabbit,maybe_sd_notify,0,[{file,"src/rabbit.erl"},{line,291}]},
    {rabbit,broker_start,0,[{file,"src/rabbit.erl"},{line,283}]},
    {rabbit,start_it,1,[{file,"src/rabbit.erl"},{line,403}]},
    {init,start_em,1,[]},
    {init,do_boot,3,[]}]



Alexey Lebedeff

unread,
Nov 29, 2016, 7:00:17 AM11/29/16
to rabbitm...@googlegroups.com

Hi.

You should have `socat` executable somewhere in your path.

But actually it wasn't intended to fail so spectacularly. Are you
starting rabbitmq using systemd?

Alexey Lebedeff

unread,
Nov 29, 2016, 7:07:08 AM11/29/16
to rabbitm...@googlegroups.com
I've checked, https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_6_6/rabbitmq-server-3.6.6-1.el7.noarch.rpm already depends on `socat`. So the problem has something to do with the way you're installing rabbitmq package.

And BTW, it's a proper thing that startup failed. This code path gets executed only when rabbit is started from systemd with unit type=Notify. And failure to execute `socat` at that point will lead systemd to beleive that rabbit has failed to start. So systemd will just stop or restart the broker after some timeout.


On Tue, Nov 29, 2016 at 3:00 PM, Alexey Lebedeff <bin...@gmail.com> wrote:

Hi.

You should have `socat` executable somewhere in your path.

But actually it wasn't intended to fail so spectacularly. Are you
starting rabbitmq using systemd?

zhenbo zeng writes:

> Hi, when I start my rabbitmq server, it generates some error, and couldn't
> startup successfully
> What's the problem, and what should I do?
>
> OS:CentOS Linux release 7.2.1511 (Core)
> Erlang/OTP:esl-erlang-19.1.5-1-centos7.x86_64.rpm
> RabbitMQ:rabbitmq-server-3.6.6-1.el7.noarch.rpm
>
>
> =INFO REPORT==== 29-Nov-2016::17:49:48 ===
> Error description:
>    enoent
>
> Log files (may contain more information):
>    /var/log/rabbitmq/rabbit@xxxx.log
>    /var/log/rabbitmq/rabbit@xxxx-sasl.log

zhenbo zeng

unread,
Nov 29, 2016, 8:48:31 PM11/29/16
to rabbitmq-users
Thanks for reply
We have solve this problem, there is no `socat` in our OS, because we use  --nodeps option when install rabbitmq, so no notification during the installation.
In our installation script, we install erlang with esl-erlang rpm, and then install rabbitmq. If install without --nodeps option, there will be a notification that can't not find erlang in the OS, so we use the --nodeps option when install rabbtimq

在 2016年11月29日星期二 UTC+8下午8:07:08,Alexey Lebedeff写道:

Alexey Lebedeff

unread,
Nov 30, 2016, 4:01:46 AM11/30/16
to rabbitm...@googlegroups.com

BTW, you could try erlang RPM from https://github.com/rabbitmq/erlang-rpm

zhenbo zeng writes:

> Thanks for reply
> We have solve this problem, there is no `socat` in our OS, because we use *--nodeps
> *option when install rabbitmq, so no notification during the installation.
> In our installation script, we install erlang with esl-erlang rpm, and then
> install rabbitmq. If install without *--nodeps *option, there will be a
> notification that can't not find erlang in the OS, so we use the *--nodeps *option
>>> > /var/log/rabbitmq/rab...@xxxx.log
>>> > /var/log/rabbitmq/rab...@xxxx-sasl.log
Reply all
Reply to author
Forward
0 new messages