Django的芹菜:消费者连接错误(111)运行时的python manage.py celeryd
问题描述:
我想配置Django项目使用芹菜(我使用Django 1.3 Debian的挤压)Django的芹菜:消费者连接错误(111)运行时的python manage.py celeryd
我安装的Django,芹菜( 2.3.3),然后跟着these instructions。
我的Django芹菜设置如下:
BROKER_HOST = "localhost"
BROKER_PORT = 5672
BROKER_USER = "guest"
BROKER_PASSWORD = "guest"
BROKER_VHOST = "/"
当我尝试推出与芹菜工人服务器...
$ python manage.py celeryd -l info
我得到一个“消费者以下的输出:连接错误:[Errno 111]“末尾:
/home/thomas/virtualenv/ULYSSE/lib/python2.6/site-packages/djcelery/loaders.py:84: UserWarning: Using settings.DEBUG leads to a memory leak, never use this setting in production environments!
warnings.warn("Using settings.DEBUG leads to a memory leak, never "
[2011-09-20 12:14:00,645: WARNING/MainProcess]
-------------- [email protected] v2.3.3
---- **** -----
--- * *** * -- [Configuration]
-- * - **** --- . broker: amqp://[email protected]:5672//
- ** ---------- . loader: djcelery.loaders.DjangoLoader
- ** ---------- . logfile: [stderr]@INFO
- ** ---------- . concurrency: 1
- ** ---------- . events: OFF
- *** --- * --- . beat: OFF
-- ******* ----
--- ***** ----- [Queues]
-------------- . celery: exchange:celery (direct) binding:celery
[Tasks]
. competitions.tasks.add
[2011-09-20 12:14:00,788: INFO/PoolWorker-1] child process calling self.run()
[2011-09-20 12:14:00,795: WARNING/MainProcess] [email protected] has started.
[2011-09-20 12:14:00,809: ERROR/MainProcess] **Consumer: Connection Error: [Errno 111] Connection refused. Trying again in 2 seconds**...
显然,我的设置被正确读取(参见配置部分在输出)和工作进程正确启动(“芹菜@ debian已经开始”)
我不明白为什么这个“消费者:连接错误:[Errno 111]”错误追加...
这与BROKER_USER和BROKER_PASSWORD设置有关吗?
我尝试了不同的用户/密码设置(我的帐户,root帐户...),但我总是得到相同的错误。 “BROKER_USER”和“BROKER_PASSWORD”是指操作系统用户,数据库用户还是“经纪人”用户?
如何摆脱此连接错误?
答
看起来像rabbitmq没有安装或运行。你能检查一下吗?
apt-get install rabbitmq-server
在Ubuntu
我安装的RabbitMQ服务器和它的作品,现在!谢谢您的回答 ! – tomjerry
很高兴听到它.. –