python network_error ai_generated true

kombu.exceptions.OperationalError: [Errno 111] Connection refused

ID: python/django-celery-connection-error

Also available as: JSON · Markdown · 中文
80%Fix Rate
87%Confidence
0Evidence
2026-01-15First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3.x active

Root Cause

Celery broker (usually Redis or RabbitMQ) is not running or unreachable.

generic

中文

Celery 代理(通常是 Redis 或 RabbitMQ)未运行或无法访问。

Workarounds

  1. 90% success
    Start Redis: redis-server or RabbitMQ: sudo systemctl start rabbitmq-server
  2. 85% success
    Verify CELERY_BROKER_URL='redis://localhost:6379/0' in settings.

Dead Ends

Common approaches that don't work:

  1. 60% fail

    Changing CELERY_BROKER_URL to a different port without starting service doesn't help.

  2. 30% fail

    Using localhost instead of 127.0.0.1 can cause IPv6 issues.