I upgraded Debian11.8 to 12.1 by following Update the ISPConfig Perfect Server from Debian 11 to Debian 12 (howtoforge.com) The exist ispconfig ISPConfig 3.2.10p2 in the server upgraded to 3.2.11. Web services run in the server. But if i edit a value about Sites in config panel, The server can not update it with crontab. The panel gives an warning "The following changes are not yet populated to all servers:" There was no problem about the crontab before. Also in the ispconfg admin panel, i see the old ispconfig version in side of the Monitor Tab like "(Debian Unknown) ISPConfig 3.2.10p2" But in the Help tab shows the correct ispconfig version "ISPConfig Version: 3.2.11" So i need to run the command "/usr/local/ispconfig/server/server.sh" manually . How can i fix it ?
I edited debug log level and i ran server.sh like below # sudo /usr/local/ispconfig/server/server.sh 22.10.2023-17:41 - DEBUG [plugins.inc:155] - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'. 22.10.2023-17:41 - DEBUG [system.inc:2430] - safe_exec cmd: grep ^opcache.validate_root '/etc/php/8.2/apache2/php.ini' - return code: 0 22.10.2023-17:41 - DEBUG [system.inc:2430] - safe_exec cmd: grep ^opcache.validate_root '/etc/php/8.2/cgi/php.ini' - return code: 0 22.10.2023-17:41 - DEBUG [system.inc:2430] - safe_exec cmd: grep ^opcache.validate_root '/etc/php/8.2/fpm//php.ini' - return code: 0 22.10.2023-17:41 - DEBUG [system.inc:2430] - safe_exec cmd: grep ^opcache.validate_root '/etc/php/8.1/cgi//php.ini' - return code: 0 22.10.2023-17:41 - DEBUG [system.inc:2430] - safe_exec cmd: grep ^opcache.validate_root '/etc/php/8.1/fpm//php.ini' - return code: 0 22.10.2023-17:41 - DEBUG [server:177] - Found 3 changes, starting update process. 22.10.2023-17:41 - DEBUG [plugins.inc:118] - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_update'. 22.10.2023-17:41 - DEBUG [plugins.inc:118] - Calling function 'update' from plugin 'apache2_plugin' raised by event 'web_domain_update'. 22.10.2023-17:41 - DEBUG [system.inc:2430] - safe_exec cmd: chattr -i '/var/www/clients/client89/web165' - return code: 0 22.10.2023-17:41 - DEBUG [system.inc:2430] - safe_exec cmd: chattr +i '/var/www/clients/client89/web165' - return code: 0 22.10.2023-17:41 - DEBUG [system.inc:2430] - safe_exec cmd: df -T '/var/www/clients/client89/web165'|awk 'END{print $2,$NF}' - return code: 0 22.10.2023-17:41 - DEBUG [system.inc:2430] - safe_exec cmd: which 'setquota' 2> /dev/null - return code: 0 22.10.2023-17:41 - DEBUG [system.inc:2430] - safe_exec cmd: setquota -u 'web165' '1025024' '1026048' 0 0 -a &> /dev/null - return code: 0 setquota: Not setting block grace time on /dev/mapper/webcp1--vg-root because softlimit is not exceeded. setquota: Not setting inode grace time on /dev/mapper/webcp1--vg-root because softlimit is not exceeded. 22.10.2023-17:41 - DEBUG [system.inc:2430] - safe_exec cmd: setquota -T -u 'web165' 604800 604800 -a &> /dev/null - return code: 0 22.10.2023-17:41 - DEBUG [system.inc:2430] - safe_exec cmd: chattr +i '/var/www/clients/client89/web165' - return code: 0 22.10.2023-17:41 - DEBUG [system.inc:2430] - safe_exec cmd: which 'apache2ctl' 2> /dev/null - return code: 0 22.10.2023-17:41 - DEBUG [system.inc:2430] - safe_exec cmd: which 'apache2ctl' 2> /dev/null - return code: 0 22.10.2023-17:41 - DEBUG [apache2 plugin.inc:1830] - Enable SSL for: aktifkimya.com 22.10.2023-17:41 - DEBUG [apache2 plugin.inc:1891] - Writing the vhost file: /etc/apache2/sites-available/activebr.com.vhost 22.10.2023-17:41 - DEBUG [system.inc:2430] - safe_exec cmd: which 'apache2ctl' 2> /dev/null - return code: 0 22.10.2023-17:41 - DEBUG [apache2 plugin.inc:3462] - Writing the PHP-FPM config file: /etc/php/8.2/fpm/pool.d/web165.conf 22.10.2023-17:41 - DEBUG [services.inc:56] - Calling function 'restartPHP_FPM' from module 'web_module'. 22.10.2023-17:41 - DEBUG [system.inc:2083] - Trying to use Systemd to restart service 22.10.2023-17:41 - DEBUG [system.inc:2430] - safe_exec cmd: systemctl is-enabled 'php8.2-fpm' 2>&1 - return code: 0 22.10.2023-17:41 - DEBUG [web module.inc:316] - Restarting php-fpm: systemctl reload php8.2-fpm.service 22.10.2023-17:41 - DEBUG [apache2 plugin.inc:2009] - Apache status is: running 22.10.2023-17:41 - DEBUG [services.inc:56] - Calling function 'restartHttpd' from module 'web_module'. 22.10.2023-17:41 - DEBUG [system.inc:2083] - Trying to use Systemd to restart service 22.10.2023-17:41 - DEBUG [system.inc:2430] - safe_exec cmd: systemctl is-enabled 'apache2' 2>&1 - return code: 0 22.10.2023-17:41 - DEBUG [web module.inc:246] - Restarting httpd: systemctl restart apache2.service 22.10.2023-17:41 - DEBUG [apache2 plugin.inc:2012] - Apache restart return value is: 0 22.10.2023-17:41 - DEBUG [apache2 plugin.inc:2023] - Apache online status after restart is: running 22.10.2023-17:41 - DEBUG [plugins.inc:118] - Calling function 'update' from plugin 'php_fpm_jailkit_plugin' raised by event 'web_domain_update'. PHP Warning: Undefined property: php_fpm_jailkit_plugin::$action in /usr/local/ispconfig/server/plugins-available/php_fpm_jailkit_plugin.inc.php on line 88 22.10.2023-17:41 - DEBUG [modules.inc:240] - Processed datalog_id 3629 22.10.2023-17:41 - DEBUG [plugins.inc:118] - Calling function 'server_ip' from plugin 'apache2_plugin' raised by event 'server_update'. 22.10.2023-17:41 - DEBUG [system.inc:2430] - safe_exec cmd: which 'apache2ctl' 2> /dev/null - return code: 0 22.10.2023-17:41 - DEBUG [apache2 plugin.inc:2485] - Writing the conf file: /etc/apache2/sites-available/ispconfig.conf 22.10.2023-17:41 - DEBUG [plugins.inc:118] - Calling function 'update' from plugin 'apps_vhost_plugin' raised by event 'server_update'. 22.10.2023-17:41 - DEBUG [system.inc:2430] - safe_exec cmd: which 'apache2ctl' 2> /dev/null - return code: 0 22.10.2023-17:41 - DEBUG [plugins.inc:118] - Calling function 'update' from plugin 'network_settings_plugin' raised by event 'server_update'. 22.10.2023-17:41 - DEBUG [network settings plugin.inc:249] - Network configuration disabled in server settings. 22.10.2023-17:41 - DEBUG [plugins.inc:118] - Calling function 'update' from plugin 'postfix_server_plugin' raised by event 'server_update'. 22.10.2023-17:41 - WARNING - postfix_server_plugin: plugin is enabled but this server is not configured as a mail server. PHP Warning: Undefined array key "hostname" in /usr/local/ispconfig/server/lib/app.inc.php on line 324 PHP Warning: Undefined array key "hostname" in /usr/local/ispconfig/server/lib/app.inc.php on line 324 22.10.2023-17:41 - DEBUG [plugins.inc:118] - Calling function 'server_update' from plugin 'rspamd_plugin' raised by event 'server_update'. 22.10.2023-17:41 - DEBUG [plugins.inc:118] - Calling function 'update' from plugin 'server_services_plugin' raised by event 'server_update'. 22.10.2023-17:41 - DEBUG [plugins.inc:118] - Calling function 'server_update' from plugin 'webserver_plugin' raised by event 'server_update'. 22.10.2023-17:41 - DEBUG [modules.inc:240] - Processed datalog_id 3630 22.10.2023-17:41 - DEBUG [plugins.inc:118] - Calling function 'server_ip' from plugin 'apache2_plugin' raised by event 'server_update'. 22.10.2023-17:41 - DEBUG [system.inc:2430] - safe_exec cmd: which 'apache2ctl' 2> /dev/null - return code: 0 22.10.2023-17:41 - DEBUG [apache2 plugin.inc:2485] - Writing the conf file: /etc/apache2/sites-available/ispconfig.conf 22.10.2023-17:41 - DEBUG [plugins.inc:118] - Calling function 'update' from plugin 'apps_vhost_plugin' raised by event 'server_update'. 22.10.2023-17:41 - DEBUG [system.inc:2430] - safe_exec cmd: which 'apache2ctl' 2> /dev/null - return code: 0 22.10.2023-17:41 - DEBUG [plugins.inc:118] - Calling function 'update' from plugin 'network_settings_plugin' raised by event 'server_update'. 22.10.2023-17:41 - DEBUG [network settings plugin.inc:249] - Network configuration disabled in server settings. 22.10.2023-17:41 - DEBUG [plugins.inc:118] - Calling function 'update' from plugin 'postfix_server_plugin' raised by event 'server_update'. 22.10.2023-17:41 - WARNING - postfix_server_plugin: plugin is enabled but this server is not configured as a mail server. PHP Warning: Undefined array key "hostname" in /usr/local/ispconfig/server/lib/app.inc.php on line 324 PHP Warning: Undefined array key "hostname" in /usr/local/ispconfig/server/lib/app.inc.php on line 324 22.10.2023-17:41 - DEBUG [plugins.inc:118] - Calling function 'server_update' from plugin 'rspamd_plugin' raised by event 'server_update'. 22.10.2023-17:41 - DEBUG [plugins.inc:118] - Calling function 'update' from plugin 'server_services_plugin' raised by event 'server_update'. 22.10.2023-17:41 - DEBUG [plugins.inc:118] - Calling function 'server_update' from plugin 'webserver_plugin' raised by event 'server_update'. 22.10.2023-17:41 - DEBUG [modules.inc:240] - Processed datalog_id 3631 22.10.2023-17:41 - DEBUG [services.inc:56] - Calling function 'restartHttpd' from module 'web_module'. 22.10.2023-17:41 - DEBUG [system.inc:2083] - Trying to use Systemd to restart service 22.10.2023-17:41 - DEBUG [system.inc:2430] - safe_exec cmd: systemctl is-enabled 'apache2' 2>&1 - return code: 0 22.10.2023-17:41 - DEBUG [web module.inc:246] - Restarting httpd: systemctl restart apache2.service 22.10.2023-17:41 - DEBUG [server:217] - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock finished server.php.
So the system works fine, its just that either the ISPConfig crontab entry has been removed or commented out, or corn is not running on your system. Run the command: crontab -l as root user and post the result.
# crontab -l 11 2 * * * /etc/webmin/mysql/backup.pl --all 48 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null * * * * * /usr/local/ispconfig/server/server.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done * * * * * /usr/local/ispconfig/server/cron.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done Note: Also I noticed a thing, from the previous ispconfig 3.2.10p2 to 3.2.11, mail service is affected , users mail form do not work . I use only one ispconfig server. not another node. I use it only web and mysql server. I do not use it as dns and mail servers.
# crontab -l 11 2 * * * /etc/webmin/mysql/backup.pl --all 48 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null * * * * * /usr/local/ispconfig/server/server.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done * * * * * /usr/local/ispconfig/server/cron.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done
The crontab looks fine, so most likely cron is not running on your system. or sometimes cron fails to detect changes, you can e.g. try using "crontab -e" command to edit the crontab, e.g. change the time of webmin backup script, and save it to see if cron works then. If not, you must check why cron daemon is not running.
Yes it is correct. cron is down # sudo systemctl start cron Failed to start cron.service: Unit cron.service is masked. how can i fix it ?
It fixed using run below commands: systemctl unmask cron.service sudo systemctl enable cron.service sudo systemctl start cron.service