BUG: [FreeNAS] Fatal crash after startup

This was working just file for months, now whenever the server is started I see this error adfter probably 30 seconds:

[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: An attempt was made to transition a task to a final state when it had already completed.
  at System.Threading.Tasks.TaskCompletionSource`1[TResult].SetResult (TResult result) [0x00016] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at CoCoL.Channel`1+<ReadAsync>c__AnonStorey1[T].<>m__1 () [0x00000] in <42facd2a943c4ff2bbe038fcc8489a68>:0
  at CoCoL.SystemThreadPoolWrapper+<QueueItem>c__AnonStorey0.<>m__0 (System.Object x) [0x00000] in <42facd2a943c4ff2bbe038fcc8489a68>:0
  at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) [0x0000e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x0008d] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x0002a] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00096] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0


- You are currently running Duplicati -
- Mono JIT compiler version 4.8.1 ( Thu Nov 16 03:04:05 UTC 2017)

Where are the log files stored? I’ll post them if that helps?

Are you running in a jail or a Docker container?

Did anything update recently?

It’s a jail, Nothing has updated.

It seems like its lost all my backup jobs too. Uuugh!

Losing the jobs sounds like a path changed or folder got moved.

The error you’re seeing mentions CoCoL which I’ve seen in errors from failed Windows updates…

Nothing has changed. It’s freeBSD not windows.

I’ve tried deleting the .config folder but it still crashes after 30 seconds following a jail restart.

Devs… Any ideas??

Even though FreeNAS is BSD based, Duplicati it’s written in .NET which is where Mono comes in.

It’s possible whatever caused the CoCoL error in Windows could be in the .NET side of things in which case it could manifest on any system.

That being said, we will indeed have to wait for somebody more familiar with that error message to chime in.

Devs: Any idea how to fix this?

Do I need to wipe and re-install Duplicati?

Try setting the environment variable:


This will disable the usagereporter, and I think it is what is causing the crash to happen.

1 Like

I deleted and reinstalled Duplicati, this topic can be closed.

1 Like