Symptoms
-
Unable to backup/restore a snapshot for Web Presence Builder in Plesk for Windows due to one of the following errors:
PLESK_ERROR: Invalid Snapshot
PLESK_ERROR: Unable to restore website
-
One of the following errors appear in the
%plesk_dir%adminlogsplesklog_sitebuilder.log
file:[EMERG] /sitebuilder/JsonApi/ PleskUtilException: filemng failed:
Unexpected error at execute "C:Program Files (x86)ParallelsPleskadminbinfilemng.exe" u0088675 base64 C:inetpubvhostsexample.comhttpdocsdata/snapshots/6e6c622a415484ff7a23038329113589.php(RunTime::RunAsUser::run line 221)(Error code 1)file: C:Program Files (x86)ParallelsPleskadminplibServiceAgent.phpline: 243code: 0
ERR [1] Exception: PHP Warning: filesize(): stat failed for C:/Program Files (x86)/Parallels/Plesk/PrivateTemp/sb94E3.tmp.zip; File: C:Program Files (x86)ParallelsPleskadminplibServiceDriverFilesystemPleskWindows.php, Line: 271file: C:Program Files (x86)ParallelsPleskadminplibSmbExceptionSyntax.phpline: 57code: 0
[EMERG] /sitebuilder/JsonApi/ SB_Site_Snapshot_Exception: invalidSnapshot
file: C:Program Files (x86)PlesksbincludeSBSiteSnapshot.php
line: 258
code: 0 91.204.25.4 https://example.com:8443/sitebuilder/Editor
Cause
The issue is caused by two product bugs #PPPM-3483 and #PPPM-4869 which will be fixed in future product updates.
Resolution
As a workaround connect to the server via RDP and perform the following actions (depending on Plesk version installed):
Warning: prior installing of patches below, make sure that the website on which snapshot is tried to be restored is available via HTTP.
For Plesk Obsidian
-
Download and unpack the archive with the patched file
Target.php
. -
Create a backup of the original file
Target.php
located in%plesk_dir%sbincludeSBExtensionPP
. -
Copy the patched file
Target.php
into%plesk_dir%sbincludeSBExtensionPP
. -
Backup/restore a snapshot again.
For Plesk Onyx
-
Download and unpack the archive with the patched file
Target.php
. -
Create a backup of the original file
Target.php
located in%plesk_dir%sbincludeSBExtensionPP
. -
Copy the patched file
Target.php
into%plesk_dir%sbincludeSBExtensionPP
. -
Backup/restore a snapshot again.