Skip to content Skip to sidebar Skip to footer

Django+nginx+uwsgi = 504 Gateway Time-out

I am running Ubuntu 10.04, Django 1.3, Nginx 0.8.54 and uWSGI 0.9.7. Both Nginx and uWSGI load without error. However, when you access my site, it sits for a LONG time and then eve

Solution 1:

That error is produced when requests exceed the NGINX uwsgi_read_timeout setting. After NGINX exceeds this limit it closes the socket and then uWSGI tries to write to the closed socket, producing the error that you see from uWSIG.

Make sure your NGINX timeouts are at least as high as uWSGI timeouts (HARAKIRI_TIMEOUT).

Solution 2:

unix:///home/mysite/public/myapp.sock; syntax not correct, use like this:

unix:/home/mysite/public/myapp.sock;

Post a Comment for "Django+nginx+uwsgi = 504 Gateway Time-out"