我遇到了启动我的gunicorn服务器的问题,但是在重新加载守护进程并启用我的更新的gunicorn系统之后,似乎无法启动服务器。我检查了两次或三遍,以确保所有内容正确无误,因此所有内容均正确无误。启动后,第一条错误消息指出Job for gunicorn-superlists-staging.bdienterprises.com.service failed because of unavailable resources or another system error.
,请检查以下systemctl status 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.
~
这里的任何人都熟悉这个问题吗?您的帮助将不胜感激!
谢谢!
答案 0 :(得分:0)
此问题可能是由于《使用Python进行测试驱动的开发》(obeythetestinggoat.com)一书含糊。
该错误很可能是因为您的服务器上尚未安装必需的软件包,甚至Gunicorn本身(例如,如果您在部署和安装所需的软件包之前按照该书附录中有关使用Ansible进行配置的说明进行操作, )。要解决此问题,请从requirements.txt重新安装软件包,或者,如果已经创建了fab文件,请重新运行Fabric脚本。