• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Call to a member function capability() on migration

radcom

New Pleskian
Please need some help,
I am trying to migrate some domains between 2 servers with plesk 12.0.8 , always getting this error :
PHP Notice: Trying to get property of non-object; File: /usr/local/psa/admin/plib/backup/Conflicts/PleskDataManager.php, Line: 173

PHP Notice: Undefined index: ; File: /usr/local/psa/admin/plib/backup/Conflicts/PleskDataManager.php, Line: 180

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

I already tried :
http://kb.odin.com/en/122754

But still same problem.
Thank you for your help
 
Try to run on both servers bootstrapper repair procedure with

# /usr/local/psa/bootstrapper/pp12.0.18-bootstrapper/bootstrapper.sh repair

and after that try migration again.
 
Hi IgorG,
I have executed on both servers, but still same problem,
please find below , content of plesk_12.0.18_repair.log :

START Bootstrapper 12.0.18 repair AT Mon Aug 17 10:11:12 WEST 2015

**** Product repair started.

===> Checking for previous installation ... found.
Started bootstrapper repair procedure. This may take a while.
Certain actions may be skipped if not applicable.

Trying to start service mysqld... mysqld (pid 954879) en cours d'exécution...
done
Trying to establish test connection... connected
done
Trying to start service mysqld... mysqld (pid 954879) en cours d'exécution...
done
Trying to establish test connection... connected
done
Trying to find psa database... version is 012000018
Version is OK, no need to create psa database.
Trying to backup MySQL database... Warning: Not dumping MySQL database 'atmail' as it doesn't exist
done
MySQL databases are dumped to /var/lib/psa/dumps/mysql.preupgrade.12.0.18-12.0.18.20150817-101112.dump.gz
Finishing up upgrade procedures and rerunning previously failed upgrade actions...
===> Cumulative APS controller database (apsc) upgrade and repair has been started.
Upgrade or repair for 'apsc' (stage 'prep') is not required
Trying to backup MySQL database... done
MySQL databases are dumped to /var/lib/psa/dumps/mysql.preupgrade.apsc.12.0.18-12.0.18.20150817-101114.dump.gz
===> Cumulative upgrade and repair of APS controller database has been completed.
Connection to APSC DB is possible
===> Cumulative APS controller upgrade and repair (final stage) has been started.
Upgrade or repair for 'apsc' (stage 'post') is not required
===> Cumulative upgrade and repair of APS controller (final stage) has been completed.
Trying to reset database user password for 'pma_8R8SDs_qwoZ7@'... done
===> Cumulative Plesk database upgrade and repair (revertable stage) has been started.
Upgrade or repair for 'core' (stage 'prep') is not required
===> Preparing Plesk database upgrade (revertable stage).
Trying to resolve hostname 's19319.inmorocco.com' and validate its IP address... done

