Strange dotnet issue in logs and backup not being updated (covertly)

Once again, duplicati runs fine, takes time to process files, scans everything, takes long to run, but doesn’t backup files. Even if there are guaranteed changes to be backed up.

It runs fine for several hours and then this error is shown in logs, and the backup isn’t updated. Yet there’s no any other indication about the malfunction. Everything seems to be ok, except the data in the baclkup. I’m sure many might once again completely miss that the backup job is broken, which is very dangerous pattern.

System.IO.FileNotFoundException: Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies.
File name: 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
  at Duplicati.Library.Encryption.EncryptionBase.Encrypt (System.IO.Stream input, System.IO.Stream output) [0x00000] in <c709a8649bdf4b8f90a9e36916249677>:0 
  at Duplicati.Library.Encryption.EncryptionBase.Encrypt (System.String inputfile, System.String outputfile) [0x0000e] in <c709a8649bdf4b8f90a9e36916249677>:0 
  at Duplicati.Library.Main.Operation.Common.BackendHandler+FileEntryItem.Encrypt (Duplicati.Library.Main.Options options) [0x0003b] in <e4ba2224a87c42cbadcd524985619ee3>:0 
  at Duplicati.Library.Main.Volumes.VolumeWriterBase.CreateFileEntryForUpload (Duplicati.Library.Main.Options options) [0x00018] in <e4ba2224a87c42cbadcd524985619ee3>:0 
  at Duplicati.Library.Main.Operation.Backup.SpillCollectorProcess.UploadVolumeAndIndex (Duplicati.Library.Main.Operation.Backup.SpillVolumeRequest target, CoCoL.IWriteChannel`1[T] outputChannel, Duplicati.Library.Main.Options options, Duplicati.Library.Main.Operation.Backup.BackupDatabase database) [0x00018] in <e4ba2224a87c42cbadcd524985619ee3>:0 
  at Duplicati.Library.Main.Operation.Backup.SpillCollectorProcess+<>c__DisplayClass0_0.<Run>b__0 (<>f__AnonymousType11`2[<Input>j__TPar,<Output>j__TPar] self) [0x005a2] in <e4ba2224a87c42cbadcd524985619ee3>:0 
  at CoCoL.AutomationExtensions.RunTask[T] (T channels, System.Func`2[T,TResult] method, System.Boolean catchRetiredExceptions) [0x000d5] in <9a758ff4db6c48d6b3d4d0e5c2adf6d1>: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 filesetid, System.Int64 lastfilesetid, System.Threading.CancellationToken token) [0x0035f] in <e4ba2224a87c42cbadcd524985619ee3>:0 
  at Duplicati.Library.Main.Operation.BackupHandler.RunAsync (System.String[] sources, Duplicati.Library.Utility.IFilter filter, System.Threading.CancellationToken token) [0x01048] in <e4ba2224a87c42cbadcd524985619ee3>:0 
  at CoCoL.ChannelExtensions.WaitForTaskOrThrow (System.Threading.Tasks.Task task) [0x00050] in <9a758ff4db6c48d6b3d4d0e5c2adf6d1>:0 
  at Duplicati.Library.Main.Operation.BackupHandler.Run (System.String[] sources, Duplicati.Library.Utility.IFilter filter, System.Threading.CancellationToken token) [0x00009] in <e4ba2224a87c42cbadcd524985619ee3>:0 
  at Duplicati.Library.Main.Controller+<>c__DisplayClass14_0.<Backup>b__0 (Duplicati.Library.Main.BackupResults result) [0x0004b] in <e4ba2224a87c42cbadcd524985619ee3>:0 
  at Duplicati.Library.Main.Controller.RunAction[T] (T result, System.String[]& paths, Duplicati.Library.Utility.IFilter& filter, System.Action`1[T] method) [0x0026f] in <e4ba2224a87c42cbadcd524985619ee3>:0 
  at Duplicati.Library.Main.Controller.Backup (System.String[] inputsources, Duplicati.Library.Utility.IFilter filter) [0x00074] in <e4ba2224a87c42cbadcd524985619ee3>: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 <89b45aad167a47f49edcb55e6b3d71af>: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) [0x00342] in <89b45aad167a47f49edcb55e6b3d71af>:0 
  at Duplicati.CommandLine.Program.RunCommandLine (System.IO.TextWriter outwriter, System.IO.TextWriter errwriter, System.Action`1[T] setup, System.String[] args) [0x00002] in <89b45aad167a47f49edcb55e6b3d71af>:0 

I just happened to catch this by change, when checking logs and seeing that there’s something seriously off with the file dates being “backed up”. - Truth is that it looks like it working, but it actually doesn’t.

I have no idea why this is happening, probably related to the update I’ve installed, probably I’ll need to downgrade to some old version.

Platform: Ubuntu 20.04.2 == Mono

Mono JIT compiler version 6.12.0.90 (tarball Fri Sep  4 14:01:23 UTC 2020)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	Interpreter:   yes
	LLVM:          yes(610)
	Suspend:       hybrid
	GC:            sgen (concurrent by default)

Update: Downgrading to 108 version fixed this issue, so it related with the newer versions only. + Mono version information added.

What were you using before downgrading to 108?

Good question. :grinning:
The latest canary 114.

was suggested once. While not a great solution, have you checked to see what mono package is used?

1 Like

Mono nor Ubuntu Package version management aren’t exactly my strong points… But… Let’s see.

I’ve upgrade the mono with very latest release version:
Mono JIT compiler version 6.12.0.122 (tarball Mon Feb 22 17:33:28 UTC 2021)
Copyright © 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: yes(610)
Suspend: hybrid
GC: sgen (concurrent by default)

And the issue persists. So something is off, but I don’t actually know what. Next - Let’s see, I’ll install the mono-complete. Wow that’s pretty bloated stuff. 272 megabytes extra. At least for VPS servers Borg is bit smaller packet to install at whopping 18 megabytes (everything contained with in).

But for the problem resolution, did the mono-complete solve the issue…

Yes, it did. So mono-complete is required.

To get the latest version it’s also recommended:
add file “mono-official.list” into “/etc/apt/sources.list.d”
with one row content:
deb http://download.mono-project.com/repo/ubuntu focal(or-so-as-required) main
And update as usual… It’s going to be big and slow download…

I didn’t recognize it being the “same error” as earlier, because it wasn’t. Yet the underlying reason for the error was same.