[solved] We got no init command, restart or reload of php-fpm service aborted

Discussion in 'ISPConfig 3 Priority Support' started by KoS, Mar 2, 2023.

  1. KoS

    KoS Member HowtoForge Supporter

    I have a ubuntu system with multiple php versions running on it. when changing the settings of an old site still using php 5.6 (yes i know it is ooold ;-)) i get the email notification first with "No init script, we quit here." and a 2nd mail with "We got no init command, restart or reload of php-fpm service aborted"
    I have found the post here.
    When I check the debug log it shows the following:
    Code:
    02.03.2023-00:28 - DEBUG [apache2 plugin.inc:3445] - Writing the PHP-FPM config file: /etc/php/5.6/fpm/pool.d/web158.conf
    02.03.2023-00:28 - DEBUG [services.inc:56] - Calling function 'restartPHP_FPM' from module 'web_module'.
    02.03.2023-00:28 - DEBUG [system.inc:2082] - Trying to use Systemd to restart service
    02.03.2023-00:28 - DEBUG [system.inc:2399] - safe_exec cmd: systemctl is-enabled 'php5-fpm' 2>&1 - return code: 1
    02.03.2023-00:28 - DEBUG [system.inc:2099] - Failed to use Systemd to restart service php5-fpm, we try init script instead.
    02.03.2023-00:28 - DEBUG [system.inc:2109] - Using init script to restart service
    02.03.2023-00:28 - WARNING - No init script, we quit here.
    02.03.2023-00:28 - DEBUG [web module.inc:316] - Restarting php-fpm: 
    02.03.2023-00:28 - WARNING - We got no init command, restart or reload of php-fpm service aborted.
    
    I am a bit puzzled why it uses "php5-fpm" for the systemctl command. The "Path to the PHP-FPM init script" for that specific PHP version is "php5.6-fpm":
    Code:
    root@host:~# systemctl is-enabled php5.6-fpm
    enabled
    
    so why is ISPconfig checking the service php5-fpm instead of php5.6-fpm? I am using the latest ISPconfig version 3.2.9p1.

    Thanks for your help.
    KoS
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Most likely, this site uses the default php version of the OS and php5-fpm is used in the default PHP settings under system > server config.
     
  3. KoS

    KoS Member HowtoForge Supporter

    Thanks @till
    No, default on that server is 7.1, see the attached screenshots. So i have no idea from where "php5-fpm" is coming, as this worked for "years" without issues, even when changing the config of that specific vhost.
    20230302-120640_Selection_001.png 20230302-120707_Selection_001.png 20230302-120806_Selection_001.png
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    ok. Please post a screenshot of the fpm settings of this PHP 5.6 additional PHP version.
     
  5. KoS

    KoS Member HowtoForge Supporter

    Right, that screenshot was missing:
    upload_2023-3-2_12-14-54.png
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Hmm, ok. Please try this: choose a different PHP version in the affected site, press save, then choose PHP 5.6 again and press save. It might be that the config is saved as part of the site.
     
  7. KoS

    KoS Member HowtoForge Supporter

    I tried that already, and did it once again. When switch to e.g. 7.2:
    Code:
    02.03.2023-12:30 - DEBUG [system.inc:2399] - safe_exec cmd: which 'apache2ctl' 2> /dev/null - return code: 0
    02.03.2023-12:30 - DEBUG [apache2 plugin.inc:3445] - Writing the PHP-FPM config file: /etc/php/7.2/fpm/pool.d/web158.conf
    02.03.2023-12:30 - DEBUG [apache2 plugin.inc:3466] - Removed PHP-FPM config file: /etc/php/5.6/fpm/pool.d/web158.conf
    02.03.2023-12:30 - DEBUG [services.inc:56] - Calling function 'restartPHP_FPM' from module 'web_module'.
    02.03.2023-12:30 - DEBUG [system.inc:2082] - Trying to use Systemd to restart service
    02.03.2023-12:30 - DEBUG [system.inc:2399] - safe_exec cmd: systemctl is-enabled 'php5-fpm' 2>&1 - return code: 1
    02.03.2023-12:30 - DEBUG [system.inc:2099] - Failed to use Systemd to restart service php5-fpm, we try init script instead.
    02.03.2023-12:30 - DEBUG [system.inc:2109] - Using init script to restart service
    02.03.2023-12:30 - WARNING - No init script, we quit here.
    02.03.2023-12:30 - DEBUG [web module.inc:316] - Restarting php-fpm:
    02.03.2023-12:30 - WARNING - We got no init command, restart or reload of php-fpm service aborted.
    02.03.2023-12:30 - DEBUG [services.inc:56] - Calling function 'restartPHP_FPM' from module 'web_module'.
    02.03.2023-12:30 - DEBUG [system.inc:2082] - Trying to use Systemd to restart service
    02.03.2023-12:30 - DEBUG [system.inc:2399] - safe_exec cmd: systemctl is-enabled 'php7.2-fpm' 2>&1 - return code: 0
    02.03.2023-12:30 - DEBUG [web module.inc:316] - Restarting php-fpm: systemctl reload php7.2-fpm.service
    02.03.2023-12:30 - DEBUG [apache2 plugin.inc:1992] - Apache status is: running
    02.03.2023-12:30 - DEBUG [services.inc:56] - Calling function 'restartHttpd' from module 'web_module'.
    02.03.2023-12:30 - DEBUG [system.inc:2082] - Trying to use Systemd to restart service
    02.03.2023-12:30 - DEBUG [system.inc:2399] - safe_exec cmd: systemctl is-enabled 'apache2' 2>&1 - return code: 0
    02.03.2023-12:30 - DEBUG [web module.inc:246] - Restarting httpd: systemctl restart apache2.service
    02.03.2023-12:30 - DEBUG [apache2 plugin.inc:1995] - Apache restart return value is: 0
    02.03.2023-12:30 - DEBUG [apache2 plugin.inc:2006] - Apache online status after restart is: running
    02.03.2023-12:30 - DEBUG [modules.inc:205] - Processed datalog_id 271968
    
    ...and the vhost still runs with php5.6 -> phpinfo()[/CODE]
     
  8. KoS

    KoS Member HowtoForge Supporter

    wait, i had to manually stop and start all php-fpm services and now it switched to php7.2.. let's see what happens if i switch back to 5.6 again (as i need for that page really 5.6)
     
  9. KoS

    KoS Member HowtoForge Supporter

    switching back:
    Code:
    02.03.2023-12:38 - DEBUG [plugins.inc:118] - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_update'.
    02.03.2023-12:38 - DEBUG [plugins.inc:118] - Calling function 'update' from plugin 'apache2_plugin' raised by event 'web_domain_update'.
    02.03.2023-12:38 - DEBUG [system.inc:2399] - safe_exec cmd: chattr -i '/var/www/clients/client127/web158' - return code: 0
    02.03.2023-12:38 - DEBUG [system.inc:2399] - safe_exec cmd: chattr +i '/var/www/clients/client127/web158' - return code: 0
    02.03.2023-12:38 - DEBUG [system.inc:2399] - safe_exec cmd: df -T '/var/www/clients/client127/web158'|awk 'END{print $2,$NF}' - return code: 0
    02.03.2023-12:38 - DEBUG [system.inc:2399] - safe_exec cmd: which 'setquota' 2> /dev/null - return code: 0
    02.03.2023-12:38 - DEBUG [system.inc:2399] - safe_exec cmd: setquota -u 'web158' '0' '0' 0 0 -a &> /dev/null - return code: 1
    02.03.2023-12:38 - DEBUG [system.inc:2399] - safe_exec cmd: setquota -T -u 'web158' 604800 604800 -a &> /dev/null - return code: 1
    02.03.2023-12:38 - DEBUG [system.inc:2399] - safe_exec cmd: chattr +i '/var/www/clients/client127/web158' - return code: 0
    02.03.2023-12:38 - DEBUG [system.inc:2399] - safe_exec cmd: which 'apache2ctl' 2> /dev/null - return code: 0
    02.03.2023-12:38 - DEBUG [apache2 plugin.inc:1441] - Add server alias: xxx
    02.03.2023-12:38 - DEBUG [apache2 plugin.inc:1828] - Enable SSL for: xxx
    02.03.2023-12:38 - DEBUG [apache2 plugin.inc:1874] - Writing the vhost file: /etc/apache2/sites-available/xxx.vhost
    02.03.2023-12:38 - DEBUG [system.inc:2399] - safe_exec cmd: which 'apache2ctl' 2> /dev/null - return code: 0
    02.03.2023-12:38 - DEBUG [apache2 plugin.inc:3445] - Writing the PHP-FPM config file: /etc/php/5.6/fpm/pool.d/web158.conf
    02.03.2023-12:38 - DEBUG [apache2 plugin.inc:3466] - Removed PHP-FPM config file: /etc/php/7.2/fpm/pool.d/web158.conf
    02.03.2023-12:38 - DEBUG [services.inc:56] - Calling function 'restartPHP_FPM' from module 'web_module'.
    02.03.2023-12:38 - DEBUG [system.inc:2082] - Trying to use Systemd to restart service
    02.03.2023-12:38 - DEBUG [system.inc:2399] - safe_exec cmd: systemctl is-enabled 'php7.2-fpm' 2>&1 - return code: 0
    02.03.2023-12:38 - DEBUG [web module.inc:316] - Restarting php-fpm: systemctl reload php7.2-fpm.service
    02.03.2023-12:38 - DEBUG [services.inc:56] - Calling function 'restartPHP_FPM' from module 'web_module'.
    02.03.2023-12:38 - DEBUG [system.inc:2082] - Trying to use Systemd to restart service
    02.03.2023-12:38 - DEBUG [system.inc:2399] - safe_exec cmd: systemctl is-enabled 'php5-fpm' 2>&1 - return code: 1
    02.03.2023-12:38 - DEBUG [system.inc:2099] - Failed to use Systemd to restart service php5-fpm, we try init script instead.
    02.03.2023-12:38 - DEBUG [system.inc:2109] - Using init script to restart service
    02.03.2023-12:38 - WARNING - No init script, we quit here.
    02.03.2023-12:38 - DEBUG [web module.inc:316] - Restarting php-fpm:
    02.03.2023-12:38 - WARNING - We got no init command, restart or reload of php-fpm service aborted.
    02.03.2023-12:38 - DEBUG [apache2 plugin.inc:1992] - Apache status is: running
    02.03.2023-12:38 - DEBUG [services.inc:56] - Calling function 'restartHttpd' from module 'web_module'.
    02.03.2023-12:38 - DEBUG [system.inc:2082] - Trying to use Systemd to restart service
    02.03.2023-12:38 - DEBUG [system.inc:2399] - safe_exec cmd: systemctl is-enabled 'apache2' 2>&1 - return code: 0
    02.03.2023-12:38 - DEBUG [web module.inc:246] - Restarting httpd: systemctl restart apache2.service
    02.03.2023-12:38 - DEBUG [apache2 plugin.inc:1995] - Apache restart return value is: 0
    02.03.2023-12:38 - DEBUG [apache2 plugin.inc:2006] - Apache online status after restart is: running
    02.03.2023-12:38 - DEBUG [modules.inc:205] - Processed datalog_id 271971
    02.03.2023-12:38 - DEBUG [server:217] - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    finished server.php.
    
    and again i have to manually stop the php-fpm services and start as the 5.6 (before it was the 7.2) php-fpm service would fail to start.
    ...and the page is back on phpinfo() 5.6 .... but it still tries to start the service php5-fpm ?!
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Strange. And that's the current ISPConfig version?
     
  11. KoS

    KoS Member HowtoForge Supporter

    Yes, multi-server setup and all servers using ISPconfig 3.2.9p1.
    I cannot say when exactly it stopped working, may in 3.2.9 or already earlier :-(
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    Maybe the custom php settings in the database on the master and this slave system are not the same? Take a look into the database directly on the affected slave node, the table is server_php
     
  13. KoS

    KoS Member HowtoForge Supporter

    OMG, thanks for the hint, you were right! ... i have now adapted the slave DB of the webserver to be in line with the master server DB and the errors are gone. No idea how that did happen as I don't remember ever been changing the tables manually :-(

    Thanks¨
     
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    Most likely, a change from master db got not synced to the slave for whatever reason. You might have e.g. manually changed the updated value in server table to skip some transactions and the changes in PHP were within the skipped update range or something similar.
     
  15. KoS

    KoS Member HowtoForge Supporter

    Is there a "simple" way to make sure that no other differences between the master and slave server exists? Some kind of "compare" script or so?
     
  16. till

    till Super Moderator Staff Member ISPConfig Developer

    No.
     

Share This Page