[rabbitmq-discuss] RabbitMQ cluster on a single machine, OSX Lion, Homebrew

Chris Johnson wchrisjohnson at gmail.com
Wed Aug 15 15:01:56 BST 2012

Matthias - thanks for the heads up. I struggled yesterday with the
differences between localhost and Wilson, but could not pin down how/why
the difference was happening. Good catch. I will either file a ticket for
the homebrew change or just submit a pull request and make the change

For the time being, I just changed the config file to have a default node
name of 'rabbit at Wilson'. Then I wiped the amnesia database folder and the
log folder and rebooted.

The irony of this is that I could have created the cluster yesterday
several times successfully, yet was not able to verify with the
"rabbitmqctl cluster_status" command. Is there any way to make that
command work without having to specify a node?


On 8/15/12 3:41 AM, "Matthias Radestock" <matthias at rabbitmq.com> wrote:

>On 15/08/12 05:46, Chris Johnson wrote:
>> I am attempting to set up a simple, two node cluster on my mac using the
>> instructions within the clustering guide:
>> http://www.rabbitmq.com/clustering.html#single-machine
>> See the transcript below.
>> I've been trying to get this working for many hours, with no luck.
>> I'd appreciate it if someone could give me some direction.
>> [...]
>> ?  ~  rabbitmqctl -n hare start_app
>> Starting node hare at Wilson ...
>> ...done.
>> ?  ~  rabbitmqctl cluster_status
>> Cluster status of node rabbit at localhost ...
>> Error: unable to connect to node rabbit at localhost: nodedown
>Notice the difference in host name in the last two commands - the first
>has 'Wilson', the second 'localhost'.
>That is due to the homebrew formula setting the default node name
>explicitly to 'rabbit at localhost':
>I don't know why they are doing that; possibly because MacOS is
>notorious for altering the hostname - you may want to file an issue /
>contact the authors.
>Meanwhile, if you always specify the node name explicitly - e.g. add "-n
>rabbit" to the second command above - you should be fine.

More information about the rabbitmq-discuss mailing list