[rabbitmq-discuss] rabbitmq-server won't run (3.3.3)
Kyle O'Donnell
kyleo at 0b10.mx
Tue Jun 17 14:52:45 BST 2014
I can't remember where I saw 'start' my mistake, but the same applies whether I use 'start' or not.
I'm running ubuntu 12.04 (x86_64) by the way.
# apt-file search /bin/sh |grep " /bin"
dash: /bin/sh
# dpkg -l dash
ii dash 0.5.7-2ubuntu2 POSIX-compliant shell
There are no errors printed to the console:
$ ./rabbitmq-server
$ echo $?
2
I added #!/bin/sh -ex and ran it again and didn't see anything obvious:
./rabbitmq-server
++ dirname ./rabbitmq-server
+ . ./rabbitmq-env
++ SCRIPT_PATH=./rabbitmq-server
++ '[' -h ./rabbitmq-server ']'
+++ dirname ./rabbitmq-server
++ SCRIPT_DIR=.
++ RABBITMQ_HOME=./..
++ '[' x = xs4-test-q001 ']'
++ NODENAME=rabbit at s4-test-q001
++ . ./rabbitmq-defaults
+++ SYS_PREFIX=
+++ ERL_DIR=
+++ CLEAN_BOOT_FILE=start_clean
+++ SASL_BOOT_FILE=start_sasl
+++ CONFIG_FILE=/etc/rabbitmq/rabbitmq
+++ LOG_BASE=/var/log/rabbitmq
+++ MNESIA_BASE=/var/lib/rabbitmq/mnesia
+++ ENABLED_PLUGINS_FILE=/etc/rabbitmq/enabled_plugins
+++ PLUGINS_DIR=./../plugins
+++ CONF_ENV_FILE=/etc/rabbitmq/rabbitmq-env.conf
++ SERVER_ERL_ARGS='+K true +A30 +P 1048576 -kernel inet_default_connect_options [{nodelay,true}]'
++ '[' -f /etc/rabbitmq/rabbitmq.conf ']'
++ '[' -f /etc/rabbitmq/rabbitmq-env.conf ']'
++ true
++ '[' -f ./../etc/rabbitmq-env.conf ']'
++ . ./../etc/rabbitmq-env.conf
+++ RABBITMQ_BASE=/x/s/rabbitmq-server
+++ RABBITMQ_MNESIA_BASE=/x/s/rabbitmq-server/var/lib/mnesia
+++ RABBITMQ_LOG_BASE=/x/s/rabbitmq-server/var/log
+++ RABBITMQ_NODENAME=rabbit
+++ RABBITMQ_CONFIG_FILE=/x/s/rabbitmq-server/etc/rabbitmq
+++ RABBITMQ_NODE_PORT=35672
+++ RABBITMQ_DIST_PORT=35672
+++ RABBITMQ_PLUGINS_DIR=/x/s/rabbitmq-server/plugins
+++ RABBITMQ_ENABLED_PLUGINS_FILE=/x/s/rabbitmq-server/etc/enabled_plugins
+ DEFAULT_NODE_IP_ADDRESS=auto
+ DEFAULT_NODE_PORT=5672
+ '[' x = x ']'
+ RABBITMQ_NODE_IP_ADDRESS=
+ '[' x = x35672 ']'
+ '[' x = x ']'
+ '[' x '!=' x35672 ']'
+ RABBITMQ_NODE_IP_ADDRESS=auto
+ '[' x '!=' xauto ']'
+ '[' x = x35672 ']'
+ '[' x = x35672 ']'
+ '[' x = x35672 ']'
+ '[' x = x35672 ']'
+ '[' x = xrabbit ']'
+ '[' x = x ']'
+ RABBITMQ_SERVER_ERL_ARGS='+K true +A30 +P 1048576 -kernel inet_default_connect_options [{nodelay,true}]'
+ '[' x = x/x/s/rabbitmq-server/etc/rabbitmq ']'
+ '[' x = x/x/s/rabbitmq-server/var/log ']'
+ '[' x = x/x/s/rabbitmq-server/var/lib/mnesia ']'
+ '[' x = x ']'
+ RABBITMQ_SERVER_START_ARGS=
+ '[' x = x ']'
+ RABBITMQ_MNESIA_DIR=
+ '[' x = x ']'
+ RABBITMQ_MNESIA_DIR=/x/s/rabbitmq-server/var/lib/mnesia/rabbit
+ '[' x = x ']'
+ RABBITMQ_PID_FILE=
+ '[' x = x ']'
+ RABBITMQ_PID_FILE=/x/s/rabbitmq-server/var/lib/mnesia/rabbit.pid
+ '[' x = x ']'
+ RABBITMQ_PLUGINS_EXPAND_DIR=
+ '[' x = x ']'
+ RABBITMQ_PLUGINS_EXPAND_DIR=/x/s/rabbitmq-server/var/lib/mnesia/rabbit-plugins-expand
+ '[' x = x/x/s/rabbitmq-server/etc/enabled_plugins ']'
+ '[' x = x/x/s/rabbitmq-server/plugins ']'
+ '[' x = x ']'
+ RABBITMQ_LOGS=
+ '[' x = x ']'
+ RABBITMQ_LOGS=/x/s/rabbitmq-server/var/log/rabbit.log
+ '[' x = x ']'
+ RABBITMQ_SASL_LOGS=
+ '[' x = x ']'
+ RABBITMQ_SASL_LOGS=/x/s/rabbitmq-server/var/log/rabbit-sasl.log
+ RABBITMQ_START_RABBIT=
+ '[' x = x ']'
+ RABBITMQ_START_RABBIT=' -noinput'
+ '[' x = x ']'
+ RABBITMQ_START_RABBIT=' -noinput -s rabbit boot '
+ case "$(uname -s)" in
++ uname -s
+ detached=
+ '[' ']'
++ dirname /x/s/rabbitmq-server/var/lib/mnesia/rabbit.pid
+ mkdir -p /x/s/rabbitmq-server/var/lib/mnesia
+ echo 26755
+ RABBITMQ_EBIN_ROOT=./../ebin
+ RABBITMQ_CONFIG_FILE=/x/s/rabbitmq-server/etc/rabbitmq
+ RABBITMQ_DIST_PORT=35672
+ erl -pa ./../ebin -boot start_clean -noinput -hidden -s rabbit_prelaunch -sname rabbitmqprelaunch26755 -extra rabbit
----- Original Message -----
From: "Simon MacMullen" <simon at rabbitmq.com>
To: "Discussions about RabbitMQ" <rabbitmq-discuss at lists.rabbitmq.com>, "Kyle O'Donnell" <kyleo at 0b10.mx>
Sent: Tuesday, June 17, 2014 9:41:41 AM
Subject: Re: [rabbitmq-discuss] rabbitmq-server won't run (3.3.3)
On 17/06/2014 2:21PM, Kyle O'Donnell wrote:
> Hi,
>
> I just updated to rabbitmq-server 3.3.3 and running ./rabbitmq-server start no longer works. If I run bash rabbitmq-server start it works fine.
Hmm, what is /bin/sh on your system? And why are you giving it the
command line flag "start"? - that's not necessary.
> It looks like the following was added in this release, can someone tell me why if this was on purpose?
>
> rabbitmq 3.3.3
> $ head -1 rabbitmq-server
> #!/bin/sh -e
>
> On rabbitmq 3.0.4:
> $ head -1 rabbitmq-server
> #!/bin/sh
It was added on purpose. "-e" means "halt on error", by default sh will
carry on even if something fails. We've had cases where that means
something that should be a comprehensible failure is instead made rather
less comprehensible.
But damn, if that's causing a breakage for you that's not great news.
Are you seeing an error message?
Cheers, Simon
--
Simon MacMullen
RabbitMQ, Pivotal
More information about the rabbitmq-discuss
mailing list