<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Suhail,<br>
<br>
Suhail Doshi wrote:
<blockquote
 cite="mid:376f3e6f0906171126j6ec132f3ged75c33c7c6e45c9@mail.gmail.com"
 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('Suhail Doshi &lt;<a moz-do-not-send="true"
 href="mailto:suhail@mixpanel.com" target="_blank">suhail@mixpanel.com</a>&gt;').</div>
  <div>-export([amqp_lifecycle/0, send_message/5, log/2]).</div>
  <div><br>
  </div>
  <div>-include_lib("rabbitmq-erlang-client/rabbitmq_server/include/rabbit.hrl").</div>
  <div>-include_lib("rabbitmq-erlang-client/rabbitmq_server/include/rabbit_framing.hrl").</div>
  <div>-include("rabbitmq-erlang-client/include/amqp_client.hrl").</div>
  <div><br>
  </div>
  <div>-record(rabbit_info, {channel, ticket, exchange, routing_key}).</div>
  <div><br>
  </div>
  <div>amqp_lifecycle() -&gt;</div>
  <div>&nbsp;&nbsp; &nbsp;User = Password = "mixpanel",</div>
  <div>&nbsp;&nbsp; &nbsp;Realm = &lt;&lt;"mixpanel"&gt;&gt;, %% virtual_host</div>
  <div>&nbsp;&nbsp; &nbsp;log("test", "state-1"),</div>
  <div>&nbsp;&nbsp; &nbsp;Connection = amqp_connection:start(User, Password,
"127.0.0.1"),</div>
  <div>&nbsp;&nbsp; &nbsp;log("test", "state-2"),</div>
  <div>&nbsp;&nbsp; &nbsp;Channel = amqp_connection:open_channel(Connection),</div>
  <div>&nbsp;&nbsp; &nbsp;Access = #'access.request'{</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;realm = Realm,</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;exclusive = false,</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;passive = true,</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;active = true,</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;write = true,</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;read = true</div>
  <div>&nbsp;&nbsp; &nbsp;},</div>
  <div><br>
  </div>
  <div>I added you on gchat if you have any time to talk.</div>
  </div>
</blockquote>
<br>
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're using the a deprecated API - realms have been removed from
the spec.<br>
<br>
I'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>
</body>
</html>