Skip to main content

Chkservd thinks PHP-FPM is down

Comments

4 comments

  • locador
    OOPS! Sorry, I think I've duplicated my message ;) I usually cut and paste back the message before I click on submit to avoid getting an error from the forum and having to write it all again... So, copied twice I think...
    0
  • cPanelMichael
    Hello @locador, Can you try stopping the master process for the PHP-FPM service that's reported as down, and then starting it directly from the binary? EX: /opt/cpanel/ea-php70/root/usr/sbin/php-fpm
    Starting it from the binary should output more information (and may list error messages). Note that internal case CPANEL-19951 is open to request more intuitive error messages when Chkservd detects that one or more PHP-FPM services fail to start. Thank you.
    0
  • locador
    Hi Michael, I'm not using php70 on any websites, so this is expected: root@hexer [~]# /opt/cpanel/ea-php70/root/usr/sbin/php-fpm [27-Feb-2019 15:14:12] WARNING: Nothing matches the include pattern '/opt/cpanel/ea-php70/root/etc/php-fpm.d/*.conf' from /opt/cpanel/ea-php70/root/etc/php-fpm.conf at line 8. [27-Feb-2019 15:14:12] ERROR: No pool defined. at least one pool section must be specified in config file [27-Feb-2019 15:14:12] ERROR: failed to post process the configuration [27-Feb-2019 15:14:12] ERROR: FPM initialization failed
    However, 54 and 56 are ok, complete shell log: root@hexer [~]# /opt/cpanel/ea-php54/root/usr/sbin/php-fpm [27-Feb-2019 15:14:47] ERROR: An another FPM instance seems to already listen on /opt/cpanel/ea-php54/root/usr/var/run/php-fpm/e7bcdf970ea206fc5d2c5d09b2e18e869b44430b.sock [27-Feb-2019 15:14:47] ERROR: FPM initialization failed root@hexer [~]# pkill -f php-fpm root@hexer [~]# /opt/cpanel/ea-php54/root/usr/sbin/php-fpm [27-Feb-2019 15:15:06] NOTICE: fpm is running, pid 19519 [27-Feb-2019 15:15:06] NOTICE: ready to handle connections ^C[27-Feb-2019 15:15:10] NOTICE: Terminating ... [27-Feb-2019 15:15:10] NOTICE: exiting, bye-bye! root@hexer [~]# /opt/cpanel/ea-php56/root/usr/sbin/php-fpm Zend Guard Loader requires Zend Engine API version 220100525. The Zend Engine API version 220131226 which is installed, is newer. Contact Zend Technologies at http://www.zend.com/ for a later version of Zend Guard Loader. Zend OPcache requires Zend Engine API version 220100525. The Zend Engine API version 220131226 which is installed, is newer. Contact Zend Technologies at http://www.zend.com/ for a later version of Zend OPcache. [27-Feb-2019 15:15:14] NOTICE: fpm is running, pid 19906 [27-Feb-2019 15:15:14] NOTICE: ready to handle connections [27-Feb-2019 15:15:14] NOTICE: systemd monitor interval set to 10000ms ^C[27-Feb-2019 15:15:17] NOTICE: Terminating ... [27-Feb-2019 15:15:17] NOTICE: exiting, bye-bye!
    After that pkill, manual start for you to see the output and my CRTL-C, I've restarted both using systemctl, and they are running fine, websites working, etc: root@hexer [~]# ps axf | grep -i fpm 18984 pts/0 S+ 0:00 | \_ grep --color=auto -i fpm 9818 ? Ss 0:11 php-fpm: master process (/usr/local/cpanel/etc/php-fpm.conf) 14389 ? S 0:00 \_ php-fpm: pool cpanelroundcube 14827 ? S 0:00 \_ php-fpm: pool cpanelroundcube 28856 ? Ss 0:04 php-fpm: master process (/opt/php56/etc/php-fpm.conf) 28861 ? Ss 0:45 php-fpm: master process (/opt/php54/etc/php-fpm.conf) 18913 ? Sl 0:00 \_ php-fpm: pool [**HIDDEN**]_com_br 18918 ? S 0:00 \_ php-fpm: pool [**HIDDEN**]_com_br 18933 ? S 0:00 \_ php-fpm: pool [**HIDDEN**]_org
    Right now I'm keeping the apache_php_fpm file from chkservd deleted because the error still persists and I've written my own script to monitor this service (by accessing a phpinfo on websites and then restarting if there's any error). Thanks,
    0
  • cPanelMichael
    Hello @locador, It's possible the custom modifications you've made to PHP-FPM are resulting in this issue. Can you can open a
    0

Please sign in to leave a comment.