By Lolja
Hey guys,
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: 177.134.106.96, server: 104.131.13.134, request: “POST /admin/importar HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “104.131.13.134”, referrer: “http://104.131.13.134/admin/importar”
I tried many things, including increasing timeout time and buffer size in PHP.ini or in nginx config file
Nothing works.
Any idea on how I could solve this?
The xls file is about 1 MB and the app runs smoothly locally
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
I would recommend enabling PHP error logging and checking your PHP error log for more information.
My guess would be that either there’s not enough PHP memory or maybe the PHP FPM service is crashing due to not enough RAM.
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.