<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">(22/07/13 18:38), Pedro Sá da Costa
wrote:<br>
</div>
<blockquote
cite="mid:CAJ8VZfX6nSTYpCY=vzT-TF=OgCeo5irYZ_ANPOah-Qf44HFC+w@mail.gmail.com"
type="cite">
<div dir="ltr">
<div style="">Hi,</div>
<div><br>
</div>
I am trying to configure rabbitmq with EC2. The rabbitmq works
when it uses the private IP, but when I try to use the public
IP, I can't start the rabbitmq. What I want to do is that
different EC2 regions access the same rabbitmq. E.g.: the
rabbitmq is running in region USA, and the applications are
running in Singapore and in Ireland. The applications must
access the rabbitmq in USA. I open all the ports in the regions.</div>
</blockquote>
<br>
As has been said elsewhere in this thread, you don't need to change
anything to be able to access the Rabbit via it's public address. On
Ec2 at least, your machine itself is given the private IP, and the
translation to and from the public IP is handled by Amazon's
networking devices. <br>
<br>
Did you have problems trying connect to the rabbit via it's public
IP when you were using it's default configuration?<br>
<br>
<blockquote
cite="mid:CAJ8VZfX6nSTYpCY=vzT-TF=OgCeo5irYZ_ANPOah-Qf44HFC+w@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<br>
</div>
<div>The configuration file that I use is:<br>
<div>
<div>
<div><br>
</div>
<div>$ cat /etc/rabbitmq/rabbitmq-env.conf</div>
<div>RABBITMQ_NODE_IP_ADDRESS=XX.XXX.XX.XXX</div>
<div><br>
</div>
<div style=""><br>
</div>
<div>The error that I get is:</div>
<div><br>
</div>
<div>$ cat /var/log/rabbitmq/startup_log </div>
<div><br>
</div>
<div> RabbitMQ 3.1.3. Copyright (C) 2007-2013
VMware, Inc.</div>
<div> ## ## Licensed under the MPL. See <a
moz-do-not-send="true" href="http://www.rabbitmq.com/">http://www.rabbitmq.com/</a></div>
<div> ## ##</div>
<div> ########## Logs:
/var/log/rabbitmq/rabbit@ip-10-170-74-198.log</div>
<div> ###### ##
/var/log/rabbitmq/rabbit@ip-10-170-74-198-sasl.log</div>
<div> ##########</div>
<div> Starting broker...</div>
<div><br>
</div>
<div>BOOT FAILED</div>
<div>===========</div>
<div><br>
</div>
<div>Error description:</div>
<div>
{could_not_start_tcp_listener,{"XX.XXX.XX.XXX",5672}}</div>
<div><br>
</div>
<div>Log files (may contain more information):</div>
<div> /var/log/rabbitmq/rabbit@ip-10-170-74-198.log</div>
<div> /var/log/rabbitmq/rabbit@ip-10-170-74-198-sasl.log</div>
<div><br>
</div>
<div>Stack trace:</div>
<div> [{rabbit_networking,start_listener0,4,[]},</div>
<div>
{rabbit_networking,'-start_listener/4-lc$^0/1-0-',4,[]},</div>
<div> {rabbit_networking,start_listener,4,[]},</div>
<div>
{rabbit_networking,'-boot_tcp/0-lc$^0/1-0-',1,[]},</div>
<div> {rabbit_networking,boot_tcp,0,[]},</div>
<div> {rabbit_networking,boot,0,[]},</div>
<div> {rabbit,'-run_boot_step/1-lc$^1/1-1-',1,[]},</div>
<div> {rabbit,run_boot_step,1,[]}]</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>BOOT FAILED</div>
<div>===========</div>
<div><br>
</div>
<div>Error description:</div>
<div> {could_not_start,rabbit,</div>
<div> {bad_return,</div>
<div> {{rabbit,start,[normal,[]]},</div>
<div> {'EXIT',</div>
<div> {rabbit,failure_during_boot,</div>
<div>
{could_not_start_tcp_listener,{"XX.XXX.XX.XXX",5672}}}}}}}</div>
<div><br>
</div>
<div>Log files (may contain more information):</div>
<div> /var/log/rabbitmq/rabbit@ip-10-170-74-198.log</div>
<div> /var/log/rabbitmq/rabbit@ip-10-170-74-198-sasl.log</div>
<div><br>
</div>
<div>{"init terminating in
do_boot",{rabbit,failure_during_boot,{could_not_start,rabbit,{bad_return,{{rabbit,start,[normal,[]]},{'EXIT',{rabbit,failure_during_boot,{could_not_start_tcp_listener,{"XX.XXX.XX.XXX",5672}}}}}}}}}</div>
</div>
<div><br>
</div>
<div style="">How can I set the rabbitmq to use the public
IP for other regions access it?</div>
<div style=""><br>
</div>
-- <br>
Best regards,<br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
rabbitmq-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a>
<a class="moz-txt-link-freetext" href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a>
</pre>
</blockquote>
<br>
</body>
</html>