на моем сервере opensx я перезагружаю свой сервер Ubuntu. После перезагрузки мой сервер выключается.Я так понимаю из журналов supervisord не работает.Я думаю, что сбой связан с этим.Теперь я не могу начать это.Когда я хочу запустить его, этот журнал возвращает:
Job for supervisor.service failed because the control process exited with error code. See "systemctl status supervisor.service" and "journalctl -xe" for details.
, когда я пробую 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 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'.
Я пробую десятки способов в интернете, но естьбесполезно, я не могу справиться, пожалуйста, помогите мне.