<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>I am very new to rabbitmq and shovel but I may have found a bug:</div>
<div><br>
</div>
<div>My setup:</div>
<div><br>
</div>
<div>I am running Rabbit 3.1.1 and have shovel plugin enabled.</div>
<div>I have sense clients that communicate with this rabbit broker successfully to vhost /sensu with sensu and mypass as username and password.</div>
<div><br>
</div>
<div>The shovel plugin (loaded on the first Rabbit) with talk to a 2nd Rabbit which is also serving sense clients using the same vhost, username and password.</div>
<div><br>
</div>
<div>Here is my shovel config file:</div>
<div><br>
</div>
<div>
<div>[</div>
<div> {rabbitmq_shovel,</div>
<div> [{shovels, [ {test_shovel,</div>
<div> [ {sources, [{broker, "amqp://sensu:mypass@/sensu"}]}</div>
<div> , {destinations, [{broker, "amqp://sensu:mypass@ec2-54-245-126-50.us-west-2.compute.amazonaws.com/sensu"}]}</div>
<div> , {queue, <<"rabbitmq-us-west-2">>}</div>
<div> ]</div>
<div> }]}]</div>
<div> }</div>
<div>].</div>
<div><br>
</div>
</div>
<div>As you can see, my source (which is Rabbit1) is being connected to by the shovel by the non network method and has the username, password and vhost</div>
<div>The destination is set up as a network connection</div>
<div><br>
</div>
<div>Here is the error is get after a restart of Rabbit1 server:</div>
<div><br>
</div>
<div>
<div>=INFO REPORT==== 31-May-2013::15:13:10 ===</div>
<div>accepting AMQP connection <0.387.0> (10.73.3.20:39733 -> 10.40.215.251:5672)</div>
<div><br>
</div>
<div>=ERROR REPORT==== 31-May-2013::15:13:24 ===</div>
<div>** Generic server <0.400.0> terminating</div>
<div>** Last message in was {'$gen_cast',init}</div>
<div>** When Server state == {state,undefined,undefined,undefined,undefined,</div>
<div> test_shovel,</div>
<div> {shovel,</div>
<div> {endpoint,</div>
<div> [{amqp_params_direct,<<"sensu">>,none,<<"sensu">>,</div>
<div> 'rabbit@ip-10-40-215-251',none,[]}],</div>
<div> []},</div>
<div> {endpoint,</div>
<div> [{amqp_params_network,<<"sensu">>,<<"mypass">>,</div>
<div> <<"sensu">>,</div>
<div> "ec2-54-245-126-50.us-west-2.compute.amazonaws.com",</div>
<div> undefined,0,0,0,infinity,none,</div>
<div> [#Fun<amqp_uri.7.123484526>,</div>
<div> #Fun<amqp_uri.7.123484526>],</div>
<div> [],[]}],</div>
<div> []},</div>
<div> 0,on_confirm,</div>
<div> #Fun<rabbit_shovel_config.15.100604638>,</div>
<div> #Fun<rabbit_shovel_config.15.100604638>,</div>
<div> <<"rabbitmq-us-west-2">>,5},</div>
<div> undefined,undefined,undefined,undefined,undefined}</div>
<div>** Reason for termination ==</div>
<div>** {{badmatch,{error,access_refused}},</div>
<div> [{rabbit_shovel_worker,make_conn_and_chan,1},</div>
<div> {rabbit_shovel_worker,handle_cast,2},</div>
<div> {gen_server2,handle_msg,2},</div>
<div> {proc_lib,init_p_do_apply,3}]}</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Notice this line:</div>
<div>
<div>[{amqp_params_direct,<<"sensu">>,none,<<"sensu">>,</div>
<div> 'rabbit@ip-10-40-215-251',none,[]}],</div>
</div>
<div><br>
</div>
<div>If I read this correctly, the password is not being passed and THUS authentication is being denied.</div>
<div><br>
</div>
<div>Is this a bug?</div>
<div><br>
</div>
<div>John Hayden</div>
</body>
</html>