rabbitmq 3.3.4铲斗配置是崩溃启动过程

时间:2014-09-02 20:17:24

标签: configuration rabbitmq rabbitmq-shovel

我试图通过配置文件配置铲子插件(在docker中运行),但是我收到了这个错误:

  BOOT FAILED
  ===========

  Error description:
   {error,{failed_to_cluster_with,[rabbit@dalmacpmfd57],
                              "Mnesia could not connect to any nodes."}}

配置是以这种方式设置的,因为在开发环境时,将根据需要创建铲的目标...源是一个永久的rabbitmq实例,运行新的dev环境将附加到。

这是配置文件内容:

  [   
   {rabbitmq_shovel,
    [{shovels,
        [{indexer_replica_static,
           [{sources, 
                [{broker, [ "amqp://guest:guest@rabbitmq/newdev" ]},
                       {declarations,
                            [{'queue.declare', [{queue,    <<"Indexer_Replica_Static">>}, durable]},
                             {'queue.bind',[ {exchange, <<"Indexer">>}, {queue, <<"Indexer_Replica_Static">>}]}
                            ]
                        }
                ]
            },
            {destinations, 
                [{broker, "amqp://"},
                      {declarations, [ {'exchange.declare', [ {exchange, <<"Indexer_Replica_Static">>}
                                     , {type, <<"fanout">>}, durable]},
                                     {'queue.declare', [
                                         {queue,    <<"Indexer_Replica_Static">>},
                                         durable]},
                                     {'queue.bind',
                                       [ {exchange, <<"Indexer_Replica_Static">>}
                                       , {queue,    <<"Indexer_Replica_Static">>}
                                       ]}
                                    ]
                       }
                ]
            },
           {queue, <<"Indexer_Replica_Static">>},
           {prefetch_count, 0},
           {ack_mode, on_confirm},
           {publish_properties, [ {delivery_mode, 2} ]},
           {reconnect_delay, 2.5}
           ]
        }
        ]
      },
      {reconnect_delay,    2.5}
    ]
  }
 ].

[UPDATE] 这是在docker中运行但由于我无法调试docker中的问题,我尝试使用相同的配置文件在本地启动Rabbit。我在日志中注意到我设置的兔子配置系统变量(RABBITMQ_CONFIG_FILE)没有反映在日志中并且铲子设置尚未应用(毫不奇怪)。我使用echo语句验证了变量,并显示了正确的路径:/dev/rabbitmq_server-3.3.4/rabbitmq

  =INFO REPORT==== 3-Sep-2014::15:30:37 ===
  node           : rabbit@dalmacpmfd57
  home dir       : /Users/e002678
  config file(s) : (none)
  cookie hash    : n6vhh8tY7Z+uR2DV6gcHUg==
  log            : /usr/local/rabbitmq_server-3.3.4/sbin/../var/log/rabbitmq/rabbit@dalmacpmfd57.log
  sasl log       : /usr/local/rabbitmq_server-3.3.4/sbin/../var/log/rabbitmq/rabbit@dalmacpmfd57-   sasl.log
  database dir   : /usr/local/rabbitmq_server-3.3.4/sbin/../var/lib/rabbitmq/mnesia/rabbit@dalmacpmfd57

谢谢!

0 个答案:

没有答案