Hi Krzysztof,
I found something highly relevant to my issue:
http://lists.unbit.it/pipermail/uwsgi/2014-June/007389.html
So I followed Roberto's suggestion and removed my __pycache__ dir but
the issue is persisting.
What do you think? Should i attempt to patch pypy_setup.py ?
Etienne
Le 2018-02-08 à 17:21, Krzysztof Warzecha a écrit :
OK then. I have few more debugging tips, but no solution yet. Let's
see what nginx is sending to uwsgi. Please configure uwsgi with:
[uwsgi]
socket=127.0.0.1:8000
And please use strace (strace -p $PID -p $PID_2 ... -p $PID_N -vvfftt
-o /tmp/strace -s 5000) or tcpdump to confirm if nginx is or is not
sending the REQUEST_METHOD header.
For the record, this is how the code for populating wsgi environ looks like:
https://github.com/unbit/uwsgi/blob/2.0.15/plugins/pypy/pypy_setup.py#L451-L472
Could you confirm that it works if you replace socket=... with
http-socket=... in the uwsgi config and uwsgi_pass with proxy_pass
(with appropriate include ...) in the nginx conf?
If you configure your uwsgi with cpython instead of pypy, does it work
with similar configuration?
--
Etienne Robillard
tkad...@yandex.com
https://www.isotopesoftware.ca/
_______________________________________________
uWSGI mailing list
uWSGI@lists.unbit.it
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi