Hello all, I'm having issue with my ISPConfig, I still have operations in pending status (red circle on top), and every operations I made, went in pending status and don't complet. How can I fix this? I think if I reboot my server will not be a good idea because the risk is to have those operations done at half. Thanks in advance! Best regards, Alessandro
You need to troubleshoot the reason why changes are not written to disk and/or db. https://forum.howtoforge.com/threads/please-read-before-posting.58408/ Read the "not writing changes to disk" -part.
Hi Talesman, thankyou for your reply! I stop here, I can't switch to debug due to the problem I'm having, also switching into debug still in pending.
You can switch to debug mode as it's read directly from the database, it does not matter if pending jobs are stuck or not for this. Follow the instructions to enable debug mode and then post the output you get from server.sh.
Ok, I do it. First question, is this sintax correct? Code: * * * * * /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 Here what I get: Code: root@webserver-arc:~# /usr/local/ispconfig/server/server.sh 24.03.2023-18:49 - WARNING - There is already a lockfile set, but no process running with this pid (124902). Continuing. 24.03.2023-17:49 - DEBUG [plugins.inc:155] - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'. 24.03.2023-17:49 - DEBUG [server:177] - Found 16 changes, starting update process. 24.03.2023-17:49 - DEBUG [plugins.inc:118] - Calling function 'insert' from plugin 'shelluser_base_plugin' raised by event 'shell_user_insert'. 24.03.2023-17:49 - DEBUG [system.inc:2399] - safe_exec cmd: chattr -i '/var/www/clients/client1/web7' - return code: 0 useradd: user 'alessandro' already exists 24.03.2023-17:49 - DEBUG [system.inc:2399] - safe_exec cmd: useradd -d '/var/www/clients/client1/web7/home/alessandro' -g 'client1' -o -s '/bin/false' -u '5009' 'alessandro' - return code: 9 24.03.2023-17:49 - DEBUG [shelluser base plugin.inc:138] - Executed command: useradd -d ? -g ? -o -s ? -u ? ? 24.03.2023-17:49 - DEBUG [shelluser base plugin.inc:139] - Added shelluser: alessandro 24.03.2023-17:49 - DEBUG [shelluser base plugin.inc:431] - ssh-rsa setup shelluser_base PHP Warning: Undefined variable $new_lines in /usr/local/ispconfig/server/lib/classes/file.inc.php on line 126 PHP Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array, bool given in /usr/local/ispconfig/server/plugins-available/shelluser_base_plugin.inc.php:480 Stack trace: #0 /usr/local/ispconfig/server/plugins-available/shelluser_base_plugin.inc.php(480): array_merge() #1 /usr/local/ispconfig/server/plugins-available/shelluser_base_plugin.inc.php(157): shelluser_base_plugin->_setup_ssh_rsa() #2 /usr/local/ispconfig/server/lib/classes/plugins.inc.php(120): shelluser_base_plugin->insert() #3 /usr/local/ispconfig/server/mods-available/web_module.inc.php(150): plugins->raiseEvent() #4 /usr/local/ispconfig/server/lib/classes/modules.inc.php(302): web_module->process() #5 /usr/local/ispconfig/server/lib/classes/modules.inc.php(235): modules->raiseTableHook() #6 /usr/local/ispconfig/server/server.php(180): modules->processDatalog() #7 {main} thrown in /usr/local/ispconfig/server/plugins-available/shelluser_base_plugin.inc.php on line 480 root@webserver-arc:~# Waiting for your help Best regards, Alessandro
That#s an issue related to the use of PHP 8, it has been fixed in develop branch already. Replace the file: /usr/local/ispconfig/server/lib/classes/file.inc.php with this one: https://git.ispconfig.org/ispconfig.../server/lib/classes/file.inc.php?inline=false
Hi Till, I have change file.inc.php but I still have operations in pending, what I have to do to solve it?
Here what I get: Code: root@webserver-arc:~# crontab -e crontab: installing new crontab root@webserver-arc:~# /usr/local/ispconfig/server/server.sh 27.03.2023-10:17 - WARNING - There is already a lockfile set, but no process running with this pid (437389). Continuing. 27.03.2023-09:17 - DEBUG [plugins.inc:155] - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'. 27.03.2023-09:17 - DEBUG [server:177] - Found 20 changes, starting update process. 27.03.2023-09:17 - DEBUG [plugins.inc:118] - Calling function 'insert' from plugin 'shelluser_base_plugin' raised by event 'shell_user_insert'. 27.03.2023-09:17 - DEBUG [system.inc:2399] - safe_exec cmd: chattr -i '/var/www/clients/client1/web7' - return code: 0 useradd: user 'alessandro' already exists 27.03.2023-09:17 - DEBUG [system.inc:2399] - safe_exec cmd: useradd -d '/var/www/clients/client1/web7/home/alessandro' -g 'client1' -o -s '/bin/false' -u '5009' 'alessandro' - return code: 9 27.03.2023-09:17 - DEBUG [shelluser base plugin.inc:138] - Executed command: useradd -d ? -g ? -o -s ? -u ? ? 27.03.2023-09:17 - DEBUG [shelluser base plugin.inc:139] - Added shelluser: alessandro 27.03.2023-09:17 - DEBUG [shelluser base plugin.inc:431] - ssh-rsa setup shelluser_base PHP Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array, bool given in /usr/local/ispconfig/server/plugins-available/shelluser_base_plugin.inc.php:480 Stack trace: #0 /usr/local/ispconfig/server/plugins-available/shelluser_base_plugin.inc.php(480): array_merge() #1 /usr/local/ispconfig/server/plugins-available/shelluser_base_plugin.inc.php(157): shelluser_base_plugin->_setup_ssh_rsa() #2 /usr/local/ispconfig/server/lib/classes/plugins.inc.php(120): shelluser_base_plugin->insert() #3 /usr/local/ispconfig/server/mods-available/web_module.inc.php(150): plugins->raiseEvent() #4 /usr/local/ispconfig/server/lib/classes/modules.inc.php(302): web_module->process() #5 /usr/local/ispconfig/server/lib/classes/modules.inc.php(235): modules->raiseTableHook() #6 /usr/local/ispconfig/server/server.php(180): modules->processDatalog() #7 {main} thrown in /usr/local/ispconfig/server/plugins-available/shelluser_base_plugin.inc.php on line 480 root@webserver-arc:~#
Did you show what OS and what versions of PHP are on that host? You could run the report geneeration from the read before posting, linked to in #2. Then post the result in CODE tags.
Code: root@webserver-arc:~# lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye root@webserver-arc:~# root@webserver-arc:~# php -v PHP 8.1.17 (cli) (built: Mar 16 2023 14:37:38) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.17, Copyright (c) Zend Technologies with Zend OPcache v8.1.17, Copyright (c), by Zend Technologies root@webserver-arc:~#
On Debian 11 the default version of PHP is 7.4. If you have changed it to 8.1 that may cause problems. If you do not want to run the common-issues test script, at least show output of commands Code: update-alternatives --config php update-alternatives --config php-cgi
Code: root@webserver-arc:~# update-alternatives --config php There are 5 choices for the alternative php (providing /usr/bin/php). Selection Path Priority Status ------------------------------------------------------------ 0 /usr/bin/php8.2 82 auto mode 1 /usr/bin/php7.3 73 manual mode 2 /usr/bin/php7.4 74 manual mode 3 /usr/bin/php8.0 80 manual mode * 4 /usr/bin/php8.1 81 manual mode 5 /usr/bin/php8.2 82 manual mode Press <enter> to keep the current choice[*], or type selection number: ^C root@webserver-arc:~# update-alternatives --config php-cgi There are 5 choices for the alternative php-cgi (providing /usr/bin/php-cgi). Selection Path Priority Status ------------------------------------------------------------ 0 /usr/bin/php-cgi8.2 82 auto mode 1 /usr/bin/php-cgi7.3 73 manual mode * 2 /usr/bin/php-cgi7.4 74 manual mode 3 /usr/bin/php-cgi8.0 80 manual mode 4 /usr/bin/php-cgi8.1 81 manual mode 5 /usr/bin/php-cgi8.2 82 manual mode Press <enter> to keep the current choice[*], or type selection number: ^C root@webserver-arc:~# I need to have php 8.1.x also in cli, else Drupal 9.x websites don't work, I manage them via composer, plus some contrib modules need php 8.1.x also in cli to work.
You can call Drupal scripts on cli with a specific PHP version instead of the default one. Or you can update ISPConfig to nightly version to see if the issue you have is already fixed there.
Hi Till, no I mean how can I tell to Drupal to use different PHP version than default one, setting default PHP to 7.4.x solved the issue of pending operations.
No, maybe I have not clearly explain how it works, but Drupal 9.5.x and > and some of contrib modules needs to have PHP at least at 8.1 to work, else website don't work, I can't use php8.1 or /usr/bin/php8.1 to run command, they were gave directly from Drupal and it's modules, so I need to have php8.1 also on cli. Is there a way to add php8.1-cli only on drupal website's path? I mean, I can choose which wersion of PHP use on apache, is there a way to do the same on cli?
You can use Drupal cli with different PHP version: https://www.thinkbean.com/drupal-development-blog/running-drush-alternate-version-php And website PHP version is configurable in ISPConfig anyway. So no need to change default PHP version of the OS as other applications might fail as well when you do that, that#s why we highly recommend to never change default PHP version of an OS.