Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Tech News
  • Contact
  • Toggle search form

Veeam Agent for Windows: VSS Error Caused by Old SQL Server References

Posted on 03/07/202603/07/2026 matheusgiovanini By matheusgiovanini No Comments on Veeam Agent for Windows: VSS Error Caused by Old SQL Server References
  1. Home
  2. Backup
  3. Veeam Agent for Windows: VSS Error Caused by Old SQL Server References

In this article, we shall discuss “Veeam Agent for Windows: VSS Error Caused by Old SQL Server References”. During a recent Veeam Agent for Windows deployment project, we found an interesting issue involving VSS, SQL Writer, and old SQL Server references left behind after an incomplete removal or previous intervention. Please see Azure Virtual Desktop: Autoscaling Implementing and Monitoring Session Hosts [Part 05], and how to implement Azure Private Link for Azure Virtual Desktop [Part 06].

The scenario looked simple at first: a new backup project using VBR, Windows servers, and workstations protected by Veeam Agent. The agent deployment was successful, the jobs were configured, and everything was going according to plan.

However, two specific servers started failing during the snapshot stage. At first, it looked like another common VSS issue. But after a deeper investigation, we found that the root cause was related to old SQL Server references pointing to files that no longer existed on the server.

Also, see Azure Virtual Desktop: Manage Azure Virtual Desktop host pools and session hosts using the Azure portal [Part 02], Azure Virtual Desktop: How to set Up Azure Virtual Desktop Insights Monitoring [Part 03], and Azure Virtual Desktop: Connect to Session Hosts Using Entra ID [Part 04].

The environment

The environment included:

  • VBR;
  • Veeam Agent for Windows;
  • Windows Server 2025;
  • Servers with SQL-related components;
  • Jobs configured for protection through Veeam Agent.

An important detail in this scenario is that the job was not initially configured with application-aware processing. Even so, during the backup execution, the snapshot process still triggered the VSS freeze, and the SQL Server VSS Writer entered a failed state.

The agent deployment and job configuration went smoothly. The issue only appeared when the jobs started running on two specific servers.

The initial symptom

During the backup job, the failure occurred when Veeam triggered the VSS freeze process. Before running the job, the SQL Server VSS Writer could appear healthy. After restarting the services or even rebooting the server, the writer would leave the failed state.

But as soon as the Veeam Agent job started again, the SQL Writer failed one more time. The behavior was basically this:

SQL Writer appears healthy ↓
Veeam Agent job starts ↓
VSS freeze is triggered ↓
SQL Writer enters a failed state ↓
Backup job fails

Since the issue happened during the snapshot stage, the first impression was that we were dealing with a traditional VSS problem.

Please see Azure Virtual Desktop: Deploy host pools and session hosts in the Azure [Part 01], Disaster Recovery Test Checklist: What to Capture Before You Start, and Upgrading Azure AD Connect to Microsoft Entra Connect Sync.

First checks

As with any VSS troubleshooting, we started with the basic checks. We verified:

  • Windows Firewall;
  • Antivirus or EDR;
  • UAC;
  • Local policies;
  • Credentials used by Veeam;
  • VSS-related services;
  • SQL Writer state;
  • Existing stale snapshots;
  • Possible locks from other processes;
  • Server reboot.

We also checked whether there were existing shadow copies:

vssadmin list shadows

The output showed no existing shadow copies:

No items found that satisfy the query.

Then we manually created a snapshot to validate the basic VSS mechanism outside the Veeam job workflow:

wmic shadowcopy call create Volume='C:\'

The snapshot was created successfully.

After that, we listed the shadow copies again:

vssadmin list shadows

And deleted the snapshot:

vssadmin delete shadows /all

The deletion also completed successfully.

This was an important point because it showed that VSS, by itself, was able to create and remove snapshots. However, a successful manual snapshot does not reproduce the full interaction between VSS and application writers that can happen during a Veeam Agent job.

In other words, the basic Windows shadow copy mechanism was working, but the backup workflow was still failing when the job triggered the VSS freeze process.

Please see PCI Driver Error: Connection to Deployment Share could not be made, Steps to Fix the “Invalid OS GUID” Error in MDT, and Faulting SecHealthUI: Resolve Windows Defender Notification.

