Timeout für Skript vor der Rückkehr Header: wsgi.py auf elastic beanstalk

Ich versuche zum bereitstellen einer Django-Anwendung zu Elastic Beanstalk. Wenn ich Besuch die Seite nie lädt. Die Protokolle sagen:

Script timed out before returning headers: wsgi.py

Kann ich ssh in den server, und führen Sie manage.py runserver und dann curl 127.0.0.1:8000 von einem anderen terminal, wird wieder die Seite erfolgreich. Also ich nehme an es muss ein Problem mit der Apache-Konfiguration, die eingerichtet ist, als Teil der Elastic Beanstalk.

Ist hier eher die logs:

[pid 15880] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[so:warn] [pid 15880] AH01574: module wsgi_module is already loaded, skipping
[auth_digest:notice] [pid 15880] AH01757: generating secret for digest authentication ...
[lbmethod_heartbeat:notice] [pid 15880] AH02282: No slotmem from mod_heartmonitor
[mpm_prefork:notice] [pid 15880] AH00163: Apache/2.4.9 (Amazon) mod_wsgi/3.4 Python/2.7.5       configured -- resuming normal operations
[core:notice] [pid 15880] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[:error] [pid 15881] /opt/python/run/venv/lib/python2.7/site-packages/numpy/oldnumeric/__init__.py:11: ModuleDeprecationWarning: The oldnumeric module will be dropped in Numpy 1.9
[:error] [pid 15881]   warnings.warn(_msg, ModuleDeprecationWarning)
[:error] [pid 15881] 
[core:error] [pid 15884] [client 10.248.110.45:58996] Script timed out before returning headers: wsgi.py

Und meine wsgi.py Datei:

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

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

Irgendwelche Hinweise darauf, was könnte die Ursache sein?

UPDATE:

Ich baute meine Umgebung und lief in dieses Problem wieder. Ich aktualisiert /etc/httpd/conf.d/wsgi.conf zu gehören WSGIApplicationGroup %{GLOBAL} wie hier erwähnt. Ich bin mit Scipy, Numpy und GeoDjango (mit GDAL). Ich weiß, GDAL ist nicht vollständig thread-sicher, und ich bin mir nicht sicher über die anderen, aber ich nehme an, es war ein thread Frage der Sicherheit.

InformationsquelleAutor der Frage Meistro | 2014-08-24

Schreibe einen Kommentar