How to fix

How to increase uwsgi + nginx timeout

nginx logo green

uWSGI is a software application that “aims at developing a full stack for building hosting services”.

Web server NGINX is a free, open-source, high-performance HTTP server.

Add to niginx’s config proxy location section:

proxy_connect_timeout       600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
uwsgi_read_timeout 600;

Also you should increase a harakiri timeout in uwsgi.ini

harakiri = 600

And reload configurations for uwsgi and nginx

systemctl restart uwsgi  # or touch reload file
systemctl reload nginx