"The channel is retired" followed by NullReferenceException with Backblaze B2

I’m currently running backups of 4 (Linux) machines to a Backblaze B2 account using Duplicati. Each computer uploads to a different B2 bucket. These computers are at 3 different locations, using different internet providers.

I’m now trying to add a 5th machine which runs Windows 10 and is located at the same place of one of the other 4 (thus, same internet provider). So far I’ve been unable to complete the initial backup, either through the GUI or through the CLI.

The command and output I’m seeing is transcribed below. This command was exported from the GUI with the Export -> As Command-line option.

C:\Users\myuser>"C:\Program Files\Duplicati 2\Duplicati.CommandLine.exe" backup "b2://<bucket-name-and-account-id-removed>" "C:\Users\myuser" --backup-name=home2 --dbpath="C:\Users\myuser\AppData\Local\Duplicati\83768879667373827077.sqlite" --encryption-module=aes --compression-module=zip --dblock-size=50mb --passphrase="<password-removed>" --retention-policy="1W:1D,4W:1W,12M:1M" --skip-files-larger-than=100KB --backup-test-samples=0 --thread-priority=idle --send-http-url=<duplicati-monitoring-url-removed> --exclude-files-attributes="temporary,system,hidden" --disable-module=console-password-input --exclude="%HOME%\Documents\\" --exclude="%HOME%\Downloads\\" --exclude="%HOME%\Portables\\" --exclude="%HOME%\Videos\\"
Backup started at 17/12/2018 19:33:34
Checking remote backup ...
  Listing remote folder ...
Expected there to be a temporary fileset for synthetic filelist (3, duplicati-b028807f20e294cf29c4ab220107c1240.dblock.zip.aes), but none was found?
Scanning local files ...
  56814 files need to be examined (281,39 GB)
  56680 files need to be examined (281,39 GB)
  56454 files need to be examined (281,38 GB)
  56269 files need to be examined (281,38 GB)
  55952 files need to be examined (281,37 GB)
  55786 files need to be examined (281,37 GB)
  55509 files need to be examined (281,36 GB)
  55096 files need to be examined (281,36 GB)
  54759 files need to be examined (281,36 GB)
  54318 files need to be examined (281,35 GB)
  54027 files need to be examined (281,34 GB)
  53711 files need to be examined (281,33 GB)
  53508 files need to be examined (281,32 GB)
  53352 files need to be examined (281,31 GB)
  53113 files need to be examined (281,31 GB)
  52952 files need to be examined (281,30 GB)
  52735 files need to be examined (281,29 GB)
  52513 files need to be examined (281,28 GB)
  52475 files need to be examined (281,28 GB)
  Uploading file (49,91 MB) ...
  52220 files need to be examined (281,27 GB)
  52064 files need to be examined (281,26 GB)
  51859 files need to be examined (281,25 GB)
  51710 files need to be examined (281,24 GB)
  51495 files need to be examined (281,24 GB)
  51234 files need to be examined (281,23 GB)
  51079 files need to be examined (281,23 GB)
  50900 files need to be examined (281,22 GB)
  50651 files need to be examined (281,21 GB)
  50453 files need to be examined (281,21 GB)
  50234 files need to be examined (281,20 GB)
  50023 files need to be examined (281,19 GB)
  49713 files need to be examined (281,18 GB)
  48817 files need to be examined (281,18 GB)
  48354 files need to be examined (281,18 GB)
  48156 files need to be examined (281,17 GB)
  47960 files need to be examined (281,16 GB)
  47774 files need to be examined (281,16 GB)
  47585 files need to be examined (281,15 GB)
  47581 files need to be examined (281,15 GB)
  Uploading file (49,91 MB) ...
  Uploading file (49,91 MB) ...
  Uploading file (49,91 MB) ...
  Uploading file (49,91 MB) ...
  Uploading file (49,91 MB) ...
