Gunicorn + nginx - Ignoring EPIPE Gunicorn + nginx - Ignoring EPIPE nginx nginx

Gunicorn + nginx - Ignoring EPIPE


If Gunicorn and NGINX are running on the same server, this could be a permission issue.

Check which user the Gunicorn server is running your application as with ps aux | grep gunicorn, then you can change the permissions accordingly.

Stop NGINX, and run the commands below

chown gunicorn_user_here.nginx /var/lib/nginx/tmp/proxy -vrm /var/lib/nginx/tmp/proxy/* -Rchmod 777 /var/lib/nginx/tmp -v

Start NGINX and check the logs.


I faced similar issues and timeout error, in addition with increasing timeout value, add Nginx config proxy_ignore_client_abort on; check this thread and Nginx doc

proxy_ignore_client_abort on;