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"><<a href="mailto:0x6e6562@gmail.com">0x6e6562@gmail.com</a>></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('Suhail Doshi <<a href="mailto:suhail@mixpanel.com" target="_blank">suhail@mixpanel.com</a>>').</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() -></div>
<div> User = Password = "mixpanel",</div>
<div> Realm = <<"mixpanel">>, %% virtual_host</div>
<div> log("test", "state-1"),</div>
<div> Connection = amqp_connection:start(User, Password,
"127.0.0.1"),</div>
<div> log("test", "state-2"),</div>
<div> Channel = amqp_connection:open_channel(Connection),</div>
<div> Access = #'access.request'{</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'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>
</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>