Skip to main content
Question

VSS error: VSS_E_SNAPSHOT_SET_IN_PROGRESS. Code:0x80042316


robns
  • Comes here often
  • 9 comments

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.

13 comments

marco_s
Forum|alt.badge.img+8
  • Influencer
  • 369 comments
  • February 13, 2025

Hi ​@robns ,

have you already checked the Windows event log for any particular errors regarding VSS at the times the backup fails?


AndrePulia
Forum|alt.badge.img+6
  • Veeam Legend, Veeam Vanguard
  • 333 comments
  • February 13, 2025
robns wrote:

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.
 

 


robns
  • Author
  • Comes here often
  • 9 comments
  • February 13, 2025

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?


marco_s
Forum|alt.badge.img+8
  • Influencer
  • 369 comments
  • February 14, 2025

Have you checked the Windows event viewer?

What is the scenario? Windows OS, Veeam Agent/VM backup, application aware, etc..

You can try this KB for VSS diagnostic: https://www.veeam.com/kb3164


robns
  • Author
  • Comes here often
  • 9 comments
  • February 17, 2025
marco_s wrote:

Have you checked the Windows event viewer?

What is the scenario? Windows OS, Veeam Agent/VM backup, application aware, etc..

You can try this KB for VSS diagnostic: https://www.veeam.com/kb3164

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.


waqasali
Forum|alt.badge.img+3
  • Influencer
  • 198 comments
  • February 17, 2025

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.

 

 


robns
  • Author
  • Comes here often
  • 9 comments
  • February 18, 2025
waqasali wrote:

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.


marco_s
Forum|alt.badge.img+8
  • Influencer
  • 369 comments
  • February 18, 2025

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.


robns
  • Author
  • Comes here often
  • 9 comments
  • March 27, 2025

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?!


matheusgiovanini
Forum|alt.badge.img+5

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. 🤝

 

https://answers.microsoft.com/en-us/windows/forum/all/backups-fail-volume-shadow-copy-errors-22-12292/1db3215c-af3c-45fa-a061-5f8bab823b5e


matheusgiovanini
Forum|alt.badge.img+5

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. 🤝
https://answers.microsoft.com/en-us/windows/forum/all/backups-fail-volume-shadow-copy-errors-22-12292/1db3215c-af3c-45fa-a061-5f8bab823b5e


matheusgiovanini
Forum|alt.badge.img+5

Comment