[rabbitmq-discuss] Error running rabbitmqctl in macports

David Wragg david at rabbitmq.com
Fri Jul 2 20:37:14 BST 2010


Hi Russell,

Russell Borogove <russell at borogove.org> writes:
> When I try to run rabbitmq, though, it errors out trying to read the cookie from my home dir:
> russell at shard ~: sudo rabbitmqctl -setcookie 123 stop
> {error_logger,{{2010,6,18},{12,32,20}},"Error when reading /Users/russell/.erlang.cookie: eacces",[]}
>
> Why is it looking for the cookie there?

Thanks for reporting this problem.  We've managed to reproduce it, and
we expect that a fix will appear in the next release.

In the meanwhile, you can workaround it by setting the HOME environment
variable when you run the rabbitmq scripts, like so:

$ HOME=/opt/local/var/lib/rabbitmq sudo rabbitmq-server

And:

$ HOME=/opt/local/var/lib/rabbitmq sudo rabbitmqctl list_users

David

-- 
David Wragg
Staff Engineer, RabbitMQ
SpringSource, a division of VMware


More information about the rabbitmq-discuss mailing list