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...
asked 12 Jun '11, 17:44 michaelgrosner |
The 504 error means that your app is taking too long to return a response to the front-end web server. That's the "upstream timed out" message you see in your You should look in your Apache's error log for some errors that might point to problems in your app that could cause it to time out. Your Apache error log is located in A somewhat-common cause of timeout errors is calls to external APIs (like Facebook and Twitter) so if your app is doing that and hanging, then there's a good place to start looking for problems. answered 12 Jun '11, 19:37 seanf I've disabled all external APIs in use other than the Django calls. 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?
(13 Jun '11, 09:58)
michaelgrosner
Despite the log type saying "error", this isn't really an error. It's more of a warning. Most of our Apache-based apps use the worker MPM. With this type of server, you have to raise
(13 Jun '11, 10:17)
David L ♦♦
Still spitting back these errors. Should I provide more information?
(13 Jun '11, 13:25)
michaelgrosner
Can you provide a URL where we can reproduce the issue? Thanks!
(13 Jun '11, 22:47)
ryans ♦♦
|