• 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

Resolved Unable to restore Backup(The attribute 'wapp' is not allowed.)

Ricardo

New Pleskian
Username:

TITLE

Unable to restore Backup(The attribute 'wapp' is not allowed.)

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

FROM:
CentOS Linux 7.9.2009 (Core)
Plesk Obsidian Version 18.0.55 Update #2,

TO:
Debian 11.7
Plesk Obsidian Version 18.0.55 Update #4, last updated on Aug 25, 2023 06:25 AM

PROBLEM DESCRIPTION

I have a domain with a web and email services on separate servers.
I want to join in the most modern server (destination server with debian)
I made the backup on the Centos server from console and via web interface.
Transfer the tar file to the new server via scp (Destination Debian)
and try to restore, but I get the same error anyway:

resellers/MYRESELLER/clients/CLIENT/domains/DOMAINNAME/backup_info_2309281652.xml:
Line 2380 error: Element 'phosting', attribute 'wapp': The attribute 'wapp' is not allowed.
Line 2380 error: Element 'phosting', attribute 'wapp-version': The attribute 'wapp-version' is not allowed.
exit 1

On the web console I see the same message.

I tried adding password on the restore in these ways:
-backup-password
PLESK_BACKUP_PASSWORD="mybkpass"

And adding to panel.ini these lines:

[pmm]
allowRestoreModifiedDumps = on

STEPS TO REPRODUCE

1) CMD to do the backup
/sbin/plesk bin pleskbackup domains-name mydomain.it -only-mail --output-file /root/mydomain.it.tar

2) transfer the file with SCP

3) Try to restore with CMD
plesk bin pleskrestore --restore mydomain.it.tar -ignore-sign -domain-name mydomain.it
-only-mailnames list:[email protected]

4)I get this ouput
#resellers/MYRESELLER/clients/CLIENT/domains/DOMAINNAME/backup_info_2309281652.xml
#exit 1

5)) On the web interface when enter on mydomain.it>backup
I get this message(see attachment image):

Error: Unable to restore the backup: the file contains wrong formatting.
Warning: Unable to validate the backup signature. The backup file might be modified, corrupted, created on another server or in an earlier Plesk version.

resellers/MYRESELLER/clients/CLIENT/domains/DOMAINNAME/backup_info_2309281652.xml:

Line 2380 error: Element 'phosting', attribute 'wapp': The attribute 'wapp' is not allowed.
Line 2380 error: Element 'phosting', attribute 'wapp-version': The attribute 'wapp-version' is not allowed.

ACTUAL RESULT

can't restore emails

EXPECTED RESULT

restore the emails

ANY ADDITIONAL INFORMATION

I tried to restore the backup from another server without problem.

The problem seems to be this line:
<phosting https="true" webstat="none" errdocs="false" shared-content="true" at-domains="false" wu_script="true" www-root="httpdocs" certificate="18c3d853f2712257d2da17228b40df42" original-conf-directory="/var/www/vhosts/system/DOMAIN.it/conf" sslRedirect="true" wapp="nohosting" wapp-version="">

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Answer the question
 
Thank you for your report. It has been forwarded to a support engineer for further analysis as ID PPS-15030.
 
@Ricardo, developers have checked the issue and would like to ask you for more information. We'd want to know whether the file /opt/psa/PMM/plesk.xsd exists on the target server and whether it contains these lines (or what it contains instead):
Code:
        <xs:attribute name="wapp" type="xs:string">
            <xs:annotation>
                <xs:documentation>Name of technology found on domain</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="wapp-version" type="xs:string">
            <xs:annotation>
                <xs:documentation>Version of technology found on domain</xs:documentation>
            </xs:annotation>
        </xs:attribute>
 
We believe that this will not be the only issue on that installation. It is recommended by developers to run
plesk repair installation
to make sure that the basic installation is all correct.
 
I'd not try an update an a faulty installation. It is best to first repair the current situation to a state where it is the expected release standard. Then, after you are sure everything works, proceed with the update.
 
I'm igree, I will notify the clients before, it's scheldule for tomorrow! I will inform you when finish, tnx for the info!
 
Hello @Peter Debik,
I will update you about the issue.
I'm launch the command "plesk repair installation" without errors or notifications.

when run #cat /opt/psa/PMM/plesk.xsd|grep wapp
I didn't get outpus!

I did update to plesk to V18.0.55
and run again #cat /opt/psa/PMM/plesk.xsd|grep wapp

Having this outpus!
<xs:attribute name="wapp" type="xs:string">
<xs:attribute name="wapp-version" type="xs:string">

Then I ran this recovery command:
plesk bin pleskrestore --restore mydomain.it.tar -ignore-sign -domain-name mydomain.it
-only-mailnames list:[email protected]

And...... I get the email restored!
All work fine finally.

The latest question are:
Is mandatory have the same version of PLESK to make a restore?
or the destination server have to be ever a superior version?

Tankyou
 
Back
Top