Duplicati on Windows 11 and TrueNAS Scale - Failed to create a snapshot: The system or provider has insufficient storage space

Backup failing with snapshot-policy = auto. Windows 11 showing following errors:

  • 2025-07-17 11:12:35 -04 - [Error-Duplicati.Library.Main.Operation.BackupHandler-FatalError]: Fatal error UserInformationException: Failed to create a snapshot: The system or provider has insufficient storage space. If possible delete any old or unnecessary persistent shadow copies and try again.
  • 2025-07-17 11:12:35 -04 - [Error-Duplicati.Library.Main.Controller-FailedOperation]: The operation Backup has failed with error: Failed to create a snapshot: The system or provider has insufficient storage space. If possible delete any old or unnecessary persistent shadow copies and try again. UserInformationException: Failed to create a snapshot: The system or provider has insufficient storage space. If possible delete any old or unnecessary persistent shadow copies and try again.

Duplicati.Library.Interface.UserInformationException: Failed to create a snapshot: The system or provider has insufficient storage space. If possible delete any old or unnecessary persistent shadow copies and try again.
—> Alphaleonis.Win32.Vss.VssInsufficientStorageException: The system or provider has insufficient storage space. If possible delete any old or unnecessary persistent shadow copies and try again.
at Alphaleonis.Win32.Vss.WaitCheckAndReleaseVssAsyncOperation(IVssAsync* pAsync)
at Alphaleonis.Win32.Vss.VssBackupComponents.DoSnapshotSet()
at Duplicati.Library.Common.IO.VssBackupComponents.InitShadowVolumes(IEnumerable1 sources) at Duplicati.Library.Snapshots.WindowsSnapshot..ctor(IEnumerable1 sources, IDictionary2 options) at Duplicati.Library.Snapshots.SnapshotUtility.CreateWindowsSnapshot(IEnumerable1 folders, Dictionary2 options) at Duplicati.Library.Snapshots.SnapshotUtility.CreateSnapshot(IEnumerable1 folders, Dictionary2 options) at Duplicati.Library.Main.Operation.BackupHandler.GetSnapshot(String[] sources, Options options) --- End of inner exception stack trace --- at Duplicati.Library.Main.Operation.BackupHandler.GetSnapshot(String[] sources, Options options) at Duplicati.Library.Main.Operation.BackupHandler.RunAsync(String[] sources, IFilter filter, CancellationToken token) at CoCoL.ChannelExtensions.WaitForTaskOrThrow(Task task) at Duplicati.Library.Main.Operation.BackupHandler.Run(String[] sources, IFilter filter, CancellationToken token) at Duplicati.Library.Main.Controller.<>c__DisplayClass17_0.<Backup>b__0(BackupResults result) at Duplicati.Library.Main.Controller.RunAction[T](T result, String[]& paths, IFilter& filter, Action1 method)
at Duplicati.Library.Main.Controller.Backup(String inputsources, IFilter filter)
at Duplicati.Server.Runner.Run(IRunnerData data, Boolean fromQueue)

Not sure if this is related to VSS (the VSS service is set to automatic and running):

c:>vssadmin list shadows
vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
(C) Copyright 2001-2013 Microsoft Corp.

No items found that satisfy the query.

c:>vssadmin list providers
vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
(C) Copyright 2001-2013 Microsoft Corp.

Provider name: ‘Microsoft Software Shadow Copy provider 1.0’
Provider type: System
Provider Id: {b5946137-7b9f-4925-af80-51abd60b20d5}
Version: 1.0.0.7

I’ve tried increasing maximum storage space many times to different high levels (e.g., 20GB) but it makes no difference. This is what I see currently:

c:>vssadmin list shadowstorage
vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
(C) Copyright 2001-2013 Microsoft Corp.

Shadow Copy Storage association
For volume: (C:)\?\Volume{85b7ae64-8b2a-41f1-bac2-52d5bc5db304}
Shadow Copy Storage volume: (C:)\?\Volume{85b7ae64-8b2a-41f1-bac2-52d5bc5db304}
Used Shadow Copy Storage space: 0 bytes (0%)
Allocated Shadow Copy Storage space: 0 bytes (0%)
Maximum Shadow Copy Storage space: 1.25 GB (1%)

Shadow Copy Storage association
For volume: (K:)\?\Volume{838c6ea1-fa22-41a2-9030-d56c70fa3108}
Shadow Copy Storage volume: (K:)\?\Volume{838c6ea1-fa22-41a2-9030-d56c70fa3108}
Used Shadow Copy Storage space: 0 bytes (0%)
Allocated Shadow Copy Storage space: 0 bytes (0%)
Maximum Shadow Copy Storage space: 256 MB (1%)

Shadow Copy Storage association
For volume: (N:)\?\Volume{b6bd6ce9-eae2-4db0-b0df-961975cb7f2f}
Shadow Copy Storage volume: (N:)\?\Volume{b6bd6ce9-eae2-4db0-b0df-961975cb7f2f}
Used Shadow Copy Storage space: 0 bytes (0%)
Allocated Shadow Copy Storage space: 0 bytes (0%)
Maximum Shadow Copy Storage space: 1.88 GB (1%)

c:>vssadmin delete shadows /for=c: /all
vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
(C) Copyright 2001-2013 Microsoft Corp.

No items found that satisfy the query.

I’m at a complete loss but wanted to check here before trying a different backup solution. Any thoughts please? Thanks.

Edit: vss writers seem to be OK:

c:>vssadmin list writers
vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
(C) Copyright 2001-2013 Microsoft Corp.

Writer name: ‘Task Scheduler Writer’
Writer Id: {d61d61c8-d73a-4eee-8cdd-f6f9786b7124}
Writer Instance Id: {1bddd48e-5052-49db-9b07-b96f96727e6b}
State: [1] Stable
Last error: No error

Writer name: ‘VSS Metadata Store Writer’
Writer Id: {75dfb225-e2e4-4d39-9ac9-ffaff65ddf06}
Writer Instance Id: {088e7a7d-09a8-4cc6-a609-ad90e75ddc93}
State: [1] Stable
Last error: No error

Writer name: ‘Performance Counters Writer’
Writer Id: {0bada1de-01a9-4625-8278-69e735f39dd2}
Writer Instance Id: {f0086dda-9efc-47c5-8eb6-a944c3d09381}
State: [1] Stable
Last error: No error

Writer name: ‘System Writer’
Writer Id: {e8132975-6f93-4464-a53e-1050253ae220}
Writer Instance Id: {46eda21a-7c16-4b2c-a9e5-89802026be75}
State: [5] Waiting for completion
Last error: No error

Writer name: ‘ASR Writer’
Writer Id: {be000cbe-11fe-4426-9c58-531aa6355fc4}
Writer Instance Id: {060fb830-700e-40ff-a871-cd1962d9209f}
State: [1] Stable
Last error: No error

Writer name: ‘Shadow Copy Optimization Writer’
Writer Id: {4dc3bdd4-ab48-4d07-adb0-3bee2926fd7f}
Writer Instance Id: {130e264d-5a8b-4209-8222-e2d75c2398a6}
State: [1] Stable
Last error: No error

Writer name: ‘WMI Writer’
Writer Id: {a6ad56c2-b509-4e6c-bb19-49d8f43532f0}
Writer Instance Id: {4dabc7c4-8b79-469e-b1db-16b053b302b0}
State: [1] Stable
Last error: No error

Writer name: ‘IIS Config Writer’
Writer Id: {2a40fd15-dfca-4aa8-a654-1f8c654603f6}
Writer Instance Id: {ac8fa3a7-e68e-4200-b72f-3b0d52dc560f}
State: [1] Stable
Last error: No error

Writer name: ‘MSSearch Service Writer’
Writer Id: {cd3f2362-8bef-46c7-9181-d62844cdc0b2}
Writer Instance Id: {50bdf0f0-7ebc-4b55-a595-1fb44a976832}
State: [1] Stable
Last error: No error

Writer name: ‘Registry Writer’
Writer Id: {afbab4a2-367d-4d15-a586-71dbb18f8485}
Writer Instance Id: {6712aa14-b3c2-427a-8c48-863ceeef47bf}
State: [1] Stable
Last error: No error

Writer name: ‘COM+ REGDB Writer’
Writer Id: {542da469-d3e1-473c-9f4f-7847f01fc64f}
Writer Instance Id: {d3cc4f07-9735-40b6-94f3-4b8a70b21584}
State: [1] Stable
Last error: No error

This has to be a Duplicati bug as I’ve now tested multiple other solutions all using VSS and they are backing up without issue. Is it better to report this as a bug on https://github.com/duplicati/duplicati/issues?

Sounds very odd that this should be Duplicati specific. Duplicati does not do anything special with snapshots, so it should “just work”.

If you are willing to try it, the latest canary has two new snapshot providers for Windows: Vanara and WMIC. The Vanara version calls the VSS API directly, and the WMIC version uses the wmic.exe tool to create and remove snaphots.

You can create the issue on Github as well, if you are sure it is a bug in Duplicati.
We would need some way to reproduce the error before we can fix it though.
I have made a few VSS snapshots with no issues, so some system variance must be at play.

What Windows version is this with? Is it with Intel x64?

Windows 11 Pro 24H2 (26100.4652)
11th Gen Intel(R) Core™ i7-1165G7

…and Duplicati - 2.1.0.5_stable_2025-03-04. Just tried the latest canary (Windows 64bit / 2.1.0.125). Nice UI update but received this error: “Unencrypted database The database is not encrypted. This is a security risk and should be fixed as soon as possible.”

Duplicati.Library.Interface.UserInformationException: Failed to create a snapshot: 0x80042308
—> System.Runtime.InteropServices.COMException (0x80042308): 0x80042308
at Utils.ThrowIfFailed(Int32 hr)
at Vanara.PInvoke.VssApi.CVssBackupComponents.GetSnapshotProperties(Guid SnapshotId)
at Duplicati.Library.WindowsModules.VanaraVssBackup.GetSnapshotProperties(Guid shadowId)
at Duplicati.Library.Snapshots.Windows.SnapshotManager.MapVolumesToSnapShots()
at Duplicati.Library.Snapshots.WindowsSnapshot..ctor(IEnumerable1 sources, IDictionary2 options, Boolean followSymlinks)
at Duplicati.Library.Snapshots.SnapshotUtility.CreateWindowsSnapshot(IEnumerable1 folders, Dictionary2 options, Boolean followSymlinks)
at Duplicati.Library.Snapshots.SnapshotUtility.CreateSnapshot(IEnumerable1 paths, Dictionary2 options, Boolean followSymlinks)
at Duplicati.Library.Main.Operation.BackupHandler.GetFileSnapshotService(IEnumerable1 sources, Options options) --- End of inner exception stack trace --- at Duplicati.Library.Main.Operation.BackupHandler.GetFileSnapshotService(IEnumerable1 sources, Options options)
at Duplicati.Library.Main.Operation.BackupHandler.GetSourceProviders(IEnumerable1 sources, Options options, CancellationToken cancellationToken) at Duplicati.Library.Main.Operation.BackupHandler.GetSourceProvider(IEnumerable1 sources, Options options, CancellationToken cancellationToken)
at Duplicati.Library.Main.Operation.BackupHandler.RunAsync(String sources, IBackendManager backendManager, IFilter filter)
at Duplicati.Library.Main.Operation.BackupHandler.RunAsync(String sources, IBackendManager backendManager, IFilter filter)
at Duplicati.Library.Main.Controller.<>c__DisplayClass22_0.<b__0>d.MoveNext()
— End of stack trace from previous location —
at Duplicati.Library.Utility.Utility.Await(Task task)
at Duplicati.Library.Main.Controller.RunAction[T](T result, String& paths, IFilter& filter, Func`3 method)
at Duplicati.Library.Main.Controller.Backup(String inputsources, IFilter filter)
at Duplicati.Server.Runner.RunInternal(Connection databaseConnection, EventPollNotify eventPollNotify, INotificationUpdateService notificationUpdateService, IProgressStateProviderService progressStateProviderService, IApplicationSettings applicationSettings, IRunnerData data, Boolean fromQueue)

Duplicati.Library.Interface.UserInformationException: Failed to create a snapshot: 0x80042308
—> System.Runtime.InteropServices.COMException (0x80042308): 0x80042308
at Utils.ThrowIfFailed(Int32 hr)
at Vanara.PInvoke.VssApi.CVssBackupComponents.GetSnapshotProperties(Guid SnapshotId)
at Duplicati.Library.WindowsModules.VanaraVssBackup.GetSnapshotProperties(Guid shadowId)
at Duplicati.Library.Snapshots.Windows.SnapshotManager.MapVolumesToSnapShots()
at Duplicati.Library.Snapshots.WindowsSnapshot..ctor(IEnumerable1 sources, IDictionary2 options, Boolean followSymlinks)
at Duplicati.Library.Snapshots.SnapshotUtility.CreateWindowsSnapshot(IEnumerable1 folders, Dictionary2 options, Boolean followSymlinks)
at Duplicati.Library.Snapshots.SnapshotUtility.CreateSnapshot(IEnumerable1 paths, Dictionary2 options, Boolean followSymlinks)
at Duplicati.Library.Main.Operation.BackupHandler.GetFileSnapshotService(IEnumerable1 sources, Options options) --- End of inner exception stack trace --- at Duplicati.Library.Main.Operation.BackupHandler.GetFileSnapshotService(IEnumerable1 sources, Options options)
at Duplicati.Library.Main.Operation.BackupHandler.GetSourceProviders(IEnumerable1 sources, Options options, CancellationToken cancellationToken) at Duplicati.Library.Main.Operation.BackupHandler.GetSourceProvider(IEnumerable1 sources, Options options, CancellationToken cancellationToken)
at Duplicati.Library.Main.Operation.BackupHandler.RunAsync(String sources, IBackendManager backendManager, IFilter filter)
at Duplicati.Library.Main.Operation.BackupHandler.RunAsync(String sources, IBackendManager backendManager, IFilter filter)
at Duplicati.Library.Main.Controller.<>c__DisplayClass22_0.<b__0>d.MoveNext()
— End of stack trace from previous location —
at Duplicati.Library.Utility.Utility.Await(Task task)
at Duplicati.Library.Main.Controller.RunAction[T](T result, String& paths, IFilter& filter, Func`3 method)
at Duplicati.Library.Main.Controller.Backup(String inputsources, IFilter filter)
at Duplicati.Server.Runner.RunInternal(Connection databaseConnection, EventPollNotify eventPollNotify, INotificationUpdateService notificationUpdateService, IProgressStateProviderService progressStateProviderService, IApplicationSettings applicationSettings, IRunnerData data, Boolean fromQueue)
at Duplicati.Server.Runner.Run(Connection databaseConnection, EventPollNotify eventPollNotify, INotificationUpdateService notificationUpdateService, IProgressStateProviderService progressStateProviderService, IApplicationSettings applicationSettings, IQueuedTask data, Boolean fromQueue)
at Duplicati.WebserverCore.Services.QueueRunnerService.RunTask(IQueuedTask task)

The second time I tried it (using the old UI), I got “Failed to create a snapshot: 0x80042308.” What other troubleshooting can I do to help diagnose the problem? Thanks.

This is not an error, it is a nudge to setup encryption of the local settings database:

Can you try with the WMIC provider? That uses code written by Microsoft to create the snapshots. Error messages will be less useful with this.

A different thought: are you mixing local and mounted sources in the backup? When Duplicati tries to make the snapshots, it will attempt to make a snapshot for each “drive”, and if one of those are not a local NTFS volume it will likely fail.

The workaround for this is to split the backup, so the sources that support VSS are in one backup and the others in another backup. Then enable VSS on one and disable it on the other.

“Failed to create a snapshot: Failed to get shadow copy path” So the “insufficient storage space” is really about not getting a proper path?

  • 2025-07-17 21:12:54 -04 - [Error-Duplicati.Library.Main.Operation.BackupHandler-FatalError]: Fatal error UserInformationException: Failed to create a snapshot: The system or provider has insufficient storage space. If possible delete any old or unnecessary persistent shadow copies and try again.
  • 2025-07-17 21:12:54 -04 - [Error-Duplicati.Library.Main.Controller-FailedOperation]: The operation Backup has failed with error: Failed to create a snapshot: The system or provider has insufficient storage space. If possible delete any old or unnecessary persistent shadow copies and try again. UserInformationException: Failed to create a snapshot: The system or provider has insufficient storage space. If possible delete any old or unnecessary persistent shadow copies and try again.

Jul 19, 2025 10:54 AM: Failed while executing Backup “MyComp Full” (id: 1)
Duplicati.Library.Interface.UserInformationException: Failed to create a snapshot: Failed to get shadow copy path
—> System.InvalidOperationException: Failed to get shadow copy path
at Duplicati.Library.WindowsModules.WmicShadowCopyManager.Add(String drive)
at Duplicati.Library.WindowsModules.WmicVssBackup.AddToSnapshotSet(String drive)
at Duplicati.Library.Snapshots.Windows.SnapshotManager.CheckAndAddSupportedVolumes(IEnumerable1 sources) at Duplicati.Library.Snapshots.Windows.SnapshotManager.InitShadowVolumes(IEnumerable1 sources)
at Duplicati.Library.Snapshots.WindowsSnapshot..ctor(IEnumerable1 sources, IDictionary2 options, Boolean followSymlinks)
at Duplicati.Library.Snapshots.SnapshotUtility.CreateWindowsSnapshot(IEnumerable1 folders, Dictionary2 options, Boolean followSymlinks)
at Duplicati.Library.Snapshots.SnapshotUtility.CreateSnapshot(IEnumerable1 paths, Dictionary2 options, Boolean followSymlinks)
at Duplicati.Library.Main.Operation.BackupHandler.GetFileSnapshotService(IEnumerable1 sources, Options options) --- End of inner exception stack trace --- at Duplicati.Library.Main.Operation.BackupHandler.GetFileSnapshotService(IEnumerable1 sources, Options options)
at Duplicati.Library.Main.Operation.BackupHandler.GetSourceProviders(IEnumerable1 sources, Options options, CancellationToken cancellationToken) at Duplicati.Library.Main.Operation.BackupHandler.GetSourceProvider(IEnumerable1 sources, Options options, CancellationToken cancellationToken)
at Duplicati.Library.Main.Operation.BackupHandler.RunAsync(String sources, IBackendManager backendManager, IFilter filter)
at Duplicati.Library.Main.Operation.BackupHandler.RunAsync(String sources, IBackendManager backendManager, IFilter filter)
at Duplicati.Library.Main.Controller.<>c__DisplayClass22_0.<b__0>d.MoveNext()
— End of stack trace from previous location —
at Duplicati.Library.Utility.Utility.Await(Task task)
at Duplicati.Library.Main.Controller.RunAction[T](T result, String& paths, IFilter& filter, Func3 method) at Duplicati.Library.Main.Controller.Backup(String[] inputsources, IFilter filter) at Duplicati.Server.Runner.RunInternal(Connection databaseConnection, EventPollNotify eventPollNotify, INotificationUpdateService notificationUpdateService, IProgressStateProviderService progressStateProviderService, IApplicationSettings applicationSettings, IRunnerData data, Boolean fromQueue) Jul 19, 2025 10:54 AM: Error in worker Duplicati.Library.Interface.UserInformationException: Failed to create a snapshot: Failed to get shadow copy path ---> System.InvalidOperationException: Failed to get shadow copy path at Duplicati.Library.WindowsModules.WmicShadowCopyManager.Add(String drive) at Duplicati.Library.WindowsModules.WmicVssBackup.AddToSnapshotSet(String drive) at Duplicati.Library.Snapshots.Windows.SnapshotManager.CheckAndAddSupportedVolumes(IEnumerable1 sources)
at Duplicati.Library.Snapshots.Windows.SnapshotManager.InitShadowVolumes(IEnumerable1 sources) at Duplicati.Library.Snapshots.WindowsSnapshot..ctor(IEnumerable1 sources, IDictionary2 options, Boolean followSymlinks) at Duplicati.Library.Snapshots.SnapshotUtility.CreateWindowsSnapshot(IEnumerable1 folders, Dictionary2 options, Boolean followSymlinks) at Duplicati.Library.Snapshots.SnapshotUtility.CreateSnapshot(IEnumerable1 paths, Dictionary2 options, Boolean followSymlinks) at Duplicati.Library.Main.Operation.BackupHandler.GetFileSnapshotService(IEnumerable1 sources, Options options)
— End of inner exception stack trace —
at Duplicati.Library.Main.Operation.BackupHandler.GetFileSnapshotService(IEnumerable1 sources, Options options) at Duplicati.Library.Main.Operation.BackupHandler.GetSourceProviders(IEnumerable1 sources, Options options, CancellationToken cancellationToken)
at Duplicati.Library.Main.Operation.BackupHandler.GetSourceProvider(IEnumerable1 sources, Options options, CancellationToken cancellationToken) at Duplicati.Library.Main.Operation.BackupHandler.RunAsync(String[] sources, IBackendManager backendManager, IFilter filter) at Duplicati.Library.Main.Operation.BackupHandler.RunAsync(String[] sources, IBackendManager backendManager, IFilter filter) at Duplicati.Library.Main.Controller.<>c__DisplayClass22_0.<<Backup>b__0>d.MoveNext() --- End of stack trace from previous location --- at Duplicati.Library.Utility.Utility.Await(Task task) at Duplicati.Library.Main.Controller.RunAction[T](T result, String[]& paths, IFilter& filter, Func3 method)
at Duplicati.Library.Main.Controller.Backup(String inputsources, IFilter filter)
at Duplicati.Server.Runner.RunInternal(Connection databaseConnection, EventPollNotify eventPollNotify, INotificationUpdateService notificationUpdateService, IProgressStateProviderService progressStateProviderService, IApplicationSettings applicationSettings, IRunnerData data, Boolean fromQueue)
at Duplicati.Server.Runner.Run(Connection databaseConnection, EventPollNotify eventPollNotify, INotificationUpdateService notificationUpdateService, IProgressStateProviderService progressStateProviderService, IApplicationSettings applicationSettings, IQueuedTask data, Boolean fromQueue)
at Duplicati.WebserverCore.Services.QueueRunnerService.RunTask(IQueuedTask task)

