• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

pleskrestore fails with an Exception "Failed to read data from stream"

thiscode

New Pleskian
My Version: Plesk 11.0.9 Update #60

I cannot restore Clients previously backed up with "pleskbackup". Here are the Steps:

1.) Create a plesk only-configuration-backup of one client with:

pleskbackup --clients-name NAME_OF_CLIENT -c -v --output-file=NAME_OF_FILE

2.) Transfer that file to another server and executing pleskrestore (with -ignore-sign of course). The first time pleskrestore returns a conflict description with one conflict (id=0), because of the different ip. The xml starts as follows:

<?xml version="1.0"?>
<conflicts-description>
<conflict id="0" guid="XXXXXXXXXXXXXXX">
<type>
<configuration>
<reason-description>
<required-resource-description>
<ip type="shared" value="XX.XX.XX.XX"/>
</required-resource-description>
[...]

3.) Based on this description i built a resolution file, to "rename" the old ip to the new one:

<?xml version="1.0"?>
<resolve-conflicts-task-description>
<conflict-resolution-rules>
<policy />
<rule conflict-id="0">
<resolution>
<rename new-name="ip-type:shared:ip-address:XXX.XXX.XXX.XX"/>
</resolution>
</rule>
</conflict-resolution-rules>
</resolve-conflicts-task-description>

4.) Executing now pleskrestore with -conflicts-resolution pointing to this file will throw the error:

PHP Warning: fread(): 303 is not a valid stream resource; File: /usr/local/psa/admin/plib/StreamXMLReader.php, Line: 106

ERROR: Exception
Failed to read data from stream

5.) I tried moving the files around and giving them maximum access right etc. But nothing helped.

Could someone tell me what the reason aof the exception could be? I do not detect any errors in my XML.

Maybe the Stacktrace below the Exception could lead to some Informations:

0: StreamXMLReader.php:108
StreamXMLReader->parse()
1: StreamXMLReader.php:175
StreamXMLReader->read(string 'conflicts-description', integer '2', integer '1', integer '0')
2: StreamXMLReader.php:244
StreamXMLReader->sub(string 'conflicts-description', integer '2')
3: PMMResponseRestoreTaskResult.php:27
PMMResponseRestoreTaskResult->getConflictsDescription()
4: cuPleskRestore.php:541
cuPleskRestore->doRestore(array, string '/var/lib/psa/dumps/clients/XXXXX/backup_XXXXX_info_1310301110.xml', object of type RestoreMapping, string '/restore.xml', NULL null)
5: cuPleskRestore.php:692
cuPleskRestore->cmdRestore(string '/backup.psa')
6: cuPleskRestore.php:201
cuPleskRestore->__construct()
7: pleskrestore.php:8
 
Back
Top