I actually got it working after looking at the /var/logs for rabbitmq.<div><br></div><div>Suhail<br><br><div class="gmail_quote">On Wed, Jun 17, 2009 at 4:07 PM, Ben Hood <span dir="ltr">&lt;<a href="mailto:0x6e6562@gmail.com">0x6e6562@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


  

<div bgcolor="#ffffff" text="#000000">
Suhail,<div><div></div><div class="h5"><br>
<br>
Suhail Doshi wrote:
<blockquote type="cite">Hey Ben,
  <div><br>
  </div>
  <div>My name is Suhail, I am having a bit of trouble with the erlang
client lib for rabbitmq, for some reason my code simply just halts at
the amqp_connection:start() phase:</div>
  <div><br>
  </div>
  <div>
  <div>-module(metrics_queue).</div>
  <div>-author(&#39;Suhail Doshi &lt;<a href="mailto:suhail@mixpanel.com" target="_blank">suhail@mixpanel.com</a>&gt;&#39;).</div>
  <div>-export([amqp_lifecycle/0, send_message/5, log/2]).</div>
  <div><br>
  </div>
  <div>-include_lib(&quot;rabbitmq-erlang-client/rabbitmq_server/include/rabbit.hrl&quot;).</div>
  <div>-include_lib(&quot;rabbitmq-erlang-client/rabbitmq_server/include/rabbit_framing.hrl&quot;).</div>
  <div>-include(&quot;rabbitmq-erlang-client/include/amqp_client.hrl&quot;).</div>
  <div><br>
  </div>
  <div>-record(rabbit_info, {channel, ticket, exchange, routing_key}).</div>
  <div><br>
  </div>
  <div>amqp_lifecycle() -&gt;</div>
  <div>�� �User = Password = &quot;mixpanel&quot;,</div>
  <div>�� �Realm = &lt;&lt;&quot;mixpanel&quot;&gt;&gt;, %% virtual_host</div>
  <div>�� �log(&quot;test&quot;, &quot;state-1&quot;),</div>
  <div>�� �Connection = amqp_connection:start(User, Password,
&quot;127.0.0.1&quot;),</div>
  <div>�� �log(&quot;test&quot;, &quot;state-2&quot;),</div>
  <div>�� �Channel = amqp_connection:open_channel(Connection),</div>
  <div>�� �Access = #&#39;access.request&#39;{</div>
  <div>�� � � �realm = Realm,</div>
  <div>�� � � �exclusive = false,</div>
  <div>�� � � �passive = true,</div>
  <div>�� � � �active = true,</div>
  <div>�� � � �write = true,</div>
  <div>�� � � �read = true</div>
  <div>�� �},</div>
  <div><br>
  </div>
  <div>I added you on gchat if you have any time to talk.</div>
  </div>
</blockquote>
<br></div></div>
Is there anything in the server log? Can you supply some details about
your environment and the versions of the client and server you are
using?<br>
<br>
Also, you&#39;re using the a deprecated API - realms have been removed from
the spec.<br>
<br>
I&#39;m posting this to the Rabbit list - this is the most appropriate
place to get help from the community.<br>
<br>
HTH,<br>
<br>
Ben<br>
</div>

</blockquote></div><br><br clear="all"><br>-- <br><a href="http://mixpanel.com">http://mixpanel.com</a><br>Blog: <a href="http://blog.mixpanel.com">http://blog.mixpanel.com</a><br>
</div>