Server timing out while trying to upload and process XLS file
I’m running a Laravel small app which processes a uploaded XLS. Out of a sudden it started giving a 502 error. My Nginx log only says
2017/09/14 17:45:54 [error] 1896#1896: *1 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 184.108.40.206, server: 220.127.116.11, request: “POST /admin/importar HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “18.104.22.168”, referrer: “http://22.214.171.124/admin/importar”
I tried many things, including increasing timeout time and buffer size in PHP.ini or in nginx config file
Any idea on how I could solve this?
The xls file is about 1 MB and the app runs smoothly locally
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×