【问题标题】:Gunicorn - starting server issue?Gunicorn - 启动服务器问题?
【发布时间】:2020-08-25 04:08:53
【问题描述】:

我在启动我的 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.
~

这里有人熟悉这个问题吗?您的帮助将不胜感激!

谢谢!

【问题讨论】:

  • 请复制粘贴错误的文本,而不是链接图像。人们通过文本搜索使用这个网站。这就是他们找到问题解决方案的方式(他们使用谷歌搜索错误消息或直接在 stackoverflow 搜索栏中输入错误消息)。使用图片会阻止未来的用户找到此帖子以及解决他们问题的潜在解决方案。
  • 感谢您的反馈 - 我将根据您的建议进行编辑。
  • @JohnSmithOptional 这看起来更好吗?如果您熟悉这个问题,请告诉我,我被困了一段时间。
  • 是的,现在看起来不错。我从来没有遇到过这个问题。
  • 很高兴听到您解决了这个问题。如果您有时间,也许您可​​以在这里写下您的解决方案作为回复(您可以接受自己的回复)。谁知道也许它会让未来的访客感到头疼。

标签: python django ubuntu nginx gunicorn


【解决方案1】:

此问题可能是由于《使用 Python 进行测试驱动开发》 (obeythetestinggoat.com) 一书中的含糊之处所致。

该错误可能是因为尚未在您的服务器上安装所需的软件包,甚至 Gunicorn 本身(例如,如果您在部署和安装所需的软件包之前按照该书附录中关于使用 Ansible 进行配置的说明进行操作)。要解决此问题,请从您的 requirements.txt 重新安装软件包,或者,如果您已经创建了一个 fab 文件,请重新运行您的 Fabric 脚本。

【讨论】:

    猜你喜欢
    • 2017-06-14
    • 2018-12-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多