[Fixed]-Django+Nginx+uWSGI = 504 Gateway Time-out

24👍

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).

👤freb

-1👍

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

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

Leave a comment