【问题标题】:Cannot connect to broker error, connection reset by peer无法连接到代理错误,对等方重置连接
【发布时间】:2020-04-30 16:05:44
【问题描述】:

当我尾随芹菜时,我得到:

consumer: Cannot connect to amqp://guest:**@[NEW_INSTANCE_IP]:5672//: [Errno 104] Connection reset by peer.
Trying again in 32.00 seconds...

当我尾随我的花朵时,我得到:

[DEBUG 2020-01-13 22:31:39,900] events.py [:133] on_enable_events: Failed to enable events: '[Errno 104] Connection reset by peer'

我都试过了 sudo invoke-rc.d rabbitmq-server startsudo rabbitmqctl start_app

我整天都在研究这个问题,但似乎无法弄清楚。它开始更新我的实例,我不得不将我的BROKER_URL 更改为amqp://guest:**[NEW_INSTANCE_IP]:5672,并且从那以后没有任何工作正常。我对使用 rabbitmq、celery 和 supervisord 还很陌生。任何帮助将不胜感激。谢谢。

【问题讨论】:

  • 尝试卸载并重新安装..

标签: python django rabbitmq celery django-celery


【解决方案1】:

您似乎需要将“[NEW_INSTANCE_IP]”更改为您的代理 url 的实际 ip。对于大多数配置,这通常只是 localhost。 试试改成这个。

broker_url = 'amqp://guest:guest@localhost'

【讨论】:

    猜你喜欢
    • 2019-03-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-07
    • 2017-06-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多