Nginx full version random 504 gateway error.
-
Dear laragon!
I develop laravel based websites, and sometimes webserver is freezed. I use nginx version and we need restart webserver. Any idea why?
Best Regards,
Ferenc
-
@Ferenc-Levente-Balogh:
It seems that your code took long time to run. You can:- Add these to nginx.conf (Menu > Nginx > nginx.conf), below
client_max_body_size ...
line
http { ..... fastcgi_buffers 8 128k; fastcgi_buffer_size 128k; fastcgi_connect_timeout 600; fastcgi_send_timeout 600; fastcgi_read_timeout 600; }
- Increase the number of PHP processes: Add this below [nginx] section in
usr\laragon.ini
(Menu > Laragon > Settings file: laragon.ini):
[nginx] Upstream=10 ...
- Restart Nginx
- Add these to nginx.conf (Menu > Nginx > nginx.conf), below
-
Your solutions working fine. I got a new problem again.
-
It might help to solve your issue:
https://forum.laragon.org/topic/371/database-is-not-working-error-2002/2
-
I think is a big problem in laragon. I develop excel import with many recursive insert. When my script failed mysql dead. and I can't working.
- I tried remove manually database
- I tried you tc heuristic rollback
Any solution without re-install software? or I need to switch back to vagrant.
-
Mysql problem solved with increase all setting *2 my.ini
-
@Ferenc-Levente-Balogh: Cool! Glad to know it solved with your solution