<div dir="ltr">I note that in my startup script for rabbitmq, it specifically uses /bin/sh to run the daemon. Now this may be a long shot, but sometimes using a different shell can cause subtle havoc. If you run rabbit (and stop it) specifically from within /bin/sh, does it make any difference? Does it work better if you use the functions as shown below (assuming the paths are correct)?<br>
<br>PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin<br>DAEMON=/usr/local/sbin/rabbitmq-multi<br>NODE_COUNT=1<br><br>start_rabbitmq () {<br> su rabbitmq -s /bin/sh -c "$DAEMON start_all ${NODE_COUNT}" > /dev/null &<br>
}<br><br>stop_rabbitmq () {<br> su rabbitmq -s /bin/sh -c "$DAEMON stop_all" > /dev/null &<br>}<br><br><br><div class="gmail_quote">On Mon, Oct 6, 2008 at 5:02 PM, Peter Kieltyka <span dir="ltr"><<a href="mailto:peter.kieltyka@gmail.com">peter.kieltyka@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="">Sorry about the delayed response, but unfortunately for me, even if I'm the "rabbitmq" user, I'm still running into issues.<div>
<br></div><div><div>rabbitmq@broker:/vol/rabbitmq-server/scripts$ ./rabbitmq-multi start_all 1</div><div>Starting all nodes...</div><div>Starting node rabbit@broker...</div><div>RabbitMQ %%VERSION%% (AMQP 8-0)</div><div>...etc..</div>
<div><br></div><div>Starting the app works, but now if I try to stop the server I get the error:</div><div><br></div><div><div>rabbitmq@broker:/vol/rabbitmq-server/scripts$ ./rabbitmq-multi stop_all</div><div class="Ih2E3d">
<div>Stopping all nodes...</div><div><br></div><div>rabbit_multi action stop_all failed:</div><div>no_nodes_running</div><div><br></div></div><div>As the rabbitmq, if I run "env" I get the output (truncated)</div>
<div><br></div><div><div>PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin</div><div><div>USER=rabbitmq</div></div><div>MNESIA_BASE=/vol/rabbitmq/mnesia</div><div><div>ERL_ARGS=-daemon</div><div><br></div>
<div>Thanks.</div><div><br></div><font color="#888888"><div>Peter</div></font></div></div></div></div><div><div></div><div class="Wj3C7c"><div><br><div><div>On 1-Oct-08, at 9:13 PM, Edwin Fine wrote:</div><br><blockquote type="cite">
<div dir="ltr">Great!!<br><br><div class="gmail_quote">On Wed, Oct 1, 2008 at 6:45 PM, Alex Clemesha <span dir="ltr"><<a href="mailto:clemesha@gmail.com" target="_blank">clemesha@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr"><br><br><div class="gmail_quote"><div>On Wed, Oct 1, 2008 at 3:15 PM, Edwin Fine <span dir="ltr"><<a href="mailto:rabbitmq-discuss_efine@usa.net" target="_blank">rabbitmq-discuss_efine@usa.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div dir="ltr">I wasn't sure from your response - does it work now? :)</div></blockquote>
</div><div>Looks like it does, below's the proof :-)<br><br>Status of node rabbit@dj ...<br>[{running_applications,[{rabbit,"RabbitMQ","1.4.0"},<br> {mnesia,"MNESIA CXC 138 12","4.3.5"},<br>
{os_mon,"CPO CXC 138 46","<a href="http://2.1.2.1" target="_blank">2.1.2.1</a>"},<br> {sasl,"SASL CXC 138 11","<a href="http://2.1.5.1" target="_blank">2.1.5.1</a>"},<br>
{stdlib,"ERTS CXC 138 10","1.14.5"},<br> {kernel,"ERTS CXC 138 10","2.11.5"}]},<br> {nodes,[rabbit@dj]},<br> {running_nodes,[rabbit@dj]}]<br>
done.<br><br><br>thanks!<br>-Alex<br><br><br><br> </div><div><div></div><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div dir="ltr">
<div><div></div><div> <br><br><div class="gmail_quote">On Wed, Oct 1, 2008 at 6:07 PM, Alex Clemesha <span dir="ltr"><<a href="mailto:clemesha@gmail.com" target="_blank">clemesha@gmail.com</a>></span> wrote:<br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr"><br><br><div class="gmail_quote"><div>On Wed, Oct 1, 2008 at 2:24 PM, Edwin Fine <span dir="ltr"><<a href="mailto:rabbitmq-discuss_efine@usa.net" target="_blank">rabbitmq-discuss_efine@usa.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div dir="ltr">Would you like to try this?<br><br>Please ensure that you are using the same Erlang cookie that Rabbit was started with. This is in a file is named $HOME/.erlang.cookie where $HOME is the directory of the user that started rabbitmq. If you try to run commands that connect to the rabbitmq Erlang node, using a different user name, even as root, if it does not have the same cookie file, the commands will fail.<br>
<br>It's best to control rabbit exclusively as one user, for example as the rabbit user.</div></blockquote></div><div>Great, thanks for the tip. I was in fact using a different user, so I'll use the rabbit user from now on.<br>
<br><br> </div><div><div></div><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr"><br><br>Hope this helps,<br> <font color="#888888">Edwin</font><div>
<div></div><div><br><br><div class="gmail_quote">On Wed, Oct 1, 2008 at 4:52 PM, Alex Clemesha <span dir="ltr"><<a href="mailto:clemesha@gmail.com" target="_blank">clemesha@gmail.com</a>></span> wrote:<br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">Hi,<br><br>I also run into the same thing (actually happened ~15 minutes ago), I'm using Ubuntu 8.04.<br> (installed RabbitMQ by adding the relevant line to /etc/apt/source.list, then using apt-get).<br>
<br> I usually just find the relevant processes and kill them, then run 'rabbitmq-server -detached'<br>to start things back up.<br><br>I just assumed I was missing something (maybe I still am :-)<br><br>thanks<br>
-Alex<div> <div></div><div><br> <br><div class="gmail_quote">On Wed, Oct 1, 2008 at 1:29 PM, Peter Kieltyka <span dir="ltr"><<a href="mailto:peter.kieltyka@gmail.com" target="_blank">peter.kieltyka@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hello everyone,<br> <br> For the longest time, I've struggled to be able to control the server<br>
to do basic start/stop/restart commands.<br> <br> Currently on my production server I am running Debian Etch where I<br> followed the instructions at <a href="http://www.rabbitmq.com/debian.html" target="_blank">http://www.rabbitmq.com/debian.html</a> to<br>
install Rabbit.<br> <br> Running the rabbitmq-server or rabbitmq-multi start_all 1 commands<br> will bring the server online, however to stop it, or add a user none<br> of the scripts work. I am always presented with an error, bad_node.<br>
<br> I.e.<br> <br> Creating user "patbroker" ...<br> rabbit_control action add_user failed:<br> {badrpc,nodedown}<br> <br> However, I can confirm that Rabbit is running fine because my<br> application is working just fine. I've even tried explicitly<br>
specifying the -n rabbit@broker (hostname -s returns broker).<br> <br> The same goes for stopping the server, either using /etc/init.d/<br> rabbitmq-server stop, or calling "rabbitmq-multi stop_all" directly<br>
will result in:<br> <br> Stopping all nodes...<br> <br> rabbit_multi action stop_all failed:<br> no_nodes_running<br> <br> Thanks.<br> <br> Peter<br> <br> _______________________________________________<br> rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br> <a href="http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</blockquote></div><br><br clear="all"><br></div></div>-- <br>Alex Clemesha<br><a href="http://clemesha.org" target="_blank">clemesha.org</a><br> </div> <br>_______________________________________________<br> rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br> <a href="http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br></div></div></div> </blockquote></div></div></div><br><br clear="all"><br>-- <br>Alex Clemesha<br><a href="http://clemesha.org" target="_blank">clemesha.org</a><br> </div> </blockquote></div><br>
</div></div></div> </blockquote></div></div></div><br><br clear="all"><br>-- <br>Alex Clemesha<br><a href="http://clemesha.org" target="_blank">clemesha.org</a><br> </div> </blockquote></div><br></div></blockquote></div><br>
</div></div></div></div><br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br></div>