Erlang/OTP Forums

Author Message

<  RabbitMQ mailing list  ~  Return of 'getting started, broker runs; can't get status'

Guest
Posted: Tue Sep 22, 2009 8:43 am Reply with quote
Guest
Is rabbit running as root or rabbitmq? If you're running rabbit as rabbitmq, then you may need to add "-U rabbitmq" to the sudo command to ensure that rabbitmqctl is running as the same user.

Paul.

On Tue, Sep 22, 2009 at 9:06 AM, J Aaron Farr <farra@apache.org (farra@apache.org)> wrote:
Quote:

Despite having followed all of the directions on Dmitriy Samovskiy’s
article [1], I consistently see the following when trying to get
rabbitmq up and running:

   $ sudo rabbitmqctl status
   Status of node rabbit@localhost ...
   {badrpc,nodedown}
   ...done.


Details:

 - Mac OS X 10.5.8
 - Erlang installed from source (otp_src_R13B01)
 - RabbitMQ installed from source (rabbitmq-server-1.6.0.tar.gz)
 - rabbitmq user created
 - telnet to 127.0.0.1:5672 works
 - net_admin:names() returns `{ok,[{"rabbit",54472},{"foo",54740}]}`


Any other thoughts?

--
  J. Aaron Farr
  馮傑仁
  www.cubiclemuses.com

[1] http://somic.org/2009/02/19/on-rabbitmqctl-and-badrpcnodedown/

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com (rabbitmq-discuss@lists.rabbitmq.com)
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss



Post received from mailinglist
Guest
Posted: Tue Sep 22, 2009 9:59 am Reply with quote
Guest
Just so we can understand your setup, how are you trying to setup the users for rabbit? Did you do the build as a rabbitmq user, or ...?

One of the most likely causes of the nodedown tends to be cookie mismatches, which can be hard to definitively check. In both the rabbitmq-server and rabbitmqctl scripts, can you please add the follow line somewhere within the command line flags (perhaps after the -sname):
  -eval 'io:format("~p~n", [init:get_argument(home)])'

This will print (badly formatted I'm afraid) the home directory that erlang is seeing, and subsequently allows you to determine that the home directories are the same. If they are, it could also be worth adding:
  -eval 'io:format("~p~n", [erlang:get_cookie()])'

This will dump the value of the erlang cookie. Generally, the Erlang cookie should be considered somewhat private, so I'll leave it up to you whether you want to post it to the mailing list. Simply providing detail on whether they are the same is enough.

On Tue, Sep 22, 2009 at 9:58 AM, J Aaron Farr <farra@apache.org (farra@apache.org)> wrote:
Quote:

On Tue 22 Sep 2009 16:43, Paul Jones <pauljones23@gmail.com (pauljones23@gmail.com)> wrote:

> Is rabbit running as root or rabbitmq? If you're running rabbit as rabbitmq,
> then you may need to add "-U rabbitmq" to the sudo command to ensure that
> rabbitmqctl is running as the same user.


I've tried both combinations, as root and as rabbitmq.  I've checked to
ensure both processes are run as the exact same user.  Still no dice.

I've also made sure every rabbitmq directory is owned by rabbitmq.

`net_adm:localhost().` returns 'gandalf.local' which is the name of the
local computer.  I've even added a line in /etc/hosts for gandalf.local
for 127.0.0.1.

I'm really stumped here.

--

  J. Aaron Farr
  馮傑仁
  www.cubiclemuses.com





Post received from mailinglist
Guest
Posted: Tue Sep 22, 2009 10:22 am Reply with quote
Guest
On Tue, Sep 22, 2009 at 11:16 AM, J Aaron Farr <farra@apache.org (farra@apache.org)> wrote:
Quote:

I've done builds as root or as rabbitmq.
Guest
Posted: Tue Sep 22, 2009 11:37 am Reply with quote
Guest
We're starting to run low on ideas, but here are a few others that can be tried:
  • Change the RABBITMQ_NODENAME in the rabbitmq-server script to rabbit@localhost (or some other predictable host name), and then use the -n flag on rabbitmqctl to force it as well.
  • Try doing a sudo killall epmd and sudo killall beam.smp - it is very unlikely, but perhaps the process mapper daemon has gotten into a mess (alternatively, you could reboot, but I don't really like suggesting that for Mac OS X)

On Tue, Sep 22, 2009 at 12:09 PM, J Aaron Farr <farra@apache.org (farra@apache.org)> wrote:
Quote:

On Tue 22 Sep 2009 18:59, J Aaron Farr <farra@apache.org (farra@apache.org)> wrote:

> I ssh back into the laptop (activemq@127.0.0.1 (activemq@127.0.0.1)) and run the command
> directly as the activemq user.  I'm certain I'm that user and that my
> path is sane.


s/activemq/rabbitmq

sorry about that.


--
  J. Aaron Farr
  馮傑仁
  www.cubiclemuses.com





Post received from mailinglist
wuji
Posted: Sat Sep 15, 2012 7:00 am Reply with quote
User Joined: 10 Aug 2012 Posts: 654
me in the house."She said that wanting to be accepted for who who cheap jordan shoes who she is drove her to come out on television that year
Jerry Falwell, Pat Robertson and other members of the evangelical community who who cheap designer *beep* who said they were disappointed. Some called her "Ellen Degenerate.""You know Ellen
such a good person," her mother said. "Now, I don't want to to cheap polo shirts to get weepy, I don't, but she's so good that she shouldn't
all this directed at her."Today Betty DeGeneres fights for gay rights. She She [h1]designer replica *beep*[/h1] She is devoted and always tolerant.Bill Clinton Boosts President Obama - So
George W. Bush for Mitt Romney?2 Prior Presidents Take Dramatically Different Approaches Approaches cheap Ralph Lauren Polo Approaches to 2012 CampaignBy JOEL SIEGELMay 4, 2012 — He was once
most dominant figure in American politics, his approval rating an astounding 90 90 cheap designer *beep* 90 percent. But four years after leaving office, former President George W.
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum