gpt4 book ai didi

python - linode 上的 gunicorn 无法启动

转载 作者:太空宇宙 更新时间:2023-11-04 06:34:44 29 4
gpt4 key购买 nike

我正在使用 gunicorn 部署我的 python 网络应用程序。

当我使用此命令 gunicorn_django -c gunicorn.conf.py 启动它时,出现此错误:

root@localhost:/var/www/map01# gunicorn_django -c gunicorn.conf.py
2012-10-14 20:11:32 [4594] [INFO] Starting gunicorn 0.14.6
2012-10-14 20:11:32 [4594] [INFO] Listening at: http://127.0.0.1:8888 (4594)
2012-10-14 20:11:32 [4594] [INFO] Using worker: sync
2012-10-14 20:11:32 [4597] [INFO] Booting worker with pid: 4597
2012-10-14 20:11:32 [4598] [INFO] Booting worker with pid: 4598
2012-10-14 20:11:32 [4599] [INFO] Booting worker with pid: 4599
2012-10-14 15:11:32 [4597] [INFO] Worker exiting (pid: 4597)
2012-10-14 15:11:32 [4598] [INFO] Worker exiting (pid: 4598)
2012-10-14 15:11:32 [4599] [INFO] Worker exiting (pid: 4599)
Traceback (most recent call last):
File "/usr/local/bin/gunicorn_django", line 9, in <module>
load_entry_point('gunicorn==0.14.6', 'console_scripts', 'gunicorn_django')()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/djangoapp.py", line 132, in run
DjangoApplication("%prog [OPTIONS] [SETTINGS_PATH]").run()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 124, in run
Arbiter(self).run()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 185, in run
self.halt(reason=inst.reason, exit_status=inst.exit_status)
File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 280, in halt
self.stop()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 328, in stop
self.reap_workers()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 419, in reap_workers
raise HaltServer(reason, self.WORKER_BOOT_ERROR)
gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>

这是 gunicorn.conf.py 文件:

bind = u"127.0.0.1:8888"
logfile = u"/var/www/map00/gunicorn.log"
workers = 3

在我的个人电脑上,gunicorn 运行完美。有人可以给我一些提示吗?

感谢您的宝贵时间和关心。

珍妮亚·伊夫列夫

最佳答案

检查运行 gunicorn_django 的用户是否对您的日志文件具有写入权限

关于python - linode 上的 gunicorn 无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12886139/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com