Migration ispconfig3 stucks waiting for job queue

Discussion in 'Plugins/Modules/Addons' started by sou19, Jan 19, 2023.

  1. sou19

    sou19 New Member

    I'm migrating new ispconfig3 server from an old ispconfig3 server
    The job has been blocked for a while
    [1/1] <SSHUser> processing countftp
    Processing of entries done.
    Target ISPConfig job queue has 103 entries left. Waiting ..

    migrate.log :
    2023-01-19 17:57:22 - [INFO] Job queue has 103 entries left. Waiting ...
    2023-01-19 18:25:50 - [WARN] JSON API ERROR: session expired. Trying re-login!
    2023-01-19 18:55:52 - [WARN] JSON API ERROR: session expired. Trying re-login!
    2023-01-19 19:25:54 - [WARN] JSON API ERROR: session expired. Trying re-login!
    2023-01-19 19:55:56 - [WARN] JSON API ERROR: session expired. Trying re-login!
    2023-01-19 20:25:58 - [WARN] JSON API ERROR: session expired. Trying re-login!
    2023-01-19 20:56:00 - [WARN] JSON API ERROR: session expired. Trying re-login!
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Does the ISPConfig GUI on the new server shows pending jobs?
     
  3. sou19

    sou19 New Member

    Yes, on the Jobqueue :
    2023-01-19 21:30 server name Update web_database_user
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

  5. sou19

    sou19 New Member

    Code:
    /usr/local/ispconfig/server/server.sh
    No updates available. I was already running ISPConfig 3.2.9

    When running /usr/local/ispconfig/server/server.sh I get the following:

    WARNING - There is already a lockfile set, but no process running with this pid (59889). Continuing.
    useradd: user 'usrftp' already exists
    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
     
    Last edited: Jan 19, 2023
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    It seems to be a PHP 8.x related issue in ISPConfig 3.2.9, which nobody else has noticed yet. I made a quick fix that should resolve it. Please replace the file /usr/local/ispconfig/server/plugins-available/shelluser_base_plugin.inc.php with this one https://git.ispconfig.org/ispconfig...ugins-available/shelluser_base_plugin.inc.php on your new system and run server.sh again, it should process the pending requests now.
     
    ahrasis likes this.
  7. sou19

    sou19 New Member

    thank you for your answer

    I replaced shelluser_base_plugin.inc.php and ran the server.sh script

    PHP:
    PHP Fatal errorUncaught Error: Class "shelluser_base_plugin" not found in /usr/local/ispconfig/server/lib/classes/plugins.inc.php:67
    Stack trace
    :
    #0 /usr/local/ispconfig/server/server.php(172): plugins->loadPlugins()
    #1 {main}
      
    thrown in /usr/local/ispconfig/server/lib/classes/plugins.inc.php on line 67
    HTML:
    # ll /usr/local/ispconfig/server/plugins-available/
    total 956
    drwxr-x---  2 root root   4096 Jan 20 14:56 ./
    drwxr-x--- 13 root root   4096 Jan 14 17:31 ../
    -rwxr-x---  1 root root 180683 Jan 14 17:31 apache2_plugin.inc.php*
    -rwxr-x---  1 root root  11495 Jan 14 17:31 apps_vhost_plugin.inc.php*
    -rwxr-x---  1 root root   3794 Jan 14 17:31 aps_plugin.inc.php*
    -rwxr-x---  1 root root  14126 Jan 14 17:31 backup_plugin.inc.php*
    -rwxr-x---  1 root root  11201 Jan 14 17:31 bind_dlz_plugin.inc.php*
    -rwxr-x---  1 root root  24596 Jan 14 17:31 bind_plugin.inc.php*
    -rwxr-x---  1 root root  15594 Jan 14 17:31 cron_jailkit_plugin.inc.php*
    -rwxr-x---  1 root root  11872 Jan 14 17:31 cron_plugin.inc.php*
    -rwxr-x---  1 root root   9273 Jan 14 17:31 firewall_plugin.inc.php*
    -rwxr-x---  1 root root   4731 Jan 14 17:31 ftpuser_base_plugin.inc.php*
    -rwxr-x---  1 root root   6595 Jan 14 17:31 getmail_plugin.inc.php*
    -rwxr-x---  1 root root   1965 Jan 14 17:31 iptables_plugin.inc.php*
    -rwxr-x---  1 root root  28002 Jan 14 17:31 mail_plugin.inc.php*
    -rwxr-x---  1 root root  17137 Jan 14 17:31 mail_plugin_dkim.inc.php*
    -rwxr-x---  1 root root  11964 Jan 14 17:31 maildeliver_plugin.inc.php*
    -rwxr-x---  1 root root  12702 Jan 14 17:31 maildrop_plugin.inc.php*
    -rwxr-x---  1 root root   6643 Jan 14 17:31 mailman_plugin.inc.php*
    -rwxr-x---  1 root root  25834 Jan 14 17:31 mongo_clientdb_plugin.inc.php~*
    -rwxr-x---  1 root root  39521 Jan 14 17:31 mysql_clientdb_plugin.inc.php*
    -rwxr-x---  1 root root  13585 Jan 14 17:31 network_settings_plugin.inc.php*
    -rwxr-x---  1 root root 178211 Jan 14 17:31 nginx_plugin.inc.php*
    -rwxr-x---  1 root root  11948 Jan 14 17:31 nginx_reverseproxy_plugin.inc.php*
    -rwxr-x---  1 root root   6991 Jan 14 17:31 openvz_plugin.inc.php*
    -rwxr-x---  1 root root   4358 Jan 14 17:31 pma_symlink_plugin.inc.php*
    -rwxr-x---  1 root root   5046 Jan 14 17:31 postfix_filter_plugin.inc.php*
    -rwxr-x---  1 root root  19351 Jan 14 17:31 postfix_server_plugin.inc.php*
    -rwxr-x---  1 root root  23926 Jan 14 17:31 powerdns_plugin.inc.php*
    -rwxr-x---  1 root root  21822 Jan 14 17:31 rspamd_plugin.inc.php*
    -rwxr-x---  1 root root   5501 Jan 14 17:31 server_services_plugin.inc.php*
    -rwxr-x---  1 root root  85712 Jan 20 14:54 shelluser_base_plugin.inc.php*
    -rwxr-x---  1 root root  25959 Jan 14 17:31 shelluser_jailkit_plugin.inc.php*
    -rwxr-x---  1 root root   2771 Jan 14 17:31 software_update_plugin.inc.php*
    -rwxr-x---  1 root root   5510 Jan 14 17:31 squid_plugin.inc.php*
    -rwxr-x---  1 root root   4349 Jan 14 17:31 webmail_symlink_plugin.inc.php*
    -rwxr-x---  1 root root  13655 Jan 14 17:31 webserver_plugin.inc.php*
    -rwxr-x---  1 root root   2492 Jan 14 17:31 website_symlink_plugin.inc.php*
    -rwxr-x---  1 root root  18244 Jan 14 17:31 xmpp_plugin.inc.php*
    -rwxr-x---  1 root root   5351 Jan 14 17:31 z_php_fpm_incron_reload_plugin.inc.php*
    
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Maybe you downloaded and saved the GitLab html page there and not the actual file?
     
  9. sou19

    sou19 New Member

    You are right I downloaded the right file and the migration worked except that I have several errors

    Code:
    chattr: No such file or directory while trying to stat /var/www/clients/clientxx/webxx
     [ERROR] job failed
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Does the directory /var/www/clients/clientxx/webxx exist on new server? Does it exist on old server?

    Generally, it's always better to contact the migration tool support instead of asking the community forum for help.
     
  11. sou19

    sou19 New Member

    Thanks a lot,

    I have selected the default PHP version for my operating system 7.3

    Code:
    update-alternatives --config php
    update-alternatives --config php-cgi
    The migration has been successfully completed
    I think that was the issue
     
    till likes this.

Share This Page