我在webfaction上运行了一个django应用程序,几天前,我升级了一个软件包,该软件包还将django升级到了2.1版(从2.0版)。此后不久,芹菜停止工作,当我尝试在主管中重新启动它时,出现以下错误:
http://127.0.0.1:12637 refused connection
当我检查主管日志时,我看到了以下内容:
2018-10-06 21:56:58,356 WARN received SIGHUP indicating restart request
2018-10-06 21:56:58,417 INFO waiting for accconsole_celery, catdemo, accconsole_celerybeat to die
2018-10-06 21:56:58,418 INFO exited: catdemo (terminated by SIGTERM; not expected)
2018-10-06 21:56:58,432 WARN received SIGTERM indicating exit request
2018-10-06 21:56:58,590 INFO stopped: accconsole_celerybeat (terminated by SIGHUP)
2018-10-06 21:57:01,604 INFO waiting for accconsole_celery to die
2018-10-06 21:57:04,721 INFO waiting for accconsole_celery to die
2018-10-06 21:57:07,729 INFO waiting for accconsole_celery to die
2018-10-06 21:57:10,736 INFO waiting for accconsole_celery to die
2018-10-06 21:57:13,740 INFO waiting for accconsole_celery to die
2018-10-06 21:57:16,747 INFO waiting for accconsole_celery to die
2018-10-06 21:57:19,752 INFO waiting for accconsole_celery to die
2018-10-06 21:57:22,758 INFO waiting for accconsole_celery to die
2018-10-06 21:57:25,762 INFO waiting for accconsole_celery to die
2018-10-06 21:57:28,766 INFO waiting for accconsole_celery to die
2018-10-06 21:57:31,769 INFO waiting for accconsole_celery to die
2018-10-06 21:57:34,774 INFO waiting for accconsole_celery to die
2018-10-06 21:57:37,778 INFO waiting for accconsole_celery to die
2018-10-06 21:57:40,781 INFO waiting for accconsole_celery to die
2018-10-06 21:57:43,784 INFO waiting for accconsole_celery to die
因此,我想某些进程无法正确关闭,但是我似乎无法强迫其退出。每次尝试:
ps aux|grep 'celery worker'
这样我得到了一个具有不同进程号的工人:
acounsel 11386 0.0 0.0 112704 980 pts/1 S+ 20:48 0:00 grep --color=auto celery worker
acounsel 11446 0.0 0.0 112704 980 pts/1 S+ 20:49 0:00 grep --color=auto celery worker
因此,当我尝试杀死它们时,会得到如下响应:
-bash: kill: (11446) - No such process
pkill -9 -f 'celery worker'
和较长的ps auxww | grep 'celery worker' | awk '{print $2}' | xargs kill -9
似乎什么也没做。我也无法运行诸如celery -A django_aconsole status
或celery -A django_aconsole purge
之类的celery命令,它只是挂起,似乎什么也没做。
有什么想法可以关闭这些进程以便重新启动celery吗?
答案 0 :(得分:1)
这是一个简单的问题;监督者已停止运行,因此没有监督者无法运行。只需首先运行主管,所有工作都可以正常进行。