SQL Server, Exchange, Hyper-V: "The VSS component to be backed up … cannot be found"
This page is intended for administrators backing up a Windows application through its VSS (Volume Shadow Copy Service) components: a SQL Server or Exchange database, a Hyper-V virtual machine or another application. It explains the messages that report a missing or empty component, and how to confirm that the application's data is indeed being backed up.
Symptom
The backup report contains one of these lines:
The VSS component to be backed up "…" cannot be found.Unable to identify VSS Writer "…". The data for this Writer will not be backed up.VSS component "…" not found. This component will not be backed up.VSS component "…" did not supply any file to back up.The file "…" requested by VSS component "…" cannot be found.The file "…" requested by VSS component "…" cannot be found: it is the disk of a Hyper-V checkpoint that no longer exists…The VSS directory "…" is locked. The files it contains will not be backed up.
The first line is a critical error. The others are errors, except "did not supply any file", which is a warning.
Cause
A VSS-aware application declares a writer to Windows. The writer describes the application's components — each database, for example — and the files that make them up. When you select a component in the configuration, the agent records its name. At every backup, it asks Windows again for the list of writers and locates the component by that name.
The message depends on what is missing.
The critical error The VSS component to be backed up "…" cannot be found. means that the writer itself is absent:
- the application's service is stopped, so its writer is not declared;
- the application has been uninstalled.
The error VSS component "…" not found. This component will not be backed up. means that the writer is present, but the recorded component no longer appears in it:
- the database has been renamed, moved or deleted;
- the SQL Server instance has been renamed or reinstalled;
- the Hyper-V virtual machine has been deleted or recreated.
A component that "did not supply any file" does exist, but the writer associates no file with it at the time of the backup.
For a Hyper-V virtual machine, the message referring to "the disk of a Hyper-V checkpoint that no longer exists" indicates a checkpoint whose disk has disappeared while Hyper-V still declares it.
Checks
Carry out these checks in order.
- Check that the application's service is running on the machine: the SQL Server service, the Exchange service, or the Hyper-V Virtual Machine Management service.
- Check that VSS is enabled for this profile. If the
Disable VSSbox is ticked in the web interface, the list of components cannot be obtained, and the components are not backed up. - List the writers and their components as declared by Windows. In a command prompt opened as administrator, from the agent's folder:
bbAgent.exe -CommandLine -ListVssWriters > writers.txt
This command goes through the bbVSS service, which it starts if it is stopped. If the listing hangs, it may restart the bbVSS, VSS, SQLWriter and "COM+ Event System" services: do not run it during a backup.
In writers.txt, look for the exact name of the component quoted in the report.
- Compare that name with the one recorded in the profile's configuration.
Resolution
Reselect the components
If the component has been renamed or recreated, select it again:
- in the web interface,
VSS componentsblock,Select componentsbutton; - in the agent, source selection screen,
VSS componentsbutton.
Remove from the selection any components that no longer exist. As long as they remain there, every backup will report the error.
Missing Hyper-V checkpoint
Delete the checkpoint in Hyper-V Manager, then run a new backup.
The writer does not appear
If the list of components is empty, the agent displays No VSS Writer is declared on this machine. or The list of VSS Writers could not be obtained:. In that case:
- restart the application's service;
- check that the application's writer is installed and active, using the application vendor's tools;
- restart the machine if the problem persists.
Locked directory
A locked VSS directory indicates a folder that the writer asks to be backed up but that the agent cannot browse. Check that the folder exists and that the agent service account can read it.
Confirming that the backup contains the data
Once corrected, run a backup and read its report. It must no longer contain any of the lines quoted above. Then carry out a test restore of the component to a test location. This is the only proof that the application's data can be restored.
If the problem persists
Contact BeBackup support. Attach the backup report, the writers.txt file and the agent service log, bbAgent-service.log.
BeBackup is backup built for IT service providers
Backup and restore of workstations, servers, virtual machines and Microsoft 365, encrypted at source with a key we do not hold, on the hosting of your choice.