• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Issue 504 nginx on a fat request.

emmanuelautin

New Pleskian
Hi,

I'm facing a 504 nginx error in a prestashop website hosted in plesk onyx.
Im' with PHP 5.6 FastCgi

The errors in the apache / nginx logs :

  1. upstream timed out (110 : Connection timed out) white reading response header from upstream
  2. mod_fcgid: read data timeout in 120 seconds
  3. End of script output before headers :
I improve the max_execution_time to 120 in php settings.
I add additional directive to apache :

<ifModule mod_fcgid.c>
FcgidIOTtimeout 120
</ifModule>

What i read i shoud do

Add nginx directive :

proxy_connect_timeout : 180s
proxy_send_timeout : 180s
proxy_read_timeout: 180s
fastcgi_send_timeout: 180s
fastcgi_read_timeout: 180s

But i think it will override the nginx native conf and then apache can't restart at all, (i have this issue on othe plesk production serveur)

The bugs appears only in a large request / in a prestashop module.

Any advice is appreciated,

Thanks alot.
 
Back
Top