Failed to process entry, path: C:\Users\myuser\Documents\<filename01-removed> => The channel is retired
Failed to process entry, path: C:\Users\myuser\Documents\<filename02-removed> => The channel is retired
Failed to process entry, path: C:\Users\myuser\Documents\<filename03-removed> => The channel is retired
Failed to process entry, path: C:\Users\myuser\Documents\<filename04-removed> => The channel is retired
Failed to process entry, path: C:\Users\myuser\Documents\<filename05-removed> => The channel is retired
Failed to process entry, path: C:\Users\myuser\Documents\<filename06-removed> => The channel is retired
Failed to process entry, path: C:\Users\myuser\Documents\<filename07-removed> => The channel is retired
Failed to process entry, path: C:\Users\myuser\Documents\<filename08-removed> => The channel is retired
Failed to process entry, path: C:\Users\myuser\Documents\<filename09-removed> => The channel is retired
Failed to process entry, path: C:\Users\myuser\Documents\<filename10-removed> => The channel is retired
Failed to process entry, path: C:\Users\myuser\Documents\<filename11-removed> => The channel is retired
Failed to process entry, path: C:\Users\myuser\Documents\<filename12-removed> => The channel is retired
Fatal error => Object reference not set to an instance of an object.
  47580 files need to be examined (281,15 GB)

System.AggregateException: One or more errors occurred. ---> System.AggregateException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Duplicati.Library.Main.Volumes.BlockVolumeWriter.AddBlock(String hash, Byte[] data, Int32 offset, Int32 size, CompressionHint hint)
   at Duplicati.Library.Main.Operation.Backup.SpillCollectorProcess.<>c__DisplayClass0_0.<<Run>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at CoCoL.AutomationExtensions.<RunTask>d__10`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Duplicati.Library.Main.Operation.BackupHandler.<RunMainOperation>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Duplicati.Library.Main.Operation.BackupHandler.<RunAsync>d__19.MoveNext()
   --- End of inner exception stack trace ---
   at Duplicati.Library.Main.Operation.BackupHandler.<RunAsync>d__19.MoveNext()
   --- End of inner exception stack trace ---
   at CoCoL.ChannelExtensions.WaitForTaskOrThrow(Task task)
   at Duplicati.Library.Main.Controller.<>c__DisplayClass13_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.CommandLine.Commands.Backup(TextWriter outwriter, Action`1 setup, List`1 args, Dictionary`2 options, IFilter filter)
   at Duplicati.CommandLine.Program.ParseCommandLine(TextWriter outwriter, Action`1 setup, Boolean& verboseErrors, String[] args)
   at Duplicati.CommandLine.Program.RunCommandLine(TextWriter outwriter, TextWriter errwriter, Action`1 setup, String[] args)
---> (Inner Exception #0) System.AggregateException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Duplicati.Library.Main.Volumes.BlockVolumeWriter.AddBlock(String hash, Byte[] data, Int32 offset, Int32 size, CompressionHint hint)
   at Duplicati.Library.Main.Operation.Backup.SpillCollectorProcess.<>c__DisplayClass0_0.<<Run>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at CoCoL.AutomationExtensions.<RunTask>d__10`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Duplicati.Library.Main.Operation.BackupHandler.<RunMainOperation>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Duplicati.Library.Main.Operation.BackupHandler.<RunAsync>d__19.MoveNext()
   --- End of inner exception stack trace ---
   at Duplicati.Library.Main.Operation.BackupHandler.<RunAsync>d__19.MoveNext()
---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.
   at Duplicati.Library.Main.Volumes.BlockVolumeWriter.AddBlock(String hash, Byte[] data, Int32 offset, Int32 size, CompressionHint hint)
   at Duplicati.Library.Main.Operation.Backup.SpillCollectorProcess.<>c__DisplayClass0_0.<<Run>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at CoCoL.AutomationExtensions.<RunTask>d__10`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Duplicati.Library.Main.Operation.BackupHandler.<RunMainOperation>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Duplicati.Library.Main.Operation.BackupHandler.<RunAsync>d__19.MoveNext()<---

---> (Inner Exception #1) System.AggregateException: One or more errors occurred. ---> System.IO.IOException: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
   at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
   --- End of inner exception stack trace ---
   at Duplicati.Library.Main.Operation.Common.BackendHandler.<DoWithRetry>d__21`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Duplicati.Library.Main.Operation.Common.BackendHandler.<>c__DisplayClass13_0.<<UploadFileAsync>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Duplicati.Library.Main.Operation.Common.BackendHandler.<UploadFileAsync>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Duplicati.Library.Main.Operation.Backup.BackendUploader.<>c__DisplayClass0_0.<<Run>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at CoCoL.AutomationExtensions.<RunTask>d__10`1.MoveNext()
   --- End of inner exception stack trace ---
---> (Inner Exception #0) System.IO.IOException: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
   at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
   --- End of inner exception stack trace ---
   at Duplicati.Library.Main.Operation.Common.BackendHandler.<DoWithRetry>d__21`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Duplicati.Library.Main.Operation.Common.BackendHandler.<>c__DisplayClass13_0.<<UploadFileAsync>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Duplicati.Library.Main.Operation.Common.BackendHandler.<UploadFileAsync>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Duplicati.Library.Main.Operation.Backup.BackendUploader.<>c__DisplayClass0_0.<<Run>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at CoCoL.AutomationExtensions.<RunTask>d__10`1.MoveNext()<---
<---
<---

I then tried running the backup job in the GUI, and it stopped with the simple “One or more errors occurred” message. Going to the Reporting -> Show log option, I see two things:

  1. No log is generated for the “General” tab

  2. I see no obvious errors on the “Remote” tab, but I’m pasting the messages below anyway

    Dec 17, 2018 10:00 PM: put duplicati-b4428616b32fc4992962de00091ddcee5.dblock.zip.aes
    Dec 17, 2018 9:58 PM: put duplicati-b377fdd11c97e484f9a76c426c8f6d884.dblock.zip.aes
    Dec 17, 2018 9:57 PM: put duplicati-b9cb3ab83b4e64c0fa423ab6adb4b3a32.dblock.zip.aes
    Dec 17, 2018 9:56 PM: put duplicati-bb66bf5a75d884b15b037d9fd83e17e4d.dblock.zip.aes
    Dec 17, 2018 9:56 PM: put duplicati-b5c3e80309c324d85b3c8f37fdb69bf35.dblock.zip.aes
    Dec 17, 2018 9:47 PM: put duplicati-bdbeeead1b91043f5a0a5a4b8cf25f45c.dblock.zip.aes
    Dec 17, 2018 9:46 PM: list

I already tried restarting the backup from scratch, creating a new configuration pointed to a new B2 bucket. It seems to always end with the error messages pasted above.

One thing I noticed (though I’m not sure it’s relevant) is that the files causing the Failed to process entry, path: (…) => The channel is retired warnings/errors are contained in a folder which my configuration should be ignoring, as per the –exclude="%HOME%\Documents\" option.

The Duplicati version I’m running is the 2.0.4.5_beta_2018-11-28.

Can I do anything to enable this backup to finish properly?

Thanks in advance for any help with this problem.

I’ve run into the same problem. Except mine is failing on file it should be backing up.

[root@ssdnode01 conf]# docker exec -it duplicati duplicati-cli backup "googledrive://duplicati/docker-radarr/?authid=<authid>"  "/data/docker-radarr/" --backup-na
me="docker-radarr" --compression-module="zip" --dblock-size="50mb" --encryption-module="gpg" --gpg-encryption-command="--encrypt" --gpg-encryption-switches="--recipient myself@gmail.com"  --disable-module="c
onsole-password-input"  --send-mail-to="myself@gmail.com" --send-mail-from="duplicati@mydomain.com" --send-mail-level="All" --send-mail-subject="Duplicati %LOCALPATH% %OPERATIONNAME% Report"  --se
nd-mail-body="%RESULT%" --send-mail-url="tls://email-smtp.us-west-2.amazonaws.com:587" --send-mail-username="<smtp_username>"  --send-mail-password="<smtp_password>"     Back
up started at 12/20/2018 18:19:44
Checking remote backup ...
  Listing remote folder ...
Scanning local files ...
  7301 files need to be examined (1.21 GB) (still counting)
  9004 files need to be examined (1.45 GB)
  9002 files need to be examined (1.44 GB)
  8994 files need to be examined (1.39 GB)
  8974 files need to be examined (1.37 GB)
  8950 files need to be examined (1.35 GB)
  8832 files need to be examined (1.32 GB)
  8733 files need to be examined (1.30 GB)
  8617 files need to be examined (1.27 GB)
  8482 files need to be examined (1.25 GB)
  8356 files need to be examined (1.23 GB)
  8206 files need to be examined (1.21 GB)
  8005 files need to be examined (1.16 GB)
  7802 files need to be examined (1.13 GB)
  7672 files need to be examined (1.10 GB)
Failed to process entry, path: /data/docker-radarr/MediaCover/869/fanart-360.jpg => The channel is retired
Failed to process entry, path: /data/docker-radarr/MediaCover/869/fanart.jpg => The channel is retired
Failed to process entry, path: /data/docker-radarr/MediaCover/869/poster-250.jpg => The channel is retired
Failed to process entry, path: /data/docker-radarr/MediaCover/869/poster-500.jpg => The channel is retired
Failed to process entry, path: /data/docker-radarr/MediaCover/869/poster.jpg => The channel is retired
Fatal error => Object reference not set to an instance of an object

System.AggregateException: One or more errors occurred. ---> System.AggregateException: Object reference not set to an instance of an object ---> System.NullReferenceException: Object reference not set to an instance of an object
  at Duplicati.Library.Main.Volumes.BlockVolumeWriter.AddBlock (System.String hash, System.Byte[] data, System.Int32 offset, System.Int32 size, Duplicati.Library.Interface.CompressionHint hint) [0x00032] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at Duplicati.Library.Main.Operation.Backup.SpillCollectorProcess+<>c__DisplayClass0_0.<Run>b__0 (<>f__AnonymousType9`2[<Input>j__TPar,<Output>j__TPar] self) [0x003df] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at CoCoL.AutomationExtensions.RunTask[T] (T channels, System.Func`2[T,TResult] method, System.Boolean catchRetiredExceptions) [0x000cc] in <6973ce2780de4b28aaa2c5ffc59993b1>:0
  at Duplicati.Library.Main.Operation.BackupHandler.RunMainOperation (System.Collections.Generic.IEnumerable`1[T] sources, Duplicati.Library.Snapshots.ISnapshotService snapshot, Duplicati.Library.Snapshots.UsnJournalService journalService, Duplicati.Library.Main.Operation.Backup.BackupDatabase database, Duplicati.Library.Main.Operation.Backup.BackupStatsCollector stats, Duplicati.Library.Main.Options options, Duplicati.Library.Utility.IFilter sourcefilter, Duplicati.Library.Utility.IFilter filter, Duplicati.Library.Main.BackupResults result, Duplicati.Library.Main.Operation.Common.ITaskReader taskreader, System.Int64
 lastfilesetid) [0x00349] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at Duplicati.Library.Main.Operation.BackupHandler.RunAsync (System.String[] sources, Duplicati.Library.Utility.IFilter filter) [0x00a43] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
   --- End of inner exception stack trace ---
  at Duplicati.Library.Main.Operation.BackupHandler.RunAsync (System.String[] sources, Duplicati.Library.Utility.IFilter filter) [0x01033] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
   --- End of inner exception stack trace ---
  at CoCoL.ChannelExtensions.WaitForTaskOrThrow (System.Threading.Tasks.Task task) [0x0005d] in <6973ce2780de4b28aaa2c5ffc59993b1>:0
  at Duplicati.Library.Main.Operation.BackupHandler.Run (System.String[] sources, Duplicati.Library.Utility.IFilter filter) [0x00008] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at Duplicati.Library.Main.Controller+<>c__DisplayClass13_0.<Backup>b__0 (Duplicati.Library.Main.BackupResults result) [0x00035] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at Duplicati.Library.Main.Controller.RunAction[T] (T result, System.String[]& paths, Duplicati.Library.Utility.IFilter& filter, System.Action`1[T] method) [0x00271] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at Duplicati.Library.Main.Controller.Backup (System.String[] inputsources, Duplicati.Library.Utility.IFilter filter) [0x00068] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at Duplicati.CommandLine.Commands.Backup (System.IO.TextWriter outwriter, System.Action`1[T] setup, System.Collections.Generic.List`1[T] args, System.Collections.Generic.Dictionary`2[TKey,TValue] options, Duplicati.Library.Utility.IFilter filter) [0x00119] in <04206d56f2084515b87543fcb90a7e00>:0
  at (wrapper delegate-invoke) System.Func`6[System.IO.TextWriter,System.Action`1[Duplicati.Library.Main.Controller],System.Collections.Generic.List`1[System.String],System.Collections.Generic.Dictionary`2[System.String,System.String],Duplicati.Library.Utility.IFilter,System.Int32].invoke_TResult_T1_T2_T3_T4_T5(System.IO.TextWriter,System.Action`1<Duplicati.Library.Main.Controller>,System.Collections.Generic.List`1<string>,System.Collections.Generic.Dictionary`2<string, string>,Duplicati.Library.Utility.IFilter)
  at Duplicati.CommandLine.Program.ParseCommandLine (System.IO.TextWriter outwriter, System.Action`1[T] setup, System.Boolean& verboseErrors, System.String[] args) [0x00313] in <04206d56f2084515b87543fcb90a7e00>:0
  at Duplicati.CommandLine.Program.RunCommandLine (System.IO.TextWriter outwriter, System.IO.TextWriter errwriter, System.Action`1[T] setup, System.String[] args) [0x00002] in <04206d56f2084515b87543fcb90a7e00>:0
---> (Inner Exception #0) System.AggregateException: Object reference not set to an instance of an object ---> System.NullReferenceException: Object reference not set to an instance of an object
  at Duplicati.Library.Main.Volumes.BlockVolumeWriter.AddBlock (System.String hash, System.Byte[] data, System.Int32 offset, System.Int32 size, Duplicati.Library.Interface.CompressionHint hint) [0x00032] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at Duplicati.Library.Main.Operation.Backup.SpillCollectorProcess+<>c__DisplayClass0_0.<Run>b__0 (<>f__AnonymousType9`2[<Input>j__TPar,<Output>j__TPar] self) [0x003df] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at CoCoL.AutomationExtensions.RunTask[T] (T channels, System.Func`2[T,TResult] method, System.Boolean catchRetiredExceptions) [0x000cc] in <6973ce2780de4b28aaa2c5ffc59993b1>:0
  at Duplicati.Library.Main.Operation.BackupHandler.RunMainOperation (System.Collections.Generic.IEnumerable`1[T] sources, Duplicati.Library.Snapshots.ISnapshotService snapshot, Duplicati.Library.Snapshots.UsnJournalService journalService, Duplicati.Library.Main.Operation.Backup.BackupDatabase database, Duplicati.Library.Main.Operation.Backup.BackupStatsCollector stats, Duplicati.Library.Main.Options options, Duplicati.Library.Utility.IFilter sourcefilter, Duplicati.Library.Utility.IFilter filter, Duplicati.Library.Main.BackupResults result, Duplicati.Library.Main.Operation.Common.ITaskReader taskreader, System.Int64 lastfilesetid) [0x00349] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at Duplicati.Library.Main.Operation.BackupHandler.RunAsync (System.String[] sources, Duplicati.Library.Utility.IFilter filter) [0x00a43] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
   --- End of inner exception stack trace ---
  at Duplicati.Library.Main.Operation.BackupHandler.RunAsync (System.String[] sources, Duplicati.Library.Utility.IFilter filter) [0x01033] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object
  at Duplicati.Library.Main.Volumes.BlockVolumeWriter.AddBlock (System.String hash, System.Byte[] data, System.Int32 offset, System.Int32 size, Duplicati.Library.Interface.CompressionHint hint) [0x00032] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at Duplicati.Library.Main.Operation.Backup.SpillCollectorProcess+<>c__DisplayClass0_0.<Run>b__0 (<>f__AnonymousType9`2[<Input>j__TPar,<Output>j__TPar] self) [0x003df] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at CoCoL.AutomationExtensions.RunTask[T] (T channels, System.Func`2[T,TResult] method, System.Boolean catchRetiredExceptions) [0x000cc] in <6973ce2780de4b28aaa2c5ffc59993b1>:0
  at Duplicati.Library.Main.Operation.BackupHandler.RunMainOperation (System.Collections.Generic.IEnumerable`1[T] sources, Duplicati.Library.Snapshots.ISnapshotService snapshot, Duplicati.Library.Snapshots.UsnJournalService journalService, Duplicati.Library.Main.Operation.Backup.BackupDatabase database, Duplicati.Library.Main.Operation.Backup.BackupStatsCollector stats, Duplicati.Library.Main.Options options, Duplicati.Library.Utility.IFilter sourcefilter, Duplicati.Library.Utility.IFilter filter, Duplicati.Library.Main.BackupResults result, Duplicati.Library.Main.Operation.Common.ITaskReader taskreader, System.Int64 lastfilesetid) [0x00349] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at Duplicati.Library.Main.Operation.BackupHandler.RunAsync (System.String[] sources, Duplicati.Library.Utility.IFilter filter) [0x00a43] in <c6c6871f516b48f59d88f9d731c3ea4d>:0 <---

---> (Inner Exception #1) System.AggregateException: One or more errors occurred. ---> System.IO.IOException: Write fault on path /[Unknown]
  at System.IO.FileStream.WriteInternal (System.Byte[] src, System.Int32 offset, System.Int32 count) [0x00077] in <3833a6edf2074b959d3dab898627f0ac>:0
  at System.IO.FileStream.Write (System.Byte[] array, System.Int32 offset, System.Int32 count) [0x00090] in <3833a6edf2074b959d3dab898627f0ac>:0
  at Duplicati.Library.Utility.OverrideableStream.Write (System.Byte[] buffer, System.Int32 offset, System.Int32 count) [0x00000] in <621233224d6648a0a1cd0bb505473fc4>:0
  at Duplicati.Library.Utility.Utility.CopyStream (System.IO.Stream source, System.IO.Stream target, System.Boolean tryRewindSource, System.Byte[] buf) [0x0002f] in <621233224d6648a0a1cd0bb505473fc4>:0
  at Duplicati.Library.Encryption.EncryptionBase.Encrypt (System.IO.Stream input, System.IO.Stream output) [0x00008] in <40b208a4afd342c3896ceee057426d71>:0
  at Duplicati.Library.Encryption.EncryptionBase.Encrypt (System.String inputfile, System.String outputfile) [0x0000e] in <40b208a4afd342c3896ceee057426d71>:0
  at Duplicati.Library.Main.Operation.Common.BackendHandler+FileEntryItem.Encrypt (Duplicati.Library.Main.Options options) [0x0003b] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at Duplicati.Library.Main.Operation.Common.BackendHandler+<>c__DisplayClass13_0.<UploadFileAsync>b__0 () [0x00000] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at System.Threading.Tasks.Task`1[TResult].InnerInvoke () [0x0000f] in <3833a6edf2074b959d3dab898627f0ac>:0
  at System.Threading.Tasks.Task.Execute () [0x00000] in <3833a6edf2074b959d3dab898627f0ac>:0
--- End of stack trace from previous location where exception was thrown ---

  at Duplicati.Library.Main.Operation.Common.BackendHandler+<>c__DisplayClass13_0.<UploadFileAsync>b__2 () [0x000fe] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at Duplicati.Library.Main.Operation.Common.BackendHandler.DoWithRetry[T] (Duplicati.Library.Main.Operation.Common.BackendHandler+FileEntryItem item, System.Func`1[TResult] method) [0x004c0] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at Duplicati.Library.Main.Operation.Common.BackendHandler+<>c__DisplayClass13_0.<UploadFileAsync>b__1 () [0x000b1] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at Duplicati.Library.Main.Operation.Common.BackendHandler.UploadFileAsync (Duplicati.Library.Main.Volumes.VolumeWriterBase item, System.Func`2[T,TResult] createIndexFile) [0x00181] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at Duplicati.Library.Main.Operation.Backup.BackendUploader+<>c__DisplayClass0_0.<Run>b__0 (<>f__AnonymousType11`1[<Input>j__TPar] self) [0x00519] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at CoCoL.AutomationExtensions.RunTask[T] (T channels, System.Func`2[T,TResult] method, System.Boolean catchRetiredExceptions) [0x000cc] in <6973ce2780de4b28aaa2c5ffc59993b1>:0
   --- End of inner exception stack trace ---
---> (Inner Exception #0) System.IO.IOException: Write fault on path /[Unknown]
  at System.IO.FileStream.WriteInternal (System.Byte[] src, System.Int32 offset, System.Int32 count) [0x00077] in <3833a6edf2074b959d3dab898627f0ac>:0
  at System.IO.FileStream.Write (System.Byte[] array, System.Int32 offset, System.Int32 count) [0x00090] in <3833a6edf2074b959d3dab898627f0ac>:0
  at Duplicati.Library.Utility.OverrideableStream.Write (System.Byte[] buffer, System.Int32 offset, System.Int32 count) [0x00000] in <621233224d6648a0a1cd0bb505473fc4>:0
  at Duplicati.Library.Utility.Utility.CopyStream (System.IO.Stream source, System.IO.Stream target, System.Boolean tryRewindSource, System.Byte[] buf) [0x0002f] in <621233224d6648a0a1cd0bb505473fc4>:0
  at Duplicati.Library.Encryption.EncryptionBase.Encrypt (System.IO.Stream input, System.IO.Stream output) [0x00008] in <40b208a4afd342c3896ceee057426d71>:0
  at Duplicati.Library.Encryption.EncryptionBase.Encrypt (System.String inputfile, System.String outputfile) [0x0000e] in <40b208a4afd342c3896ceee057426d71>:0
  at Duplicati.Library.Main.Operation.Common.BackendHandler+FileEntryItem.Encrypt (Duplicati.Library.Main.Options options) [0x0003b] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at Duplicati.Library.Main.Operation.Common.BackendHandler+<>c__DisplayClass13_0.<UploadFileAsync>b__0 () [0x00000] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at System.Threading.Tasks.Task`1[TResult].InnerInvoke () [0x0000f] in <3833a6edf2074b959d3dab898627f0ac>:0
  at System.Threading.Tasks.Task.Execute () [0x00000] in <3833a6edf2074b959d3dab898627f0ac>:0
--- End of stack trace from previous location where exception was thrown ---

  at Duplicati.Library.Main.Operation.Common.BackendHandler+<>c__DisplayClass13_0.<UploadFileAsync>b__2 () [0x000fe] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at Duplicati.Library.Main.Operation.Common.BackendHandler.DoWithRetry[T] (Duplicati.Library.Main.Operation.Common.BackendHandler+FileEntryItem item, System.Func`1[TResult] method) [0x004c0] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at Duplicati.Library.Main.Operation.Common.BackendHandler+<>c__DisplayClass13_0.<UploadFileAsync>b__1 () [0x000b1] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at Duplicati.Library.Main.Operation.Common.BackendHandler.UploadFileAsync (Duplicati.Library.Main.Volumes.VolumeWriterBase item, System.Func`2[T,TResult] createIndexFile) [0x00181] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at Duplicati.Library.Main.Operation.Backup.BackendUploader+<>c__DisplayClass0_0.<Run>b__0 (<>f__AnonymousType11`1[<Input>j__TPar] self) [0x00519] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at CoCoL.AutomationExtensions.RunTask[T] (T channels, System.Func`2[T,TResult] method, System.Boolean catchRetiredExceptions) [0x000cc] in <6973ce2780de4b28aaa2c5ffc59993b1>:0 <---
<---
<---

I’ve tried deleting the sqlite database, all previous versions of the backup. I’m using this same backup strategy on several other folders and it works fine.

Posting an update. During the holidays, I’ve gotten physical access to the Windows machine I was having trouble with (so far, I had been accessing it remotely with Teamviewer). One thing I noticed was that it had not been restarted for some time (only suspended/hibernated). I decided to restart it… and Duplicati went right through the files it had been having trouble with. Apparently the problem “fixed itself”, so I can no longer reproduce it.

@mjmayer, from your transcript, I’m guessing you are using Linux. I haven’t had this problem in any of my Linux machines so far, but might I suggest you try restarting yours?

It took a few months, but I finally found a resolution to my issue. I was seeing the following error.

---> (Inner Exception #1) System.AggregateException: One or more errors occurred. ---> System.IO.IOException: Write fault on path /[Unknown]
  at System.IO.FileStream.WriteInternal (System.Byte[] src, System.Int32 offset, System.Int32 count) [0x00077] in <3833a6edf2074b959d3dab898627f0ac>:0
  at System.IO.FileStream.Write (System.Byte[] array, System.Int32 offset, System.Int32 count) [0x00090] in <3833a6edf2074b959d3dab898627f0ac>:0
  at Duplicati.Library.Utility.OverrideableStream.Write (System.Byte[] buffer, System.Int32 offset, System.Int32 count) [0x00000] in <621233224d6648a0a1cd0bb505473fc4>:0
  at Duplicati.Library.Utility.Utility.CopyStream (System.IO.Stream source, System.IO.Stream target, System.Boolean tryRewindSource, System.Byte[] buf) [0x0002f] in <621233224d6648a0a1cd0bb505473fc4>:0
  at Duplicati.Library.Encryption.EncryptionBase.Encrypt (System.IO.Stream input, System.IO.Stream output) [0x00008] in <40b208a4afd342c3896ceee057426d71>:0
  at Duplicati.Library.Encryption.EncryptionBase.Encrypt (System.String inputfile, System.String outputfile) [0x0000e] in <40b208a4afd342c3896ceee057426d71>:0
  at Duplicati.Library.Main.Operation.Common.BackendHandler+FileEntryItem.Encrypt (Duplicati.Library.Main.Options options) [0x0003b] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at Duplicati.Library.Main.Operation.Common.BackendHandler+<>c__DisplayClass13_0.<UploadFileAsync>b__0 () [0x00000] in <c6c6871f516b48f59d88f9d731c3ea4d>:0
  at System.Threading.Tasks.Task`1[TResult].InnerInvoke () [0x0000f] in <3833a6edf2074b959d3dab898627f0ac>:0
  at System.Threading.Tasks.Task.Execute () [0x00000] in <3833a6edf2074b959d3dab898627f0ac>:0
--- End of stack trace from previous location where exception was thrown ---

With profiling logging turned on I saw a 400 error.

I am using gpg to do my encryption. Through a stroke of luck, I stumbled across a github issue describing how to use gpg. I recently deployed a new version of the duplicati docker container. The gpg keys were imported correctly, but I forgot to set the trust level on the key to ultimate.

Setting the trust level to ultimate on the gpg resolved my issue.