Please give some details, such as an error message. If there are several steps (e.g. initial failure, and the next backup fails, or whatever), please describe. Sorry you’ve had so many, but please clarify the pattern.
In my opinion this is still a potential weak spot that needs testing. So far, there is a scenario where errors that exceed number-of-retries (which you might consider raising) can make Duplicati error about missing files, however the repair button on the message fixes that problem. If you see a different error, it would be worth exploring with some extra logs or description to see if the failure can be reproduced for developers.
Ideally, a step-by-step sequence is found, then it can be examined closely, and fixed after it is understood.
Requiring specific destinations makes things a little less ideal. If I understand yours correctly, you use the Duplicati ssh-keyfile option for server access, but a home directory move broke that plan, so no connect?
I’m trying to reproduce this with a working SFTP backup that I break with a username change. It fails with:
May 14, 2021 5:19 PM: Failed while executing "Backup" with id: 12
Renci.SshNet.Common.SshAuthenticationException: Permission denied (password).
at Duplicati.Library.Main.BackendManager.List()
at Duplicati.Library.Main.Operation.FilelistProcessor.RemoteListAnalysis(BackendManager backend, Options options, LocalDatabase database, IBackendWriter log, IEnumerable`1 protectedFiles)
at Duplicati.Library.Main.Operation.FilelistProcessor.VerifyRemoteList(BackendManager backend, Options options, LocalDatabase database, IBackendWriter log, IEnumerable`1 protectedFiles)
at Duplicati.Library.Main.Operation.BackupHandler.PreBackupVerify(BackendManager backend, String protectedfile)
at Duplicati.Library.Main.Operation.BackupHandler.<RunAsync>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at CoCoL.ChannelExtensions.WaitForTaskOrThrow(Task task)
at Duplicati.Library.Main.Controller.<>c__DisplayClass14_0.<Backup>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)
in About → Show log → Stored (fatal backup errors tend to land there instead of in the backup job logs…).
Watching it fail in About → Show log → Live → Retry looks like this. I haven’t clicked on error, but I could…
May 14, 2021 5:19 PM: The operation Backup has failed with error: Permission denied (password).
May 14, 2021 5:19 PM: Fatal error
May 14, 2021 5:19 PM: Backend event: List - Failed: ()
May 14, 2021 5:19 PM: Operation List with file attempt 5 of 5 failed with message: Permission denied (password).
May 14, 2021 5:19 PM: Backend event: List - Started: ()
May 14, 2021 5:19 PM: Backend event: List - Retrying: ()
May 14, 2021 5:19 PM: Operation List with file attempt 4 of 5 failed with message: Permission denied (password).
May 14, 2021 5:19 PM: Backend event: List - Started: ()
May 14, 2021 5:19 PM: Backend event: List - Retrying: ()
May 14, 2021 5:19 PM: Operation List with file attempt 3 of 5 failed with message: Permission denied (password).
May 14, 2021 5:19 PM: Backend event: List - Started: ()
May 14, 2021 5:19 PM: Backend event: List - Retrying: ()
May 14, 2021 5:19 PM: Operation List with file attempt 2 of 5 failed with message: Permission denied (password).
May 14, 2021 5:19 PM: Backend event: List - Started: ()
May 14, 2021 5:19 PM: Backend event: List - Retrying: ()
May 14, 2021 5:19 PM: Operation List with file attempt 1 of 5 failed with message: Permission denied (password).
May 14, 2021 5:19 PM: Backend event: List - Started: ()
May 14, 2021 5:19 PM: The operation Backup has started
All this is normal handling of communication errors. To try your next step, I fix the username and run again.
Works fine. Testing 2.0.5.114 on Windows 10, with a small backup (one short file). What’s the trick to fail?