我有一個django應用程序,並嘗試將它設置爲gunicorn首先後來與主管和nginx。gunicorn.errors.HaltServer:<HaltServer'Worker無法啓動。' 3> django
該應用程序與普通的Django命令運行完全一樣python manage.py runserver
我使用PIP像pip install gunicorn
和django的版本被安裝在gunicorn 1.5.3
當我運行下面的命令的虛擬的env內部像下面
gunicorn hello.wsgi:application -b xx.xxx.xxx.xx:8000
以及所面臨的誤差
Traceback (most recent call last):
File "/root/Envs/proj/bin/gunicorn", line 9, in <module>
load_entry_point('gunicorn==19.0.0', 'console_scripts', 'gunicorn')()
File "/root/Envs/proj/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 74, in run
WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
File "/root/Envs/proj/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 166, in run
super(Application, self).run()
File "/root/Envs/proj/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 71, in run
Arbiter(self).run()
File "/root/Envs/proj/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 169, in run
self.manage_workers()
File "/root/Envs/proj/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 477, in manage_workers
self.spawn_workers()
File "/root/Envs/proj/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 537, in spawn_workers
time.sleep(0.1 * random.random())
File "/root/Envs/proj/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 209, in handle_chld
self.reap_workers()
File "/root/Envs/proj/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 459, in reap_workers
raise HaltServer(reason, self.WORKER_BOOT_ERROR)
gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
那麼,爲什麼實際上遇到了上述錯誤,並解決了什麼問題?
我有一個類似的問題,我通過運行'gunicorn --log-file = -'有了一個更好的想法,這會直接在控制檯輸出日誌。 http://stackoverflow.com/a/25689349/1092815 – GabLeRoux