I am getting this error: Failed to prepare guest for hot backup. Error: VSSControl: -2147212522 Backup job failed. Discovery phase failed. Cannot start empty snapshot set. VSS error: VSS_E_SNAPSHOT_SET_IN_PROGRESS. Code:0x80042316.
I’m aware this is a VSS related error and have been trying to work with this for a while. It happens on one of our servers every 3 or 4 days. It seems something is using the VSS service at the same time as the backup. The Veeam tech article about it so helpfully recommends ensuring your backup is not running at the same time as other backup or VSS related services. Yeah, got that!
There aren’t, at least as far as I’m aware. The server does run shadow copies but this is at 7am and 12pm, backup is at 8pm. I’ve set up a scheduled task to stop the VSS service just before backups run but whatever is using it, restarts it.
Any ideas about how to detect what process is using the VSS service?
Thanks.
Page 1 / 1
Hi @robns ,
have you already checked the Windows event log for any particular errors regarding VSS at the times the backup fails?
Hi,
I am getting this error: Failed to prepare guest for hot backup. Error: VSSControl: -2147212522 Backup job failed. Discovery phase failed. Cannot start empty snapshot set. VSS error: VSS_E_SNAPSHOT_SET_IN_PROGRESS. Code:0x80042316.
I’m aware this is a VSS related error and have been trying to work with this for a while. It happens on one of our servers every 3 or 4 days. It seems something is using the VSS service at the same time as the backup. The Veeam tech article about it so helpfully recommends ensuring your backup is not running at the same time as other backup or VSS related services. Yeah, got that!
There aren’t, at least as far as I’m aware. The server does run shadow copies but this is at 7am and 12pm, backup is at 8pm. I’ve set up a scheduled task to stop the VSS service just before backups run but whatever is using it, restarts it.
Any ideas about how to detect what process is using the VSS service?
Thanks.
I think you can use a powershell command on your pre-exec option, so you can see which process are running before backup starts, this will help you to find the process.
Hi Andre,
Thanks, that’s useful to know I can run a script in the backup job settings. The problem is that I know that the VSS service is running at backup sometimes, that’s what is causing the error. What I don’t know how to do is find out what is triggering the service, what is starting the service, then keeping it running.
So, I need to detect what other process or program is manually starting the VSS service.
Any ideas?
Have you checked the Windows event viewer?
What is the scenario? Windows OS, Veeam Agent/VM backup, application aware, etc..
Literally nothing in the event viewer, been down that route.
Windows server 2019 STD. VMWare backup, application aware.
I did a test run of the vsstrace utility. It outputs massive amounts of log data. Not sure how useful or easy it’s going to be to utilise it.
Hi @robns to resolve this issue follow these steps:
Kindly note that all commands should be in the command prompt run as an admin.
net stop vss net start vss
Also, restart the Microsoft Software Shadow Copy Provider service.
net stop swprv net start swprv
Check for Stuck Snapshots with the below command.
vssadmin list shadows
If any snapshots are listed, delete them using.
vssadmin delete shadows /all
If the issue persists restart the server to clear any stuck VSS instances.
Hi @robns to resolve this issue follow these steps:
Kindly note that all commands should be in the command prompt run as an admin.
net stop vss net start vss
Also, restart the Microsoft Software Shadow Copy Provider service.
net stop swprv net start swprv
Check for Stuck Snapshots with the below command.
vssadmin list shadows
If any snapshots are listed, delete them using.
vssadmin delete shadows /all
If the issue persists restart the server to clear any stuck VSS instances.
I’ve used all these commands in various forms tackling this issue. I’ve set a scheduled task to output the VSS list shadows command just before backup to see if something is stuck at that particular time.
It is very strange that you do not see vss-related events in the Windows event log.
At this point I suggest you open a case to Veeam support to investigate the issue further.
Keep us updated.
Download Process Explorer from Microsoft SysInternals team, it is a better Task Manager. When VSS is running run ProcExp64 and find the VSS process, right click the VSS process and select properties, there will be a field labeled Parent, it will tell you what launched the process.
OK, thanks for that.
I started the VSS service manually then did what you said. The parent says services.exe. I’m hoping that whatever is triggering it will show up as the parent and not services.exe by default?!
I suggest checking for any VSS-related issues by running the following command when the job fails:
vssadmin list writers
This will help identify any VSS errors.
In the past, I encountered a similar issue (VSSControl: -2147212522 Backup job failed), which was caused by another backup solution using the same VSS service.
To check if another system, such as a different backup application, is utilizing VSS, run:
vssadmin list providers
You can check this link—I used it to resolve my issue, and I hope it helps you.
I suggest checking for any VSS-related issues by running the following command when the job fails
Vssadmin list writers
This will help identify any VSS errors.
In the past, I encountered a similar issue (VSSControl: -2147212522 Backup job failed), which was caused by another backup solution using the same VSS service.
To check if another system, such as a different backup application, is utilizing VSS, run:
Thanks for the suggestions. I have used the two VSSadmin commands quite a bit with this issue so far.
The issue occurred last night and I was able to see that the VSS service was running just before backup. lt didn’t stop when I tried to stop it. After that I checked the app log and found the following
--------------------------------------------------------------------------------------------------------------------------Event ID: 12293 Volume Shadow Copy Service error: Error calling a routine on a Shadow Copy Provider {b5946137-7b9f-4925-af80-51abd60b20d5}. Routine details GetSnapshotProperties({e92596a3-a3e3-40ac-bc72-9b6d9cea2026}) )hr = 0x800706b5, The interface is unknown.
].
Operation:
Executing Asynchronous Operation
Context:
Current State: DoSnapshotSet
I used Process Explorer to see what the parent process was and as expected, it just says services.exe.