• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.

pleskrestore stops with conflict error, but doesn't show what conflict.

MarceloCaparroz

New Pleskian
I am trying to restore a backup in a plesk 11.5.30 server, but when run the plesk restore utility by the cli I got the error:

Unable to resolve all conflicts

So, I run it again with the -debug option to check what is the problem or conflict and got this:

PHP Catchable Fatal Error: Argument 1 passed to cuPleskRestore::writeConflictsToStdOut() must be an instance of PMMResponseConflictDescription, null given, called in /opt/psa/admin/plib/backup/cuPleskRestore.php on line 614 and defined; File: /opt/psa/admin/plib/backup/cuPleskRestore.php, Line: 699

PHP Fatal error: Call to a member function getNextConflict() on a non-object in /opt/psa/admin/plib/backup/cuPleskRestore.php on line 702



How could I verify what is the problem and conflict?

Thank you.
Marcelo
 
Hi,

was the old Node this Backup was created with also a Plesk 11.5.30?
What exact command did you use to restore?

Regards,
Kristian
 
Hi Kristian,

The backup file was generated in a server with plesk 11.0.9

The command used was:
/usr/local/psa/bin/pleskrestore --restore /root/Backup_xxxxxxxxxxx.tar -level domains -map /root/map.txt -filter list:dominio1.com -ignore-sign

The map file was created with the -ignore-sign too.

Thank you
 
Hi,

can you please check /usr/local/psa/PMM/logs/restore-<datetime> and see if tehre is any additional information?

Regards,
Kristian
 
-rw-rw---- 1 root psaadm 0 mar 11 16:41 conflicts.log
-rw-rw---- 1 root psaadm 0 mar 11 16:41 deployer.log
-rw-rw---- 1 root psaadm 1,7K mar 11 16:41 import.log
-rw------- 1 root root 66K mar 11 16:41 pmmcli.log

------ import.txt (just last lines of the file)
[2014-03-11 16:41:32.838|20207] INFO: Repository '/var/lib/psa/dumps/': Initialized
[2014-03-11 16:41:32.838|20207] INFO: Repository '/var/lib/psa/dumps/': Convert local backup to current Panel version Backup_del_ns3_info_a_strato_info_1403102350.xml
[2014-03-11 16:41:32.838|20207] INFO: ENV[LANG]=en_US.UTF-8
[2014-03-11 16:41:32.838|20207] INFO: Executing utility: /opt/psa/bin/pre10-backup-convert --can-convert -source /var/lib/psa/dumps/Backup_del_ns3_info_a_strato_info_1403102350.xml
[2014-03-11 16:41:33.034|20207] INFO: The utility succesfully executed.
[2014-03-11 16:41:33.034|20207] INFO: The return code was
The output on STDOUT was:
false
No output on STDERR were performed by the utility
[2014-03-11 16:41:33.034|20207] INFO: pmm-ras finished. Exit code: 0
[2014-03-11 16:41:33.049|20211] INFO: pmm-ras started : /opt/psa/admin/bin/pmm-ras --get-child-dumps --dump-storage=/var/lib/psa/dumps/ --dump-specification=Backup_del_ns3_info_a_strato_info_1403102350.xml --session-path=/opt/psa/PMM/logs
[2014-03-11 16:41:33.049|20211] INFO: Repository '/var/lib/psa/dumps/': Initializing...
[2014-03-11 16:41:33.049|20211] INFO: Repository '/var/lib/psa/dumps/': Initialized
[2014-03-11 16:41:33.049|20211] INFO: Repository '/var/lib/psa/dumps/': Get all child backups for Backup_del_ns3_info_a_strato_info_1403102350.xml
[2014-03-11 16:41:33.069|20211] INFO: pmm-ras finished. Exit code: 0

---- pmmcli.txt (just last lines of the file)
[2014-03-11 16:41:36.823|20304] INFO: Execution of <subprocess[20305] '/opt/psa/bin/sw-engine-pleskrun /opt/psa/admin/plib/backup/Conflicts/Runner.php --detect-conflicts --owner-guid=e8f92287-f7ea-4ef4-b198-e38414f79d12 --restore-specification=/opt/psa/PMM/rsessions/2014031116413683/dump/dump_index.xml --conflicts-description-out=/opt/psa/PMM/rsessions/2014031116413683/conflict_description --session-path=/opt/psa/PMM/rsessions/2014031116413683 --log=conflict-detect.log'> finished successfully.
[2014-03-11 16:41:36.826|20304] DEBUG: <pmmcli.RestoreAction object at 0x207bbd0>: response
[2014-03-11 16:41:36.828|20304] INFO: Outgoing packet:
<?xml version="1.0" encoding="UTF-8"?>
<response>
<errcode>0</errcode>
<data>
<restore-task-result task-id="20212">
<conflicts-description>
<conflict guid="1583b05b4644faa3a79d9e2995b1760f" id="1">
<type>
<configuration>
<reason-description>
<required-resource-description>
 
Hi,

thanks.
Couild you please check if the following path still exists and has any log information in it?
/opt/psa/PMM/rsessions/2014031116413683

Thanks,
Kristian
 
/opt/psa/PMM/rsessions/2014031116413683# ls
-rw-r--r-- 1 root root 67 mar 11 16:41 base
-rw-r--r-- 1 root root 500 mar 11 16:41 conflict_description
-rw-r--r-- 1 root root 940 mar 11 16:41 conflict_description.1
-rw-r--r-- 1 root root 500 mar 11 16:41 conflict_description.2
-rw-r--r-- 1 root root 59 mar 11 16:41 conflict-detect.log.xml
-rw-r--r-- 1 root root 740 mar 11 16:41 conflict_resolution_rules
-rw-r--r-- 1 root root 527 mar 11 16:41 conflict_resolution_rules.1
-rw-r--r-- 1 root root 59 mar 11 16:41 conflict-resolve.log.xml
-rw-r--r-- 1 root root 59 mar 11 16:41 conflicts.log.xml
drwxr-x--- 2 root psaadm 4,0K mar 11 16:41 dump
-rw-r--r-- 1 root root 508 mar 11 16:41 dump_overview
-rw-r--r-- 1 root root 322 mar 11 16:41 dump_specification
-rw-r----- 1 root root 157 mar 11 16:41 extension_filter
-rw-r--r-- 1 root root 49 mar 11 16:41 logs_dir
-rw-r--r-- 1 root root 36 mar 11 16:41 owner_guid
-rw-r--r-- 1 root root 6 mar 11 16:41 owner_type
-rw-r--r-- 1 root root 17 mar 11 16:41 parent
-rw-r--r-- 1 root root 7 mar 11 16:41 restore_mode
-rw-r--r-- 1 root root 5 mar 11 16:41 task_id
-rw-r--r-- 1 root root 1002 mar 11 16:41 xml_transform.xml

--------------- copy of conflict_description -------------------------------

<?xml version="1.0"?>
<conflicts-description>
<conflict id="1" guid="1583b05b4644faa3a79d9e2995b1760f">
<type>
<configuration>
<reason-description>
<required-resource-description>
<db-server type="postgresql" port="5432" host="localhost"/>
</required-resource-description>
</reason-description>
<resolve-options>
<option name="do-not-restore"/>
</resolve-options>
</configuration>
</type>
<conflicting-objects/>
</conflict>
</conflicts-description>
 
/opt/psa/PMM/rsessions/2014031116413683# ls
-rw-r--r-- 1 root root 67 mar 11 16:41 base
-rw-r--r-- 1 root root 500 mar 11 16:41 conflict_description
-rw-r--r-- 1 root root 940 mar 11 16:41 conflict_description.1
-rw-r--r-- 1 root root 500 mar 11 16:41 conflict_description.2
-rw-r--r-- 1 root root 59 mar 11 16:41 conflict-detect.log.xml
-rw-r--r-- 1 root root 740 mar 11 16:41 conflict_resolution_rules
-rw-r--r-- 1 root root 527 mar 11 16:41 conflict_resolution_rules.1
-rw-r--r-- 1 root root 59 mar 11 16:41 conflict-resolve.log.xml
-rw-r--r-- 1 root root 59 mar 11 16:41 conflicts.log.xml
drwxr-x--- 2 root psaadm 4,0K mar 11 16:41 dump
-rw-r--r-- 1 root root 508 mar 11 16:41 dump_overview
-rw-r--r-- 1 root root 322 mar 11 16:41 dump_specification
-rw-r----- 1 root root 157 mar 11 16:41 extension_filter
-rw-r--r-- 1 root root 49 mar 11 16:41 logs_dir
-rw-r--r-- 1 root root 36 mar 11 16:41 owner_guid
-rw-r--r-- 1 root root 6 mar 11 16:41 owner_type
-rw-r--r-- 1 root root 17 mar 11 16:41 parent
-rw-r--r-- 1 root root 7 mar 11 16:41 restore_mode
-rw-r--r-- 1 root root 5 mar 11 16:41 task_id
-rw-r--r-- 1 root root 1002 mar 11 16:41 xml_transform.xml

--------------- copy of conflict_description -------------------------------

<?xml version="1.0"?>
<conflicts-description>
<conflict id="1" guid="1583b05b4644faa3a79d9e2995b1760f">
<type>
<configuration>
<reason-description>
<required-resource-description>
<db-server type="postgresql" port="5432" host="localhost"/>
</required-resource-description>
</reason-description>
<resolve-options>
<option name="do-not-restore"/>
</resolve-options>
</configuration>
</type>
<conflicting-objects/>
</conflict>
</conflicts-description>
 
Hi again,

I guess there is nothing interesting in conflict-detect.log.xml conflict-resolve.log.xml and conflicts.log.xml?

Regards
Kristian
 
---- conflict-detect.log.xml, conflict-resolve.log.xml and conflicts.log.xml have the same content

<?xml version="1.0"?>
<execution-result status="success"/>
 
Hi again,

--------------- copy of conflict_description -------------------------------

<?xml version="1.0"?>
<conflicts-description>
<conflict id="1" guid="1583b05b4644faa3a79d9e2995b1760f">
<type>
<configuration>
<reason-description>
<required-resource-description>
<db-server type="postgresql" port="5432" host="localhost"/>
</required-resource-description>
</reason-description>
<resolve-options>
<option name="do-not-restore"/>
</resolve-options>
</configuration>
</type>
<conflicting-objects/>
</conflict>
</conflicts-description>

is it maybe possible that the old Server had postgresql installed and the new one has not?

Regards,
Kristian
 
looks like it is installed. I see it in green in the plesk updater.

I tried to uninstall but I got a error. Do you know how to install and uninstall this postgresql package in the cli? I can try uninstall and install again to make sure.

By the way... a correction... the backup file was generated in a plesk 11.5.30 too.

Thank you
 
Hi,

have you tried to only unpack the backup?
Is it actually consistent?

I'm kind of running out of options ;)
Maybe it's time to open a support ticket with Parallels.

Regards,
Kristian
 
Hi,

I have the same issue : the problem is coming from the _info_XXXXXXXXXX.xml config file located in the archive, where you can find :

<default-db-servers>
<db-server type="mysql">
<host>localhost</host>
<port>3306</port>
</db-server>
<db-server type="postgresql">
<host>localhost</host>
<port>5432</port>
</db-server>
</default-db-servers>

and where postgresql node shouldn't be here as we (you and me) don't have PostgreSQL installed on the origin server.

I opened a ticket, had a contact with support team, and now waiting for resolution.

I'll keep you in touch.

Best regards,

Camille
 
Hi,

fix for this issue (from support Plesk team) :



locate postgresql related entries in psa database.

+++

mysql> select * from misc where param like '%postg%';
+---------------------------+-----+
| param | val |
+---------------------------+-----+
| default_server_postgresql | 2 |
+---------------------------+-----+
1 row in set (0.00 sec)
+++

remove them using the below command.

+++

mysql> delete from DatabaseServers where id=2;
Query OK, 1 row affected (0.02 sec)

++

remove postgresql related packages from server (if they exist).

+++
[root@s17502477 ~]# rpm -qa |grep post
postgresql-libs-8.4.20-1.el6_5.x86_64
postgresql-server-8.4.20-1.el6_5.x86_64
postfix-2.8.14-13040119.x86_64
postgresql-8.4.20-1.el6_5.x86_64

[root@s17502477 ~]# rpm -e postgresql-server-8.4.20-1.el6_5.x86_64

[root@s17502477 ~]# rpm -e postgresql-libs-8.4.20-1.el6_5.x86_64 postgresql-8.4.20-1.el6_5.x86_64 --nodeps --justdb

+++



Tested and validated, enjoy ! ;)


Best regards,

Camille
 
Back
Top