Hello
I am using nginx/0.8.54 + uwsgi/0.9.6.6 + python/3.1
(SQLAlchemy/Postgres) to power my backend and once in a while i
encounter some issue (usually infrastructure related) which presents
itself as a uWSGI 502/nginx 500 error with very little info available
even in debug mode -

pkolla:88 [pid: 32734|app: 0|req: 14/15] 192.168.1.160 (test) {66 vars
in 1150 bytes} [Wed Apr  6 13:07:55 2011] POST
/query/ListPersonsByLastnameLike?nocache=1302080877506 => generated 0
bytes in 1 msecs (HTTP/1.1 500) 0 headers in 0 bytes (0 async switches
on async core 0)

How can I increase verbosity of these message to the level where i can
figure out root of the problem easily?
Current approach is relatively cumbersome and includes remote
debugging sessions, aggressive application level logging, netcat and
tshark...


In this particular case, for the latest issue, I got to the point when
my application layer console functions correctly, while same command
delivered via web (nginx+uwsgi) does not:
http://dpaste.com/hold/529208/

For comparison sake -  this is output from same app server, but
different query which works as expected:
http://dpaste.com/hold/529209/

this is how uWSGI is being launched -
/usr/bin/uwsgi-3.1 -s  --pidfile /var/run/uwsgi/devenv.pid -d
/var/log/uwsgi/devenv.log --no-site --vhost --no-default-app
--no-orphans --pp /usr/lib/python3.1/site-packages -t 20
--limit-as=128 -M p 1

(if it is not possible to get more output from uWSGI i'll be happy to
provide more details to deal with this particular issues)
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to