Link for B2 provider results in bad_auth_token

What is the problem you are having with rclone?

rclone link creates an invalid authorization for b2.
Video: https://files.cname.cloud/BJ3QmmpUSp.mkv

Using rclone link demo:gocloudstorage/test.html results in

https://f000.backblazeb2.com/file/gocloudstorage/test.html?Authorization=3_20240813184008_a87e3910b7bbb69d7a5ea77f_698447768a4c20b2095be1e91b55ff8a1c3c3f40_000_20240820184008_0024_dnld

But that link is instantly invalid and gives

{
  "code": "bad_auth_token",
  "message": "",
  "status": 401
}

where demo is my remote to my working b2 bucket "gocloudstorage" that has the file test.html. It is a private bucket with default everything.

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

rclone v1.53.3-DEV

  • os/arch: linux/amd64
  • go version: go1.18.1

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

B2

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

rclone link demo:gocloudstorage/test.html

The rclone config contents with secrets removed.

[demo]
type = b2
account = 000bca257XXXXXXXXXXXXXXXXX
key = K000DNgKk4sJWXXXXXXXXXXXXXXXXXX

A log from the command with the -vv flag

rclone link demo:gocloudstorage/test.html -vv
2024/08/13 14:49:45 DEBUG : rclone: Version "v1.53.3-DEV" starting with parameters ["rclone" "link" "demo:gocloudstorage/test.html" "-vv"]
2024/08/13 14:49:45 DEBUG : Using config file from "/home/brian/.config/rclone/rclone.conf"
2024/08/13 14:49:45 DEBUG : Creating backend with remote "demo:gocloudstorage/test.html"
2024/08/13 14:49:46 DEBUG : fs cache: adding new entry for parent of "demo:gocloudstorage/test.html", "demo:gocloudstorage"
https://f000.backblazeb2.com/file/gocloudstorage/test.html?Authorization=3_20240813184947_f2000a41deb17455c3c73918_a08b61db35e069937284b9fc91297db95d56054d_000_20240820184947_0024_dnld
2024/08/13 14:49:46 DEBUG : 6 go routines active

welcome to the forum,

that version is from 2021. the latest is v1.67.0

  1. remove the old rclone using sudo apt remove rclone
  2. install rclone from https://rclone.org/install/#script-installation
  3. do not use demo:, need to create a new remote and use that instead.

Hello,

Yes that fixed it. I used sudo apt install rclone and I am on Ubuntu 22.04.3 LTS FWIW.

ok, good

You can get an idea of how up to date or not your OS distribution's package is here

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