我使用gunicorn來部署我的python web應用程序。gunicorn on linode not launching
當我使用這個命令gunicorn_django -c gunicorn.conf.py啓動它,我得到這個錯誤:
[email protected]:/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完美地工作。 有人可以給我一個關於發生了什麼的提示嗎?
謝謝你的時間和善良的關注。
Jenia Ivlev型