kombu / librabbitmq:ConnectionError:无法恢复频道

时间:2016-04-27 22:09:42

标签: amazon-elb kombu librabbitmq

  1. 我正在使用producer池组向rabbitmq发布消息,但发布调用失败并出现以下错误:
  2.     File "pubsub.py", line 314, in _publish
            producer.publish(message, exchange=exchange, routing_key=topic)
        File "/opt/ENV/local/lib/python2.7/site-packages/kombu/messaging.py", line 172, in publish routing_key, 
            mandatory, immediate, exchange, declare)
        File "/opt/ENV/local/lib/python2.7/site-packages/kombu/messaging.py", line 188, in _publish 
            mandatory=mandatory, immediate=immediate,
        File "/opt/local/lib/python2.7/site-packages/librabbitmq/__init__.py", line 117, in basic_publish
        mandatory or False, immediate or False,
        ConnectionError: Couldn't revive channel
    
    1. 奇怪的是,我收到此错误的此消息之前的消息未到达消费者端。我在Connection对象上使用transport_options = {' confirm_publish':True},它传递给生产者池。

    2. Rabbitmq服务器支持AWS上的ELB。

    3. 关于上述错误以及为什么邮件可能会丢失的任何想法?

      感谢。

0 个答案:

没有答案