I believe this was a problem with hostnames (I added entries to /etc/hosts but did not change hostnames on the actual machines. Did not know it mattered.)<div><br></div><div>The cluster appears to work now.</div><div><br></div>
<div>Thanks,</div><div>Shawn<br><br><div class="gmail_quote">On Fri, Jan 4, 2013 at 7:26 AM, Shawn Smith <span dir="ltr"><<a href="mailto:shawn.smith@gengo.com" target="_blank">shawn.smith@gengo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<div><br></div><div>I can't cluster two rabbit nodes running on EC2. I've gone through the troubleshooting docs as well as done quite a bit of Googling.</div>
<div><br></div><div>The EC2 firewalls are allowing all TCP traffic. When I run `sudo rabbitmqctl -n rabbit@rabbit1 status` from the second node (rabbit2), I see this:</div>
<div><br></div><div><div>ubuntu@second_rabbit:~$ sudo rabbitmqctl -n rabbit@rabbit1 status</div><div>Status of node rabbit@rabbit1 ...</div><div>Error: unable to connect to node rabbit@rabbit1: nodedown</div><div><br></div>
<div>DIAGNOSTICS</div><div>===========</div><div><br></div><div>nodes in question: [rabbit@rabbit1]</div><div><br></div><div>hosts, their running nodes and ports:</div><div>- rabbit1: [{rabbit,51588}]</div><div><br></div>
<div>current node details:</div><div>- node name: 'rabbitmqctl9276@second_rabbit'</div><div>- home dir: /var/lib/rabbitmq</div><div>- cookie hash: XDJW5BX8HtadjBvTgWRdXw==</div></div><div><br></div><div>The Erlang cookies in /var/lib/rabbitmq/.erlang.cookie are the same.</div>
<div><br></div><div>I've added the IPs and hosts to /etc/hosts like so:</div><div><br></div><div>[on rabbit1]:</div><div><br></div><div><div>127.0.0.1 localhost</div><div>127.0.0.1 rabbit1</div><div>[rabbit2's IP] rabbit2</div>
</div><div><br></div><div>[on rabbit2]:</div><div><br></div><div><div>127.0.0.1 localhost</div><div>127.0.0.1 rabbit2</div><div>[rabbit1's IP] rabbit1</div></div><div><br></div><div>I can telnet from rabbit2 to rabbit1 ports 5672 and 4369. </div>
<div><br></div><div>Can anyone help me out or point me at some docs?</div><div><br></div><div>Best,</div><div>Shawn</div>
</blockquote></div><br></div>