Deleting backup error

I have duplicati running in a freenas jail with S3 storage (also hosted by freenas). I have tried to delete a backup and I receive this message when deleting the local DB and files,

The type initializer for ‘Duplicati.Server.WebServer.CaptchaUtil’ threw an exception.

Is there a missing pkg on freeNAS?

Hi @umproko5, welcome to the forum!

I don’t run FreeNAS, but that message also appears in Deleting backup task issue with a fix that worked there.

If that helps you, I wonder if there’s a way to make sure that the package gets brought in without human help?

I updated to the latest version of ubuntu and the capcha shows up but the backup is not deleted.

Is this a job that used to be running, but you decided to delete it along with remote files? On Windows, I get:

Log data from the server
Live
Select a log level and see messages as they happen:
Information

Sep 7, 2018 5:42 PM: The operation ListRemote has completed
Sep 7, 2018 5:42 PM: Backend event: Delete - Completed: duplicati-ide82cada4d3c417a8b719bc2ca43b3e7.dindex.zip (565 bytes)
Sep 7, 2018 5:42 PM: Backend event: Delete - Started: duplicati-ide82cada4d3c417a8b719bc2ca43b3e7.dindex.zip (565 bytes)
(lots of Delete events)
Sep 7, 2018 5:42 PM: Backend event: Delete - Completed: duplicati-20180828T180315Z.dlist.zip (714 bytes)
Sep 7, 2018 5:42 PM: Backend event: Delete - Started: duplicati-20180828T180315Z.dlist.zip (714 bytes)
Sep 7, 2018 5:42 PM: Backend event: List - Completed: (39 bytes)
Sep 7, 2018 5:42 PM: Backend event: List - Started: ()
Sep 7, 2018 5:42 PM: The operation ListRemote has started
Sep 7, 2018 5:42 PM: The supplied option --delete-remote-files is not supported and will be ignored
Sep 7, 2018 5:42 PM: The supplied option --delete-local-db is not supported and will be ignored

when I delete a job, also deleting the remote files, watching in About --> Show log --> Live, Information level.
When you say that the backup is not deleted, one guess is you meant the destination folder wasn’t emptied.
Are you talking about the .sqlite database that has job information? Please clarify and post a log like above.

Here is an example of delete a backup that isn’t working,
Amazon.Runtime.AmazonServiceException: A WebException with status SecureChannelFailure was thrown. —> System.Net.WebException: Error: SecureChannelFailure (The authentication or decryption has failed.) —> System.IO.IOException: The authentication or decryption has failed. —> System.IO.IOException: The authentication or decryption has failed. —> Mono.Security.Protocol.Tls.TlsException: The authentication or decryption has failed. at Mono.Security.Protocol.Tls.RecordProtocol.EndReceiveRecord (System.IAsyncResult asyncResult) [0x00040] in <1d0bb82c94e7435eb09324cf5ef20e36>:0 at Mono.Security.Protocol.Tls.SslClientStream.SafeEndReceiveRecord (System.IAsyncResult ar, System.Boolean ignoreEmpty) [0x00000] in <1d0bb82c94e7435eb09324cf5ef20e36>:0 at Mono.Security.Protocol.Tls.SslClientStream.NegotiateAsyncWorker (System.IAsyncResult result) [0x00071] in <1d0bb82c94e7435eb09324cf5ef20e36>:0 — End of inner exception stack trace — at Mono.Security.Protocol.Tls.SslClientStream.EndNegotiateHandshake (System.IAsyncResult result) [0x0003b] in <1d0bb82c94e7435eb09324cf5ef20e36>:0 at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (System.IAsyncResult asyncResult) [0x0000c] in <1d0bb82c94e7435eb09324cf5ef20e36>:0 — End of inner exception stack trace — at Mono.Security.Protocol.Tls.SslStreamBase.EndRead (System.IAsyncResult asyncResult) [0x00057] in <1d0bb82c94e7435eb09324cf5ef20e36>:0 at Mono.Net.Security.Private.LegacySslStream.EndAuthenticateAsClient (System.IAsyncResult asyncResult) [0x00011] in <bd46d4d4f7964dfa9beea098499ab597>:0 at Mono.Net.Security.Private.LegacySslStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x0000e] in <bd46d4d4f7964dfa9beea098499ab597>:0 at Mono.Net.Security.MonoTlsStream.CreateStream (System.Byte buffer) [0x00044] in <bd46d4d4f7964dfa9beea098499ab597>:0 — End of inner exception stack trace — at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00064] in <bd46d4d4f7964dfa9beea098499ab597>:0 at System.Net.HttpWebRequest.GetResponse () [0x0000e] in <bd46d4d4f7964dfa9beea098499ab597>:0 at Amazon.Runtime.Internal.HttpRequest.GetResponse () [0x00000] in <264bb3c7e8d74c238ad47abeb61b6c7b>:0 — End of inner exception stack trace — at Duplicati.Library.Main.BackendManager.List () [0x00049] in <ae134c5a9abb455eb7f06c134d211773>:0 at Duplicati.Library.Main.Controller.<DeleteAllRemoteFiles>b__27_0 (Duplicati.Library.Main.ListRemoteResults result) [0x00062] in <ae134c5a9abb455eb7f06c134d211773>:0 at Duplicati.Library.Main.Controller.RunAction[T] (T result, System.String& paths, Duplicati.Library.Utility.IFilter& filter, System.Action`1[T] method) [0x00072] in <ae134c5a9abb455eb7f06c134d211773>:0

Are you using the default Mono from your distribution? https://www.mono-project.com generally does better.

https://forum.duplicati.com/search?q=Mono.Security.Protocol.Tls.TlsException can show some ways to a fix.

SSL TLS support in Mono might also apply but seems more complex. I’d suggest trying the latest Mono first.

With this sort of connectivity problem, does anything else work, or is a backup deletion all that you’ve tried?

Using “Test connection” on the destination screen of the job is often a simple way to see if you can connect.