[rabbitmq-discuss] Erlang client issues

Suhail Doshi suhail at mixpanel.com
Wed Jun 17 19:42:17 BST 2009


Hi everyone,
I am having some erlang client problems, I can't seem to get past the
amqp_connection:start() phase, it just seems to halt at:

** Found 0 name clashes in code paths
"test": "state-1"

=PROGRESS REPORT==== 17-Jun-2009::11:22:45 ===
          supervisor: {local,inet_gethost_native_sup}
             started: [{pid,<0.54.0>},{mfa,{inet_gethost_native,init,[[]]}}]

=PROGRESS REPORT==== 17-Jun-2009::11:22:45 ===
          supervisor: {local,kernel_safe_sup}
             started: [{pid,<0.53.0>},
                       {name,inet_gethost_native_sup},
                       {mfa,{inet_gethost_native,start_link,[]}},
                       {restart_type,temporary},
                       {shutdown,1000},
                       {child_type,worker}]

Here's the code:
----------------------------------------------------------------

-module(metrics_queue).
-export([amqp_lifecycle/0, send_message/5, log/2]).

-include_lib("rabbitmq-erlang-client/rabbitmq_server/include/rabbit.hrl").
-include_lib("rabbitmq-erlang-client/rabbitmq_server/include/rabbit_framing.hrl").
-include("rabbitmq-erlang-client/include/amqp_client.hrl").

-record(rabbit_info, {channel, ticket, exchange, routing_key}).

amqp_lifecycle() ->
    User = Password = "mixpanel",
    Realm = <<"mixpanel">>, %% virtual_host
    log("test", "state-1"),
    Connection = amqp_connection:start(User, Password, "127.0.0.1"),
    log("test", "state-2"),
    Channel = amqp_connection:open_channel(Connection),
    Access = #'access.request'{
        realm = Realm,
        exclusive = false,
        passive = true,
        active = true,
        write = true,
        read = true
    },

Any help is greatly appreciated

Sincerely,
Suhail Doshi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20090617/0175bf24/attachment.htm 


More information about the rabbitmq-discuss mailing list