getting the following error on ubuntu 20.04 Duplicati when setting up a backup destination to backblaze b2 storage. Failed to connect: Error: TrustFailure (Authentication failed, see inner exception.)
I have done the following: Removed Duplicati and mono and reinstalled and still getting the same error.
I have the exact same problem; using Duplicati in Docker and has, unknowingly, received the same TrustFailure as @Patrick_Domingues Does anyone know of a solution?
Thanks! A little more reading in the linked forum post lead me to update the certificates via (apt install) ca-certificates, which then appears to have updated the needed certs automatically. Great!
Now, however, I get a 401 - unauthorized back instead. Even updating the application key from Backblaze gives the same error. Since it was not a problem before I guess it is related. Any ideas on why this happens?
Interesting, I’m not sure if it’s related or just coincidental. What happens when you “edit” the backup job, go to the Destination page, and click the Test Connection button? Same error?
What was happening before? When you had a TrustFailure at the encrypted connection level, that would prevent the server from giving you a higher-level HTTP error. Was this working completely and recently?
Make sure the B2 keyid is in Duplicati B2 Application ID field and the B2 key is in B2 Application Key field.
These are kind of like username and password. Visually, you might notice that only the key gets * hidden.
Before everything was chugging along nicely, and had been since I set it up this summer. Duplicati reports that the last successful backup was on 9th December, which should coincide with the reported certificate renewal above.
Yes, regarding the API ID and Key, they have been working perfectly before – I believe I have them put them in the right place.
The timing doesn’t fit perfectly. The Dec 4 report linked from here saw a Nov 30 certificate, still in use now, which seems like it should have caused the TrustFailure problem on your Dec 9 backup. So that’s strange.
Ignoring that, your new 401 - unauthorized isn’t being reported elsewhere that I’ve seen, so might be some configuration (or was there a configuration change?) on your system. Backblaze themselves have posted Quickstart Guide for Duplicati and Backblaze B2 Cloud Storage which unfortunately doesn’t say precisely what to put where, but at least indicates they might be willing to take a followup support question if needed.
You could test some other Backblaze B2 client to see whether you can get it authenticated, and you could look more closely at your Duplicati setting using Export As Command-line which will make it clearer which field is which, spot inadvertent characters, etc. Mine contains “auth-password=K” … Does a K mean key?
I just wanted to get back to this thread with what issue I was facing, and how I solved it (in case a future Googler lands here):
While the initial Trust Failure was successfully resolved with the method @drwtsn32suggested, I had an additional 401 - Unauthorized error appearing. The error message was quite confusing, as 401 normally indicates an HTTP(S) error, but in fact the unauthorized error I got was from when trying to access files over SMB. At some point I must have changed some permission setting, making Duplicati unable to access the mounted /source directory. It was just unfortunate that those two errors came after one another.