Error: B2-Backblaze Failed to Authenticate - Connection reset by peer

What is the problem you are having with rclone?

Cannot connect at all to B2 from this system. Same config / settings work for other systems.

Run the command 'rclone version' and share the full output of the command.

  • rclone v1.60.1
  • os/version: redhat 7.6 (64 bit)
  • os/kernel: 3.10.0-862.el7.x86_64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.19.3
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Backblaze B2

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone lsl remote: -vv

The rclone config contents with secrets removed.

[remote]
type = b2
account = XXXX
key = XXXX

A log from the command with the -vv flag

2022/11/21 23:26:26 DEBUG : rclone: Version "v1.60.1" starting with parameters ["rclone" "lsl" "remote:" "-vv"]
2022/11/21 23:26:26 DEBUG : Creating backend with remote "remote:"
Enter configuration password:
password:
2022/11/21 23:26:31 DEBUG : Using config file from "/XXXXXXXXX/rclone.conf"
2022/11/21 23:26:31 DEBUG : pacer: low level retry 1/10 (error Get "https://api.backblazeb2.com/b2api/v1/b2_authorize_account": read tcp 10.XX.XX.XX:58255->104.153.233.180:443: read: connection reset by peer)
2022/11/21 23:26:31 DEBUG : pacer: Rate limited, increasing sleep to 20ms
2022/11/21 23:26:31 DEBUG : pacer: low level retry 2/10 (error Get "https://api.backblazeb2.com/b2api/v1/b2_authorize_account": read tcp 10.XX.XX.XX:53512->104.153.233.176:443: read: connection reset by peer)
2022/11/21 23:26:31 DEBUG : pacer: Rate limited, increasing sleep to 40ms
2022/11/21 23:26:31 DEBUG : pacer: low level retry 3/10 (error Get "https://api.backblazeb2.com/b2api/v1/b2_authorize_account": read tcp 10.XX.XX.XX:58267->104.153.233.180:443: read: connection reset by peer)
2022/11/21 23:26:31 DEBUG : pacer: Rate limited, increasing sleep to 80ms
2022/11/21 23:26:32 DEBUG : pacer: low level retry 4/10 (error Get "https://api.backblazeb2.com/b2api/v1/b2_authorize_account": read tcp 10.XX.XX.XX:58269->104.153.233.180:443: read: connection reset by peer)
2022/11/21 23:26:32 DEBUG : pacer: Rate limited, increasing sleep to 160ms
2022/11/21 23:26:32 DEBUG : pacer: low level retry 5/10 (error Get "https://api.backblazeb2.com/b2api/v1/b2_authorize_account": read tcp 10.XX.XX.XX:58275->104.153.233.180:443: read: connection reset by peer)
2022/11/21 23:26:32 DEBUG : pacer: Rate limited, increasing sleep to 320ms
2022/11/21 23:26:32 DEBUG : pacer: low level retry 6/10 (error Get "https://api.backblazeb2.com/b2api/v1/b2_authorize_account": read tcp 10.XX.XX.XX:58281->104.153.233.180:443: read: connection reset by peer)
2022/11/21 23:26:32 DEBUG : pacer: Rate limited, increasing sleep to 640ms
2022/11/21 23:26:32 DEBUG : pacer: low level retry 7/10 (error Get "https://api.backblazeb2.com/b2api/v1/b2_authorize_account": read tcp 10.XX.XX.XX:53538->104.153.233.176:443: read: connection reset by peer)
2022/11/21 23:26:32 DEBUG : pacer: Rate limited, increasing sleep to 1.28s
2022/11/21 23:26:33 DEBUG : pacer: low level retry 8/10 (error Get "https://api.backblazeb2.com/b2api/v1/b2_authorize_account": read tcp 10.XX.XX.XX:49914->206.190.215.15:443: read: connection reset by peer)
2022/11/21 23:26:33 DEBUG : pacer: Rate limited, increasing sleep to 2.56s
2022/11/21 23:26:34 DEBUG : pacer: low level retry 9/10 (error Get "https://api.backblazeb2.com/b2api/v1/b2_authorize_account": read tcp 10.XX.XX.XX:49936->206.190.215.15:443: read: connection reset by peer)
2022/11/21 23:26:34 DEBUG : pacer: Rate limited, increasing sleep to 5.12s
2022/11/21 23:26:37 DEBUG : pacer: low level retry 10/10 (error Get "https://api.backblazeb2.com/b2api/v1/b2_authorize_account": read tcp 10.XX.XX.XX:53644->104.153.233.176:443: read: connection reset by peer)
2022/11/21 23:26:37 DEBUG : pacer: Rate limited, increasing sleep to 10.24s
2022/11/21 23:26:37 Failed to create file system for "remote:": failed to authorize account: failed to authenticate: Get "https://api.backblazeb2.com/b2api/v1/b2_authorize_account": read tcp 10.35.XX.XX:53644->104.153.233.176:443: read: connection reset by peer

1 Like

This could be the remote end disconnecting - in which case try again.

Or it could be a local firewall blocking the connection.

hello and welcome to the forum,

are you using a vpn or a proxy server?

It's in an internal network with a gateway to the outside world. Used a laptop within the same network and rclone worked without issues.

ok, this is strange, that you copied the same rclone.conf and still have issues.

fwiw, has happened to me before with a laptop.
that the laptop was using wifi and/or connected to another internet network.