Restarting VSS-related services

We also restarted the services related to VSS and SQL Writer:

net stop SQLWriternet stop VSSnet stop swprvnet start swprvnet start VSSnet start SQLWriter

After that, the SQL Writer could temporarily return to a healthy state. However, as soon as the Veeam Agent job started again, it failed.

This reinforced the suspicion that the issue was not just a stuck service or an old shadow copy.

Investigating Windows events

The next step was to check Windows events, especially those related to volsnap and SQLWRITER. To check recent volsnap events, we used:

wevtutil qe System /q:"*[System[Provider[@Name='volsnap']]]" /f:text /c:20 /rd:true

To check recent SQL Writer events, we used:

wevtutil qe Application /q:"*[System[Provider[@Name='SQLWRITER']]]" /f:text /c:20 /rd:true

At this point, the investigation started to change direction. In the SQLWRITER events, we found a message similar to this:

BACKUP DATABASE is terminating abnormally.Unable to open the physical file:C:\Users\Public\Documents\RSView Enterprise\SE\HMI Projects\PCZINCFREE25\TAG\PCZINCFREE25.MDFOperating system error 2:The system cannot find the file specified.

This message indicated that SQL Writer was trying to access an .MDF file that no longer existed on the server.

At this stage, it became clear that this was not simply a broken VSS issue. SQL Writer was trying to validate an old reference during the freeze process.

Please see How to Update Your AMD Radeon Display Adapter Driver, how to fix VMware and HyperV are not compatible, and What are the different types of DNS Records.

Confirming the issue with Process Monitor

After identifying in the SQL Writer events that there was an attempt to access missing files, we used Process Monitor from Sysinternals to confirm which processes were still trying to access those paths.

The idea was to filter access attempts related to the path shown in the error:

C:\Users\Public\Documents\RSView Enterprise\SE\HMI Projects\PCZINCFREE25

During the capture, we could see access attempts related to that old environment structure.

Process Monitor was essential to confirm that the issue was not directly caused by Veeam Agent. Veeam was only triggering the expected snapshot workflow. The failure occurred because SQL Writer still had old references to files that no longer existed.

Root cause

After analyzing the logs and confirming the behavior with Process Monitor, we discovered that the server had gone through old SQL Server-related interventions before the backup project started.

A SQL/RSView-related installation or component had previously been removed, but the cleanup was incomplete.

As a result, some references remained in the system and were still pointing to .MDF files that were no longer physically present on disk. In practice, SQL Writer was still trying to validate old database references during the freeze process.

When Veeam Agent started the job and the snapshot process triggered the VSS freeze, the workflow looked like this:

Veeam Agent starts the job ↓
VSS freeze is triggered ↓
SQL Writer is called ↓
SQL Writer tries to validate old database references ↓
MDF file no longer exists ↓
SQL Writer enters a failed state ↓
Backup job fails

Veeam Agent was not the root cause. It only exposed an old inconsistency in the environment by triggering the VSS freeze process.

Please see Linux System Update: Upgrade vs. Dist-upgrade Differences, how to Find the Pathname of a Mapped Network Drive, and how to Import PST file into Exchange Server 2016.

The fix

After identifying the invalid paths and references, the fix was to remove the old records that still pointed to the missing files.

After cleaning up the invalid references that pointed to missing database files, SQL Writer stopped failing during the freeze process, and the Veeam Agent job started running successfully.

The most important point here is that the fix was not simply restarting services, deleting snapshots, or changing credentials. The real fix was removing an inconsistency left behind by a previous SQL Server or RSView intervention.

Commands used during the troubleshooting

Below are some of the commands used during the troubleshooting process.

List shadow copies

vssadmin list shadows

Manually create a snapshot

wmic shadowcopy call create Volume='C:\'

Delete a specific shadow copy

vssadmin delete shadows /shadow={GUID}

Delete all shadow copies

Use this only in a controlled environment and after validating the impact, especially on production servers.

vssadmin delete shadows /all

This command removes all existing shadow copies from the server. Before using it, make sure there are no dependencies on existing restore points or snapshots.

Restart VSS-related services

net stop SQLWriternet stop VSSnet stop swprvnet start swprvnet start VSSnet start SQLWriter

Query volsnap events

wevtutil qe System /q:"*[System[Provider[@Name='volsnap']]]" /f:text /c:20 /rd:true

Query SQL Writer events

wevtutil qe Application /q:"*[System[Provider[@Name='SQLWRITER']]]" /f:text /c:20 /rd:true

Please see how to update Cisco ASA, how to Setup Cisco ASA: Wiping Old Configurations, and How to convert a VHDX file to a VHD.

Conclusion

This incident showed that a Veeam Agent for Windows VSS SQL Writer error is not always directly related to Veeam or the VSS service itself.

In this case, Veeam Agent was working correctly. The failure happened because, during the VSS freeze process, SQL Writer tried to access missing .MDF files left behind by an old SQL/RSView installation or intervention.

After removing the invalid references that pointed to missing database files, SQL Writer worked correctly during the freeze process, and the backups completed successfully.

The main lesson is: before treating every VSS failure as a generic VSS problem, investigate which writer is failing, which files it is trying to access, and whether there are old references that should no longer exist on the system.

I hope you found this article very useful on “Veeam Agent for Windows: VSS Error Caused by Old SQL Server References”. Please feel free to leave a comment below.

5/5 - (1 vote)

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
Backup Tags:clean SQL VSS writers Windows Server, enterprise backup VSS troubleshooting guide, fix VSS snapshot failed due to SQL references, fix VSS writer error Veeam backup Windows, remove old SQL Server VSS components Windows, restart VSS services Windows fix backup issues, SQL Server VSS writer corrupted fix, Veeam Agent for Windows backup failure fix, Veeam Agent snapshot creation failed SQL, Veeam Agent Windows VSS error SQL Server references, Veeam backup application-aware processing error, Veeam backup failure SQL VSS snapshot issue, Volume Shadow Copy Service troubleshooting Veeam Agent, Windows VSS error 8193 12292 troubleshooting

Post navigation

Previous Post: How to implement Azure Private Link for Azure Virtual Desktop [Part 06]
Next Post: Azure Virtual Desktop: Build Custom Session Host Images Using Image Builder Templates [Part 07]

Related Posts

  • Veeam Enterprise Manager setup
    Veeam Enterprise Manager setup and User Role management Backup
  • banner
    How to Import Data from a GitHub Repository to Postman Backup
  • VBR 13.0.2.29
    Fix Vulnerable Veeam Backup and Replication 13.0.1.2067 and Earlier Backup
  • Upgrade for Veeam ONE
    How to upgrade Veeam ONE to v12.1 Backup
  • Enhancing Proactive Monitoring with Veeam ONE
    Enhanced Proactive Monitoring with Veeam ONE Backup
  • Featured image
    How to Disable or Uninstall OneDrive on Windows 10 and 11 Backup

More Related Articles

Veeam Enterprise Manager setup Veeam Enterprise Manager setup and User Role management Backup
banner How to Import Data from a GitHub Repository to Postman Backup
VBR 13.0.2.29 Fix Vulnerable Veeam Backup and Replication 13.0.1.2067 and Earlier Backup
Upgrade for Veeam ONE How to upgrade Veeam ONE to v12.1 Backup
Enhancing Proactive Monitoring with Veeam ONE Enhanced Proactive Monitoring with Veeam ONE Backup
Featured image How to Disable or Uninstall OneDrive on Windows 10 and 11 Backup

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

Veeam Vanguard

  • Featured image 4
    Focus on Tasks: Limit Distraction & Get Things Done on Windows Windows
  • systemd services
    How to use Systemd Timers on Linux Linux
  • asdfgh
    All Group Policies (GPO) available to configure Microsoft Edge settings Windows Server
  • feature photo quit vim
    How to Exit Linux Vim or Vi Editor Linux
  • VBEM Licensing And Backup Server
    How to license Veeam Enterprise Manager and Add VBR Servers Backup
  • How to install and configure a Standalone DNS Server
    How to Install and Configure a Standalone DNS Server Windows Server
  • image 6
    Set Browers and Windows to reopen Apps on Startup Windows
  • Azure Storage Account Creation For Veeam Repo
    Leverage Azure Blob Storage as an Object Storage Repo in Veeam Backup

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,780 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.