ISPConfig Migration Toolkit: ERROR und WARN due to domains

Discussion in 'Plugins/Modules/Addons' started by Bocki, Aug 12, 2023.

  1. Bocki

    Bocki Member HowtoForge Supporter

    Hi,
    I get the following error messages during use of the ISPConfig Migration Toolkit:
    Code:
    [...]
    Starting API calls.
    [2/2] <Client> processing c00002 (c00002)                                                                                   
    [ERROR] API call to domains_domain_add failed. See log file for details.                                                   
    [6/6] <Domain> processing mail.xyz.de                                                                         
    [ERROR] API call to sites_web_domain_add failed. See log file for details.                                                 
    [WARN] Could not find parent record for domain .
    [6/6] <Website> processing mail.xyz.de with autosub none
    [...]
    From the log file:
    Code:
    [...]
    2023-08-12 07:45:12 - [INFO] Rsync copy from /etc/letsencrypt/ to /etc/letsencrypt/ successful.
    2023-08-12 07:45:13 - [ERROR] API call to domains_domain_add failed.
    2023-08-12 07:45:13 - [ERROR] JSON API REPLY ERROR: domain_error_empty<br />
    domain_error_regex<br />
     - Arguments sent were: array (
      'client_id' => '2',
      'params' =>
      array (
        'domain' => '',
        '_migrate_status' => NULL,
        '_migrate_status_type' => NULL,
        '_migrate_status_dep' => NULL,
      ),
      'session_id' => 'j5db610dc93f95dbe3ab320f419d9704b8d6229a0',
    )
    2023-08-12 07:45:13 - [ERROR] API call to sites_web_domain_add failed.
    2023-08-12 07:45:13 - [ERROR] JSON API REPLY ERROR: domain_error_empty<br>
     - Arguments sent were: array (
      'client_id' => '2',
      'params' =>
      array (
        'server_id' => '1',
        'ip_address' => '*',
        'ipv6_address' => '',
        'domain' => '',
        'type' => '',
        'parent_domain_id' => '0',
        'vhost_type' => '',
        'hd_quota' => -1,
        'traffic_quota' => '-1',
        'cgi' => 'y',
        'ssi' => 'y',
        'suexec' => 'y',
        'errordocs' => '1',
        'subdomain' => 'none',
        'ssl' => 'n',
        'php' => 'y',
        'fastcgi_php_version' => '',
        'server_php_id' => '0',
        'perl' => 'n',
        'ruby' => 'n',
        'python' => 'n',
        'active' => 'y',
        'allow_override' => 'All',
        'redirect_type' => '',
        'redirect_path' => '',
        'seo_redirect' => 'non_www_to_www',
        'ssl_domain' => '',
        'ssl_key' => '',
        'ssl_request' => '',
        'ssl_cert' => '',
        'ssl_bundle' => '',
        'ssl_action' => '',
        'stats_password' => '',
        'stats_type' => 'webalizer',
        'custom_php_ini' => '',
        'apache_directives' => '',
        'backup_interval' => 'none',
        'backup_copies' => '1',
        'pm' => 'dynamic',
        'http_port' => '80',
        'https_port' => '443',
        'pm_max_children' => '10',
        'pm_start_servers' => '2',
        'pm_max_spare_servers' => '5',
        'pm_process_idle_timeout' => '10',
        'pm_max_requests' => '0',
        'sys_perm_user' => 'riud',
        'sys_perm_group' => 'ru',
        'sys_perm_other' => '',
        'web_folder' => '',
        'is_subdomainwww' => '1',
        'rewrite_to_https' => 'n',
        'ssl_state' => '',
        'ssl_locality' => '',
        'ssl_organisation' => '',
        'ssl_organisation_unit' => '',
        'ssl_country' => 'AF',
        'nginx_directives' => '',
        'php_fpm_use_socket' => 'y',
        'php_fpm_chroot' => 'n',
        'pm_min_spare_servers' => '1',
        'backup_format_web' => 'default',
        'backup_format_db' => 'gzip',
        'backup_encrypt' => 'n',
        'backup_password' => '',
        'backup_excludes' => '',
        'traffic_quota_lock' => 'n',
        'proxy_directives' => '',
        'last_quota_notification' => '0000-00-00',
        'rewrite_rules' => '',
        'added_date' => '2024-11-20',
        'added_by' => 'admin',
        'ssl_letsencrypt' => 'n',
        'ssl_letsencrypt_exclude' => 'n',
        'directive_snippets_id' => '0',
        'enable_pagespeed' => 'n',
        'folder_directive_snippets' => NULL,
        'log_retention' => '30',
        'proxy_protocol' => 'n',
        'jailkit_chroot_app_sections' => NULL,
        'jailkit_chroot_app_programs' => NULL,
        'delete_unused_jailkit' => 'n',
        'last_jailkit_update' => NULL,
        'last_jailkit_hash' => NULL,
        '_ID_' => '2',
        '_CLIENTID_' => '2',
        '_PARENT_' => '0',
        '_IP_ADDRESS_' => '',
        '_IPV6_ADDRESS_' => '',
        '_migrate_status' => NULL,
        '_migrate_status_type' => NULL,
        '_migrate_status_dep' => NULL,
        '_primary_id' => '2',
      ),
      'session_id' => 'j5db610dc93f95dbe3ab320f419d9704b8d6229a0',
    )
    2023-08-12 07:45:13 - [WARN] Could not find parent record for domain .
    2023-08-12 07:45:15 - [INFO] Job queue has 87 entries left. Waiting ...
    2023-08-12 07:46:35 - [INFO] Target ISPConfig job queue has completed. Continuing.
    How can I determine which entry causes this and how can I solve the problem?
    Thanks!
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You seem to have an invalid record in your old ISPConfig database. Please have a look into the dbispconfig database on the old server with, e.g. PHPMyAdmin. There you can find a table named web_domain. Please check if there is a record where the field 'domain' is empty and also the field 'type' is empty as well. if you find this record, please delete it in phpmyadmin and then run the Migration Tool again. You might want to use the database export function from phpmyadmin to make a backup of the database before you delete that record, to be on the safe side.
     
  3. Bocki

    Bocki Member HowtoForge Supporter

    Hi Till,
    thanks for your quick reply. It ist exactly as you have figured! There is an "empty" entry in the table web_domain on the old host. But I did not have to delete it in the end: the Migration Toolkit copied all the other correct entries without problem (I compared the old and the newly created table web_domain).
    The Migration Toolkit is a wonderful tool and most reasonably priced, thanks for that, too!
     
    Th0m and till like this.

Share This Page