Django Gunicorn workers won't load
I have a Django app that I am trying to set up on a Ubunutu VPS with Gunicorn and I am facing a startup error gunicorn project:application -b myip:8000
. Here's the result:
Traceback (most recent call last):
File "/home/user/project/env/bin/gunicorn", line 11, in <module>
sys.exit(run())
File "/home/user/project/env/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 74, in run
WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
File "/home/user/project/env/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 185, in run
super(Application, self).run()
File "/home/user/project/env/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 71, in run
Arbiter(self).run()
File "/home/user/project/env/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 169, in run
self.manage_workers()
File "/home/user/project/env/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 477, in manage_workers
self.spawn_workers()
File "/home/user/project/env/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 542, in spawn_workers
time.sleep(0.1 * random.random())
File "/home/user/project/env/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 209, in handle_chld
self.reap_workers()
File "/home/user/project/env/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>
I have installed Gunicorn with pip install gunicorn
a virtual environment. wsgi.py is present and includes the WSGI application, "application". I can't figure out what the problem is. Any help would be greatly appreciated.
+3
source to share