"Cannot access a closed file" is still a problem

I have the latest version of Duplicati running on my Win11. According to posts on this forum this error should have been fixed in previous version but it is still a problem.

Backup is made to Jottacloud and Secondary backup destination is SSH to a linux machine on my network.

It does not affect every file. Of the 34464 files only 284 gets this error.

Is there any setting of configuration I have to change to make this work?

Not sure what “Cannot access a closed file” refers to?
Did you mean “open file” ?

If so, the only way to solve this on Windows is to run Duplicati with elevated privileges so it can make a VSS snapshot and read locked files from there. An alternative is to use “backup-read”, but that also requires elevated privileges.

Guessing from Google search. Might be that fix for this didn’t fully fix it:

The “Cannot access a closed file” has been handled by moving the hash computation to before the put operation as this could (for some backends) close the file.

Before assuming problem still exists, @stenp should verify message.

Thanks! That makes a bit more sense then.

@stenp If this is indeed a multi-destination issue, please let us know which destinations you are using so we can reproduce it.

Original post has destination info, but we probably should specifically request confirmation that this was closed file (not open file) message.

The error message is “Cannot access a closed file”. Everything I can find points to the same issue as #6809.

Primary destination is Jottacloud.

Secondary destination is ssh to a raspberry pi on my home network.

I have no problem with any of the two configurations if I set them up as single backup destination with no secondary destination.

Here are some fresh errors from the log, seems like it is a sequence of 4 messages. I don’t know if this makes the backup invalid. This is the first of 556 errors in a backup of ca 84000 files.

2026-09-09 06:20:50 +02 - [Error-Duplicati.Library.Main.Backend.LightWeightBackendManager-rsync]: Error during operation: Get duplicati-b00b9b3c1ae9540c48b3d8c38fa0be551.dblock.zip
InvalidOperationException: Stream position mismatch after download for duplicati-b00b9b3c1ae9540c48b3d8c38fa0be551.dblock.zip

2026-09-09 06:20:52 +02 - [Error-Duplicati.Library.Main.Backend.LightWeightBackendManager-rsync]: Error during operation: Get duplicati-b00b9b3c1ae9540c48b3d8c38fa0be551.dblock.zip
ObjectDisposedException: Cannot access a closed file.

2026-09-09 06:20:54 +02 - [Error-Duplicati.Library.Main.Backend.LightWeightBackendManager-rsync]: Error during operation: Get duplicati-b00b9b3c1ae9540c48b3d8c38fa0be551.dblock.zip
ObjectDisposedException: Cannot access a closed file.

2026-09-09 06:20:55 +02 - [Error-Duplicati.Library.Main.Operation.RemoteSynchronization.RemoteSynchronizationRunner-CopyError]: Error copying duplicati-b00b9b3c1ae9540c48b3d8c38fa0be551.dblock.zip: Operation ‘Get duplicati-b00b9b3c1ae9540c48b3d8c38fa0be551.dblock.zip’ failed after 3 attempts.
InvalidOperationException: Operation ‘Get duplicati-b00b9b3c1ae9540c48b3d8c38fa0be551.dblock.zip’ failed after 3 attempts.