Celery node fail, on pidbox already using on restart

落爺英雄遲暮 提交于 2020-01-01 04:25:22

问题


i have celery running with rabbitmq broker. Today i have fail of celery node - it dont execute tasks and not respond on service celeryd stop command. After few repeats node stoped, but on start i get this message:

[WARNING/MainProcess] celery@nodename ready.
[WARNING/MainProcess] /home/ubuntu/virtualenv/project_1/local/lib/python2.7/site-packages/kombu/pidbox.py:73: UserWarning: A node named u'nodename' is already using this process mailbox!

Maybe you forgot to shutdown the other node or did not do so properly?
Or if you meant to start multiple nodes on the same host please make sure
you give each node a unique node name!

  warnings.warn(W_PIDBOX_IN_USE % {'hostname': self.hostname})

Can anyone suggest how to unlock process mailbox?


回答1:


From here http://celery.readthedocs.org/en/latest/userguide/workers.html#starting-the-worker you might need to name each node uniquely. Example:

$ celery -A proj worker --loglevel=INFO --concurrency=10 -n worker1.%h

In supervisor escape by using %%h




回答2:


Large log file or not enough free space was a reason, i think. After deletion all is ok



来源:https://stackoverflow.com/questions/18673319/celery-node-fail-on-pidbox-already-using-on-restart

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!