Edit: Apologies, forgot to answer your other question:

Nope, this is a single local partition (Windows OS C). Nothing fancy and doesn’t include any of the other drives/partitions on the laptop.

My bad, and my sincere apologies for wasting your time. I just realized I, by accident, included another drive in the backup. When I removed that drive, it backed up properly.

I reformatted the drive and was able to back it up while it was blank. However, when I re-added the single file to the drive (which leaves only 23MB available), it gives the error: “Failed to create a snapshot: The system or provider has insufficient storage space. If possible delete any old or unnecessary persistent shadow copies and try again.” So I now understand this error is directly related to how much space is on the drive being backed up itself. It’s not clear how much space is required to take a snapshot but it might help if this error provided a bit more insight as to the underlying problem (not enough space on the drive being snapshotted; nothing to do with the shadow copies). Ideally, it’d be great to know how much space actually is required.

Thanks again for your help.

I’m neither the developer nor a VSS guru, but I think the shadow storage use grows as the drive has changes while the shadow copy is being used. Extent of future changes can’t be predicted, and if the need for storage exceeds free space, then you get VSS out of space.

You can test increasing the “Maximum Shadow Copy Storage space” if you’re comfortable doing that to see if your available-for-regular-uses space (like that 23 MB) drops right then.

Specifically, I’m thinking VSS might be competing during backup for “only 23MB available”.

I just increased the drive to give it an extra 1 GB and it works fine. So, while I’m not sure how much free space is needed, clearly that was the problem and not Duplicati.

While you might not be the developer or a VSS guru, you’ve pointed me in the right direction to solve the problem and prevent a useless “bug” being posted on Github. Much appreciated.

1 Like