我在启动我的gunicorn服务器时遇到了这个问题,但在我重新加载守护进程并启用更新的gunickorn系统后,似乎无法启动服务器。我检查了两三次,以确保一切都正确,所以一切都正确。在我启动它之后,第一条错误消息说Job for gunicorn-superlists-staging.bdienterprises.com.service failed because of unavailable resources or another system error.
请在我检查下面的系统ctl状态gunicorn mydomain后查看错误:
Loaded: loaded (/etc/systemd/system/gunicorn-superlists-staging.bdienterprises.com.service; enabled; vendor preset: enabl
Active: failed (Result: resources) since Sat 2020-05-09 15:37:12 UTC; 9min ago
May 09 15:37:12 avidfisherman systemd[1]: gunicorn-superlists-staging.bdienterprises.com.service: Service hold-off time over
May 09 15:37:12 avidfisherman systemd[1]: gunicorn-superlists-staging.bdienterprises.com.service: Scheduled restart job, res
May 09 15:37:12 avidfisherman systemd[1]: Stopped Gunicorn server for superlists-staging.bdienterprises.com.
May 09 15:37:12 avidfisherman systemd[1]: gunicorn-superlists-staging.bdienterprises.com.service: Start request repeated too
May 09 15:37:12 avidfisherman systemd[1]: gunicorn-superlists-staging.bdienterprises.com.service: Failed with result 'resour
May 09 15:37:12 avidfisherman systemd[1]: Failed to start Gunicorn server for superlists-staging.bdienterprises.com.
~
这里有人熟悉这个问题吗?非常感谢您的帮助!
谢谢!
这个问题可能是由《Python测试驱动开发》一书(obeythetestinggoat.com(中的歧义引起的
该错误可能是因为所需的软件包,甚至Gunicorn本身,尚未安装在您的服务器上(例如,如果您在部署和安装所需的程序包之前按照该书附录中关于使用Ansible进行资源调配的说明进行操作(。要解决此问题,请从requirements.txt重新安装软件包,或者,如果您已经创建了fab文件,请重新运行Fabric脚本。