[rabbitmq-discuss] shovel ipv6 resolving dns name

Laurent Domb laurent at junctionnetworks.com
Fri Sep 14 17:23:14 BST 2012


Hi, 

I set up a test shovel which shovels messages from New York to LA. When I use ipv6 ipaddresses the shovel works. If I exchange the ipv6 addresses with the actual  DNS name it fails. It seems to connect to the ipv4 address first and then just fails. The error msg I get is: 

"{{badmatch,{error,econnrefused}},
 [{rabbit_shovel_worker,make_conn_and_chan,1},
  {rabbit_shovel_worker,handle_cast,2},
  {gen_server2,handle_msg,2},
  {proc_lib,init_p_do_apply,3}]}
"

Is there an erlang kernel option the say go ipv6 first? 



[
{rabbitmq_shovel,
       [{shovels,
         [{banana_order_shovel,
           [{sources,      [{broker, "amqp://guest:jnctn2012@2320:104:2001::205a:5672"},
                            {declarations,
                               [{'queue.declare',
                                       [{queue, <<"backup_orders">>},
                                         durable]},
                                {'exchange.declare',
                                       [{exchange, <<"incoming_orders">>},
                                        {type, <<"direct">>},
                                        durable]},
                                {'queue.bind',
                                    [{exchange, <<"incoming_orders">>},
                                     {queue, <<"backup_orders">>},
                                     {routing_key, <<"bananas">>}]}
                               ]}]},
            {destinations, [{broker, "amqp://guest:jnctn2012@2320:104:2001::2020::5672"},
                            {declarations,
                               [{'queue.declare',
                                    [{queue, <<"warehouse_foodsection">>},
                                      durable]},
                                {'exchange.declare',
                                       [{exchange, <<"incoming_orders">>},
                                        {type, <<"direct">>},
                                        durable]},
                                {'queue.bind',
                                    [{exchange, <<"incoming_orders">>},
                                     {queue, <<"warehouse_foodsection">>},
                                     {routing_key, <<"bananas">>}]}
                               ]}]},
            {queue, <<"backup_orders">>},
            {prefetch_count, 5},
            {ack_mode, on_confirm},
            {publish_properties, [{delivery_mode, 2}]},
            {publish_fields, [{exchange, <<"incoming_orders">>},
                              {routing_key, <<"bananas">>}]},
            {reconnect_delay, 5}
           ]}
          ]
        }]
     },
....
....
....
...
].


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120914/1442e714/attachment.htm>


More information about the rabbitmq-discuss mailing list