Gunicorn shuts down even when creating a new app

I found this question with a similar result: Timeout for Gunicorn workers no matter what . This solution doesn't work.

~~~

So when I run foreman start web

I get the following output:

17:53:46 web.1  | started with pid 31807
17:53:46 web.1  | [2015-06-26 17:53:46 -0400] [31807] [INFO] Starting gunicorn 19.3.0
17:53:46 web.1  | [2015-06-26 17:53:46 -0400] [31807] [INFO] Listening at: http://0.0.0.0:5000 (31807)
17:53:46 web.1  | [2015-06-26 17:53:46 -0400] [31807] [INFO] Using worker: sync
17:53:46 web.1  | [2015-06-26 17:53:46 -0400] [31810] [INFO] Booting worker with pid: 31810
17:54:26 web.1  | [2015-06-26 17:54:26 -0400] [31807] [CRITICAL] WORKER TIMEOUT (pid:31810)
17:54:26 web.1  | [2015-06-26 21:54:26 +0000] [31810] [INFO] Worker exiting (pid: 31810)
17:54:26 web.1  | [2015-06-26 17:54:26 -0400] [31821] [INFO] Booting worker with pid: 31821
17:54:57 web.1  | [2015-06-26 17:54:57 -0400] [31807] [CRITICAL] WORKER TIMEOUT (pid:31821)
17:54:57 web.1  | [2015-06-26 21:54:57 +0000] [31821] [INFO] Worker exiting (pid: 31821)
17:54:58 web.1  | [2015-06-26 17:54:58 -0400] [31831] [INFO] Booting worker with pid: 31831
17:55:29 web.1  | [2015-06-26 17:55:29 -0400] [31807] [CRITICAL] WORKER TIMEOUT (pid:31831)
...

      

etc.

Loading it in the browser just connects and disconnects.

Procfile: web: gunicorn gettingstarted.wsgi --log-file -

wsgi.py

:

import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "gettingstarted.settings")

from django.core.wsgi import get_wsgi_application
from whitenoise.django import DjangoWhiteNoise


application = get_wsgi_application()
application = DjangoWhiteNoise(application)

      

I'll update this question with more information as time goes on.

EDIT 4: Revert other changes, update question.

A few days later ... I created a completely new application with django-admin.py, new procfile, virtualenv, git, .txt requirements and updated virtualenv, but when I run the application it is still there .

What's going on with my computer?

EDIT 5: Anyone who pinpoints exactly what went wrong gets the bounty. I am using Mac OS X.

+3


source to share


1 answer


I fixed the problem, but it looks like it was with my internet connection as it was still disconnected. Now I am getting an internal server error. If you have a similar problem, you can check your internet.



0


source







All Articles