RabbitMQ Ubuntu Precise release - invoke-rc.d: initscript rabbitmq-server, action "start" failed.

1,474 views
Skip to first unread message

Matti Waarna

unread,
Apr 21, 2015, 2:38:20 PM4/21/15
to rabbitm...@googlegroups.com
Installing RabbitMQ for Ubuntu throws an error during startup. 
But Error logs are empty and rabbitmq service does startup and I am able to connect.

I have checked my host file and i have
localhost and hostname mapped to 127.0.0.1.

Any suggestion?

steps to reproduce.

apt-get install rabbitmq-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  rabbitmq-server
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 4,163 kB of archives.
After this operation, 4,922 kB of additional disk space will be used.
Get:1 http://www.rabbitmq.com/debian/ testing/main rabbitmq-server all 3.5.1-1 [4,163 kB]
Fetched 4,163 kB in 0s (28.0 MB/s)    
Selecting previously unselected package rabbitmq-server.
(Reading database ... 91179 files and directories currently installed.)
Unpacking rabbitmq-server (from .../rabbitmq-server_3.5.1-1_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up rabbitmq-server (3.5.1-1) ...
 * Starting message broker rabbitmq-server
* FAILED - check /var/log/rabbitmq/startup_\{log, _err\}
[fail]
invoke-rc.d: initscript rabbitmq-server, action "start" failed.
dpkg: error processing rabbitmq-server (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 rabbitmq-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


Looking at the Log folder. 
startup_err is empty and startup_log has the following:

              RabbitMQ 3.5.1. Copyright (C) 2007-2014 GoPivotal, Inc.
  ##  ##      Licensed under the MPL.  See http://www.rabbitmq.com/
  ##  ##
  ##########  Logs: /var/log/rabbitmq/rabbit@XXXX-XXXX-XXX
  ######  ##        /var/log/rabbitmq/rabbit@XXXX-XXXX-XXX
  ##########
              Starting broker... completed with 0 plugins.



rabbitmqctl status
Status of node 'rabbit@XXXX-XXXX-XXX' ...
[{pid,8686},
 {running_applications,[{rabbit,"RabbitMQ","3.5.1"},
                        {mnesia,"MNESIA  CXC 138 12","4.12.5"},
                        {os_mon,"CPO  CXC 138 46","2.3.1"},
                        {xmerl,"XML parser","1.3.7"},
                        {sasl,"SASL  CXC 138 11","2.4.1"},
                        {stdlib,"ERTS  CXC 138 10","2.4"},
                        {kernel,"ERTS  CXC 138 10","3.2"}]},
 {os,{unix,linux}},
 {erlang_version,"Erlang/OTP 17 [erts-6.4] [source] [64-bit] [smp:2:2] [async-threads:30] [hipe] [kernel-poll:true]\n"},
 {memory,[{total,36616848},
          {connection_readers,0},
          {connection_writers,0},
          {connection_channels,0},
          {connection_other,2808},
          {queue_procs,2808},
          {queue_slave_procs,0},
          {plugins,0},
          {other_proc,13480800},
          {mnesia,60904},
          {mgmt_db,0},
          {msg_index,47200},
          {other_ets,768832},
          {binary,800264},
          {code,16594204},
          {atom,602729},
          {other_system,4256299}]},
 {alarms,[]},
 {listeners,[{clustering,25672,"::"},{amqp,5672,"::"}]},
 {vm_memory_high_watermark,0.4},
 {vm_memory_limit,840294400},
 {disk_free_limit,50000000},
 {disk_free,25292963840},
 {file_descriptors,[{total_limit,924},
                    {total_used,3},
                    {sockets_limit,829},
                    {sockets_used,1}]},
 {processes,[{limit,1048576},{used,125}]},
 {run_queue,0},
 {uptime,825}]
su: Cannot make/remove an entry for the specified session


cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.5 LTS"





Michael Klishin

unread,
Apr 21, 2015, 2:44:57 PM4/21/15
to rabbitm...@googlegroups.com, Matti Waarna
On 21 April 2015 at 21:38:25, Matti Waarna (mwa...@gmail.com) wrote:
> startup_err is empty and startup_log has the following:
>
> RabbitMQ 3.5.1. Copyright (C) 2007-2014 GoPivotal, Inc.
> ## ## Licensed under the MPL. See http://www.rabbitmq.com/
> ## ##
> ########## Logs: /var/log/rabbitmq/rabbit@XXXX-XXXX-XXX
> ###### ## /var/log/rabbitmq/rabbit@XXXX-XXXX-XXX
> ##########
> Starting broker... completed with 0 plugins.
>
>
> rabbitmqctl status
> Status of node 'rabbit@XXXX-XXXX-XXX' ...
> [{pid,8686},

The fact that rabbitmqctl can contact the node and you have a startup banner in the log
suggests that RabbitMQ is in fact  running.

This looks a lot like

https://groups.google.com/d/msg/rabbitmq-users/agWKMcI9KF4/hPLCgm6VSA0J
https://groups.google.com/d/msg/rabbitmq-users/gQTyKNl-FOE/agSXft1NS4gJ

and there is an issue filed for it:
https://github.com/rabbitmq/rabbitmq-server/issues/76

but we could not reproduce it with vanilla 12.04.5 images.
--
MK

Staff Software Engineer, Pivotal/RabbitMQ


Matti Waarna

unread,
Apr 21, 2015, 3:07:31 PM4/21/15
to rabbitm...@googlegroups.com, mwa...@gmail.com
RabbitMQ is starting up and it does appear to be a false error reporting.

It just leaves rabbitmq-server in an incomplete install state and anytime apt-get upgrade is executed it prompts to install/upgrade rabbitmq.

Any suggestions what to try or any other system logs to look at?

I just tried the following:
apt-get purge rabbitmq-server
apt-get purge erlang
apt-get clean
apt-get autoremove
apt-get install rabitmq-server 

and the results are the same.

Thanks

Michael Klishin

unread,
Apr 21, 2015, 3:09:33 PM4/21/15
to rabbitm...@googlegroups.com, Matti Waarna
On 21 April 2015 at 22:07:34, Matti Waarna (mwa...@gmail.com) wrote:
> Any suggestions what to try or any other system logs to look at?

Jean-Sébastien asked the previous reporter about some things, I don't believe
all of them were answered. Take a look at

https://groups.google.com/d/msg/rabbitmq-users/gQTyKNl-FOE/gt4SzBteIUMJ 

Matti Waarna

unread,
Apr 21, 2015, 3:23:13 PM4/21/15
to rabbitm...@googlegroups.com, mwa...@gmail.com
Jean-Sébastien first question, throws a syntax error:

lsof -i
COMMAND    PID       USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
epmd     10199   rabbitmq    3u  IPv4  33048      0t0  TCP *:epmd (LISTEN)
epmd     10199   rabbitmq    5u  IPv4  33139      0t0  TCP localhost:epmd->localhost:36017 (ESTABLISHED)
beam.smp 10227   rabbitmq    9u  IPv4  32583      0t0  TCP *:25672 (LISTEN)
beam.smp 10227   rabbitmq   10u  IPv4  32585      0t0  TCP localhost:36017->localhost:epmd (ESTABLISHED)
beam.smp 10227   rabbitmq   19u  IPv6  33208      0t0  TCP *:amqp (LISTEN)

erl -noinput -noshell -eval 'P=erlang:open_port({spawn, "ps -p 
> 10227"},[exit_status,{line,16384},use_stdio,stderr_to_stdout]),[receive 
> M -> io:format("~p~n", [M]) after 1000 -> ok end || _ <- 
> lists:seq(1,10)], init:stop().' 
{#Port<0.477>,{data,{eol,"ERROR: List of process IDs must follow -p."}}}
{#Port<0.477>,
 {data,{eol,"********* simple selection *********  ********* selection by list *********"}}}
{#Port<0.477>,
 {data,{eol,"-A all processes                      -C by command name"}}}
{#Port<0.477>,
 {data,{eol,"-N negate selection                   -G by real group ID (supports names)"}}}
{#Port<0.477>,
 {data,{eol,"-a all w/ tty except session leaders  -U by real user ID (supports names)"}}}
{#Port<0.477>,
 {data,{eol,"-d all except session leaders         -g by session OR by effective group name"}}}
{#Port<0.477>,
 {data,{eol,"-e all processes                      -p by process ID"}}}
{#Port<0.477>,
 {data,{eol,"T  all processes on this terminal     -s processes in the sessions given"}}}
{#Port<0.477>,{data,{eol,"a  all w/ tty, including other users  -t by tty"}}}
{#Port<0.477>,
 {data,{eol,"g  OBSOLETE -- DO NOT USE             -u by effective user ID (supports names)"}}}

Matti Waarna

unread,
Apr 21, 2015, 3:32:41 PM4/21/15
to rabbitm...@googlegroups.com, mwa...@gmail.com
Fixing the syntax error(was multiple lines first time)
to:
erl -noinput -noshell -eval 'P=erlang:open_port({spawn, "ps -p 10227"},[exit_status,{line,16384},use_stdio,stderr_to_stdout]),[receive M -> io:format("~p~n", [M]) after 1000 -> ok end || _ <- lists:seq(1,10)], init:stop().

just opens up a prompt. ">" no output is given.

I will modify the init script "/etc/init.d/rabbitmq-server" and post the results in the next post.

Michael Klishin

unread,
Apr 21, 2015, 3:38:04 PM4/21/15
to rabbitm...@googlegroups.com, Matti Waarna
On 21 April 2015 at 22:32:43, Matti Waarna (mwa...@gmail.com) wrote:
> Fixing the syntax error(was multiple lines first time)
> to:
> erl -noinput -noshell -eval 'P=erlang:open_port({spawn,
> "ps -p 10227"},[exit_status,{line,16384},use_stdio,stderr_to_stdout]),[receive
> M -> io:format("~p~n", [M]) after 1000 -> ok end || _ <- lists:seq(1,10)],
> init:stop().
>
> just opens up a prompt. ">" no output is given.

You are missing the closing ' as far as I can see.

Matti Waarna

unread,
Apr 21, 2015, 3:41:32 PM4/21/15
to rabbitm...@googlegroups.com, mwa...@gmail.com
Following Question 2:

Modified /etc/init.d/rabbitmq-server, 

start_rabbitmq () {
    status_rabbitmq quiet
    if [ $RETVAL != 0 ] ; then
        RETVAL=0
        ensure_pid_dir
        set +e
        RABBITMQ_PID_FILE=$PID_FILE start-stop-daemon --quiet \
            --chuid rabbitmq --start --exec $DAEMON \
            --pidfile "$RABBITMQ_PID_FILE" --background
        ##Debug Lines Added
        cat $PID_FILE 
        erl -noinput -noshell -eval 'P=erlang:open_port({spawn, "ps -p '$(cat $PID_FILE)'"},[exit_status,{line,16384},use_stdio,stderr_to_stdout]),[receive M -> io:format("~p~n"$
        ## End Debug
        $CONTROL wait $PID_FILE >/dev/null 2>&1
        RETVAL=$?
        set -e
        if [ $RETVAL != 0 ] ; then
            remove_pid
        fi
    else
        RETVAL=3
    fi
}

Running:
invoke-rc.d rabbitmq-server start
 * Starting message broker rabbitmq-server                                                                                                                                        cat: /var/run/rabbitmq/pid: No such file or directory
cat: /var/run/rabbitmq/pid: No such file or directory
{#Port<0.477>,{data,{eol,"ERROR: List of process IDs must follow -p."}}}
{#Port<0.477>,
 {data,{eol,"********* simple selection *********  ********* selection by list *********"}}}
{#Port<0.477>,
 {data,{eol,"-A all processes                      -C by command name"}}}
{#Port<0.477>,
 {data,{eol,"-N negate selection                   -G by real group ID (supports names)"}}}
{#Port<0.477>,
 {data,{eol,"-a all w/ tty except session leaders  -U by real user ID (supports names)"}}}
{#Port<0.477>,
 {data,{eol,"-d all except session leaders         -g by session OR by effective group name"}}}
{#Port<0.477>,
 {data,{eol,"-e all processes                      -p by process ID"}}}
{#Port<0.477>,
 {data,{eol,"T  all processes on this terminal     -s processes in the sessions given"}}}
{#Port<0.477>,{data,{eol,"a  all w/ tty, including other users  -t by tty"}}}
{#Port<0.477>,
 {data,{eol,"g  OBSOLETE -- DO NOT USE             -u by effective user ID (supports names)"}}}
 * FAILED - check /var/log/rabbitmq/startup_\{log, _err\}
                                                                                                                                                                           [fail]
invoke-rc.d: initscript rabbitmq-server, action "start" failed.


Nothing In Error Logs. Startup log has the startup banner.

Matti Waarna

unread,
Apr 21, 2015, 3:45:19 PM4/21/15
to rabbitm...@googlegroups.com, mwa...@gmail.com
Thanks.
Now there is output. I updated the PID as I stopped/Started the service:
-noinput -noshell -eval 'P=erlang:open_port({spawn, "ps -p 11556"},[exit_status,{line,16384},use_stdio,stderr_to_stdout]),[receive M -> io:format("~p~n", [M]) after 1000 -> ok end || _ <- lists:seq(1,10)], init:stop().'
{#Port<0.477>,{data,{eol,"  PID TTY          TIME CMD"}}}
{#Port<0.477>,{data,{eol,"11556 ?        00:00:02 beam.smp"}}}
{#Port<0.477>,{exit_status,0}}
{'EXIT',#Port<0.477>,normal}

Michael Klishin

unread,
Apr 21, 2015, 4:11:14 PM4/21/15
to rabbitm...@googlegroups.com, Matti Waarna
On 21 April 2015 at 22:45:22, Matti Waarna (mwa...@gmail.com) wrote:
> invoke-rc.d rabbitmq-server start
> * Starting message broker rabbitmq-server cat: /var/run/rabbitmq/pid:
> No such file or directory
> cat: /var/run/rabbitmq/pid: No such file or directory

Thank you, this looks suspicious. We'll take a look tomorrow.

Jean-Sébastien Pédron

unread,
Apr 22, 2015, 8:34:16 AM4/22/15
to rabbitm...@googlegroups.com
On 21.04.2015 21:41, Matti Waarna wrote:
> Following Question 2:
>
> Modified /etc/init.d/rabbitmq-server,
>
> (...)
>
> Running:
> *invoke-rc.d rabbitmq-server start*

Hi!

Could you please keep the modified rabbitmq-server init script and run
it as:
sh -x /etc/init.d/rabbitmq-server start

... and post the whole output?

--
Jean-Sébastien Pédron
Pivotal / RabbitMQ

Jean-Sébastien Pédron

unread,
Apr 22, 2015, 8:39:32 AM4/22/15
to rabbitm...@googlegroups.com
On 22.04.2015 14:34, Jean-Sébastien Pédron wrote:
> On 21.04.2015 21:41, Matti Waarna wrote:
>> Following Question 2:
>>
>> Modified /etc/init.d/rabbitmq-server,
>>
>> (...)
>>
>> Running:
>> *invoke-rc.d rabbitmq-server start*
>
> Hi!
>
> Could you please keep the modified rabbitmq-server init script and run
> it as:
> sh -x /etc/init.d/rabbitmq-server start
>
> ... and post the whole output?

Do you have something in /etc/rabbitmq/rabbitmq-env.conf? And in
/etc/default/rabbitmq-server?

Matti Waarna

unread,
Apr 22, 2015, 10:17:19 AM4/22/15
to rabbitm...@googlegroups.com, jean-se...@rabbitmq.com
Here is the output as requested Jean-Sebastien:

sh -x /etc/init.d/rabbitmq-server start 
+ PATH=/sbin:/usr/sbin:/bin:/usr/bin
+ NAME=rabbitmq-server
+ DAEMON=/usr/sbin/rabbitmq-server
+ CONTROL=/usr/sbin/rabbitmqctl
+ DESC=message broker
+ USER=rabbitmq
+ ROTATE_SUFFIX=
+ INIT_LOG_DIR=/var/log/rabbitmq
+ PID_FILE=/var/run/rabbitmq/pid
+ test -x /usr/sbin/rabbitmq-server
+ test -x /usr/sbin/rabbitmqctl
+ RETVAL=0
+ set -e
+ [ -f /etc/default/rabbitmq-server ]
+ . /etc/default/rabbitmq-server
+ . /lib/lsb/init-functions
+ FANCYTTY=
+ [ -e /etc/lsb-base-logging.sh ]
+ . /etc/lsb-base-logging.sh
+ LOG_DAEMON_MSG=
+ . /lib/init/vars.sh
+ TMPTIME=0
+ SULOGIN=no
+ DELAYLOGIN=no
+ UTC=yes
+ VERBOSE=no
+ FSCKFIX=no
+ RAMLOCK=yes
+ RAMSHM=yes
+ RAMTMP=no
+ [ -f /etc/default/rcS ]
+ . /etc/default/rcS
+ TMPTIME=0
+ SULOGIN=no
+ DELAYLOGIN=no
+ UTC=yes
+ VERBOSE=no
+ FSCKFIX=no
+ [ -r /proc/cmdline ]
+ cat /proc/cmdline
+ [  ]
+ log_daemon_msg Starting message broker rabbitmq-server
+ [ -z Starting message broker ]
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ [ -t 1 ]
+ [ xxterm != x ]
+ [ xxterm != xdumb ]
+ [ -x /usr/bin/tput ]
+ [ -x /usr/bin/expr ]
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ [ -z ]
+ FANCYTTY=1
+ true
+ /usr/bin/tput xenl
+ /usr/bin/tput cols
+ COLS=178
+ [ 178 ]
+ [ 178 -gt 6 ]
+ /usr/bin/expr 178 - 7
+ COL=171
+ log_use_plymouth
+ [ n = y ]
+ plymouth --ping
+ printf  * Starting message broker rabbitmq-server       
 * Starting message broker rabbitmq-server       + /usr/bin/expr 178 - 1
+ /usr/bin/tput hpa 177
                                                                                                                                                                                 + printf  
 + start_rabbitmq
+ status_rabbitmq quiet
+ set +e
+ [ quiet != quiet ]
+ /usr/sbin/rabbitmqctl status
+ [ 1 != 0 ]
+ RETVAL=3
+ set -e
+ [ 3 != 0 ]
+ RETVAL=0
+ ensure_pid_dir
+ dirname /var/run/rabbitmq/pid
+ PID_DIR=/var/run/rabbitmq
+ [ ! -d /var/run/rabbitmq ]
+ mkdir -p /var/run/rabbitmq
+ chown -R rabbitmq:rabbitmq /var/run/rabbitmq
+ chmod 755 /var/run/rabbitmq
+ set +e
+ RABBITMQ_PID_FILE=/var/run/rabbitmq/pid start-stop-daemon --quiet --chuid rabbitmq --start --exec /usr/sbin/rabbitmq-server --pidfile  --background
+ cat /var/run/rabbitmq/pid
cat: /var/run/rabbitmq/pid: No such file or directory
+ cat /var/run/rabbitmq/pid
cat: /var/run/rabbitmq/pid: No such file or directory
+ erl -noinput -noshell -eval P=erlang:open_port({spawn, "ps -p "},[exit_status,{line,16384},use_stdio,stderr_to_stdout]),[receive M -> io:format("~p~n", [M]) after 1000 -> ok end || _ <- lists:seq(1,10)], init:stop().
{#Port<0.477>,{data,{eol,"ERROR: List of process IDs must follow -p."}}}
{#Port<0.477>,
 {data,{eol,"********* simple selection *********  ********* selection by list *********"}}}
{#Port<0.477>,
 {data,{eol,"-A all processes                      -C by command name"}}}
{#Port<0.477>,
 {data,{eol,"-N negate selection                   -G by real group ID (supports names)"}}}
{#Port<0.477>,
 {data,{eol,"-a all w/ tty except session leaders  -U by real user ID (supports names)"}}}
{#Port<0.477>,
 {data,{eol,"-d all except session leaders         -g by session OR by effective group name"}}}
{#Port<0.477>,
 {data,{eol,"-e all processes                      -p by process ID"}}}
{#Port<0.477>,
 {data,{eol,"T  all processes on this terminal     -s processes in the sessions given"}}}
{#Port<0.477>,{data,{eol,"a  all w/ tty, including other users  -t by tty"}}}
{#Port<0.477>,
 {data,{eol,"g  OBSOLETE -- DO NOT USE             -u by effective user ID (supports names)"}}}
+ /usr/sbin/rabbitmqctl wait /var/run/rabbitmq/pid
+ RETVAL=1
+ set -e
+ [ 1 != 0 ]
+ remove_pid
+ rm -f /var/run/rabbitmq/pid
+ dirname /var/run/rabbitmq/pid
+ rmdir /var/run/rabbitmq
+ start_stop_end running
+ log_warning_msg FAILED - check /var/log/rabbitmq/startup_\{log, _err\}
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ [ -t 1 ]
+ [ xxterm != x ]
+ [ xxterm != xdumb ]
+ [ -x /usr/bin/tput ]
+ [ -x /usr/bin/expr ]
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ [ -z 1 ]
+ true
+ true
+ /usr/bin/tput setaf 3
+ YELLOW=
+ /usr/bin/tput op
+ NORMAL=
+ echo  * FAILED - check /var/log/rabbitmq/startup_\{log, _err\}
 * FAILED - check /var/log/rabbitmq/startup_\{log, _err\}
+ log_end_msg 1
+ [ -z 1 ]
+ [ 171 ]
+ [ -x /usr/bin/tput ]
+ log_use_plymouth
+ [ n = y ]
+ plymouth --ping
+ printf \r
+ /usr/bin/tput hpa 171
                                                                                                                                                                           + [ 1 -eq 0 ]
+ printf [
[+ /usr/bin/tput setaf 1
+ printf fail
fail+ /usr/bin/tput op
+ echo ]
]
+ return 1

Jean-Sébastien Pédron

unread,
Apr 22, 2015, 10:47:35 AM4/22/15
to rabbitm...@googlegroups.com
On 22.04.2015 16:17, Matti Waarna wrote:
> Here is the output as requested Jean-Sebastien:

Thanks!

If you have /etc/rabbitmq/rabbitmq-env.conf, what do you have in it?

And once the service is started (despite what the init script says),
could you please check if /var/run/rabbitmq/pid exists?

If it exists, could you change /etc/init.d/rabbitmq-server to add:
sleep 10
before the following line you already added:
cat $PID_FILE
and try again?

Matti Waarna

unread,
Apr 22, 2015, 10:54:31 AM4/22/15
to rabbitm...@googlegroups.com, jean-se...@rabbitmq.com
I do not have anything a rabbitmq-env.conf.

I do have a rabbitmq.config file with the following to allow guest users using non-localhost:
[
        {rabbit, [{loopback_users, []}]}
].


Running "rabbitmqctl status" shows that rabbitmq is up and running. but "/var/run/rabbitmq/pid" does not exist.

Let me know what I should try next.

Michael Klishin

unread,
Apr 22, 2015, 10:57:50 AM4/22/15
to rabbitm...@googlegroups.com, Matti Waarna, jean-se...@rabbitmq.com
On 22 April 2015 at 17:54:33, Matti Waarna (mwa...@gmail.com) wrote:
> Let me know what I should try next.

Matti,

Thank you for assisting us as we investigate this .

Can you please try what J-S has suggested, a rabbitmq-server script modification?

> If it exists, could you change /etc/init.d/rabbitmq-server to add: 
> sleep 10 
> before the following line you already added: 
> cat $PID_FILE 
> and try again? 
--

Matti Waarna

unread,
Apr 22, 2015, 11:06:24 AM4/22/15
to rabbitm...@googlegroups.com, mwa...@gmail.com, jean-se...@rabbitmq.com
I added the sleep and here are the results:

+ COLS=187
+ [ 187 ]
+ [ 187 -gt 6 ]
+ /usr/bin/expr 187 - 7
+ COL=180
+ log_use_plymouth
+ [ n = y ]
+ plymouth --ping
+ printf  * Starting message broker rabbitmq-server       
 * Starting message broker rabbitmq-server       + /usr/bin/expr 187 - 1
+ /usr/bin/tput hpa 186
                                                                                                                                                                                          + printf  
 + start_rabbitmq
+ status_rabbitmq quiet
+ set +e
+ [ quiet != quiet ]
+ /usr/sbin/rabbitmqctl status
+ [ 1 != 0 ]
+ RETVAL=3
+ set -e
+ [ 3 != 0 ]
+ RETVAL=0
+ ensure_pid_dir
+ dirname /var/run/rabbitmq/pid
+ PID_DIR=/var/run/rabbitmq
+ [ ! -d /var/run/rabbitmq ]
+ mkdir -p /var/run/rabbitmq
+ chown -R rabbitmq:rabbitmq /var/run/rabbitmq
+ chmod 755 /var/run/rabbitmq
+ set +e
+ RABBITMQ_PID_FILE=/var/run/rabbitmq/pid start-stop-daemon --quiet --chuid rabbitmq --start --exec /usr/sbin/rabbitmq-server --pidfile  --background
+ sleep 10
+ cat /var/run/rabbitmq/pid
16677
+ cat /var/run/rabbitmq/pid
+ erl -noinput -noshell -eval P=erlang:open_port({spawn, "ps -p 16677"},[exit_status,{line,16384},use_stdio,stderr_to_stdout]),[receive M -> io:format("~p~n", [M]) after 1000 -> ok end || _ <- lists:seq(1,10)], init:stop().
{#Port<0.477>,{data,{eol,"  PID TTY          TIME CMD"}}}
{#Port<0.477>,{data,{eol,"16677 ?        00:00:02 beam.smp"}}}
{#Port<0.477>,{exit_status,0}}
{'EXIT',#Port<0.477>,normal}
+ [ 180 ]
+ [ -x /usr/bin/tput ]
+ log_use_plymouth
+ [ n = y ]
+ plymouth --ping
+ printf \r
+ /usr/bin/tput hpa 180
                                                                                                                                                                                    + [ 1 -eq 0 ]
+ printf [
[+ /usr/bin/tput setaf 1
+ printf fail
fail+ /usr/bin/tput op
+ echo ]
]
+ return 1


Matti Waarna

unread,
May 12, 2015, 12:20:03 PM5/12/15
to rabbitm...@googlegroups.com
Now that Rabbit 3.5.2 has been released are there any additional trouble shooting you guys would like me to do?

Should I attempt to upgrade to 3.5.2 and see what happens?

Thanks

-Matti

Jean-Sébastien Pédron

unread,
May 12, 2015, 12:43:34 PM5/12/15
to rabbitm...@googlegroups.com
On 12.05.2015 18:20, Matti Waarna wrote:
> Now that Rabbit 3.5.2 has been released are there any additional trouble
> shooting you guys would like me to do?
>
> Should I attempt to upgrade to 3.5.2 and see what happens?

Hi!

Yes please. I'm not sure any bugs fixed in 3.5.2 are related to your
issue, but as we couldn't reproduce it so far and have no clue about
what is happening, it can't hurt.

Matti Waarna

unread,
May 12, 2015, 3:36:18 PM5/12/15
to rabbitm...@googlegroups.com, jean-se...@rabbitmq.com
I have upgraded to 3.5.2 with the same issue as before.

Setting up rabbitmq-server (3.5.2-1) ...
 * Starting message broker rabbitmq-server                                                                                                                                         * FAILED - check /var/log/rabbitmq/startup_\{log, _err\}
                                                                                                                                                                           [fail]
invoke-rc.d: initscript rabbitmq-server, action "start" failed.
dpkg: error processing rabbitmq-server (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 rabbitmq-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


And the startup_log has the banner and error log is empty.

I will be getting a clean VM Ubuntu Precise where I will try from a clean slate.

If you think of anything else I am willing to try different debugging mechanism.

Thanks

-Matti

Jean-Sébastien Pédron

unread,
May 13, 2015, 5:48:45 AM5/13/15
to rabbitm...@googlegroups.com
On 12.05.2015 21:36, Matti Waarna wrote:
> I have upgraded to 3.5.2 with the same issue as before.

Ok, not surprising.

> I will be getting a clean VM Ubuntu Precise where I will try from a
> clean slate.

Good idea.

> If you think of anything else I am willing to try different debugging
> mechanism.

Let's see how it goes for you with a clean Ubuntu Precise. But keep the
non-working VM around :)

Michael Klishin

unread,
May 13, 2015, 6:07:05 AM5/13/15
to Jean-Sébastien Pédron, rabbitm...@googlegroups.com
On 13 May 2015 at 12:48:45, Jean-Sébastien Pédron (jean-se...@rabbitmq.com) wrote:
> Let's see how it goes for you with a clean Ubuntu Precise. But
> keep the
> non-working VM around :)

The O.P. should snapshot it (just in case) and send us the image (VMware or Virtual Box). 

cabersetm...@gmail.com

unread,
Aug 5, 2017, 2:21:41 PM8/5/17
to rabbitmq-users

Just for be sure, take a look to your local network

# ip add

If there's no "lo" network, the you should enable it:

# ifconfig lo up

Then restart the server again and let's see if it works again now

# systemctl start rabbitmq-server

Reply all
Reply to author
Forward
0 new messages