It seems like trying to modify the pythonpath, either directly through
sys.path or indirectly through site.addsitedir causes uWSGI to simply
hang. This causes nginx to time out. When I remove the addsitedir() or
sys.path.append() calls everything works as expected.
Any reason why this would be the case? It is a Flask site, but I don't
think this should have any bearing on the issue.
nginx:
...
location @app {
uwsgi_pass unix:///var/tmp/uwsgi.sock;
include uwsgi_params;
uwsgi_param UWSGI_SCRIPT application:app;
uwsgi_param UWSGI_CHDIR /mnt/repo/samplesite;
uwsgi_param UWSGI_PYTHONPATH /mnt/repo/mycoffeebiz/samplesite; #Redundant?
}
application.py, first 2 lines:
import site
site.addsitedir('./thirdparty')
If I comment these out things move right along.
James Long (Trey)
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi