Skip to content

Instantly share code, notes, and snippets.

@peterfarrell
Created September 4, 2013 19:30
Show Gist options
  • Save peterfarrell/6441706 to your computer and use it in GitHub Desktop.
Save peterfarrell/6441706 to your computer and use it in GitHub Desktop.
Heroku Gunicorn crash
2013-09-04T19:29:09.172901+00:00 heroku[web.1]: Starting process with command `gunicorn verde.wsgi -b 0.0.0.0:55192 --pythonpath verde --log-level debug`
2013-09-04T19:29:11.222968+00:00 app[web.1]: 2013-09-04 19:29:11 [2] [INFO] Starting gunicorn 18.0
2013-09-04T19:29:11.225791+00:00 app[web.1]: 2013-09-04 19:29:11 [2] [DEBUG] Arbiter booted
2013-09-04T19:29:11.225924+00:00 app[web.1]: 2013-09-04 19:29:11 [2] [INFO] Listening at: http://0.0.0.0:55192 (2)
2013-09-04T19:29:11.226056+00:00 app[web.1]: 2013-09-04 19:29:11 [2] [INFO] Using worker: sync
2013-09-04T19:29:11.245827+00:00 app[web.1]: 2013-09-04 19:29:11 [7] [INFO] Booting worker with pid: 7
2013-09-04T19:29:11.339348+00:00 heroku[web.1]: State changed from starting to up
2013-09-04T19:29:11.434050+00:00 app[web.1]: 2013-09-04 19:29:11 [7] [ERROR] Exception in worker process:
2013-09-04T19:29:11.434050+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2013-09-04T19:29:11.434050+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/arbiter.py", line 495, in spawn_worker
2013-09-04T19:29:11.434050+00:00 app[web.1]: Traceback (most recent call last):
2013-09-04T19:29:11.434273+00:00 app[web.1]: if settings.DEBUG:
2013-09-04T19:29:11.434050+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/workers/base.py", line 106, in init_process
2013-09-04T19:29:11.434438+00:00 app[web.1]: Traceback (most recent call last):
2013-09-04T19:29:11.434050+00:00 app[web.1]: worker.init_process()
2013-09-04T19:29:11.434438+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/app/base.py", line 114, in wsgi
2013-09-04T19:29:11.434050+00:00 app[web.1]: self.callable = self.load()
2013-09-04T19:29:11.434273+00:00 app[web.1]: __import__(module)
2013-09-04T19:29:11.434050+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 62, in load
2013-09-04T19:29:11.434273+00:00 app[web.1]: return util.import_app(self.app_uri)
2013-09-04T19:29:11.434273+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 49, in load_wsgiapp
2013-09-04T19:29:11.434050+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/app/base.py", line 114, in wsgi
2013-09-04T19:29:11.434273+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/util.py", line 354, in import_app
2013-09-04T19:29:11.434050+00:00 app[web.1]: return self.load_wsgiapp()
2013-09-04T19:29:11.434273+00:00 app[web.1]: self._setup(name)
2013-09-04T19:29:11.434273+00:00 app[web.1]: File "/app/verde/verde/__init__.py", line 17, in <module>
2013-09-04T19:29:11.434273+00:00 app[web.1]: post_migrate.connect(update_permissions_after_migration)
2013-09-04T19:29:11.434273+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 75, in connect
2013-09-04T19:29:11.434273+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/django/conf/__init__.py", line 53, in __getattr__
2013-09-04T19:29:11.434438+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/django/conf/__init__.py", line 46, in _setup
2013-09-04T19:29:11.435457+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 49, in load_wsgiapp
2013-09-04T19:29:11.434438+00:00 app[web.1]: % (desc, ENVIRONMENT_VARIABLE))
2013-09-04T19:29:11.434438+00:00 app[web.1]: ImproperlyConfigured: Requested setting DEBUG, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
2013-09-04T19:29:11.434438+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2013-09-04T19:29:11.434438+00:00 app[web.1]: worker.init_process()
2013-09-04T19:29:11.434438+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/arbiter.py", line 495, in spawn_worker
2013-09-04T19:29:11.434438+00:00 app[web.1]: self.callable = self.load()
2013-09-04T19:29:11.434438+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/workers/base.py", line 106, in init_process
2013-09-04T19:29:11.435457+00:00 app[web.1]: return util.import_app(self.app_uri)
2013-09-04T19:29:11.435457+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 62, in load
2013-09-04T19:29:11.435457+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/util.py", line 354, in import_app
2013-09-04T19:29:11.435457+00:00 app[web.1]: post_migrate.connect(update_permissions_after_migration)
2013-09-04T19:29:11.435457+00:00 app[web.1]: File "/app/verde/verde/__init__.py", line 17, in <module>
2013-09-04T19:29:11.435457+00:00 app[web.1]: return self.load_wsgiapp()
2013-09-04T19:29:11.435457+00:00 app[web.1]: __import__(module)
2013-09-04T19:29:11.435457+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 75, in connect
2013-09-04T19:29:11.435622+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/django/conf/__init__.py", line 53, in __getattr__
2013-09-04T19:29:11.435622+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/django/conf/__init__.py", line 46, in _setup
2013-09-04T19:29:11.435457+00:00 app[web.1]: if settings.DEBUG:
2013-09-04T19:29:11.435622+00:00 app[web.1]: ImproperlyConfigured: Requested setting DEBUG, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
2013-09-04T19:29:11.435622+00:00 app[web.1]: self._setup(name)
2013-09-04T19:29:11.475888+00:00 app[web.1]: 2013-09-04 19:29:11 [7] [INFO] Worker exiting (pid: 7)
2013-09-04T19:29:11.435622+00:00 app[web.1]: % (desc, ENVIRONMENT_VARIABLE))
2013-09-04T19:29:11.833599+00:00 app[web.1]: 2013-09-04 19:29:11 [2] [INFO] Shutting down: Master
2013-09-04T19:29:11.834559+00:00 app[web.1]: 2013-09-04 19:29:11 [2] [INFO] Reason: Worker failed to boot.
2013-09-04T19:29:13.420802+00:00 heroku[web.1]: State changed from up to crashed
2013-09-04T19:29:13.411281+00:00 heroku[web.1]: Process exited with status 3
@wavrin
Copy link

wavrin commented Sep 4, 2013

hmm... I haven't run into this. And I'm not sure if this helps. is your settings file located at /verde/settings.py ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment