| Author |
Message |
< RabbitMQ mailing list ~ Return of 'getting started, broker runs; can't get status' |
| Guest |
Posted: Tue Sep 22, 2009 8:59 am |
|
|
|
Guest
|
On Tue 22 Sep 2009 16:43, Paul Jones <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
_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Tue Sep 22, 2009 10:17 am |
|
|
|
Guest
|
Thanks for the further help, Paul. Comments below:
On Tue 22 Sep 2009 17:59, Paul Jones <pauljones23@gmail.com> wrote:
> 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 ...?
I've done builds as root or as rabbitmq. I think the current build was
done via the rabbitmq user.
The ultimate intent here is to use rabbitmq with Nanite [1]
> 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)])'
For both:
{ok,[["/Users/rabbitmq"]]}
> 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()])'
Identical.
gandalf:~ rabbitmq$ rabbitmqctl status
{ok,[["/Users/rabbitmq"]]}
'--------------------'
Status of node rabbit@gandalf ...
{badrpc,nodedown}
...done.
I'm attempting to rebuild my environment on a test server and see if I
can reproduce my situation there.
--
J. Aaron Farr
馮傑仁
www.cubiclemuses.com
[1] http://github.com/ezmobius/nanite
_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Tue Sep 22, 2009 10:59 am |
|
|
|
Guest
|
On Tue 22 Sep 2009 18:22, Paul Jones <pauljones23@gmail.com> wrote:
> Are you referring to identical home directories or identical cookies?
Both. Both the home directories are identical (/Users/rabbitmq) and the
cookies.
> Have you attempted to run them both without the use of sudo?
Yes.
I ssh back into the laptop (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.
--
J. Aaron Farr
馮傑仁
www.cubiclemuses.com
_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Tue Sep 22, 2009 11:01 am |
|
|
|
Guest
|
On Tue 22 Sep 2009 18:16, J Aaron Farr <farra@apache.org> wrote:
> I'm attempting to rebuild my environment on a test server and see if I
> can reproduce my situation there.
And for the record, I just did a similar install on a dev server running
OpenSolaris 2008.11 and it worked just fine. :-/
I suppose I could just use the dev server instance, but would someday
really like to know why I can't get this to run on my OS X laptop.
--
J. Aaron Farr
馮傑仁
www.cubiclemuses.com
_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Tue Sep 22, 2009 11:08 am |
|
|
|
Guest
|
|
| Back to top |
|
| Guest |
Posted: Tue Sep 22, 2009 11:10 am |
|
|
|
Guest
|
|
| Back to top |
|
| Guest |
Posted: Tue Sep 22, 2009 2:10 pm |
|
|
|
Guest
|
You rock. Details below.
On Tue 22 Sep 2009 19:36, Paul Jones <pauljones23@gmail.com> wrote:
> 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.
replacing ${RABBITMQ_NODENAME} with rabbit@localhost and using
rabbitmqctl -n worked!
Previously it was using rabbit@gandalf, where gandalf was the computer
name. Pinging gandalf.local still gives me 127.0.0.1, so I'm not sure
why this makes a difference, but apparently it does.
I can at least go from here.
If you want me to further debug this to figure out the root cause, I'm
happy to try anything else for you.
Thanks again!
--
J. Aaron Farr
馮傑仁
www.cubiclemuses.com
_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist |
|
|
| Back to top |
|
|
|