Trying to set psa database version to 012000018... done
===> Cumulative upgrade and repair of Plesk database (revertable stage) has been completed.
Database is up-to-date
===> Cumulative Plesk upgrade and repair (final stage) has been started.
Upgrade or repair for 'core' (stage 'post') is not required
===> Preparing Plesk upgrade (final stage).
===> Cumulative upgrade and repair of Plesk (final stage) has been completed.
Trying to upgrade and repair Roundcube webmail configuration... Upgrade or repair for 'roundcube' (stage 'files') is not required
done
Upgrade of Roundcube Web Based mail client configs and DB is not required - no previous version
Trying to upgrade and repair Horde webmail configuration... Trying to convert Horde shares tables to sharesng... Delete existing shares from the NEW backend before migrating the OLD
backend? This should be done to avoid duplicate entries or primary key
collisions in the storage backend from earlier migrations.
(ESC[1myESC[0m) Yes
(ESC[1mnESC[0m) No

Type your choice [n]: Delete existing shares from the NEW backend before migrating the OLD
backend? This should be done to avoid duplicate entries or primary key
collisions in the storage backend from earlier migrations.
(ESC[1myESC[0m) Yes
(ESC[1mnESC[0m) No

Type your choice [n]: done
done
Trying to upgrade and repair Parallels Premium antivirus (DrWeb) service configuration (bootstrapper-prep stage)... Upgrade or repair for 'drweb' (stage 'bootstrapper-prep') is not required
done
Trying to upgrade and repair Parallels Premium antivirus (DrWeb) service configuration (bootstrapper-post stage)... Upgrade or repair for 'drweb' (stage 'bootstrapper-post') is not required
done
Trying to upgrade and repair Firewall service configuration... Upgrade or repair for 'firewall' (stage 'post') is not required
done
Reconfiguring mail subsystem...
Trying to execute mail_restore to synchronize mail server settings and Plesk Database... ==> Checking for: mailsrv_conf_init... ok
==> Checking for: mail_handlers_init... ok
==> Checking for: mailsrv_entities_dump... ok
==> Checking for: mail_admin_aliases... ok
==> Checking for: mail_auth_dump... ok
==> Checking for: mailman_lists_dump... ok
==> Checking for: mail_kav8_restore... ok
==> Checking for: mail_responder_restore... ok
==> Checking for: mail_imap_restore... ok
==> Checking for: mail_spam_restore... not found, skipped
==> Checking for: mail_grey_restore... ok
==> Checking for: mail_mailbox_restore... ok
==> Checking for: mail_spf_restore... ok
==> Checking for: mail_dk_restore... ok
==> Checking for: mail_drweb_restore... ok
==> Checking for: mail_outgoing_restore... ok
==> Checking for: mail_transport_restore... ok
done
Reconfiguring Apache web server...
Reconfiguring ProFTPD FTP server...
Reconfiguring AWStats web statistics...
Reconfiguring WatchDog...
Restoring SELinux contexts...
Regenerating web servers' configuration files...
Cleaning active Panel sessions...

Bootstrapper repair finished.
If problems persist, please check installer logs ('/var/log/plesk/install/plesk_12.0.18_repair.log' and '/var/log/plesk/install/plesk_12.0.18_repair_problems.log') for errors.
If you can't resolve the issue on your own, please address Parallels support.

**** Product repair completed successfully.
 
Try to find more related detail in migration logs /usr/local/psa/PMM/logs/migration-<datetime>
 
Hi IgorG,
please find below what I can find in pmmcli.log :

== STDERR ====================
PHP Notice: Trying to get property of non-object; File: /usr/local/psa/admin/plib/backup/Conflicts/PleskDataManager.php, Line: 173

PHP Notice: Undefined index: ; File: /usr/local/psa/admin/plib/backup/Conflicts/PleskDataManager.php, Line: 180

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

[2015-08-17 10:20:28.207|1047704] CRITICAL: PMMUtilityException:
<class 'pmmcli_exceptions.PMMUtilityException'> Settings Fixer was finished with exit code 255
Traceback (most recent call last):
File "/usr/local/psa/admin/share/pmmcli/pmmcli.py", line 952, in doActivity
session.fixSettings(owner_guid)
File "/usr/local/psa/admin/share/pmmcli/pmmcli_session.py", line 582, in fixSettings
pmm_conflict_detector.SettingsFixer.run(restore_specification, self.__session_path, owner_guid)
File "/usr/local/psa/admin/share/pmmcli/pmm_conflict_detector.py", line 55, in run
raise PMMUtilityException('Settings Fixer', x)
PMMUtilityException: Settings Fixer was finished with exit code 255

[2015-08-17 10:20:28.208|1047704] DEBUG: <pmmcli.RestoreAction object at 0x122b950>: response
[2015-08-17 10:20:28.209|1047704] INFO: Outgoing packet:
<?xml version="1.0" ?><response>
<errcode>1000</errcode>
<errmsg>PHP Notice: Trying to get property of non-object; File: /usr/local/psa/admin/plib/backup/Conflicts/PleskDataManager.php, Line: 173

PHP Notice: Undefined index: ; File: /usr/local/psa/admin/plib/backup/Conflicts/PleskDataManager.php, Line: 180

PHP Fatal error: Call to a member function capability() on a non-object in /usr/local/psa/admin/plib/backup/Conflicts/RequiredSettingsResolver.php on line 51
</errmsg>
<data>
<task-id>1047653</task-id>
</data>
</response>
 
I have found several mentions of this issue in our internal resources and all of them have reference to bugreport PPPM-1857 and corresponding KB article http://kb.odin.com/en/122754
If this article not help - please contact Odin Support Team for deep investigation of this issue directly on your server.
 
Any luck on this, radcom? It seems that I am in the same boat with a transfer from a Plesk 11.x install to 12.x.
 
Hi Epic,
My solutions was :
Access to the source server :
Tools & Settings > Mail Server Settings > Outgoing mail mode : I have changed to Send from domain IP addresses and save, after migration was successful;
 
Back
Top