# Linux Mint 19 and Backblaze B2

**URL:** <https://forum.duplicati.com/t/linux-mint-19-and-backblaze-b2/4465>\
**Category:** Support\
**Created:** [August 27, 2018, 5:01am UTC](https://forum.duplicati.com/t/linux-mint-19-and-backblaze-b2/4465 "2018-08-27T05:01:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![PhilD41](https://forum.duplicati.com/user_avatar/forum.duplicati.com/phild41/32/2093_2.png) [@PhilD41](https://forum.duplicati.com/u/PhilD41)\
**Post date:** [August 27, 2018, 5:01am UTC](https://forum.duplicati.com/t/linux-mint-19-and-backblaze-b2/4465/1 "2018-08-27T05:01:07Z")

</div>

I am hoping for some help after spending way to much time trying to get this to work. 🙂 I have been using B2 with rclone since CrashPlan announced they would drop support for Linux. I would love to get an easier and more flexible GUI for B2 though. I went looking for options again and ran across Duplicati.

On the surface it looks like Duplicati is exactly what I was looking for… If I could get it to work. I have set up a new bucket on B2. Hopefully I will be able to connect to the ones I have up there already, but I thought I would test with a new one. I created a new backup in Duplicati and give it a name and password for AES. The name is the same as the bucket if that matters.

I then set the storage type to B2 and fill out the rest. Setting the bucket name, leaving the path blank and using my account ID and a newly created application key. Hitting test connection at this point give me a 401 - UnAuthorized error. If I chose the username and password under the advanced options the error changes to bad\_auth\_token.

So far, I have updated my version of Mono to 5.14.0.177 and have installed ca-certificates-mono and run cert-sync. I think that helped as before that I didn’t get either of these errors, just a failure to authenticate. I am not sure what else to try. It is now midnight so I thought I would leave this here and see if others have ideas.

Below are the stdout logs from the server. I restarted it after each install / cert-sync as well.

```
System.Exception: 401 - bad_auth_token: 
  at Duplicati.Library.Backend.Backblaze.B2AuthHelper.AttemptParseAndThrowException (System.Exception ex) [0x000b5] in <744672e2da8444bdaaf10c5b0487d731>:0 
  at Duplicati.Library.Backend.Backblaze.B2AuthHelper.get_Config () [0x00148] in <744672e2da8444bdaaf10c5b0487d731>:0 
  at Duplicati.Library.Backend.Backblaze.B2AuthHelper.get_APIUrl () [0x00000] in <744672e2da8444bdaaf10c5b0487d731>:0 
  at Duplicati.Library.Backend.Backblaze.B2.List () [0x00011] in <744672e2da8444bdaaf10c5b0487d731>:0 
  at Duplicati.Library.Interface.BackendExtensions.TestList (Duplicati.Library.Interface.IBackend backend) [0x00000] in <b7a5128865b14f37a66544de6a7ae6fb>:0 
  at Duplicati.Library.Backend.Backblaze.B2.Test () [0x00000] in <744672e2da8444bdaaf10c5b0487d731>:0 
  at Duplicati.Server.WebServer.RESTMethods.RemoteOperation.TestConnection (System.String url, Duplicati.Server.WebServer.RESTMethods.RequestInfo info) [0x000b7] in <670b0e4a9ae144208688fcb192d20146>:0 
  at Duplicati.Server.WebServer.RESTMethods.RemoteOperation.POST (System.String key, Duplicati.Server.WebServer.RESTMethods.RequestInfo info) [0x00091] in <670b0e4a9ae144208688fcb192d20146>:0 
  at Duplicati.Server.WebServer.RESTHandler.DoProcess (Duplicati.Server.WebServer.RESTMethods.RequestInfo info, System.String method, System.String module, System.String key) [0x0026e] in <670b0e4a9ae144208688fcb192d20146>:0 
System.Exception: 401 - unauthorized: 
  at Duplicati.Library.Backend.Backblaze.B2AuthHelper.AttemptParseAndThrowException (System.Exception ex) [0x000b5] in <744672e2da8444bdaaf10c5b0487d731>:0 
  at Duplicati.Library.Backend.Backblaze.B2AuthHelper.get_Config () [0x00148] in <744672e2da8444bdaaf10c5b0487d731>:0 
  at Duplicati.Library.Backend.Backblaze.B2AuthHelper.get_APIUrl () [0x00000] in <744672e2da8444bdaaf10c5b0487d731>:0 
  at Duplicati.Library.Backend.Backblaze.B2.List () [0x00011] in <744672e2da8444bdaaf10c5b0487d731>:0 
  at Duplicati.Library.Interface.BackendExtensions.TestList (Duplicati.Library.Interface.IBackend backend) [0x00000] in <b7a5128865b14f37a66544de6a7ae6fb>:0 
  at Duplicati.Library.Backend.Backblaze.B2.Test () [0x00000] in <744672e2da8444bdaaf10c5b0487d731>:0 
  at Duplicati.Server.WebServer.RESTMethods.RemoteOperation.TestConnection (System.String url, Duplicati.Server.WebServer.RESTMethods.RequestInfo info) [0x000b7] in <670b0e4a9ae144208688fcb192d20146>:0 
  at Duplicati.Server.WebServer.RESTMethods.RemoteOperation.POST (System.String key, Duplicati.Server.WebServer.RESTMethods.RequestInfo info) [0x00091] in <670b0e4a9ae144208688fcb192d20146>:0 
  at Duplicati.Server.WebServer.RESTHandler.DoProcess (Duplicati.Server.WebServer.RESTMethods.RequestInfo info, System.String method, System.String module, System.String key) [0x0026e] in <670b0e4a9ae144208688fcb192d20146>:0 

```

Thank you for any and all help!

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [August 27, 2018, 5:04pm UTC](https://forum.duplicati.com/t/linux-mint-19-and-backblaze-b2/4465/2 "2018-08-27T17:04:58Z")

</div>

Hi @PhilD41 and welcome to the forum!

Are you by any chance using the [new improved version of application keys](https://www.backblaze.com/blog/b2-application-keys/) or is this the usual master key?

If you actually got a newly created master key it would break your old uses, so maybe you took a new path.

Follow the link in [this thread](https://forum.rclone.org/t/b2-application-keys/6322). Summary is keyId is the account, while the shown-to-you-once key is the key.

On Windows, this was enough to change a 401 on “Test connection” (with various form-fillings) to success.

If this gets you past your failing spot, feel free to test it further. If successful, folks [here](https://forum.duplicati.com/t/defense-against-trojans/754) might like to know…

---

<div class="post-metadata">

**Author:** ![PhilD41](https://forum.duplicati.com/user_avatar/forum.duplicati.com/phild41/32/2093_2.png) [@PhilD41](https://forum.duplicati.com/u/PhilD41)\
**Post date:** [August 27, 2018, 5:55pm UTC](https://forum.duplicati.com/t/linux-mint-19-and-backblaze-b2/4465/3 "2018-08-27T17:55:05Z")

</div>

Thank @ts678!! You nailed it. I had tried just about every permutation possible, except not using my account ID and using the KeyID. That worked perfectly.

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [August 27, 2018, 7:39pm UTC](https://forum.duplicati.com/t/linux-mint-19-and-backblaze-b2/4465/4 "2018-08-27T19:39:05Z")

</div>

Thanks to ncw and Google. I agree with ncw that this should be [explained somehow](https://github.com/ncw/rclone/issues/2428#issuecomment-409578355). I don’t see it [here yet](https://rclone.org/b2/).

Here’s [Restic’s manual](https://restic.readthedocs.io/en/latest/030_preparing_a_new_repo.html#backblaze-b2) and a [Backblaze note](https://help.backblaze.com/hc/en-us/articles/115002880514-How-to-configure-Backblaze-B2-with-Restic-on-Linux).

Duplicati doesn’t seem to speak to this yet in either Commandline help b2 or the online manual [found here](https://duplicati.readthedocs.io/en/latest/05-storage-providers/#b2-cloud-storage).

Actually it should probably also be tested more (this is where you come in 😉) before claiming that it works.

---

<div class="post-metadata">

**Author:** ![PhilD41](https://forum.duplicati.com/user_avatar/forum.duplicati.com/phild41/32/2093_2.png) [@PhilD41](https://forum.duplicati.com/u/PhilD41)\
**Post date:** [August 27, 2018, 10:51pm UTC](https://forum.duplicati.com/t/linux-mint-19-and-backblaze-b2/4465/5 "2018-08-27T22:51:11Z")

</div>

Fair, I read through the Backblaze information for Duplicati but wasn’t coming up with much else. Then again, it was late and I was tired as well. Hopefully that information will continue to filter into additional documentation quickly.
