[rabbitmq-discuss] rabbitmq erlang client error: inet_address_preference

Paul Oliver puzza007 at gmail.com
Mon Feb 11 23:22:36 GMT 2013


Hi Mike,

I just ran into the same thing when using the rebar friendly fork of the 
erlang client.  I opened a pull request with a fix 
here https://github.com/jbrisbin/amqp_client/pull/9.

Cheers,
Paul.

On Sunday, January 20, 2013 6:19:22 PM UTC-5, Mike Bridge wrote:
>
> I'm new to rabbitmq and fairly new to erlang....  I'm trying 
> unsuccessfully to get the erlang client (3.0.1) working.  Any idea what 
> this error means?
>
> 2>  amqp_connection:start(#amqp_params_network{host="localhost", 
> username="mike", password="*****"}).
>
>
> =ERROR REPORT==== 20-Jan-2013::16:04:55 ===
> ** Generic server <0.132.0> terminating 
> ** Last message in was connect
> ** When Server state == {state,amqp_network_connection,
>                             {state,undefined,undefined,undefined,undefined,
>                                 undefined,false},
>                             <0.131.0>,undefined,
>                             {amqp_params_network,"mike","*****",<<"/">>,
>                                 "localhost",5672,0,0,0,infinity,none,
>                                 [#Fun<amqp_auth_mechanisms.plain.3>,
>                                  #Fun<amqp_auth_mechanisms.amqplain.3>],
>                                 [],[]},
>                             undefined,undefined,
>                             #Fun<amqp_connection_sup.0.55585968>,
>                             #Fun<amqp_connection_sup.2.55585968>,false}
> ** Reason for termination == 
> ** {{case_clause,undefined},
>     [{amqp_network_connection,inet_address_preference,0,
>                               [{file,"src/amqp_network_connection.erl"},
>                                {line,154}]},
>      {amqp_network_connection,gethostaddr,1,
>                               [{file,"src/amqp_network_connection.erl"},
>                                {line,161}]},
>      {amqp_network_connection,connect,4,
>                               [{file,"src/amqp_network_connection.erl"},
>                                {line,110}]},
>      {amqp_gen_connection,handle_call,3,
>                           
> [{file,"src/amqp_gen_connection.erl"},{line,177}]},
>      {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,588}]},
>      {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}
> ** exception exit: {{{case_clause,undefined},
>                      [{amqp_network_connection,inet_address_preference,0,
>                           [{file,"src/amqp_network_connection.erl"},
>                            {line,154}]},
>                       {amqp_network_connection,gethostaddr,1,
>                           [{file,"src/amqp_network_connection.erl"},
>                            {line,161}]},
>                       {amqp_network_connection,connect,4,
>                           [{file,"src/amqp_network_connection.erl"},
>                            {line,110}]},
>                       {amqp_gen_connection,handle_call,3,
>                           
> [{file,"src/amqp_gen_connection.erl"},{line,177}]},
>                       {gen_server,handle_msg,5,
>                           [{file,"gen_server.erl"},{line,588}]},
>                       {proc_lib,init_p_do_apply,3,
>                           [{file,"proc_lib.erl"},{line,227}]}]},
>                     {gen_server,call,[<0.132.0>,connect,infinity]}}
>      in function  gen_server:call/3 (gen_server.erl, line 188)
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130211/f4f0f921/attachment.htm>


More information about the rabbitmq-discuss mailing list