WebFaction
Community site: login 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 03 Nov '10, 15:51

metafice
111
accept rate: 0%


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/*

permanent link

answered 03 Nov '10, 16:42

johns ♦♦
5.3k212
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×905
×186

question asked: 03 Nov '10, 15:51

question was seen: 5,150 times

last updated: 03 Nov '10, 16:42

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM