Deleting backup task issue

I’m doing some evaluation of Duplicati (currently 2.0.3.1_experimental_2018-03-16) on macOS and am attempting to delete my backup task (deleting local database and remote files). Delete remote files is checked. When I select the “Delete Backup >” button, I get the following popup error - “The type initializer for ‘Duplicati.Server.WebServer.CaptchaUtil’ threw an exception.” It does not perform the delete. I also tried it on the beta version and had the same popup.

Is there other information that I can provide to help diagnose this issue?

Some followup information…the experimental version didn’t seem to log the issue (setting on my part?), but the beta version did. Here is an attempted delete of the backup task from this evening:

Mar 19, 2018 10:29 PM: Request for http://localhost:8200/api/v1/captcha gave error

System.TypeInitializationException: The type initializer for ‘Duplicati.Server.WebServer.CaptchaUtil’ threw an exception. —> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.TypeInitializationException: The type initializer for ‘System.Drawing.KnownColors’ threw an exception. —> System.TypeInitializationException: The type initializer for ‘System.Drawing.GDIPlus’ threw an exception. —> System.DllNotFoundException: libgdiplus.dylib
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus…cctor () [0x000b0] in :0
— End of inner exception stack trace —
at System.Drawing.KnownColors…cctor () [0x0001a] in :0
— End of inner exception stack trace —
at <0x00000 + 0x00000>
at System.Drawing.Color.FromKnownColor (System.Drawing.KnownColor color) [0x00007] in :0
at System.Drawing.Color.get_AliceBlue () [0x00000] in :0
at System.Drawing.Brushes.get_AliceBlue () [0x00007] in :0
at System.Reflection.MonoProperty.StaticGetterAdapterFrame[R] (System.Reflection.MonoProperty+StaticGetter1[R] getter, System.Object obj) [0x00000] in <74f935c61a7644fb86746dc61f0f9956>:0 at System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) [0x0005f] in <74f935c61a7644fb86746dc61f0f9956>:0 --- End of inner exception stack trace --- at System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) [0x00073] in <74f935c61a7644fb86746dc61f0f9956>:0 at Duplicati.Server.WebServer.CaptchaUtil+<>c.<.cctor>b__4_1 (System.Reflection.PropertyInfo x) [0x00000] in <a6c0c2089b9a44ec9be5057a44f12116>:0 at System.Linq.Enumerable+WhereSelectArrayIterator2[TSource,TResult].MoveNext () [0x0003a] in <1baeaa997fb5480697ea2f9510f7fa43>:0
at System.Linq.Enumerable+WhereEnumerableIterator1[TSource].ToArray () [0x00033] in <1baeaa997fb5480697ea2f9510f7fa43>:0 at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable1[T] source) [0x0001f] in <1baeaa997fb5480697ea2f9510f7fa43>:0
at Duplicati.Server.WebServer.CaptchaUtil…cctor () [0x0005a] in :0
— End of inner exception stack trace —
at Duplicati.Server.WebServer.RESTMethods.Captcha.POST (System.String key, Duplicati.Server.WebServer.RESTMethods.RequestInfo info) [0x0003f] in :0
at Duplicati.Server.WebServer.RESTHandler.DoProcess (Duplicati.Server.WebServer.RESTMethods.RequestInfo info, System.String method, System.String module, System.String key) [0x0026e] in :0

And I figured it out. I installed mono on macOS using Homebrew. However, I also needed to install mono-libgdiplus as well.

Deleting of backup tasks now displays the captcha and performs the delete.

1 Like

Thanks for taking the time to share your solution!