504 timeout

Larry Martell larry.martell at gmail.com
Tue May 12 15:33:50 UTC 2020


I have a django app using nginx and uwsgi. There can be cases when a
request from a user does not come back from the db for 15-20 minutes.
This is expected as it's calling a stored proc that does a lot and
this is an internal app. Issue is that after some amount of time I get
a 504 timeout error - but it's not always the same time - sometimes 10
minutes, sometimes 15, sometimes 16. My config file has:

uwsgi_read_timeout 60m;
uwsgi_send_timeout 60m;
client_body_timeout 60m;

Are there any other settings I need to set to avoid the 504?


More information about the nginx mailing list