I am trying to read everything that I can find on this issue (and learned a lot at the same time). The closest link I could find is here and here . My problem is almost identical, except that I run uwsgi exclusively in emperor mode. When I start the uswsgi service WITHOUT starting in emperor mode, my django site works just fine. No matter how I change the configuration, I always get an error in the /tmp/uwsgi.log file: "--- python application not found, check startup logs for errors ---" I have listed my configuration and error log below
OS Version: Linux raspberrypi 3.6.11+ # 538 armv6l GNU / Linux
Django Version: 1.6.5
Uwsgi version: 2.0.5.1
Virtual Environment: / var / www / testbed / env
Project Location: / var / www / testbed / project / auth
project tree:
./auth/ |-- __init__.py |-- __init__.pyc |-- requirements.txt |-- settings.py |-- settings.pyc |-- urls.py |-- urls.pyc |-- wsgi.py `-- wsgi.pyc
wsgi.py file:
""" WSGI config for auth project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/ """ import os, sys, site sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../../"))) sys.path.insert(1, os.path.abspath(os.path.join(os.path.dirname(__file__), "../"))) sys.path.append('/usr/lib/python2.7') sys.path.append('/usr/lib/python2.7/dist-packages') os.environ.setdefault("DJANGO_SETTINGS_MODULE", "auth.settings") from django.core.wsgi import get_wsgi_application application = get_wsgi_application()
file / etc / uwsgi / emperor.ini:
[uwsgi] master = true emperor = /etc/uwsgi/vassals logto = /tmp/uwsgi.log
file / etc / uwsgi / Suppals / auth.ini:
[uwsgi]
The following command is executed:
/var/www/testbed/env/bin/uwsgi --ini /etc/uwsgi/emperor.ini --emperor /etc/uwsgi/vassals/ --http :8000 --plugin python --binary-pathusr/local/bin/uwsgi
Error file /tmp/uwsgi.log:
*** Starting uWSGI 2.0.5.1 (32bit) on [Tue Jun 10 19:06:12 2014] *** compiled with version: 4.6.3 on 10 June 2014 01:41:52 os: Linux-3.6.11+
At that moment, I grab onto a straw. From all the reading I made, I don’t understand why this is rendering the "Internal Server Error". I might have thought that for some reason I finally yielded to my pride by placing my sorrows here. Since I got this far, I really think I missed something very small. Any help would be greatly appreciated.