Failed: GetAsync called after backend is shut down

Failed: GetAsync called after backend is shut down
Details: System.InvalidOperationException: GetAsync called after backend is shut down
at Duplicati.Library.Main.BackendManager.GetAsync(String remotename, Int64 size, String hash)
at Duplicati.Library.Main.AsyncDownloader.AsyncDownloaderEnumerator.MoveNext()
at Duplicati.Library.Main.Operation.CompactHandler.DoCompact(LocalDeleteDatabase db, Boolean hasVerifiedBackend, IDbTransaction& transaction, BackendManager sharedBackend)
at Duplicati.Library.Main.Operation.DeleteHandler.DoRun(LocalDeleteDatabase db, IDbTransaction& transaction, Boolean hasVerifiedBacked, Boolean forceCompact, BackendManager sharedManager)
at Duplicati.Library.Main.Operation.BackupHandler.CompactIfRequired(BackendManager backend, Int64 lastVolumeSize)
at Duplicati.Library.Main.Operation.BackupHandler.Run(String[] sources, IFilter filter)
at Duplicati.Library.Main.Controller.<>c__DisplayClass16_0.b__0(BackupResults result)
at Duplicati.Library.Main.Controller.RunAction[T](T result, String[]& paths, IFilter& filter, Action`1 method)

1 Like

With the latest 2.8 canary build

I manually run again and it works

Interesting. I just started seeing this problem on the CI server:
https://travis-ci.org/duplicati/duplicati/jobs/277904947

I’ve also started getting this in last few days. Running latest canary. Sometimes it works sometimes it doesn’t.

System.InvalidOperationException: GetAsync called after backend is shut down at Duplicati.Library.Main.BackendManager.GetAsync(String remotename, Int64 size, String hash) at Duplicati.Library.Main.AsyncDownloader.AsyncDownloaderEnumerator.MoveNext() at Duplicati.Library.Main.Operation.CompactHandler.DoCompact(LocalDeleteDatabase db, Boolean hasVerifiedBackend, IDbTransaction& transaction, BackendManager sharedBackend) at Duplicati.Library.Main.Operation.DeleteHandler.DoRun(LocalDeleteDatabase db, IDbTransaction& transaction, Boolean hasVerifiedBacked, Boolean forceCompact, BackendManager sharedManager) at Duplicati.Library.Main.Operation.BackupHandler.CompactIfRequired(BackendManager backend, Int64 lastVolumeSize) at Duplicati.Library.Main.Operation.BackupHandler.Run(String[] sources, IFilter filter) at Duplicati.Library.Main.Controller.<>c__DisplayClass16_0.b__0(BackupResults result) at Duplicati.Library.Main.Controller.RunAction[T](T result, String[]& paths, IFilter& filter, Action`1 method) at Duplicati.Library.Main.Controller.Backup(String[] inputsources, IFilter filter) at Duplicati.Server.Runner.Run(IRunnerData data, Boolean fromQueue)

Same here - got it for the first time on Friday when running a very small update job to B2, got it again just now when pushing a small update to GDrive.

Looks like this error occurrs if it fails to delete the oldest version of backup.

So the error doesn’t occur if the backup doesn’t use the --keep-time (Keep this number of backups) parameter?

Not to nag, but is there any progress on this issue? It now appears to be actively preventing my B2 backups from completing (though I could be seeing something wrong).

@saviodsouza, as an aside, can you edit this post and add it to the “Support” category? It’s currently marked as ‘uncategorized’ and that makes it one step harder to find.

Yes,

Because I am getting errors only in backup sets where keep max versions = xx is set.

I have other backup sets set to max 3m or 1y I do not get errors there.

Thanks for the confirmation!

Yep, I found and fixed the issue:

1 Like

Just got a chance to try the 10-1 canary build, this issue now appears to be fixed.

1 Like