Hi All,<div><br>I really need you help since</div><div>I spend few days trying to make direct connection to RabbitMQ using Erlang client (both located on same host):</div><div><div><br></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;">{ok, Connection} =<br> amqp_connection:start(#amqp_params_direct{ node = <<"kiosk@localhost">>}),</blockquote></div><div><br></div><div>Same connection but #amqp_params_network works without any problem.</div><div>I'm dumping cookie before this call (using get_cookie()) and it'ss same as /var/lib/rabbitmq/.erlang.cookie and /root/.erlang.cookie</div><div><br></div><div>RabbitMQ version: 2.7.1</div><div>Erlang AMQP client lib version: 2.7.1</div><div>Erlang version: R14B04</div><div><br></div><div>rabbitmq-server output:</div><div>---------</div><div><div>/usr/lib/rabbitmq/bin/rabbitmq-server</div><div>Activating RabbitMQ plugins ...</div><div>10 plugins activated:</div><div>* amqp_client-0.0.0</div><div>* mochiweb-1.3-rmq0.0.0-git</div><div>* rabbitmq_consistent_hash_exchange-0.0.0</div><div>* rabbitmq_federation-0.0.0</div><div>* rabbitmq_management-0.0.0</div><div>* rabbitmq_management_agent-0.0.0</div><div>* rabbitmq_management_visualiser-0.0.0</div><div>* rabbitmq_mochiweb-0.0.0</div><div>* rabbitmq_tracing-0.0.0</div><div>* webmachine-1.7.0-rmq0.0.0-hg</div><div><br></div><div>node with name "kiosk" already running on "localhost"</div><div>diagnostics:</div><div>- nodes and their ports on localhost: [{kiosk,44319},</div><div> {rabbitmqprelaunch671,54355}]</div><div>- current node: rabbitmqprelaunch671@localhost</div><div>- current node home dir: /root</div><div>- current node cookie hash: UuV+hP3qioICevzwrp5uuw==</div></div><div><br></div><div>---------</div><div><br></div><div>Runtime error log:</div><div>-----------------------</div><div><div>=ERROR REPORT==== 29-Mar-2013::21:03:24 ===</div><div>** Generic server <0.46.0> terminating</div><div>** Last message in was connect</div><div>** When Server state == {state,amqp_direct_connection,</div><div> {state,undefined,undefined,undefined,undefined,</div><div> undefined,undefined,undefined},</div><div> <0.45.0>,undefined,</div><div> {amqp_params_direct,<<"guest">>,<<"/">>,</div><div> <<"kiosk@localhost">>,none,[]},</div><div> undefined,undefined,</div><div> #Fun<amqp_connection_sup.1.36702488>,</div><div> #Fun<amqp_connection_sup.2.54430129>,false}</div><div>** Reason for termination ==</div><div>** {{function_clause,[{gen,call,</div><div> [{rex,<<"kiosk@localhost">>},</div><div> '$gen_call',</div><div> {call,rabbit_direct,connect,</div><div> [<<"guest">>,<<"/">>,</div><div> rabbit_framing_amqp_0_9_1,<0.46.0>,</div><div> [{pid,<0.46.0>},</div><div> {protocol,{'Direct',{0,9,1}}},</div><div> {address,unknown},</div><div> {port,unknown},</div><div> {name,<<"<t1@localhost.2.46.0>">>},</div><div> {peer_address,unknown},</div><div> {peer_port,unknown},</div><div> {user,<<"guest">>},</div><div> {vhost,<<"/">>},</div><div> {client_properties,[]},</div><div> {type,direct}]],</div><div> <0.42.0>},</div><div> infinity]},</div><div> {gen_server,call,3},</div><div> {rpc,do_call,3},</div><div> {amqp_direct_connection,connect,4},</div><div> {amqp_gen_connection,handle_call,3},</div><div> {gen_server,handle_msg,5},</div><div> {proc_lib,init_p_do_apply,3}]},</div><div> {gen_server,call,</div></div><div><div> [{rex,<<"kiosk@localhost">>},</div><div> {call,rabbit_direct,connect,</div><div> [<<"guest">>,<<"/">>,rabbit_framing_amqp_0_9_1,</div><div> <0.46.0>,</div><div> [{pid,<0.46.0>},</div><div> {protocol,{'Direct',{0,9,1}}},</div><div> {address,unknown},</div><div> {port,unknown},</div><div> {name,<<"<t1@localhost.2.46.0>">>},</div><div> {peer_address,unknown},</div><div> {peer_port,unknown},</div><div> {user,<<"guest">>},</div><div> {vhost,<<"/">>},</div><div> {client_properties,[]},</div><div> {type,direct}]],</div><div> <0.42.0>},</div><div> infinity]}}</div><div>escript: exception exit: {{{function_clause,</div><div> [{gen,call,</div><div> [{rex,<<"kiosk@localhost">>},</div><div> '$gen_call',</div><div> {call,rabbit_direct,connect,</div><div> [<<"guest">>,<<"/">>,</div><div> rabbit_framing_amqp_0_9_1,<0.46.0>,</div><div> [{pid,<0.46.0>},</div><div> {protocol,{'Direct',{0,9,1}}},</div><div> {address,unknown},</div><div> {port,unknown},</div><div> {name,<<"<t1@localhost.2.46.0>">>},</div><div> {peer_address,unknown},</div><div> {peer_port,unknown},</div><div> {user,<<"guest">>},</div><div> {vhost,<<"/">>},</div><div> {client_properties,[]},</div><div> {type,direct}]],</div><div> <0.42.0>},</div><div> infinity]},</div><div> {gen_server,call,3},</div><div> {rpc,do_call,3},</div><div> {amqp_direct_connection,connect,4},</div><div> {amqp_gen_connection,handle_call,3},</div><div> {gen_server,handle_msg,5},</div><div> {proc_lib,init_p_do_apply,3}]},</div><div> {gen_server,call,</div></div><div><div> [{rex,<<"kiosk@localhost">>},</div><div> {call,rabbit_direct,connect,</div><div> [<<"guest">>,<<"/">>,rabbit_framing_amqp_0_9_1,</div><div> <0.46.0>,</div><div> [{pid,<0.46.0>},</div><div> {protocol,{'Direct',{0,9,1}}},</div><div> {address,unknown},</div><div> {port,unknown},</div><div> {name,<<"<t1@localhost.2.46.0>">>},</div><div> {peer_address,unknown},</div><div> {peer_port,unknown},</div><div> {user,<<"guest">>},</div><div> {vhost,<<"/">>},</div><div> {client_properties,[]},</div><div> {type,direct}]],</div><div> <0.42.0>},</div><div> infinity]}},</div><div> {gen_server,call,[<0.46.0>,connect,infinity]}}</div><div> in function gen_server:call/3</div><div> in call from erl_eval:do_apply/5</div><div> in call from erl_eval:expr/5</div><div> in call from escript:eval_exprs/5</div><div> in call from erl_eval:local_func/5</div><div> in call from escript:interpret/4</div><div> in call from escript:start/1</div><div> in call from init:start_it/1</div></div><div>-----------------------</div><div><br></div><div>Thank you in advance for any ideas,</div><div><br></div><div>Best,</div><div>Alexander Reshniuk</div>