在我的openx服务器上,我重新启动了ubuntu服务器。 我从主管监督的日志中了解到不起作用。我认为唐宁与之有关。现在我无法启动它。当我想启动它时,此日志返回:
Job for supervisor.service failed because the control process exited with error code. See "systemctl status supervisor.service" and "journalctl -xe" for details.
当我尝试使用systemctl statussupervisor.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 Sat 2018-12-15 11:44:40 UTC; 10s ago
Docs: http://supervisord.org
Process: 31345 ExecStart=/edx/app/supervisor/venvs/supervisor/bin/supervisord --configuration /edx/app/supervisor/supervisord.conf (code=exited, status=1/FAILURE)
Dec 15 11:44:40 ip-172-31-14-220 supervisord[31345]: handlers.append(RotatingFileHandler(filename,'a',maxbytes,backups))
Dec 15 11:44:40 ip-172-31-14-220 supervisord[31345]: File "/edx/app/supervisor/venvs/supervisor/local/lib/python2.7/site-packages/supervisor/loggers.py", line 172, in
Dec 15 11:44:40 ip-172-31-14-220 supervisord[31345]: FileHandler.__init__(self, filename, mode)
Dec 15 11:44:40 ip-172-31-14-220 supervisord[31345]: File "/edx/app/supervisor/venvs/supervisor/local/lib/python2.7/site-packages/supervisor/loggers.py", line 98, in
Dec 15 11:44:40 ip-172-31-14-220 supervisord[31345]: self.stream = open(filename, mode)
Dec 15 11:44:40 ip-172-31-14-220 supervisord[31345]: IOError: [Errno 13] Permission denied: '/edx/var/log/supervisor/supervisord.log'
Dec 15 11:44:40 ip-172-31-14-220 systemd[1]: supervisor.service: Control process exited, code=exited status=1
Dec 15 11:44:40 ip-172-31-14-220 systemd[1]: Failed to start supervisord - Supervisor process control system.
Dec 15 11:44:40 ip-172-31-14-220 systemd[1]: supervisor.service: Unit entered failed state.
Dec 15 11:44:40 ip-172-31-14-220 systemd[1]: supervisor.service: Failed with result 'exit-code'.
...skipping...
● supervisor.service - supervisord - Supervisor process control system
● supervisor.service - supervisord - Supervisor process control system
Loaded: loaded (/etc/systemd/system/supervisor.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2018-12-15 11:44:40 UTC; 10s ago
Docs: http://supervisord.org
Process: 31345 ExecStart=/edx/app/supervisor/venvs/supervisor/bin/supervisord --configuration /edx/app/supervisor/supervisord.conf (code=exited, status=1/FAILURE)
Dec 15 11:44:40 ip-172-31-14-220 supervisord[31345]: handlers.append(RotatingFileHandler(filename,'a',maxbytes,backups))
Dec 15 11:44:40 ip-172-31-14-220 supervisord[31345]: File "/edx/app/supervisor/venvs/supervisor/local/lib/python2.7/site-packages/supervisor/loggers.py", line 172, in
Dec 15 11:44:40 ip-172-31-14-220 supervisord[31345]: FileHandler.__init__(self, filename, mode)
Dec 15 11:44:40 ip-172-31-14-220 supervisord[31345]: File "/edx/app/supervisor/venvs/supervisor/local/lib/python2.7/site-packages/supervisor/loggers.py", line 98, in
Dec 15 11:44:40 ip-172-31-14-220 supervisord[31345]: self.stream = open(filename, mode)
Dec 15 11:44:40 ip-172-31-14-220 supervisord[31345]: IOError: [Errno 13] Permission denied: '/edx/var/log/supervisor/supervisord.log'
Dec 15 11:44:40 ip-172-31-14-220 systemd[1]: supervisor.service: Control process exited, code=exited status=1
Dec 15 11:44:40 ip-172-31-14-220 systemd[1]: Failed to start supervisord - Supervisor process control system.
Dec 15 11:44:40 ip-172-31-14-220 systemd[1]: supervisor.service: Unit entered failed state.
Dec 15 11:44:40 ip-172-31-14-220 systemd[1]: supervisor.service: Failed with result 'exit-code'.
我尝试了Internet上的许多方法,但没有用,我无法处理,请帮助我。
答案 0 :(得分:0)
我已经解决了这个问题。因此问题与文件夹所有权有关。因此openx使用一些用户来完成一些工作,如编译资产。然后,它将edxapp用户或其他用户用于其他工作。我对所有文件夹都给予了正确的许可。如果您在Openedx上遇到此错误。首先查看您的文件夹所有权和组。主要是/ edx / var / log文件夹(即使您需要正确的chmod opensx用户也可以在其中写入日志)