login community faq

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

metafice's gravatar image

metafice
11


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

johns's gravatar image

johns ♦♦
345427

Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited