The timeout specified has expired error && FastCGI header

MuratB

Member
Apr 15, 2019
10
0
1
Turkey
cPanel Access Level
Root Administrator
i got many error log today ,i searced but i can't fix those


when errors appeared i can't reach my site, only a while reach my site after reset php-fpm

error_log

The same errors are repeated in 20 lines

Code:
[Tue Nov 05 11:40:12.953907 2019] [proxy_fcgi:error] [pid 30505] (70007)The timeout specified has expired: [client 176.88.***.210:49936] AH01075: Error dispatching request to : (polling), referer: https://*************.com/Request/new
[Tue Nov 05 11:40:41.469198 2019] [proxy_fcgi:error] [pid 32970] (70007)The timeout specified has expired: [client 176.88.***.210:50429] AH01075: Error dispatching request to : (polling), referer: https://*************.com/Request/new
[Tue Nov 05 11:41:29.975213 2019] [proxy_fcgi:error] [pid 33636] (70007)The timeout specified has expired: [client 176.88.***.210:50990] AH01075: Error dispatching request to : (polling), referer: https://*************.com/Request/new

The same errors are repeated in 20 lines

Code:
[Tue Nov 05 11:47:10.849457 2019] [proxy_fcgi:error] [pid 33753] [client 176.88.***.210:56858] AH01067: Failed to read FastCGI header
[Tue Nov 05 11:47:10.849994 2019] [proxy_fcgi:error] [pid 33754] (104)Connection reset by peer: [client 176.88.***.210:57836] AH01075: Error dispatching request to :
[Tue Nov 05 11:47:10.850263 2019] [proxy_fcgi:error] [pid 33640] [client 176.88.***.210:52233] AH01067: Failed to read FastCGI header, referer: https://*************.com/Request/new


The same errors are repeated in 20 lines
Code:
[Tue Nov 05 11:47:10.855458 2019] [proxy_fcgi:error] [pid 33000] (104)Connection reset by peer: [client 176.88.***.210:54361] AH01075: Error dispatching request to :
[Tue Nov 05 11:47:10.855734 2019] [proxy_fcgi:error] [pid 33755] [client 176.88.***.210:59506] AH01067: Failed to read FastCGI header, referer: https://*************.com/PaymentPlanManage/getPlan/
[Tue Nov 05 11:47:10.855768 2019] [proxy_fcgi:error] [pid 33755] (104)Connection reset by peer: [client 176.88.***.210:59506] AH01075: Error dispatching request to : , referer: https://*************.com/PaymentPlanManage/getPlan/
[Tue Nov 05 11:47:10.856167 2019] [proxy:error] [pid 33755] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/cpanel/ea-php73/root/usr/var/run/php-fpm/000445639be8b9e4867b618fb7639a24fc3c0aef.sock (*) failed


some time in access log

The same errors are repeated in 20 lines
Code:
::1 - - [05/Nov/2019:11:47:11 +0300] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.41 (cPanel) OpenSSL/1.0.2t mod_bwlimited/1.4 (internal dummy connection)"

also in mysqld.log there are thats error many times

Code:
2019-11-05T10:08:57.551147Z 138 [Note] Got an error reading communication packets
2019-11-05T10:15:37.855358Z 164 [Note] Got an error reading communication packets
2019-11-05T10:51:09.131063Z 455 [Note] Aborted connection 455 to db: 'DB' user: 'root' host: 'localhost' (Got an error reading communication packets)
2019-11-05T10:51:09.131251Z 424 [Note] Aborted connection 424 to db: 'DB' user: 'root' host: 'localhost' (Got an error reading communication packets)
 

cPanelLauren

Technical Support Community Manager
Staff member
Nov 14, 2017
13,252
1,234
313
Houston
What is noted in the PHP-FPM logs for PHP 7.3? You can find them here:

Code:
/opt/cpanel/ea-php73/root/usr/var/log/php-fpm/error.log
also what is the output of the following:

Code:
/scripts/restartsrv_apache_php_fpm
 

MuratB

Member
Apr 15, 2019
10
0
1
Turkey
cPanel Access Level
Root Administrator
many thanks for answer, here logs ;

Code:
[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

Code:
[[email protected] ~]# /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
 
Last edited:

cPanelLauren

Technical Support Community Manager
Staff member
Nov 14, 2017
13,252
1,234
313
Houston
Hello,

Thanks for adding that! I can see in those logs that you're reaching the max_children setting:

Code:
[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.
 

MuratB

Member
Apr 15, 2019
10
0
1
Turkey
cPanel Access Level
Root Administrator
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.
 
Last edited:

cPanelLauren

Technical Support Community Manager
Staff member
Nov 14, 2017
13,252
1,234
313
Houston
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.
 

MuratB

Member
Apr 15, 2019
10
0
1
Turkey
cPanel Access Level
Root Administrator
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 ?


Code:
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
 

cPanelLauren

Technical Support Community Manager
Staff member
Nov 14, 2017
13,252
1,234
313
Houston
PHP-FPM will consume a higher amount of memory - we offer the following recommendation:

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
 

MuratB

Member
Apr 15, 2019
10
0
1
Turkey
cPanel Access Level
Root Administrator
now gives the following errors after i disabled php-fpm

Code:
[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/
 
Last edited by a moderator:

cPanelLauren

Technical Support Community Manager
Staff member
Nov 14, 2017
13,252
1,234
313
Houston
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!