# Backblaze B2 API version

**URL:** <https://forum.rclone.org/t/backblaze-b2-api-version/33834>\
**Category:** Help and Support\
**Created:** [November 1, 2022, 10:33am UTC](https://forum.rclone.org/t/backblaze-b2-api-version/33834 "2022-11-01T10:33:56Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdas013](https://forum.rclone.org/letter_avatar_proxy/v4/letter/m/3ec8ea/32.png) [@mdas013](https://forum.rclone.org/u/mdas013)\
**Post date:** [November 1, 2022, 10:33am UTC](https://forum.rclone.org/t/backblaze-b2-api-version/33834/1 "2022-11-01T10:33:56Z")

</div>

Hello.

I'm troubleshooting some issues when syncing directly with Backblaze support I sent a log from Rclone and was informed that I was using API version 1 and that I should be using API version 2. In the log it is indeed using API v1 see the sample

"[https://api.backblazeb2.com/b2api/v1/b2\_authorize\_account](https://api.backblazeb2.com/b2api/v1/b2_authorize_account)"

How do I set Rclone to use API version 2?

rclone v1.58.1

- os/version: Microsoft Windows 10 Pro 21H1 (64 bit)
- axis/kernel: 10.0.19043.2130 (x86\_64)
- axis/type: windows
- os/arch: amd64
- go/version: go1.17.9
- go/linking: dynamic
- go/tags: cmount

Thank you

---

<div class="post-metadata">

**Author:** ![Ole](https://forum.rclone.org/user_avatar/forum.rclone.org/ole/32/9242_2.png) [@Ole](https://forum.rclone.org/u/Ole)\
**Post date:** [November 1, 2022, 11:00am UTC](https://forum.rclone.org/t/backblaze-b2-api-version/33834/2 "2022-11-01T11:00:30Z")

</div>

Hi Joystick,

I suggest you first try updating to the latest version of rclone, that may solve the issue.

You can use [rclone selfupdate](https://rclone.org/commands/rclone_selfupdate/) or download from here: [https://rclone.org/downloads/](https://rclone.org/downloads/)

If this doesn't help, then it is probably something that needs to be done in the code of the rclone backend to B2.

What type of issue are you seeing? (To better understand the need and urgency)

---

<div class="post-metadata">

**Author:** ![mdas013](https://forum.rclone.org/letter_avatar_proxy/v4/letter/m/3ec8ea/32.png) [@mdas013](https://forum.rclone.org/u/mdas013)\
**Post date:** [November 1, 2022, 11:22am UTC](https://forum.rclone.org/t/backblaze-b2-api-version/33834/4 "2022-11-01T11:22:53Z")

</div>

Sometimes synchronisation does not take place. I am sending two logs. Either Rclone is not verified with Backblaze, or synchronization is not taking place due to some timeout.  
[rclone1\_log.txt](https://forum.rclone.org/uploads/short-url/tsqUnS8DWR9DfzgAyUKTGokTpzU.txt) (229 Bytes)  
[rclone2\_log.txt](https://forum.rclone.org/uploads/short-url/rIcBCfhLa9XImFn4O1kIycXw0K7.txt) (2.8 KB)

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [November 1, 2022, 11:46am UTC](https://forum.rclone.org/t/backblaze-b2-api-version/33834/5 "2022-11-01T11:46:09Z")

</div>

Rclone is using API v1 (no idea a v2 had been released!)

However on [Native API Versions](https://www.backblaze.com/b2/docs/versions.html) it says this, so v1 should be just fine still.

> ## Support for Old Versions
> 
> Backblaze does not have any plans to stop supporting old versions. If we ever do make such plans, we will announce them at least a year in advance, to give you plenty of time to update your code.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [November 1, 2022, 11:47am UTC](https://forum.rclone.org/t/backblaze-b2-api-version/33834/6 "2022-11-01T11:47:16Z")

</div>

The error in your log is `i/o timeout` which is almost certainly a networking problem between you and b2.

---

<div class="post-metadata">

**Author:** ![Ole](https://forum.rclone.org/user_avatar/forum.rclone.org/ole/32/9242_2.png) [@Ole](https://forum.rclone.org/u/Ole)\
**Post date:** [November 1, 2022, 2:09pm UTC](https://forum.rclone.org/t/backblaze-b2-api-version/33834/7 "2022-11-01T14:09:31Z")

</div>

I fully agree with Nick.

Seems like the Backblaze answer was a bit automatic like mine:

> [@Ole](#):
>
> I suggest you first try updating to the latest version ..., that may solve the issue.

but without taking any time to look into your errors:

```auto
Get "https://api.backblazeb2.com/b2api/v1/b2_authorize_account": dial tcp 104.153.233.180:443: i/o timeout
Post "https://api003.backblazeb2.com/b2api/v1/b2_list_file_names": dial tcp: lookup api003.backblazeb2.com: no such host

```

Both errors indicate a network issue contacting (dialing) the servers at Backblaze and have absolutely nothing to do with the API version. The errors happen while trying to send the API request and basicaly says "recipient not answering/unknown".

I checked your [other post](https://forum.rclone.org/t/log-error-received-data-after-end-stream/30173) and guess you have an issue with the stability of your local network. This is not that uncommon if using WiFi and Windows. Here are a few things to check:

Open a terminal and let this command run while using rclone (or just generally):

```
ping -t api.backblazeb2.com

```

if you see a period with "Request timed out" or "General failure" then try checking the Event Viewer for errors/warnings. You may see "WLAN-Autoconfig" which is Windows resetting your network card/driver after connection issues (could be network noise, incompatible router etc etc).

---

<div class="post-metadata">

**Author:** ![mdas013](https://forum.rclone.org/letter_avatar_proxy/v4/letter/m/3ec8ea/32.png) [@mdas013](https://forum.rclone.org/u/mdas013)\
**Post date:** [November 1, 2022, 2:23pm UTC](https://forum.rclone.org/t/backblaze-b2-api-version/33834/8 "2022-11-01T14:23:33Z")

</div>

It can't be a network problem. It is a cloud VPS server to which I am connected via RDS. So if the network was not working at the time Rclone fails to connect, my RDP connection would crash as well and that won't happen.

After a few retries of running the sync, it eventually does. This is without me changing anything.

---

<div class="post-metadata">

**Author:** ![Ole](https://forum.rclone.org/user_avatar/forum.rclone.org/ole/32/9242_2.png) [@Ole](https://forum.rclone.org/u/Ole)\
**Post date:** [November 1, 2022, 2:38pm UTC](https://forum.rclone.org/t/backblaze-b2-api-version/33834/9 "2022-11-01T14:38:05Z")

</div>

Agree, the issues aren't related to WiFi then, but the above errors are network errors, so something isn't working well between your VPS and the Backblaze servers.

I therefore still suggest you try the above ping command and then supplement with tracert to narrow in on the failing hub/switch when you see the issue.

---

<div class="post-metadata">

**Author:** ![mdas013](https://forum.rclone.org/letter_avatar_proxy/v4/letter/m/3ec8ea/32.png) [@mdas013](https://forum.rclone.org/u/mdas013)\
**Post date:** [November 1, 2022, 2:52pm UTC](https://forum.rclone.org/t/backblaze-b2-api-version/33834/10 "2022-11-01T14:52:51Z")

</div>

I'm wondering, when you write about the tracert command, if it might be related to DNS servers. Currently the settings are on the ISP's servers, I can try to change to DNS from Google for example.

---

<div class="post-metadata">

**Author:** ![Ole](https://forum.rclone.org/user_avatar/forum.rclone.org/ole/32/9242_2.png) [@Ole](https://forum.rclone.org/u/Ole)\
**Post date:** [November 1, 2022, 3:01pm UTC](https://forum.rclone.org/t/backblaze-b2-api-version/33834/11 "2022-11-01T15:01:47Z")

</div>

This could be a connectivity or DNS issue:

`dial tcp: lookup api003.backblazeb2.com: no such host`

This is a pure connectivity issue (the hostname [api.backblazeb2.com](http://api.backblazeb2.com) has been resolved to 104.153.233.180):

`dial tcp 104.153.233.180:443: i/o timeout`

Are you pressing your VPS with respect to CPU or network capacity? (are you above 90%)

---

<div class="post-metadata">

**Author:** ![mdas013](https://forum.rclone.org/letter_avatar_proxy/v4/letter/m/3ec8ea/32.png) [@mdas013](https://forum.rclone.org/u/mdas013)\
**Post date:** [November 1, 2022, 3:16pm UTC](https://forum.rclone.org/t/backblaze-b2-api-version/33834/12 "2022-11-01T15:16:47Z")

</div>

Exactly not. Backing up to Backblaze is done at night when no one is working on the server and the CPU load is minimal.

---

<div class="post-metadata">

**Author:** ![Ole](https://forum.rclone.org/user_avatar/forum.rclone.org/ole/32/9242_2.png) [@Ole](https://forum.rclone.org/u/Ole)\
**Post date:** [November 1, 2022, 3:26pm UTC](https://forum.rclone.org/t/backblaze-b2-api-version/33834/13 "2022-11-01T15:26:11Z")

</div>

OK, then I am out of guesses, time for systematic analysis.

I once had an unstable ISP and ended up making a script pinging the hosts along the traced route, so I could pinpoint the exact time and component failing at recurring intervals. This way I managed to locate a defective component in the ISP's infrastructure, much to their surprise. I suggest you do something similar. Could be that everybody had the same thought as you and this overloads (part) of the network at night.

---

<div class="post-metadata">

**Author:** ![mdas013](https://forum.rclone.org/letter_avatar_proxy/v4/letter/m/3ec8ea/32.png) [@mdas013](https://forum.rclone.org/u/mdas013)\
**Post date:** [November 1, 2022, 4:15pm UTC](https://forum.rclone.org/t/backblaze-b2-api-version/33834/14 "2022-11-01T16:15:53Z")

</div>

OK, thanks for the tips.

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [December 1, 2022, 4:16pm UTC](https://forum.rclone.org/t/backblaze-b2-api-version/33834/15 "2022-12-01T16:16:04Z")

</div>

Closed on December 1, 2022, 4:16pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
