I am not very experienced with nginx or Apache, but I'm running Django 1.3 with Python 2.7 and every request to a Django powered page results in a 504 error. I provided some logs which I need help deciphering and some direction towards a solution...

2011/06/12 16:54:17 [info] 727#0: *8279348 client closed prematurely connection, so upstream connection is closed too while sending request to upstream, client: 173.21.197.55, server: coupio.us, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:10236/", host: "coupio.us"
2011/06/12 16:54:17 [info] 728#0: *8279415 client closed prematurely connection, so upstream connection is closed too while sending request to upstream, client: 173.21.197.55, server: coupio.us, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:10236/", host: "www.coupio.us", referrer: "http://www.google.com/url?sa=t&source=web&cd=1&ved=0CBYQFjAA&url=http%3A%2F%2Fwww.coupio.us%2F&rct=j&q=coupio%20us&ei=djX1TcfcIOLk0QGLsM3sDA&usg=AFQjCNF3FiicZK8FcS7hx8NtoaArqtRsAw&sig2=zsxgq4ugfgZXRGWtOZnCng"
2011/06/12 17:16:13 [error] 21751#0: *8286532 connect() failed (111: Connection refused) while connecting to upstream, client: 71.187.211.153, server: coupio.us, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:10236/", host: "coupio.us"
2011/06/12 17:16:13 [error] 21751#0: *8286534 connect() failed (111: Connection refused) while connecting to upstream, client: 71.187.211.153, server: coupio.us, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:10236/favicon.ico", host: "coupio.us", referrer: "http://coupio.us/"
2011/06/12 17:22:40 [error] 21751#0: *8286750 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 71.187.211.153, server: coupio.us, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:10236/", host: "coupio.us"

I've disabled all external APIs in use other than the Django calls that may cause a timeout. I enabled debug logging and in my ~/logs/users/error_**.log I keep on getting

[Mon Jun 13 09:55:49 2011] [error] server reached MaxClients setting, consider raising the MaxClients setting

despite my site gets (nearly) no traffic yet. I've changed it from 1 to 5 to 256, restarted apache every time, yet keep on getting this error. Any more thoughts?

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.