ルビーのamqp
宝石を使用しています。イベントループを実行したのですが、ループ中にAMQP.start
突然it raised a
PossibleAuthenticationFailureErrorが発生しました。
AMQP.start(amqp_config) do |connection|
channel = AMQP::Channel.new connection
channel.on_error do |channel, channel_close|
puts "Oops... a channel-level exception: code = #{channel_close.reply_code}, message = #{channel_close.reply_text}"
end
my_worker = MyWorker.new
my_worker.start
end
[amqp] Detected TCP connection failure
/home/raincole/.rvm/gems/ruby-1.9.3-p125/gems/amq-client-0.9.3/lib/amq/client/async/adapters/event_machine.rb:164:in `block in initialize': AMQP broker closed TCP connection before authentication succeeded: this usually means authentication failure due to misconfiguration. Settings are {:host=>"localhost", :port=>5672, :user=>"guest", :pass=>"guest", :vhost=>"/", :timeout=>nil, :logging=>false, :ssl=>false, :broker=>nil, :frame_max=>131072} (AMQP::PossibleAuthenticationFailureError)
奇妙な部分は、私のワーカーが私が得る前PossibleAuthenticationFailureError
にいくつかのメッセージを受け取ったことです。設定は正しいはずです(何度も何度も確認しました)。
他に考えられる理由はありPossibleAuthenticationFailureError
ますか?