• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Pleskrestore error

Fede Marsell

Basic Pleskian
Hi,

I'm trying restore a backup but pleskrestore fails:

/usr/local/psa/bin/pleskrestore --restore /backup_file -level clients -filter list:client_name

I get this error:

Unable to resolve all conflicts

I add -debug option to pleskrestore, and I see the problem is the IP. The backup was made on a different server:

/usr/local/psa/bin/pleskrestore --restore /backup_file -level clients -filter list:client_name -debug

Result:

<?xml version="1.0"?>
<conflicts-description>
<conflict id="0" guid="f09daab38d73197894e44bb6095d1023">
<type>
<configuration>
<reason-description>
<required-resource-description>
<ip type="shared" value="XXX.XXX.XXX.XXX"/>
</required-resource-description>
<plesk-object-identifier>
<type>admin</type>
<database-id>1</database-id>
<guid>d0b6a0fc-c02b-42a1-afd8-9a07df93b3a6</guid>
</plesk-object-identifier>
</reason-description>
<resolve-options>
<option name="do-not-restore"/>
<option name="rename"/>
</resolve-options>
</configuration>
</type>
<conflicting-objects>
<node name="client">
<attributes>
<attribute name="id" value="9"/>
<attribute name="guid" value="7a063d50-480e-4f2e-8acd-a3ad28740a33"/>
<attribute name="owner-guid" value="d0b6a0fc-c02b-42a1-afd8-9a07df93b3a6"/>
<attribute name="name" value="client_name"/>
</attributes>
</node>
<node name="domain">
<attributes>
<attribute name="id" value="9"/>
<attribute name="guid" value="1cd4c8e6-5ec9-4341-91b7-5d3b2f15c50f"/>
<attribute name="owner-guid" value="7a063d50-480e-4f2e-8acd-a3ad28740a33"/>
<attribute name="name" value="domain_name"/>
</attributes>
</node>
<node name="phosting">
<attributes>
<attribute name="guid" value="1cd4c8e6-5ec9-4341-91b7-5d3b2f15c50f_phosting"/>
<attribute name="owner-guid" value="1cd4c8e6-5ec9-4341-91b7-5d3b2f15c50f"/>
</attributes>
</node>
</conflicting-objects>
<overview>
<object>
<message>backup__restore__conflict_object_name</message>
<name>client_name</name>
<type>backup__restore__object_client</type>
<reasons>
<reason>
<message>backup__restore__conflict_configuration_reason_ip</message>
<resolver-message>backup__restore__conflict_configuration_reason_ip</resolver-message>
<param name="ip-address" value="XXX.XXX.XXX.XXX"/>
<param name="ip-type" value="shared"/>
<param name="name" value="backup__restore__object_plesk_admin"/>
<param name="type" value="backup__restore__object_plesk_admin"/>
</reason>
</reasons>
</object>
<object>
<message>backup__restore__conflict_object_name</message>
<name>domain_name</name>
<type>backup__restore__object_domain</type>
<reasons>
<reason>
<message>backup__restore__conflict_configuration_reason_ip</message>
<resolver-message>backup__restore__conflict_configuration_reason_ip</resolver-message>
<param name="ip-address" value="XXX.XXX.XXX.XXX"/>
<param name="ip-type" value="shared"/>
<param name="name" value="backup__restore__object_plesk_admin"/>
<param name="type" value="backup__restore__object_plesk_admin"/>
</reason>
</reasons>
</object>
<object>
<message>backup__restore__conflict_object_complex_name</message>
<name>backup__restore__object_vhost</name>
<type>backup__restore__object_vhost</type>
<owner-name>domain_name</owner-name>
<reasons>
<reason>
<message>backup__restore__conflict_configuration_reason_ip</message>
<resolver-message>backup__restore__conflict_configuration_reason_ip</resolver-message>
<param name="ip-address" value="XXX.XXX.XXX.XXX"/>
<param name="ip-type" value="shared"/>
<param name="name" value="backup__restore__object_plesk_admin"/>
<param name="type" value="backup__restore__object_plesk_admin"/>
</reason>
</reasons>
</object>
</overview>
</conflict>
</conflicts-description>
Unable to resolve all conflicts

So, I created a conflict file with this content:

<?xml version="1.0" encoding="UTF-8"?>
<resolve-conflicts-task-description>
<conflict-resolution-rules>
<policy>
<timing>
<resolution>
<proceed-with-current/>
</resolution>
</timing>
<resource-usage>

