Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Nginx Fastcgi 502 Time Out Recurring
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: 184.108.40.206, 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: 220.127.116.11, 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?
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.×