PHP errors in ssh jailkit plugin

Discussion in 'Developers' Forum' started by Michael Beck, Jan 20, 2023.

  1. Michael Beck

    Michael Beck New Member

    we have the same problem here. After replacing the file, it now throws the following errors:
    20.01.2023-10:06 - WARNING - There is already a lockfile set, but no process running with this pid (6349). Continuing.
    useradd: Benutzer »dummy_username« existiert bereits
    PHP Warning: Undefined variable $new_lines in /usr/local/ispconfig/server/lib/classes/file.inc.php on line 126
    PHP Warning: Undefined variable $options in /usr/local/ispconfig/server/plugins-available/shelluser_jailkit_plugin.inc.php on line 340
    PHP Warning: Undefined variable $options in /usr/local/ispconfig/server/plugins-available/shelluser_jailkit_plugin.inc.php on line 343
    usermod: user dummy_user is currently used by process 25079
    failed to execute usermod -d /var/www/clients/xxx/xxx/./home/dummy_username -s /usr/sbin/jk_chrootsh dummy_username
    failed to modify user dummy_username
    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_jailkit_plugin.inc.php:530
    Stack trace:
    #0 /usr/local/ispconfig/server/plugins-available/shelluser_jailkit_plugin.inc.php(530): array_merge()
    #1 /usr/local/ispconfig/server/plugins-available/shelluser_jailkit_plugin.inc.php(135): shelluser_jailkit_plugin->_setup_ssh_rsa()
    #2 /usr/local/ispconfig/server/lib/classes/plugins.inc.php(120): shelluser_jailkit_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_jailkit_plugin.inc.php on line 530
     
    Last edited: Jan 20, 2023
  2. Michael Beck

    Michael Beck New Member

    In our case it is an existing system with Debian 10 and ISPConfig 3.2.9. The error occurred when creating a shell user.
     
  3. Michael Beck

    Michael Beck New Member

    After replacing the file it now throws the following error:
    20.01.2023-10:18 - WARNING - There is already a lockfile set, but no process running with this pid (25597). Continuing.
    PHP Fatal error: Cannot declare class shelluser_base_plugin, because the name is already in use in /usr/local/ispconfig/server/plugins-available/shelluser_jailkit_plugin.inc.php on line 31
     
    Last edited: Jan 20, 2023
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    I moved your posts to a new thread, as the other thread is about the Migration Tool only and also about a different file. Please post the output of the command:

    php --version

    To me, it looks like you changed the default PHP version, which is PHP 7.3 on Debian 10, to a different version like PHP 8.1. This is not supported by ISPConfig as mentioned hundreds of times in the forum already. Never change the default PHP version of the OS, as it breaks ISPConfig and also other packages of your system that use PHP. You can use newer and older PHP versions as additional PHP versions in ISPConfig, the default version only changes when you upgrade the OS.
     
    Last edited: Jan 20, 2023
    Michael Beck likes this.
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Which indicates that you duplicated files in /usr/local/ispconfig/server/plugins-available/
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    ahrasis likes this.
  7. Michael Beck

    Michael Beck New Member

    Sorry, you're right. I'm afraid someone wasn't paying attention when installing PHP 8.1.
     

Share This Page