部署最后一步,supervisor启动报错
来源:12-16 Nginx+Gunicorn+Daphne部署Django Channels应用
鲨鱼辣椒辣
2021-04-25
(zanhu) [root@VM-8-2-centos nginx+gunicorn+daphne+supervisor]# systemctl start supervisord
Job for supervisord.service failed because the control process exited with error code. See "systemctl status supervisord.service" and "journalctl -xe" for details.
(zanhu) [root@VM-8-2-centos nginx+gunicorn+daphne+supervisor]# systemctl status supervisord.service
● supervisord.service - Process Monitoring and Control Daemon
Loaded: loaded (/usr/lib/systemd/system/supervisord.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2021-04-25 18:38:01 CST; 12s ago
Process: 29596 ExecStart=/usr/bin/supervisord -c /etc/supervisord.conf (code=exited, status=2)
Main PID: 1255 (code=exited, status=0/SUCCESS)
Apr 25 18:38:01 VM-8-2-centos systemd[1]: Starting Process Monitoring and Control Daemon...
Apr 25 18:38:01 VM-8-2-centos supervisord[29596]: Error: The directory named as part of the path /home/zanhu/pro...ni')
Apr 25 18:38:01 VM-8-2-centos supervisord[29596]: For help, use /usr/bin/supervisord -h
Apr 25 18:38:01 VM-8-2-centos systemd[1]: supervisord.service: control process exited, code=exited status=2
Apr 25 18:38:01 VM-8-2-centos systemd[1]: Failed to start Process Monitoring and Control Daemon.
Apr 25 18:38:01 VM-8-2-centos systemd[1]: Unit supervisord.service entered failed state.
Apr 25 18:38:01 VM-8-2-centos systemd[1]: supervisord.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
(zanhu) [root@VM-8-2-centos nginx+gunicorn+daphne+supervisor]# journalctl -xe
--
-- The result is failed.
Apr 25 18:37:18 VM-8-2-centos systemd[1]: Unit supervisord.service entered failed state.
Apr 25 18:37:18 VM-8-2-centos systemd[1]: supervisord.service failed.
Apr 25 18:37:18 VM-8-2-centos sudo[29396]: pam_unix(sudo:session): session closed for user root
Apr 25 18:37:18 VM-8-2-centos polkitd[568]: Unregistered Authentication Agent for unix-process:29398:44759548 (system b
Apr 25 18:38:01 VM-8-2-centos systemd[1]: Started Session 9344 of user root.
-- Subject: Unit session-9344.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-9344.scope has finished starting up.
--
-- The start-up result is done.
Apr 25 18:38:01 VM-8-2-centos CROND[29580]: (root) CMD (flock -xn /tmp/stargate.lock -c '/usr/local/qcloud/stargate/adm
Apr 25 18:38:01 VM-8-2-centos polkitd[568]: Registered Authentication Agent for unix-process:29590:44763831 (system bus
Apr 25 18:38:01 VM-8-2-centos systemd[1]: Starting Process Monitoring and Control Daemon...
-- Subject: Unit supervisord.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit supervisord.service has begun starting up.
Apr 25 18:38:01 VM-8-2-centos supervisord[29596]: Error: The directory named as part of the path /home/zanhu/project/za
Apr 25 18:38:01 VM-8-2-centos supervisord[29596]: For help, use /usr/bin/supervisord -h
Apr 25 18:38:01 VM-8-2-centos systemd[1]: supervisord.service: control process exited, code=exited status=2
Apr 25 18:38:01 VM-8-2-centos systemd[1]: Failed to start Process Monitoring and Control Daemon.
-- Subject: Unit supervisord.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit supervisord.service has failed.
--
-- The result is failed.
Apr 25 18:38:01 VM-8-2-centos systemd[1]: Unit supervisord.service entered failed state.
Apr 25 18:38:01 VM-8-2-centos systemd[1]: supervisord.service failed.
Apr 25 18:38:01 VM-8-2-centos polkitd[568]: Unregistered Authentication Agent for unix-process:29590:44763831 (system b
最后一步出问题了,救救孩子把!
写回答
2回答
-
supervisord要使用系统上的Python2启动,在终端
python -V
看返回的是系统上的python2版本不?
然后,ini文件粘出来看一下
032021-04-27 -
鲨鱼辣椒辣
提问者
2021-04-25
百度了没解决,我是在腾讯云买的服务器
00
相似问题