我试过了:
sudo service supervisor restart
我得到了:
supervisor.service的作业失败,因为控制进程退出并显示错误代码。有关详细信息,请参阅“systemctl status supervisor.service”和“journalctl -xe”。
然后我跑:
systemctl status supervisor.service
结果:
supervisor.service - supervisord - Supervisor process control system
Loaded: loaded (/etc/systemd/system/supervisor.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2018-04-29 13:37:02 EDT; 27s ago
Docs: http://supervisord.org
Process: 23929 ExecStart=/edx/app/supervisor/venvs/supervisor/bin/supervisord --configuration /edx/ap
Apr 29 13:37:02 vu supervisord[23929]: handlers.append(RotatingFileHandler(filename,'a',maxbytes,ba
Apr 29 13:37:02 vu supervisord[23929]: File "/edx/app/supervisor/venvs/supervisor/local/lib/python2.7
Apr 29 13:37:02 vu supervisord[23929]: FileHandler.__init__(self, filename, mode)
Apr 29 13:37:02 vu supervisord[23929]: File "/edx/app/supervisor/venvs/supervisor/local/lib/python2.7
Apr 29 13:37:02 vu supervisord[23929]: self.stream = open(filename, mode)
Apr 29 13:37:02 vu supervisord[23929]: IOError: [Errno 13] Permission denied: '/edx/var/log/supervisor/
Apr 29 13:37:02 vu systemd[1]: supervisor.service: Control process exited, code=exited status=1
Apr 29 13:37:02 vu systemd[1]: Failed to start supervisord - Supervisor process control system.
Apr 29 13:37:02 vu systemd[1]: supervisor.service: Unit entered failed state.
Apr 29 13:37:02 vu systemd[1]: supervisor.service: Failed with result 'exit-code'.
答案 0 :(得分:2)
关键错误信息是:
Permission denied: '/edx/var/log/supervisor/
supervisord无权登录/ edx / var / log / supervisor /目录。检查目录是否存在以及supervisord正在运行的用户是否可以写入。
答案 1 :(得分:0)
我解决了如下问题
首先,删除/etc/supervisor/conf.d
中的所有配置,然后使用命令sudo service supervisor restart
重新启动超级用户。
更新主管进程组之后1.将配置文件移至/etc/supervisor/conf.d/
目录,2.运行命令sudo supervisorctl reread
,它将检查语法并将进程添加到主管组。
其他方法是卸载并重新安装主管。