Errors with PHP-FPM
Hello,
I have this error in apache error log:
In PHP-FPM error log i have:
Im using CGI handler with PHP-FPM. This error is on version of php 5.6 This is my EasyApache Package list for PHP5.6
PHP-FPM CONFIG pm : ondemand pm_max_children : { name: 'pm.max_children', value: 15 } pm_max_requests : { name: 'pm.max_requests', value: 500 } pm_max_spare_servers : { name: 'pm.max_spare_servers', value: 10 } pm_min_spare_servers : { name: 'pm.min_spare_servers', value: 1 } pm_process_idle_timeout : { name: 'pm.process_idle_timeout', value: 30 } Can you help me with this issue please?
[Thu Sep 07 22:34:34.786574 2017] [proxy_fcgi:error] [pid 8365] [client XXX.XX.XXX.XX:28762] AH01067: Failed to read FastCGI header, referer: http://XXX.XXX.XX/
[Thu Sep 07 22:34:34.786638 2017] [proxy_fcgi:error] [pid 8365] (104)Connection reset by peer: [client XXX.XX.XXX.XX:28762] AH01075: Error dispatching request to :, referer: http://XXX.XXX.XX/
[Thu Sep 07 22:35:44.980592 2017] [proxy_fcgi:error] [pid 8365] [client XXX.XX.XXX.XX:28817] AH01067: Failed to read FastCGI header, referer: http://XXX.XXX.XX/adm/index.php?sid=XXX
[Thu Sep 07 22:35:44.980652 2017] [proxy_fcgi:error] [pid 8365] (104)Connection reset by peer: [client XXX.XX.XXX.XX:28817] AH01075: Error dispatching request to :, referer: http://XXX.XXX.XX/adm/index.php?sid=XXX
[Thu Sep 07 22:42:32.859510 2017] [proxy_fcgi:error] [pid 8351] [client XXX.XX.XXX.XX:29208] AH01067: Failed to read FastCGI header, referer: http://XXX.XXX.XX/index.php?sid=XXX
[Thu Sep 07 22:42:32.859585 2017] [proxy_fcgi:error] [pid 8351] (104)Connection reset by peer: [client XXX.XX.XXX.XX:29208] AH01075: Error dispatching request to :, referer: http://XXX.XXX.XX/index.php?sid=XXX
[Thu Sep 07 22:42:42.191192 2017] [proxy_fcgi:error] [pid 6475] [client XXX.XX.XXX.XX:29211] AH01067: Failed to read FastCGI header, referer: http://XXX.XXX.XX/memberlist.php?mode=team
[Thu Sep 07 22:42:42.191236 2017] [proxy_fcgi:error] [pid 6475] (104)Connection reset by peer: [client XXX.XX.XXX.XX:29211] AH01075: Error dispatching request to :, referer: http://XXX.XXX.XX/memberlist.php?mode=team
[Thu Sep 07 22:50:35.132160 2017] [proxy_fcgi:error] [pid 4039] [client XXX.XX.XXX.XX:29488] AH01067: Failed to read FastCGI header, referer: http://XXX.XXX.XX/
[Thu Sep 07 22:50:35.132226 2017] [proxy_fcgi:error] [pid 4039] (104)Connection reset by peer: [client XXX.XX.XXX.XX:29488] AH01075: Error dispatching request to :, referer: http://XXX.XXX.XX/
[Fri Sep 08 00:01:42.162929 2017] [proxy_fcgi:error] [pid 15426] [client XX.XX.XX.XXX:50633] AH01067: Failed to read FastCGI header, referer: http://XXX.XX/XXX/
[Fri Sep 08 00:01:42.162990 2017] [proxy_fcgi:error] [pid 15426] (104)Connection reset by peer: [client XX.XX.XX.XXX:50633] AH01075: Error dispatching request to :, referer: http://XXX.XX/XXX/
In PHP-FPM error log i have:
[07-Sep-2017 22:34:34] WARNING: [pool XXX_XXX_XX] child 8839 exited on signal 11 (SIGSEGV) after 0.176016 seconds from start
[07-Sep-2017 22:34:34] NOTICE: [pool XXX_XXX_XX] child 8840 started
[07-Sep-2017 22:35:44] WARNING: [pool XXX_XXX_XX] child 8838 exited on signal 11 (SIGSEGV) after 71.883830 seconds from start
[07-Sep-2017 22:35:44] NOTICE: [pool XXX_XXX_XX] child 9108 started
[07-Sep-2017 22:42:32] WARNING: [pool XXX_XXX_XX] child 8840 exited on signal 11 (SIGSEGV) after 478.052249 seconds from start
[07-Sep-2017 22:42:32] NOTICE: [pool XXX_XXX_XX] child 9548 started
[07-Sep-2017 22:42:42] WARNING: [pool XXX_XXX_XX] child 9548 exited on signal 11 (SIGSEGV) after 9.322664 seconds from start
[07-Sep-2017 22:42:42] NOTICE: [pool XXX_XXX_XX] child 9552 started
[07-Sep-2017 22:50:35] WARNING: [pool XXX_XXX_XX] child 9549 exited on signal 11 (SIGSEGV) after 482.262575 seconds from start
[07-Sep-2017 22:50:35] NOTICE: [pool XXX_XXX_XX] child 10258 started
[08-Sep-2017 00:01:42] WARNING: [pool XXX_XX] child 16304 exited on signal 11 (SIGSEGV) after 1.129902 seconds from start
[08-Sep-2017 00:01:42] NOTICE: [pool XXX_XX] child 16305 started
Im using CGI handler with PHP-FPM. This error is on version of php 5.6 This is my EasyApache Package list for PHP5.6
[LIST]
apache24
apr
apr-util
config
config-runtime
cpanel-tools
documentroot
freetds
libcurl
libmcrypt
libnghttp2
libtidy
mod_bwlimited
mod_cgi
mod_charset_lite
mod_deflate
mod_expires
mod_headers
mod_mpm_prefork
mod_proxy
mod_proxy_fcgi
mod_proxy_http
mod_proxy_wstunnel
mod_security2
mod_ssl
mod_suphp
mod_unique_id
modsec-sdbm-util
nghttp2
openssl
php-cli
php-cli-lsphp
php56
php56-build
php56-libc-client
php56-pear
php56-php-bcmath
php56-php-bz2
php56-php-calendar
php56-php-cli
php56-php-common
php56-php-curl
php56-php-dba
php56-php-devel
php56-php-enchant
php56-php-exif
php56-php-fileinfo
php56-php-fpm
php56-php-ftp
php56-php-gd
php56-php-gettext
php56-php-gmp
php56-php-iconv
php56-php-imap
php56-php-intl
php56-php-ioncube5
php56-php-ldap
php56-php-litespeed
php56-php-mbstring
php56-php-mcrypt
php56-php-mssql
php56-php-mysqlnd
php56-php-odbc
php56-php-opcache
php56-php-pdo
php56-php-pgsql
php56-php-posix
php56-php-soap
php56-php-sockets
php56-php-suhosin
php56-php-xml
php56-php-xmlrpc
php56-php-zip
php56-runtime
PHP-FPM CONFIG pm : ondemand pm_max_children : { name: 'pm.max_children', value: 15 } pm_max_requests : { name: 'pm.max_requests', value: 500 } pm_max_spare_servers : { name: 'pm.max_spare_servers', value: 10 } pm_min_spare_servers : { name: 'pm.min_spare_servers', value: 1 } pm_process_idle_timeout : { name: 'pm.process_idle_timeout', value: 30 } Can you help me with this issue please?
-
Next errors on PHP5.6: Apache Error Log: [Fri Sep 08 01:07:12.737411 2017] [proxy_fcgi:error] [pid 15405] [client XX.XXX.XX.XX:33444] AH01067: Failed to read FastCGI header [Fri Sep 08 01:07:12.737485 2017] [proxy_fcgi:error] [pid 15405] (104)Connection reset by peer: [client XX.XXX.XX.XX:33444] AH01075: Error dispatching request to : [Fri Sep 08 01:09:36.185585 2017] [mpm_prefork:notice] [pid 7594] AH00171: Graceful restart requested, doing restart [Fri Sep 08 01:09:36.574260 2017] [mpm_prefork:notice] [pid 7594] AH00163: Apache/2.4.27 (cPanel) OpenSSL/1.0.2k mod_bwlimited/1.4 configured -- resuming normal operations [Fri Sep 08 01:09:36.574287 2017] [core:notice] [pid 7594] AH00094: Command line: '/usr/sbin/httpd' PHP-FPM Error Log: [08-Sep-2017 01:07:12] WARNING: [pool XX_XXX] child 21906 said into stderr: "zend_mm_heap corrupted" [08-Sep-2017 01:07:12] WARNING: [pool XX_XXX] child 21906 exited with code 1 after 1.077741 seconds from start [08-Sep-2017 01:07:12] NOTICE: [pool XX_XXX] child 21915 started 0 -
Hello, Could you open a support ticket using the link in my signature so we can take a closer look? Thank you. 0 -
So what is the solution, i google it: AH01067: Failed to read FastCGI header site:forums.cpanel.net and all what i get is support ticket last replay but no solution for this. So what is solution php-fpm a read that opcache possible problem but i didn't get any solution to fix this? 0 -
Hello @Gojko, Could you let us know the full output that you see in /usr/local/apache/logs/error_log when this happens? Thank you. 0 -
tail -100 /var/log/apache2/error_log | grep website [Mon May 07 20:54:30.388022 2018] [proxy_fcgi:error] [pid 18798:tid 140286181242624] (104)Connection reset by peer: [client 212.200.65.247:16221] AH01075: Error dispatching request to :, referer: http://website/wp-admin/post.php?post=1255&action=edit [Mon May 07 20:54:38.303769 2018] [proxy_fcgi:error] [pid 18798:tid 140286055352064] [client 212.200.65.247:17385] AH01067: Failed to read FastCGI header, referer: http://website/wp-admin/post.php?post=1255&action=edit [Mon May 07 20:54:38.303790 2018] [proxy_fcgi:error] [pid 18798:tid 140286055352064] (104)Connection reset by peer: [client 212.200.65.247:17385] AH01075: Error dispatching request to :, referer: http://website/wp-admin/post.php?post=1255&action=edit [Mon May 07 20:55:09.444669 2018] [proxy_fcgi:error] [pid 18799:tid 140286063744768] [client 212.200.65.247:19067] AH01067: Failed to read FastCGI header, referer: http://website/wp-admin/post-new.php?post_type=product [Mon May 07 20:55:09.444690 2018] [proxy_fcgi:error] [pid 18799:tid 140286063744768] (104)Connection reset by peer: [client 212.200.65.247:19067] AH01075: Error dispatching request to :, referer: http://website/wp-admin/post-new.php?post_type=product [Mon May 07 20:55:35.481140 2018] [proxy_fcgi:error] [pid 18799:tid 140286055352064] [client 212.200.65.247:15558] AH01067: Failed to read FastCGI header, referer: http://website/wp-admin/post-new.php?post_type=product [Mon May 07 20:55:35.481161 2018] [proxy_fcgi:error] [pid 18799:tid 140286055352064] (104)Connection reset by peer: [client 212.200.65.247:15558] AH01075: Error dispatching request to :, referer: http://website/wp-admin/post-new.php?post_type=product [Mon May 07 20:56:23.581014 2018] [proxy_fcgi:error] [pid 18798:tid 140286021781248] [client 212.200.65.247:18344] AH01067: Failed to read FastCGI header, referer: http://website/wp-admin/post-new.php?post_type=product [Mon May 07 20:56:23.581041 2018] [proxy_fcgi:error] [pid 18798:tid 140286021781248] (104)Connection reset by peer: [client 212.200.65.247:18344] AH01075: Error dispatching request to :, referer: http://website/wp-admin/post-new.php?post_type=product [Mon May 07 20:57:18.761450 2018] [proxy_fcgi:error] [pid 18799:tid 140286021781248] [client 212.200.65.247:16631] AH01067: Failed to read FastCGI header, referer: http://website/wp-admin/post-new.php?post_type=product [Mon May 07 20:57:18.761476 2018] [proxy_fcgi:error] [pid 18799:tid 140286021781248] (104)Connection reset by peer: [client 212.200.65.247:16631] AH01075: Error dispatching request to :, referer: http://website/wp-admin/post-new.php?post_type=product [Mon May 07 20:58:25.519612 2018] [proxy_fcgi:error] [pid 19061:tid 140286260311808] [client 212.200.65.247:15716] AH01067: Failed to read FastCGI header, referer: http://website/wp-admin/edit-tags.php?taxonomy=product_cat&post_type=product [Mon May 07 20:58:25.519634 2018] [proxy_fcgi:error] [pid 19061:tid 140286260311808] (104)Connection reset by peer: [client 212.200.65.247:15716] AH01075: Error dispatching request to :, referer: http://website/wp-admin/edit-tags.php?taxonomy=product_cat&post_type=product [Mon May 07 21:00:03.723125 2018] [proxy_fcgi:error] [pid 18800:tid 140286114100992] [client 212.200.65.247:16790] AH01067: Failed to read FastCGI header, referer: http://website/wp-admin/edit-tags.php?taxonomy=product_cat&post_type=product [Mon May 07 21:00:03.723148 2018] [proxy_fcgi:error] [pid 18800:tid 140286114100992] (104)Connection reset by peer: [client 212.200.65.247:16790] AH01075: Error dispatching request to :, referer: http://website/wp-admin/edit-tags.php?taxonomy=product_cat&post_type=product [Mon May 07 21:00:31.465630 2018] [proxy_fcgi:error] [pid 18798:tid 140286293882624] [client 212.200.65.247:18448] AH01067: Failed to read FastCGI header, referer: http://website/wp-admin/edit-tags.php?taxonomy=product_cat&post_type=product [Mon May 07 21:00:31.465654 2018] [proxy_fcgi:error] [pid 18798:tid 140286293882624] (104)Connection reset by peer: [client 212.200.65.247:18448] AH01075: Error dispatching request to :, referer: http://website/wp-admin/edit-tags.php?taxonomy=product_cat&post_type=product [Mon May 07 21:01:24.512209 2018] [proxy_fcgi:error] [pid 18798:tid 140286172849920] [client 212.200.65.247:16727] AH01067: Failed to read FastCGI header, referer: http://website/wp-admin/post-new.php?post_type=product [Mon May 07 21:01:24.512231 2018] [proxy_fcgi:error] [pid 18798:tid 140286172849920] (104)Connection reset by peer: [client 212.200.65.247:16727] AH01075: Error dispatching request to :, referer: http://website/wp-admin/post-new.php?post_type=product0 -
H01067: Failed to read FastCGI header (104)Connection reset by peer AH01075: Error dispatching request to
Hello @Gojko, I recommend searching the PHP-FPM error logs (/opt/cpanel/ea-php$$/root/usr/var/log/php-fpm/error.log) for any domain name's reaching the max_children limit. You'd replace ea-php$$ with each specific version of PHP (e.g. ea-php70) that PHP-FPM is utilized with on your system. The offending entries will look like this:ERROR: unable to read what child say: Bad file descriptor (9) NOTICE: [pool domain_tld] child 1234 exited with code 0 after 25.12345 seconds from start
If you find specific domain names are reaching the limit, you can increase the max_children value for them using the "Pool Options" feature in "WHM >> MultiPHP Manager". Thank you.0 -
Thank you for the replay. I found something: [09-May-2018 19:32:56] WARNING: [pool domain] child 7398 said into stderr: "zend_mm_heap corrupted" [09-May-2018 19:32:56] WARNING: [pool domain] child 7398 exited with code 1 after 0.378050 seconds from start [09-May-2018 21:11:25] WARNING: [pool domain] child 734 exited on signal 11 (SIGSEGV) after 0.123760 seconds from start
is that? what is with "zend_mm_heap corrupted" or "exited on signal 11 (SIGSEGV)"? if i increase max_children it will fix this?0 -
what is with "zend_mm_heap corrupted" or "exited on signal 11 (SIGSEGV)"?
Hello @Gojko, Do you happen to have OPCache enabled as a PHP extension? If so, please let us know the output from the following command:grep opcache.fast_shutdown /opt/cpanel/ea-php*/root/etc/php.d/*opcache.ini
I've seen reports where disabling the fast_shutdown option in the opcache.ini file and then restarting Apache solves this error message. Thank you.0
Please sign in to leave a comment.
Comments
8 comments