Skip to main content

SQL Restore to alternate SQL Instance fails with VSS 1

Updated over 3 weeks ago

Problem description

During the process of restoring an SQL database to an alternate SQL instance, the restore operation fails with the following error:

Error: VSS 1 (VSS Writer failure)

Cause

Transparent data encryption(TDE) is enabled on SQL database

Traceback

Phoenix.log

SyncError: VSS writer has reported failure : [state = 13, result_code = -2147212300], writer details are = [writer class id : {a65faa63-5ea8-4ebc-9dbd-a0c4db26912a}, writer name : SqlServerWriter] (#100040001) (Error Code : VSS1)
Log Name: ApplicationSource: SQLWRITERDate: 07-02-2024Event ID: 24583Task Category: NoneLevel: ErrorKeywords: ClassicUser: N/AComputer: abc.localDescription:The description for Event ID 24583 from source SQLWRITER cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
ICommandText::Execute0x80040e14SQLSTATE: 42000, Native Error: 3013Error state: 1, Severity: 16Source: Microsoft OLE DB Driver for SQL ServerError message: RESTORE FILELIST is terminating abnormally.SQLSTATE: 42000, Native Error: 33111Error state: 3, Severity: 16Source: Microsoft OLE DB Driver for SQL ServerError message: Cannot find server certificate with thumbprint '0x65568B52C4B817B088E7ECEAD70CDCED87FC4E01'.

Verification

First, confirm that the database is indeed encrypted with TDE by running the following query on the source SQL server.

SQL

select name,is_encrypted from sys.databases;

  • If the value in the is_encrypted column for your database is 1, it confirms that TDE is enabled and is the likely cause of the VSS 1 error.

Picture3.png


From the output, if the value of “is_encrypted” is “1” means the database is encrypted. The databases, tempdb and TDE_DB are encrypted.

Resolution

  • Performing a File-Based Restore (Workaround)

    • As the article suggests, one workaround is to perform the restore as a database file. This bypasses the typical VSS snapshot restore process.

    • Instead of restoring a full database backup, restore the individual data (.mdf) and log (.ldf) files from the backup(File server backup as flat files).

  • Refer to Microsoft Documentation on TDE:

Did this answer your question?