Article ID: 123658, created on Nov 24, 2014, last review on Nov 24, 2014

  • Applies to:
  • Plesk Automation 11.5

Symptoms

Migration to PPA fails with an error:

Failed to restore hosting settings of subscription with Plesk backup/restore

in pmmcli.log I can see the following error:

PHP Fatal error:  Call to a member function getIpAddresses() on a non-object in /usr/local/psa/admin/plib/backup/Conflicts/Resolver/SettingsResolver.php

Following records could be found in /root/migration-session/failed-subscriptions.xxxxxxxxxx.xx:

# Failed to restore hosting settings of subscription with Plesk backup/restore. 

Exception message: The command "PLESK_MIGRATION_MODE=1 PLESK_DISABLE_PROVISIONING=false PLESK_DISABLE_APSMAIL_PROVISIONING=false PLESK_RESTORE_DO_NOT_CHANGE_APACHE_RESTART_INTERVAL=true  /usr/local/psa/bin/pleskrestore --restore /var/lib/psa/dumps/clients/10000/domains/domain.com/converted_domain.com_info_1411221647.xml -ignore-sign -verbose -level domains" executed at PPA management node returned a non-zero exit code.

# ============================================================================
# Stderr:
# pmm utility 'Conflict Resolver' raised an exception. Error code is: 255
# See pmmcli.log to find out detailed information on this
#
#
# ============================================================================

Cause

Hosting services have not been configured properly during migration. PPA fails to restore hosting settings during restoration of backup from the source server.

Resolution

Make sure that Service Template includes all required resources and limits for them are specified correctly. You can check configured hosting services with following steps:

  1. Connect to psa database:

    [root@server ~]# plesk db
    
  2. Check configured services for domain which failed to migrate. You can find list of such domains in /root/migration-session/failed-subscriptions.xxxxxxxxxx.xx. Here is example for mail service:

    mysql> select * from DomainServices where dom_id in (select id from domains where name='domain.com');
    +----+--------+------+--------+---------------+----------------+
    
    | id | dom_id | type | status | parameters_id | ipCollectionId |
    +----+--------+------+--------+---------------+----------------+
    
    | 86 |     75 | web  |      0 |             0 |             86 |
    +----+--------+------+--------+---------------+----------------+
    

    From the output you can see that there is no mail hosting services is configured for the domain. Such behavior could be caused by different reasons, one of them is limits defined in Service Template (this is especially actual for multi-webspace subscriptions).

    NOTE: If you are using multi-webpace subscriptions you need to ensure that corresponding services are configured for all webspaces, according to the source server settings.

  3. Remove subscription from the PPA.

  4. Check service Template and set correct limits.

  5. Rerun migration.

Search Words

Migration failed

Failed to restore hosting settings of subscription with Plesk backup/restore

PHP Fatal error: Call to a member function getIpAddresses() on a non-object in /usr/local/psa/admin/plib/backup/Conflicts/Resolver/SettingsResolver.php on line 51

pmm utility 'Conflict Resolver' raised an exception. Error code is: 255

Call to a member function getIpAddresses()

33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079

Email subscription for changes to this article
Save as PDF