python
network_error
ai_generated
true
kombu.exceptions.OperationalError: [Errno 111] Connection refused
ID: python/django-celery-connection-error
80%Fix Rate
87%Confidence
0Evidence
2026-01-15First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.x | active | — | — | — |
Root Cause
Celery broker (usually Redis or RabbitMQ) is not running or unreachable.
generic中文
Celery 代理(通常是 Redis 或 RabbitMQ)未运行或无法访问。
Workarounds
-
90% success
Start Redis: redis-server or RabbitMQ: sudo systemctl start rabbitmq-server
-
85% success
Verify CELERY_BROKER_URL='redis://localhost:6379/0' in settings.
Dead Ends
Common approaches that don't work:
-
60% fail
Changing CELERY_BROKER_URL to a different port without starting service doesn't help.
-
30% fail
Using localhost instead of 127.0.0.1 can cause IPv6 issues.