restic / restic

Fast, secure, efficient backup program
https://restic.net
BSD 2-Clause "Simplified" License
25.16k stars 1.51k forks source link

failed to create snapshot for [c:\]: VSS error: async operation failed: VSS_E_INSUFFICIENT_STORAGE (0x8004231f) #4875

Open mkatsevVR opened 1 month ago

mkatsevVR commented 1 month ago

Output of restic version

restic 0.16.4 compiled with go1.21.6 on windows/amd64

What backend/service did you use to store the repository?

sftp

Problem description / Steps to reproduce

Using restic on Windows 10 with --use-fs-snapshot worked fine for years but suddenly started failing with the error in the title. There's plenty of space on the drive (less than 50% used) and as a test, creating a shadow copy with wmic shadowcopy call create Volume='C:\' worked fine. The issue went away after a reboot, but then started again a couple of days later. Once it started happening, nothing worked other than a reboot (tried deleting existing shadows with vssadmin, cleaning up more disk space, etc.

Expected behavior

Backup works

Actual behavior

VSS snadshot fails, resulting in a number of "The process cannot access the file because it is being used by another process" errors.

Do you have any idea what may have caused this?

No, it just started on its own last week.

MichaelEischer commented 3 weeks ago

Judging from a quick search the error code indicates that creating the snapshot would require more storage than VSS is allowed to use. If I remember correctly, that is a parameter different from the amount of free space on disk.

I don't know particularly much about VSS, maybe someone else can help?