python
network_error
ai_generated
true
Kombu 操作错误:[Errno 111] 连接被拒绝
kombu.exceptions.OperationalError: [Errno 111] Connection refused
ID: python/django-celery-connection-error
80%修复率
87%置信度
0证据数
2026-01-15首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 3.x | active | — | — | — |
根因分析
Celery 代理(通常是 Redis 或 RabbitMQ)未运行或无法访问。
English
Celery broker (usually Redis or RabbitMQ) is not running or unreachable.
解决方案
-
90% 成功率
Start Redis: redis-server or RabbitMQ: sudo systemctl start rabbitmq-server
-
85% 成功率
Verify CELERY_BROKER_URL='redis://localhost:6379/0' in settings.
无效尝试
常见但无效的做法:
-
60% 失败
Changing CELERY_BROKER_URL to a different port without starting service doesn't help.
-
30% 失败
Using localhost instead of 127.0.0.1 can cause IPv6 issues.