RabbitMQ / Celery和Django挂起在delay / ready / etc-没有有用的日志信息 [英] RabbitMQ / Celery with Django hangs on delay/ready/etc - No useful log info
问题描述
所以我只需设置celery和rabbitmq,创建我的用户,设置虚拟主机,将用户映射到虚拟主机,然后成功运行celery守护程序(或者,我假设)
So I just setup celery and rabbitmq, created my user, setup the vhost, mapped the user to the vhost, and ran the celery daemon succesfully (or so I assume)
(queuetest)corky@corky-server:~/projects/queuetest$ ./manage.py celeryd
celery@corky-server v0.9.5 is starting.
Configuration ->
. broker -> amqp://celery@localhost:5672/
. queues ->
. celery -> exchange:celery (direct) binding:celery
. concurrency -> 2
. loader -> celery.loaders.djangoapp
. logfile -> [stderr]@WARNING
. events -> OFF
. beat -> OFF
Celery has started.
我创建了芹菜用户,因为在这种情况下我觉得自己不是很有创造力。
I created a user of "celery" because I wasn't feeling very inventive in this case.
当我尝试在celery文档中做一个简单的例子时:
When I try to do one of the simple examples within the celery docs:
>>> from tasks import add
>>> r = add.delay(2, 2)
>>> r
<AsyncResult: 16235ea3-c7d6-4cce-9387-5c6285312c7c>
>>> r.ready()
(hangs for eternity.)
所以我检查了FAQ,想知道还有什么可能发生的,它告诉我这是由于用户权限而引起的常见错误,因此我对这些内容进行了三重检查,什么也没做,使另一个新用户仍然没有。如果我从 carrot.connection
导入 DjangoBrokerConnection
并获取信息,则它与我的芹菜设置中的内容匹配。
So I checked the FAQ wondering what else could be up and it told me this is a common bug due to user permissions, so I triple checked those, nothing, made another new user, still nothing. If I import DjangoBrokerConnection
from carrot.connection
and get the information, it matches up with what's in my celery settings. The FAQ stated to check your log file.
我的 rabbit.log
文件在这种情况下不是很有帮助。
My rabbit.log
file isn't very helpful in this situation, simply showing:
,只需显示:
And so forth. At this point, I'm at a loss as to what else my problem could be. I'm running Ubuntu Jaunty and installed RabbitMQ from apt-get.
等。在这一点上,我对我可能遇到的其他问题一无所知。我正在运行Ubuntu Jaunty,并从apt-get安装了RabbitMQ。
Thanks in advance for any help.
在此先感谢您的帮助。