<resolution>
<proceed-with-current/>
</resolution>
</resource-usage>
<configuration>
<resolution>
<automatic/>
</resolution>
</configuration>

</policy>

<rule conflict-id="0">
<resolution>
<rename new-name="ip-type:shared:ip-address:NEW_IP"/>
</resolution>

</rule>

</conflict-resolution-rules>
</resolve-conflicts-task-description>

But pleskrestore fails again:

/usr/local/psa/bin/pleskrestore --restore /backup_file -level clients -filter list:client_name -debug -conflicts-resolution /conflicts_file

Result:

close failed: [Errno 32] Broken pipe
<?xml version="1.0"?>
<conflicts-description>
<conflict id="0" guid="f09daab38d73197894e44bb6095d1023">
<type>
<configuration>
<reason-description>
<required-resource-description>
<ip type="shared" value="XXX.XXX.XXX.XXX"/>
</required-resource-description>
<plesk-object-identifier>
<type>admin</type>
<database-id>1</database-id>
<guid>d0b6a0fc-c02b-42a1-afd8-9a07df93b3a6</guid>
</plesk-object-identifier>
</reason-description>
<resolve-options>
<option name="do-not-restore"/>
<option name="rename"/>
</resolve-options>
</configuration>
</type>
<conflicting-objects>
<node name="client">
<attributes>
<attribute name="id" value="9"/>
<attribute name="guid" value="7a063d50-480e-4f2e-8acd-a3ad28740a33"/>
<attribute name="owner-guid" value="d0b6a0fc-c02b-42a1-afd8-9a07df93b3a6"/>
<attribute name="name" value="client_name"/>
</attributes>
</node>
<node name="domain">
<attributes>
<attribute name="id" value="9"/>
<attribute name="guid" value="1cd4c8e6-5ec9-4341-91b7-5d3b2f15c50f"/>
<attribute name="owner-guid" value="7a063d50-480e-4f2e-8acd-a3ad28740a33"/>
<attribute name="name" value="domain_name"/>
</attributes>
</node>
<node name="phosting">
<attributes>
<attribute name="guid" value="1cd4c8e6-5ec9-4341-91b7-5d3b2f15c50f_phosting"/>
<attribute name="owner-guid" value="1cd4c8e6-5ec9-4341-91b7-5d3b2f15c50f"/>
</attributes>
</node>
</conflicting-objects>
<overview>
<object>
<message>backup__restore__conflict_object_name</message>
<name>client_name</name>
<type>backup__restore__object_client</type>
<reasons>
<reason>
<message>backup__restore__conflict_configuration_reason_ip</message>
<resolver-message>backup__restore__conflict_configuration_reason_ip</resolver-message>
<param name="ip-address" value="XXX.XXX.XXX.XXX"/>
<param name="ip-type" value="shared"/>
<param name="name" value="backup__restore__object_plesk_admin"/>
<param name="type" value="backup__restore__object_plesk_admin"/>
</reason>
</reasons>
</object>
<object>
<message>backup__restore__conflict_object_name</message>
<name>domain_name</name>
<type>backup__restore__object_domain</type>
<reasons>
<reason>
<message>backup__restore__conflict_configuration_reason_ip</message>
<resolver-message>backup__restore__conflict_configuration_reason_ip</resolver-message>
<param name="ip-address" value="XXX.XXX.XXX.XXX"/>
<param name="ip-type" value="shared"/>
<param name="name" value="backup__restore__object_plesk_admin"/>
<param name="type" value="backup__restore__object_plesk_admin"/>
</reason>
</reasons>
</object>
<object>
<message>backup__restore__conflict_object_complex_name</message>
<name>backup__restore__object_vhost</name>
<type>backup__restore__object_vhost</type>
<owner-name>domain_name</owner-name>
<reasons>
<reason>
<message>backup__restore__conflict_configuration_reason_ip</message>
<resolver-message>backup__restore__conflict_configuration_reason_ip</resolver-message>
<param name="ip-address" value="XXX.XXX.XXX.XXX"/>
<param name="ip-type" value="shared"/>
<param name="name" value="backup__restore__object_plesk_admin"/>
<param name="type" value="backup__restore__object_plesk_admin"/>
</reason>
</reasons>
</object>
</overview>
</conflict>
</conflicts-description>
Unable to resolve all conflicts

Any ideas?

Regards,

Miguel,
 
Back
Top