Skip to main content

The timeout specified has expired error && FastCGI header

Comments

11 comments

  • cPanelLauren
    What is noted in the PHP-FPM logs for PHP 7.3? You can find them here: /opt/cpanel/ea-php73/root/usr/var/log/php-fpm/error.log
    also what is the output of the following: /scripts/restartsrv_apache_php_fpm
    0
  • MuratB
    many thanks for answer, here logs ; [05-Nov-2019 10:00:32] NOTICE: [pool barkod_*************_com] child 30438 started [05-Nov-2019 10:04:13] NOTICE: [pool barkod_*************_com] child 30477 exited with code 0 after 127.317118 seconds from start [05-Nov-2019 10:04:13] NOTICE: [pool barkod_*************_com] child 30506 started [05-Nov-2019 10:33:04] NOTICE: [pool barkod_*************_com] child 31234 exited with code 0 after 190.940687 seconds from start [05-Nov-2019 10:33:04] NOTICE: [pool barkod_*************_com] child 31394 started [05-Nov-2019 10:54:13] NOTICE: Reloading in progress ... [05-Nov-2019 10:54:19] NOTICE: Reloading in progress ... [05-Nov-2019 10:54:23] NOTICE: reloading: execvp("/opt/cpanel/ea-php73/root/usr/sbin/php-fpm", {"/opt/cpanel/ea-php73/root/usr/sbin/php-fpm", "--nodaemonize"}) [05-Nov-2019 10:54:23] NOTICE: using inherited socket fd=6, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/6ba2c2b6dce4750d2586f63efaf91ab035ed20b9.sock" [05-Nov-2019 10:54:23] NOTICE: using inherited socket fd=6, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/6ba2c2b6dce4750d2586f63efaf91ab035ed20b9.sock" [05-Nov-2019 10:54:23] NOTICE: using inherited socket fd=7, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/14be192d096bd0322d2f65570c3cecb4d59d2788.sock" [05-Nov-2019 10:54:23] NOTICE: using inherited socket fd=7, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/14be192d096bd0322d2f65570c3cecb4d59d2788.sock" [05-Nov-2019 10:54:23] NOTICE: using inherited socket fd=8, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/000445639be8b9e4867b618fb7639a24fc3c0aef.sock" [05-Nov-2019 10:54:23] NOTICE: using inherited socket fd=8, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/000445639be8b9e4867b618fb7639a24fc3c0aef.sock" [05-Nov-2019 10:54:23] NOTICE: using inherited socket fd=9, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/cb3fb5c72bae65b27e9867a2f9652b14817db866.sock" [05-Nov-2019 10:54:23] NOTICE: using inherited socket fd=9, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/cb3fb5c72bae65b27e9867a2f9652b14817db866.sock" [05-Nov-2019 10:54:23] NOTICE: using inherited socket fd=10, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/4310c6189b77506838f956724f6a6d69dbe0dbf0.sock" [05-Nov-2019 10:54:23] NOTICE: using inherited socket fd=10, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/4310c6189b77506838f956724f6a6d69dbe0dbf0.sock" [05-Nov-2019 10:54:23] NOTICE: using inherited socket fd=11, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/502032c96ed6925329682dd5047f427b9073b7c1.sock" [05-Nov-2019 10:54:23] NOTICE: using inherited socket fd=11, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/502032c96ed6925329682dd5047f427b9073b7c1.sock" [05-Nov-2019 10:54:23] NOTICE: using inherited socket fd=12, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/93725da87d558e27411bd779761205cc53392a50.sock" [05-Nov-2019 10:54:23] NOTICE: using inherited socket fd=12, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/93725da87d558e27411bd779761205cc53392a50.sock" [05-Nov-2019 10:54:23] NOTICE: fpm is running, pid 60428 [05-Nov-2019 10:54:23] NOTICE: ready to handle connections [05-Nov-2019 10:54:23] NOTICE: systemd monitor interval set to 10000ms [05-Nov-2019 10:54:24] NOTICE: Reloading in progress ... [05-Nov-2019 10:54:24] NOTICE: reloading: execvp("/opt/cpanel/ea-php73/root/usr/sbin/php-fpm", {"/opt/cpanel/ea-php73/root/usr/sbin/php-fpm", "--nodaemonize"}) [05-Nov-2019 10:54:24] NOTICE: using inherited socket fd=6, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/6ba2c2b6dce4750d2586f63efaf91ab035ed20b9.sock" [05-Nov-2019 10:54:24] NOTICE: using inherited socket fd=6, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/6ba2c2b6dce4750d2586f63efaf91ab035ed20b9.sock" [05-Nov-2019 10:54:24] NOTICE: using inherited socket fd=7, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/14be192d096bd0322d2f65570c3cecb4d59d2788.sock" [05-Nov-2019 10:54:24] NOTICE: using inherited socket fd=7, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/14be192d096bd0322d2f65570c3cecb4d59d2788.sock" [05-Nov-2019 10:54:24] NOTICE: using inherited socket fd=8, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/000445639be8b9e4867b618fb7639a24fc3c0aef.sock" [05-Nov-2019 10:54:24] NOTICE: using inherited socket fd=8, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/000445639be8b9e4867b618fb7639a24fc3c0aef.sock" [05-Nov-2019 10:54:24] NOTICE: using inherited socket fd=9, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/cb3fb5c72bae65b27e9867a2f9652b14817db866.sock" [05-Nov-2019 10:54:24] NOTICE: using inherited socket fd=9, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/cb3fb5c72bae65b27e9867a2f9652b14817db866.sock" [05-Nov-2019 10:54:24] NOTICE: using inherited socket fd=10, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/4310c6189b77506838f956724f6a6d69dbe0dbf0.sock" [05-Nov-2019 10:54:24] NOTICE: using inherited socket fd=10, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/4310c6189b77506838f956724f6a6d69dbe0dbf0.sock" [05-Nov-2019 10:54:24] NOTICE: using inherited socket fd=11, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/502032c96ed6925329682dd5047f427b9073b7c1.sock" [05-Nov-2019 10:54:24] NOTICE: using inherited socket fd=11, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/502032c96ed6925329682dd5047f427b9073b7c1.sock" [05-Nov-2019 10:54:24] NOTICE: using inherited socket fd=12, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/93725da87d558e27411bd779761205cc53392a50.sock" [05-Nov-2019 10:54:24] NOTICE: using inherited socket fd=12, "/opt/cpanel/ea-php73/root/usr/var/run/php-fpm/93725da87d558e27411bd779761205cc53392a50.sock" [05-Nov-2019 10:54:24] NOTICE: fpm is running, pid 60428 [05-Nov-2019 10:54:24] NOTICE: ready to handle connections [05-Nov-2019 10:54:24] NOTICE: systemd monitor interval set to 10000ms [05-Nov-2019 11:17:18] NOTICE: [pool barkod_*************_com] child 32838 exited with code 0 after 135.381419 seconds from start [05-Nov-2019 11:17:18] NOTICE: [pool barkod_*************_com] child 32964 started [05-Nov-2019 11:20:51] NOTICE: [pool barkod_*************_com] child 33006 exited with code 0 after 90.790865 seconds from start [05-Nov-2019 11:20:51] NOTICE: [pool barkod_*************_com] child 33077 started [05-Nov-2019 11:43:46] WARNING: [pool *************_com] server reached max_children setting (20), consider raising it [05-Nov-2019 11:47:10] NOTICE: Terminating ... [05-Nov-2019 11:47:10] NOTICE: exiting, bye-bye! [05-Nov-2019 11:47:10] NOTICE: fpm is running, pid 34046 [05-Nov-2019 11:47:10] NOTICE: ready to handle connections [05-Nov-2019 11:47:10] NOTICE: systemd monitor interval set to 10000ms [05-Nov-2019 12:57:52] WARNING: [pool *************_com] server reached max_children setting (20), consider raising it [05-Nov-2019 12:59:57] NOTICE: Terminating ... [05-Nov-2019 12:59:57] NOTICE: exiting, bye-bye! [05-Nov-2019 12:59:57] NOTICE: fpm is running, pid 36825 [05-Nov-2019 12:59:57] NOTICE: ready to handle connections [05-Nov-2019 12:59:57] NOTICE: systemd monitor interval set to 10000ms [05-Nov-2019 13:48:48] WARNING: [pool *************_com] server reached max_children setting (20), consider raising it [05-Nov-2019 13:51:09] NOTICE: Terminating ... [05-Nov-2019 13:51:09] NOTICE: exiting, bye-bye! [05-Nov-2019 13:51:09] NOTICE: fpm is running, pid 38581 [05-Nov-2019 13:51:09] NOTICE: ready to handle connections [05-Nov-2019 13:51:09] NOTICE: systemd monitor interval set to 10000ms
    another output here [root@atg ~]# /scripts/restartsrv_apache_php_fpm Service Status warn [restartsrv_apache_php_fpm] The system is unable to find systemd configuration for the 'apache_php_fpm' service... apache_php_fpm restarted successfully.
    also server have 2 core cpu and 4 gb ram Note: Errors in the first message occurred again at 15pm-16pm but there's not any warning fpm logs
    0
  • cPanelLauren
    Hello, Thanks for adding that! I can see in those logs that you're reaching the max_children setting: [05-Nov-2019 13:48:48] WARNING: [pool *************_com] server reached max_children setting (20), consider raising it
    You may want to go to WHM>>Software>>MultiPHP Manager -> System PHP-FPM Configuration and modify this.
    0
  • MuratB
    Thanks for advice , Errors in the first message occurred again at 15pm-16pm but there's not any warning fpm logs,
    0
  • cPanelLauren
    I'd assume until the limit isn't being reached that the issues are related.
    0
  • MuratB
    But my domain freeze until i restart php-fpm,is that normal ? .Normally Even if php-fpm reach the max children limit it should put the requests into the backlog and serve them when a child is freed up ? in my localhost with xampp i tried same process x60 times and not got any freezen just get timeout. But in server also i get timeout and php-fpm got freezen until restarted.
    0
  • cPanelLauren
    But my domain freeze until i restart php-fpm,is that normal ? .Normally Even if php-fpm reach the max children limit it should put the requests into the backlog and serve them when a child is freed up ? in my localhost with xampp i tried same process x60 times and not got any freezen just get timeout. But in server also i get timeout and php-fpm got freezen until restarted.

    That's not necessarily how that should function - an extended delay for restart wouldn't be normal. I'd suggest opening a ticket so that we can look into the issue further.
    0
  • MuratB
    i tested a process that take 1-2 seconds(x 20 times consecutive) and csf send me this mail. each process taken 370 mb ram is that normal ? User:mydomain PID:51699 PPID:19519 Run Time:74(secs) Memory:383768(kb) RSS:21324(kb) exe:/opt/cpanel/ea-php73/root/usr/sbin/php-fpm cmd:php-fpm: pool mydomain User:mydomain PID:51700 PPID:19519 Run Time:68(secs) Memory:372652(kb) RSS:12236(kb) exe:/opt/cpanel/ea-php73/root/usr/sbin/php-fpm cmd:php-fpm: pool mydomain User:mydomain PID:51701 PPID:19519 Run Time:67(secs) Memory:372652(kb) RSS:12236(kb) exe:/opt/cpanel/ea-php73/root/usr/sbin/php-fpm cmd:php-fpm: pool mydomain User:mydomain PID:51702 PPID:19519 Run Time:67(secs) Memory:372652(kb) RSS:12240(kb) exe:/opt/cpanel/ea-php73/root/usr/sbin/php-fpm cmd:php-fpm: pool mydomain User:mydomain PID:51703 PPID:19519 Run Time:67(secs) Memory:372652(kb) RSS:12236(kb) exe:/opt/cpanel/ea-php73/root/usr/sbin/php-fpm cmd:php-fpm: pool mydomain User:mydomain PID:51704 PPID:19519 Run Time:67(secs) Memory:372652(kb) RSS:12236(kb) exe:/opt/cpanel/ea-php73/root/usr/sbin/php-fpm cmd:php-fpm: pool mydomain User:mydomain PID:52052 PPID:19519 Run Time:58(secs) Memory:372652(kb) RSS:12236(kb) exe:/opt/cpanel/ea-php73/root/usr/sbin/php-fpm cmd:php-fpm: pool mydomain User:mydomain PID:52054 PPID:19519 Run Time:58(secs) Memory:372652(kb) RSS:12240(kb) exe:/opt/cpanel/ea-php73/root/usr/sbin/php-fpm cmd:php-fpm: pool mydomain User:mydomain PID:52055 PPID:19519 Run Time:57(secs) Memory:372652(kb) RSS:12236(kb) exe:/opt/cpanel/ea-php73/root/usr/sbin/php-fpm cmd:php-fpm: pool mydomain User:mydomain PID:52057 PPID:19519 Run Time:57(secs) Memory:372652(kb) RSS:12236(kb) exe:/opt/cpanel/ea-php73/root/usr/sbin/php-fpm cmd:php-fpm: pool mydomain User:mydomain PID:52061 PPID:19519 Run Time:57(secs) Memory:372652(kb) RSS:12232(kb) exe:/opt/cpanel/ea-php73/root/usr/sbin/php-fpm cmd:php-fpm: pool mydomain User:mydomain PID:52072 PPID:19519 Run Time:57(secs) Memory:372652(kb) RSS:12232(kb) exe:/opt/cpanel/ea-php73/root/usr/sbin/php-fpm cmd:php-fpm: pool mydomain User:mydomain PID:52078 PPID:19519 Run Time:56(secs) Memory:372652(kb) RSS:12232(kb) exe:/opt/cpanel/ea-php73/root/usr/sbin/php-fpm cmd:php-fpm: pool mydomain User:mydomain PID:52101 PPID:19519 Run Time:55(secs) Memory:372652(kb) RSS:12236(kb) exe:/opt/cpanel/ea-php73/root/usr/sbin/php-fpm cmd:php-fpm: pool mydomain User:mydomain PID:52107 PPID:19519 Run Time:55(secs) Memory:372652(kb) RSS:12236(kb) exe:/opt/cpanel/ea-php73/root/usr/sbin/php-fpm cmd:php-fpm: pool mydomain User:mydomain PID:52123 PPID:19519 Run Time:55(secs) Memory:372652(kb) RSS:12236(kb) exe:/opt/cpanel/ea-php73/root/usr/sbin/php-fpm cmd:php-fpm: pool mydomain User:mydomain PID:52125 PPID:19519 Run Time:55(secs) Memory:372652(kb) RSS:12240(kb) exe:/opt/cpanel/ea-php73/root/usr/sbin/php-fpm cmd:php-fpm: pool mydomain User:mydomain PID:52139 PPID:19519 Run Time:52(secs) Memory:372652(kb) RSS:12236(kb) exe:/opt/cpanel/ea-php73/root/usr/sbin/php-fpm cmd:php-fpm: pool mydomain User:mydomain PID:52142 PPID:19519 Run Time:52(secs) Memory:372652(kb) RSS:12236(kb) exe:/opt/cpanel/ea-php73/root/usr/sbin/php-fpm cmd:php-fpm: pool mydomain User:mydomain PID:52144 PPID:19519 Run Time:52(secs) Memory:372652(kb) RSS:12236(kb) exe:/opt/cpanel/ea-php73/root/usr/sbin/php-fpm cmd:php-fpm: pool mydomain
    0
  • cPanelLauren
    PHP-FPM will consume a higher amount of memory - we offer the following recommendation: [QUOTE] Warning: We strongly recommend that you only activate Apache PHP-FPM if your server has at least 2 GB of RAM available, or at least 30 MB of RAM per domain. If you enable PHP-FPM on a server with less than the required RAM, your server may experience severe performance issues.
    the delay you're encountering is more so the concern in my opinion. You might also want to read the documentation here: PHP-FPM - Version 84 Documentation - cPanel Documentation
    0
  • MuratB
    now gives the following errors after i disabled php-fpm [Mon Nov 11 11:28:21.440869 2019] [cgi:warn] [pid 25503] [client IPREMOVED:60636] AH01220: Timeout waiting for output from CGI script /usr/local/cpanel/cgi-sys/ea-php73, referer: https://mydomain.com/ [Mon Nov 11 11:28:21.440940 2019] [cgi:error] [pid 25503] [client IPREMOVED:60636] Script timed out before returning headers: ea-php73, referer: https://mydomain.com/
    0
  • cPanelLauren
    Can you please open a ticket using the link in my signature? Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved. Thanks!
    0

Please sign in to leave a comment.