Error when starting gunicorn:
# gunicorn -b :9008 -w 2 webserver:app 2013-12-10 09:12:58 [29701] [INFO] Starting gunicorn 0.14.3 2013-12-10 09:12:58 [29701] [INFO] Listening at: http://0.0.0.0:9008 (29701) 2013-12-10 09:12:58 [29701] [INFO] Using worker: sync 2013-12-10 09:12:58 [29704] [INFO] Booting worker with pid: 29704 2013-12-10 09:12:58 [29705] [INFO] Booting worker with pid: 29705 2013-12-10 09:12:58 [29704] [INFO] Worker exiting (pid: 29704) 2013-12-10 09:12:58 [29705] [INFO] Worker exiting (pid: 29705) Traceback (most recent call last): File "/root/.virtualenvs/py268/bin/gunicorn", line 8, in <module> load_entry_point('gunicorn==0.14.3', 'console_scripts', 'gunicorn')() File "/root/.virtualenvs/py268/lib/python2.6/site-packages/gunicorn/app/wsgiapp.py", line 32, in run WSGIApplication("%prog [OPTIONS] APP_MODULE").run() File "/root/.virtualenvs/py268/lib/python2.6/site-packages/gunicorn/app/base.py", line 129, in run Arbiter(self).run() File "/root/.virtualenvs/py268/lib/python2.6/site-packages/gunicorn/arbiter.py", line 184, in run self.halt(reason=inst.reason, exit_status=inst.exit_status) File "/root/.virtualenvs/py268/lib/python2.6/site-packages/gunicorn/arbiter.py", line 279, in halt self.stop() File "/root/.virtualenvs/py268/lib/python2.6/site-packages/gunicorn/arbiter.py", line 327, in stop self.reap_workers() File "/root/.virtualenvs/py268/lib/python2.6/site-packages/gunicorn/arbiter.py", line 413, in reap_workers raise HaltServer(reason, self.WORKER_BOOT_ERROR) gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
Solution:
Use the debug mode to view more information — log level = debug :
gunicorn -b :9008 -w 2 webserver:app --log-level=debug
Import error found
Add Python path and import resource directory Add__init__. Py make it a package
export PYTHONPATH=/home/..
>>
>>
>>
>>
Similar Posts:
- [Solved] SQLAlchemy Error: ImportError: cannot import name ‘TYPE_CHECKING’
- How to Solve Airflow Install Error: OSError: [Errno 2] No such file or directory
- Python: Centos + gunicorn+flask ImportError: No module named request
- selenium.common.exceptions.StaleElementReferenceException: Message: stale element reference: element is not attached to the page document
- PIP install troubleshooting under Windows [How to Solve]
- [Solved] peewee error: ImportError: No module named ‘MySQLdb’;pymysql error: from . import connections # noqa: E402
- [Solved] “import numpy as np” ImportError: No module named numpy
- ERRORS: ?: (staticfiles.E002) The STATICFILES_DIRS setting should not contain the STATIC_ROOT set…
- An error occurs when using PIP install XX command
- Django: How to Solve Using Pymysql Error