Backup restoration fails: "Cannot find parent with guid <someguid>"

Created:

2016-11-16 12:58:14 UTC

Modified:

2017-08-16 17:26:15 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Backup restoration fails: "Cannot find parent with guid <someguid>"

Applicable to:

  • Plesk 11.x for Windows
  • Plesk 11.x for Linux

Symptoms

A backup that was taken on a different server is being restored. The restoration finishes but no content is restored. The task description contains the following warning:

Cannot find parent with guid 'e2047e7e-4bfa-4901-ae87-226a433a2d03' ['Unable to get object properties: Object with guid 'e2047e7e-4bfa-4901-ae87-226a433a2d03' not found'].

Cause

The issue occurs since the 'admin' user GUID is different on every Parallels Plesk installation, but the dump XML file contains the GUID from the server it was taken from.

Resolution

Substitute the GUID value in all the related backup '.xml' files:

server:~$ mysql -u admin -p`cat /etc/psa/.psa.shadow` psa  -Ne"select guid from clients where id=1"
+--------------------------------------+
| ae6b85ab-2af7-422d-adfd-eb1fbb8173c6 |
+--------------------------------------+

server:~$ sed -i 's/e2047e7e-4bfa-4901-ae87-226a433a2d03/ae6b85ab-2af7-422d-adfd-eb1fbb8173c6/g' /var/lib/psa/dumps/*<backup_id>.xml

Where '<backup_id>' represents the last digits in the name of backup you are trying to restore.

Alternative, you could replace the GUID in all backups at once with the following command:

find /var/lib/psa/dumps/ -name "*.xml" -type f | xargs sed -i 's/e2047e7e-4bfa-4901-ae87-226a433a2d03/ae6b85ab-2af7-422d-adfd-eb1fbb8173c6/g'
Have more questions? Submit a request
Please sign in to leave a comment.