I started two backup jobs which were last time backed up in July 2019 using SFTP destination. In the end of backup I got for both a fatal error: Value does not fall within the expected range. After restarting them, one completed successfully, but another gave the same error again.
I had both local LAN FTP backups and remote SFTP ones. Local jobs for the same source data finished ok, remote ended with errors. It might be unrelated (FTP/SFTP), just FYI.
I am using MacOS Mojave 10.14.6. Duplicati version 2.0.5.104_canary_2020-03-25 which was updated from old one just before backups. Update was performed via self-update (not dmg, I use Mojave).
Error occurs in the end of backup with such log messages:
* Apr 27, 2020 1:34 PM: The operation Backup has failed with error: Value does not fall within the expected range.
* Apr 27, 2020 1:34 PM: Running Backup took 0:00:41:50.494
* Apr 27, 2020 1:34 PM: ExecuteNonQuery: PRAGMA optimize took 0:00:00:00.001
* Apr 27, 2020 1:34 PM: Starting - ExecuteNonQuery: PRAGMA optimize
* Apr 27, 2020 1:34 PM: Fatal error
* Apr 27, 2020 1:34 PM: ExecuteNonQuery: DELETE FROM "RemoteOperation" WHERE "Timestamp" < 1585391648 took 0:00:00:00.012
* Apr 27, 2020 1:34 PM: Starting - ExecuteNonQuery: DELETE FROM "RemoteOperation" WHERE "Timestamp" < 1585391648
* Apr 27, 2020 1:34 PM: ExecuteNonQuery: DELETE FROM "LogData" WHERE "Timestamp" < 1585391648 took 0:00:00:00.000
* Apr 27, 2020 1:34 PM: Starting - ExecuteNonQuery: DELETE FROM "LogData" WHERE "Timestamp" < 1585391648
Any ideas why this error happens, and how to fix it (except creating a new backup job).
The only similar report I found is this, but doesn’t look like it is related to my case:
Detailed log from the “Fata error” line is below.
{"ClassName":"System.ArgumentException","Message":"Value does not fall within the expected range.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at Renci.SshNet.Session.WaitOnHandle (System.Threading.WaitHandle waitHandle, System.TimeSpan timeout) [0x00041] in <c60291af03764e69b153abec058a6ec5>:0 \n at Renci.SshNet.Session.Renci.SshNet.ISession.WaitOnHandle (System.Threading.WaitHandle waitHandle) [0x0000d] in <c60291af03764e69b153abec058a6ec5>:0 \n at Renci.SshNet.Channels.Channel.WaitOnHandle (System.Threading.WaitHandle waitHandle) [0x00000] in <c60291af03764e69b153abec058a6ec5>:0 \n at Renci.SshNet.Channels.Channel.Close () [0x00080] in <c60291af03764e69b153abec058a6ec5>:0 \n at Renci.SshNet.Channels.ChannelSession.Close () [0x00000] in <c60291af03764e69b153abec058a6ec5>:0 \n at Renci.SshNet.Channels.Channel.Dispose (System.Boolean disposing) [0x0000f] in <c60291af03764e69b153abec058a6ec5>:0 \n at Renci.SshNet.Channels.ClientChannel.Dispose (System.Boolean disposing) [0x0000c] in <c60291af03764e69b153abec058a6ec5>:0 \n at Renci.SshNet.Channels.ChannelSession.Dispose (System.Boolean disposing) [0x00000] in <c60291af03764e69b153abec058a6ec5>:0 \n at Renci.SshNet.Channels.Channel.Dispose () [0x00000] in <c60291af03764e69b153abec058a6ec5>:0 \n at Renci.SshNet.SubsystemSession.Disconnect () [0x00053] in <c60291af03764e69b153abec058a6ec5>:0 \n at Renci.SshNet.SubsystemSession.Dispose (System.Boolean disposing) [0x0000c] in <c60291af03764e69b153abec058a6ec5>:0 \n at Renci.SshNet.Sftp.SftpSession.Dispose (System.Boolean disposing) [0x00000] in <c60291af03764e69b153abec058a6ec5>:0 \n at Renci.SshNet.SubsystemSession.Dispose () [0x00000] in <c60291af03764e69b153abec058a6ec5>:0 \n at Renci.SshNet.SftpClient.OnDisconnecting () [0x00017] in <c60291af03764e69b153abec058a6ec5>:0 \n at Renci.SshNet.BaseClient.Disconnect () [0x00006] in <c60291af03764e69b153abec058a6ec5>:0 \n at Renci.SshNet.BaseClient.Dispose (System.Boolean disposing) [0x0000c] in <c60291af03764e69b153abec058a6ec5>:0 \n at Renci.SshNet.SftpClient.Dispose (System.Boolean disposing) [0x00000] in <c60291af03764e69b153abec058a6ec5>:0 \n at Renci.SshNet.BaseClient.Dispose () [0x00000] in <c60291af03764e69b153abec058a6ec5>:0 \n at Duplicati.Library.Backend.SSHv2.Dispose () [0x00008] in <dfc308e761d54fe0b1800e3f5930bdf4>:0 \n at Duplicati.Library.Main.BackendManager.Dispose () [0x00077] in <d35eee4c56ca4ec6b30033967e3dac7d>:0 \n at Duplicati.Library.Main.Operation.BackupHandler.RunAsync (System.String[] sources, Duplicati.Library.Utility.IFilter filter, System.Threading.CancellationToken token) [0x01042] in <d35eee4c56ca4ec6b30033967e3dac7d>:0 \n at CoCoL.ChannelExtensions.WaitForTaskOrThrow (System.Threading.Tasks.Task task) [0x00050] in <9a758ff4db6c48d6b3d4d0e5c2adf6d1>:0 \n at Duplicati.Library.Main.Operation.BackupHandler.Run (System.String[] sources, Duplicati.Library.Utility.IFilter filter, System.Threading.CancellationToken token) [0x00009] in <d35eee4c56ca4ec6b30033967e3dac7d>:0 \n at Duplicati.Library.Main.Controller+<>c__DisplayClass14_0.<Backup>b__0 (Duplicati.Library.Main.BackupResults result) [0x0004b] in <d35eee4c56ca4ec6b30033967e3dac7d>:0 \n at Duplicati.Library.Main.Controller.RunAction[T] (T result, System.String[]& paths, Duplicati.Library.Utility.IFilter& filter, System.Action
1[T] method) [0x0026f] in :0 \n at Duplicati.Library.Main.Controller.Backup (System.String inputsources, Duplicati.Library.Utility.IFilter filter) [0x00074] in :0 \n at Duplicati.Server.Runner.Run (Duplicati.Server.Runner+IRunnerData data, System.Boolean fromQueue) [0x00349] in <46c5953990b348c78a387f111e07fba5>:0 ",“RemoteStackTraceString”:null,“RemoteStackIndex”:0,“ExceptionMethod”:null,“HResult”:-2147024809,“Source”:“mscorlib”,“ParamName”:null}`