Something in one of my custom django apps seems to be dying when I'm making requests from a custom Android app I'm developing, and I'm having a hard time pinpointing/debugging the problem.
At any rate - whatever is happening - apache seems to die and I get the upstream 502 Nginx gateway error. I am having a difficult time pinpointing and isolating this to a specific request or condition in either the client app or the django app.
For instance, in the wsgi logs I see a lot of "Exception KeyError" messages but those seem to be occurring on a SIGTERM and may just be noise.
Any suggestions for debugging this, such as, what to look for in which log files, etc.
asked Nov 03 '10 at 15:51
I would enable 'LogLevel debug' in your httpd.conf file. Than tail the logs in real-time to see what errors are happening on that request. You can tail the logs by running,
tail -f ~/logs/user/*
answered Nov 03 '10 at 16:42