2017/08/10 19:41:42 [error] 2428#2428: *55 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes) in /home/forge//vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/GuardsAttributes.php on line 188" while reading response header from upstream, client: 49.34.176.151, server: XX, request: "GET /listOrders HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php5.6-fpm.sock:", host: "XXX", referrer: "http://site.com/setupCron"
2017/08/10 19:42:18 [error] 2428#2428: *24 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 87.195.11.180, server:XXX, request: "GET /fetchData HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php5.6-fpm.sock:", host: "XXX"
The site works but it gives a timeout error (502 Bad Gateway) When im trying to fetch orders from an API. I have tried to change fastcgi pass to 127.x.x.x already. Changed the limits on several timeout .ini files.
Anyone can help me?
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!
Hey there,
This appears to be directly impacted by the application your web server is trying to serve. We have a community article that can help provide guidance on general web server troubleshooting:
If you use an application manager or proxy configuration (php-fpm, passenger, gunicorn/unicorn, T
In your particular case, your application (running via PHP) is hitting resource contention, causing issues in rendering the content. You can tell by this message from your errors:
Allowed memory size of 536870912 bytes exhausted
Basically, you need to either optimize the application to need less memory, allow the application to utilize more memory, or upgrade the droplet to have more usable memory.
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.