Failed to HEAD for download: Unknown 401 (401 unknown)

What is the problem you are having with rclone?

I'm getting this error

failed to HEAD for download: Unknown 401  (401 unknown)

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

I'm running the latest version of rclone that's available from the Debian 12 repos at the time of writing 2023-08)

root@host:~# cat /etc/issue
Debian GNU/Linux 12 \n \l

root@host:~# 

root@host:~# rclone version
rclone v1.60.1-DEV
- os/version: debian 12.1 (64 bit)
- os/kernel: 6.1.0-11-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.19.8
- go/linking: dynamic
- go/tags: none
root@host:~#

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

I'm using Backblaze B2

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

I first noticed this issue after upgrading from Debian 11 to Debian 12. My uploads are no longer functional. For example:

Rclone Forum Error: An error occurred: Body is limited to 32000 characters; you entered 48231.

Here's an ls execution with more verbose debug output

Sorry, new users can not upload attachments.

Well, guess I can't add it here :confused:

welcome to the forum,

you are using an old version of rclone, must update and test again before we can consider this a suspected bug.
rclone selfupdate or https://rclone.org/install/#script-installation

please answer all the questions???

Additional context

I think it's worth noting that my Backblaze B2 key is configured with append-only permissions, which means the key only has permission to:

  1. listBuckets
  2. listFiles
  3. writeFiles

This did work previously, but perhaps this is a regression bug with Backblaze failing to do something it doesn't need to try to do on-upload.

Don't use repos, uninstall that and install the latest on the install page.

I use apt because it cryptographically verifies the authenticity of the download before installing it.

Can you please point me to the rclone documentation that describes how to download rclone and verify the authenticity of the release before installing it?

A repo is a package compiled a random maintainer not associated with rclone that you are installing.

If you want to not install from the rclone.org website, not sure then. You can download it directly. You can build it yourself from source. You can use the install script.

I've created this feature request to resolve the issue where rclone users cannot securely download the latest version of rclone -- other than their distro's repos (eg Debian's apt)

That already exists as the MD5SUMS are provided:

The issue that I've created addresses the lack of the PGP fingerprint being published in multiple distinct domains (to thwart Publishing Infrastructure compromise on TOFU) and documentation.

Also:

  1. Hashes do not provide cryptographic authenticity. You need signatures for that
  2. md5sum isn't even a cryptographically secure hash function

Since this website won't let me upload the full log and it's too large to paste here, I'm uploading a truncated execution with double verbosity and --dump headers that shows this bug on an ls

root@host:~# rclone -vv --dump headers ls REDACTED_BUCKET:REDACTED_DIR
2023/08/29 22:08:37 DEBUG : rclone: Version "v1.60.1-DEV" starting with parameters ["/usr/bin/rclone" "-vv" "--dump" "headers" "ls" "REDACTED_BUCKET:REDACTED_DIR"]
2023/08/29 22:08:37 DEBUG : Creating backend with remote "REDACTED_BUCKET:REDACTED_DIR"
2023/08/29 22:08:37 DEBUG : Using config file from "/home/REDACTED_USER/.config/rclone/rclone.conf"
2023/08/29 22:08:37 DEBUG : Creating backend with remote "b2:REDACTED_BUCKET/REDACTED_DIR.bin"
2023/08/29 22:08:37 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2023/08/29 22:08:37 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 22:08:37 DEBUG : HTTP REQUEST (req 0xc0007ea100)
2023/08/29 22:08:37 DEBUG : GET /b2api/v1/b2_authorize_account HTTP/1.1
Host: api.backblazeb2.com
User-Agent: rclone/
Authorization: XXXX
Accept-Encoding: gzip

2023/08/29 22:08:37 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 22:08:38 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 22:08:38 DEBUG : HTTP RESPONSE (req 0xc0007ea100)
2023/08/29 22:08:38 DEBUG : HTTP/1.1 200 
Content-Length: 620
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Date: Tue, 29 Aug 2023 22:08:59 GMT

2023/08/29 22:08:38 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 22:08:38 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 22:08:38 DEBUG : HTTP REQUEST (req 0xc0007eab00)
2023/08/29 22:08:38 DEBUG : HEAD /file/REDACTED_BUCKET/REDACTED_DIR.bin HTTP/1.1
Host: f002.backblazeb2.com
User-Agent: rclone/
Authorization: XXXX

2023/08/29 22:08:38 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 22:08:38 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 22:08:38 DEBUG : HTTP RESPONSE (req 0xc0007eab00)
2023/08/29 22:08:38 DEBUG : HTTP/1.1 401 
Content-Length: 62
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=utf-8
Date: Tue, 29 Aug 2023 22:09:00 GMT

2023/08/29 22:08:38 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 22:08:38 DEBUG : Couldn't decode error response: EOF
2023/08/29 22:08:38 DEBUG : B2 bucket REDACTED_BUCKET: Unauthorized: Unknown 401  (401 unknown)
2023/08/29 22:08:38 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 22:08:38 DEBUG : HTTP REQUEST (req 0xc0007eb000)
2023/08/29 22:08:38 DEBUG : GET /b2api/v1/b2_authorize_account HTTP/1.1
Host: api.backblazeb2.com
User-Agent: rclone/
Authorization: XXXX
Accept-Encoding: gzip

2023/08/29 22:08:38 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 22:08:38 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 22:08:38 DEBUG : HTTP RESPONSE (req 0xc0007eb000)
2023/08/29 22:08:38 DEBUG : HTTP/1.1 200 
Content-Length: 620
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Date: Tue, 29 Aug 2023 22:09:00 GMT

2023/08/29 22:08:38 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 22:08:38 DEBUG : pacer: low level retry 1/10 (error Unknown 401  (401 unknown))
2023/08/29 22:08:38 DEBUG : pacer: Rate limited, increasing sleep to 20ms
2023/08/29 22:08:38 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 22:08:38 DEBUG : HTTP REQUEST (req 0xc0007eb400)
2023/08/29 22:08:38 DEBUG : HEAD /file/REDACTED_BUCKET/REDACTED_DIR.bin HTTP/1.1
Host: f002.backblazeb2.com
User-Agent: rclone/
Authorization: XXXX

2023/08/29 22:08:38 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 22:08:38 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 22:08:38 DEBUG : HTTP RESPONSE (req 0xc0007eb400)
2023/08/29 22:08:38 DEBUG : HTTP/1.1 401 
Content-Length: 62
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=utf-8
Date: Tue, 29 Aug 2023 22:09:00 GMT

2023/08/29 22:08:38 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 22:08:38 DEBUG : Couldn't decode error response: EOF
2023/08/29 22:08:38 DEBUG : B2 bucket REDACTED_BUCKET: Unauthorized: Unknown 401  (401 unknown)
2023/08/29 22:08:38 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 22:08:38 DEBUG : HTTP REQUEST (req 0xc0007eb700)
2023/08/29 22:08:38 DEBUG : GET /b2api/v1/b2_authorize_account HTTP/1.1
Host: api.backblazeb2.com
User-Agent: rclone/
Authorization: XXXX
Accept-Encoding: gzip

2023/08/29 22:08:38 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 22:08:38 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 22:08:38 DEBUG : HTTP RESPONSE (req 0xc0007eb700)
2023/08/29 22:08:38 DEBUG : HTTP/1.1 200 
Content-Length: 620
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Date: Tue, 29 Aug 2023 22:09:00 GMT

2023/08/29 22:08:38 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 22:08:38 DEBUG : pacer: Reducing sleep to 10ms
2023/08/29 22:08:38 DEBUG : pacer: low level retry 2/10 (error Unknown 401  (401 unknown))
2023/08/29 22:08:38 DEBUG : pacer: Rate limited, increasing sleep to 20ms
2023/08/29 22:08:38 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 22:08:38 DEBUG : HTTP REQUEST (req 0xc0007eba00)
2023/08/29 22:08:38 DEBUG : HEAD /file/REDACTED_BUCKET/REDACTED_DIR.bin HTTP/1.1
Host: f002.backblazeb2.com
User-Agent: rclone/
Authorization: XXXX

2023/08/29 22:08:38 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 22:08:39 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 22:08:39 DEBUG : HTTP RESPONSE (req 0xc0007eba00)
2023/08/29 22:08:39 DEBUG : HTTP/1.1 401 
Content-Length: 62
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=utf-8
Date: Tue, 29 Aug 2023 22:09:00 GMT

2023/08/29 22:08:39 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 22:08:39 DEBUG : Couldn't decode error response: EOF
2023/08/29 22:08:39 DEBUG : B2 bucket REDACTED_BUCKET: Unauthorized: Unknown 401  (401 unknown)
2023/08/29 22:08:39 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 22:08:39 DEBUG : HTTP REQUEST (req 0xc0007ebd00)
2023/08/29 22:08:39 DEBUG : GET /b2api/v1/b2_authorize_account HTTP/1.1
Host: api.backblazeb2.com
User-Agent: rclone/
Authorization: XXXX
Accept-Encoding: gzip

2023/08/29 22:08:39 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 22:08:39 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 22:08:39 DEBUG : HTTP RESPONSE (req 0xc0007ebd00)
2023/08/29 22:08:39 DEBUG : HTTP/1.1 200 
Content-Length: 620
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Date: Tue, 29 Aug 2023 22:09:00 GMT

2023/08/29 22:08:39 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 22:08:39 DEBUG : pacer: Reducing sleep to 10ms
2023/08/29 22:08:39 DEBUG : pacer: low level retry 3/10 (error Unknown 401  (401 unknown))
2023/08/29 22:08:39 DEBUG : pacer: Rate limited, increasing sleep to 20ms
2023/08/29 22:08:39 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 22:08:39 DEBUG : HTTP REQUEST (req 0xc0005fe300)
2023/08/29 22:08:39 DEBUG : HEAD /file/REDACTED_BUCKET/REDACTED_DIR.bin HTTP/1.1
Host: f002.backblazeb2.com
User-Agent: rclone/
Authorization: XXXX

2023/08/29 22:08:39 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 22:08:39 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 22:08:39 DEBUG : HTTP RESPONSE (req 0xc0005fe300)
2023/08/29 22:08:39 DEBUG : HTTP/1.1 401 
Content-Length: 62
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=utf-8
Date: Tue, 29 Aug 2023 22:09:01 GMT

...

2023/08/29 22:08:44 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 22:08:45 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 22:08:45 DEBUG : HTTP RESPONSE (req 0xc001c2ef00)
2023/08/29 22:08:45 DEBUG : HTTP/1.1 200 
Content-Length: 1985
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Date: Tue, 29 Aug 2023 22:09:07 GMT

2023/08/29 22:08:45 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 22:08:45 DEBUG : pacer: Reducing sleep to 10ms
REDACTED_FILESIZE REDACTED_FILENAME
REDACTED_FILESIZE REDACTED_FILENAME
REDACTED_FILESIZE REDACTED_FILENAME
2023/08/29 22:08:45 DEBUG : 8 go routines active
root@host:~# 

That's still the old version so you really want to update it.

I think that's a bit much, but all up to @ncw on that.

I just tested this issue on an older version of rclone , and the issue is not present.

So this is a bug that was introduced at some point between rclone v1.53.3-DEV and rclone v1.60.1-DEV

Here's the same execution as before with an identical rclone.conf but on an older version of rclone (the latest version available in Debian 11 [as opposed to Debian 12])

user@disp2914:~$ cat /etc/issue
Debian GNU/Linux 11 \n \l

user@disp2914:~$ 
user@disp2914:~$ rclone version
rclone v1.53.3-DEV
- os/arch: linux/amd64
- go version: go1.15.9
user@disp2914:~$ 

user@disp2914:~$ rclone ls -vv --dump headers REDACTED_BUCKET:REDACTED_DIR
2023/08/29 20:34:39 DEBUG : rclone: Version "v1.53.3-DEV" starting with parameters ["rclone" "ls" "-vv" "--dump" "headers" "REDACTED_BUCKET:REDACTED_DIR"]
2023/08/29 20:34:39 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2023/08/29 20:34:39 DEBUG : Creating backend with remote "REDACTED_BUCKET:REDACTED_DIR"
2023/08/29 20:34:39 DEBUG : Creating backend with remote "b2:REDACTED_BUCKET/REDACTED_DIR.bin"
2023/08/29 20:34:39 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2023/08/29 20:34:39 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 20:34:39 DEBUG : HTTP REQUEST (req 0xc0002cca00)
2023/08/29 20:34:39 DEBUG : GET /b2api/v1/b2_authorize_account HTTP/1.1
Host: api.backblazeb2.com
User-Agent: rclone/v1.53.3-DEV
Authorization: XXXX
Accept-Encoding: gzip

2023/08/29 20:34:39 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 20:34:40 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 20:34:40 DEBUG : HTTP RESPONSE (req 0xc0002cca00)
2023/08/29 20:34:40 DEBUG : HTTP/1.1 200 
Content-Length: 620
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Date: Wed, 30 Aug 2023 01:34:41 GMT

2023/08/29 20:34:40 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 20:34:40 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 20:34:40 DEBUG : HTTP REQUEST (req 0xc0002cd100)
2023/08/29 20:34:40 DEBUG : POST /b2api/v1/b2_list_file_names HTTP/1.1
Host: api002.backblazeb2.com
User-Agent: rclone/v1.53.3-DEV
Content-Length: 173
Authorization: XXXX
Content-Type: application/json
Accept-Encoding: gzip

2023/08/29 20:34:40 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 20:34:42 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 20:34:42 DEBUG : HTTP RESPONSE (req 0xc0002cd100)
2023/08/29 20:34:42 DEBUG : HTTP/1.1 200 
Content-Length: 42
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Date: Wed, 30 Aug 2023 01:34:42 GMT

2023/08/29 20:34:42 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 20:34:42 DEBUG : Creating backend with remote "b2:REDACTED_BUCKET/REDACTED_DIR"
2023/08/29 20:34:42 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 20:34:42 DEBUG : HTTP REQUEST (req 0xc0002cdb00)
2023/08/29 20:34:42 DEBUG : GET /b2api/v1/b2_authorize_account HTTP/1.1
Host: api.backblazeb2.com
User-Agent: rclone/v1.53.3-DEV
Authorization: XXXX
Accept-Encoding: gzip

2023/08/29 20:34:42 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 20:34:42 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 20:34:42 DEBUG : HTTP RESPONSE (req 0xc0002cdb00)
2023/08/29 20:34:42 DEBUG : HTTP/1.1 200 
Content-Length: 620
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Date: Wed, 30 Aug 2023 01:34:43 GMT

2023/08/29 20:34:42 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 20:34:42 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 20:34:42 DEBUG : HTTP REQUEST (req 0xc0002cdf00)
2023/08/29 20:34:42 DEBUG : POST /b2api/v1/b2_list_file_names HTTP/1.1
Host: api002.backblazeb2.com
User-Agent: rclone/v1.53.3-DEV
Content-Length: 165
Authorization: XXXX
Content-Type: application/json
Accept-Encoding: gzip

2023/08/29 20:34:42 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 20:34:42 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 20:34:42 DEBUG : HTTP RESPONSE (req 0xc0002cdf00)
2023/08/29 20:34:42 DEBUG : HTTP/1.1 200 
Content-Length: 775
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Date: Wed, 30 Aug 2023 01:34:43 GMT

2023/08/29 20:34:42 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 20:34:42 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 20:34:42 DEBUG : HTTP REQUEST (req 0xc000226b00)
2023/08/29 20:34:42 DEBUG : POST /b2api/v1/b2_list_file_names HTTP/1.1
Host: api002.backblazeb2.com
User-Agent: rclone/v1.53.3-DEV
Content-Length: 170
Authorization: XXXX
Content-Type: application/json
Accept-Encoding: gzip

2023/08/29 20:34:42 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/08/29 20:34:42 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/08/29 20:34:42 DEBUG : HTTP RESPONSE (req 0xc000226b00)
2023/08/29 20:34:42 DEBUG : HTTP/1.1 200 
Content-Length: 1985
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Date: Wed, 30 Aug 2023 01:34:43 GMT

2023/08/29 20:34:42 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
REDACTED_FILESIZE REDACTED_FILENAME
REDACTED_FILESIZE REDACTED_FILENAME
REDACTED_FILESIZE REDACTED_FILENAME
2023/08/29 20:34:42 DEBUG : 6 go routines active
user@disp2914:~$ 

Unfortunately I'll need someone else to confirm if this is still present on the latest version as I can't find any documentation on how to securely install rclone outside of the Debian repos.

No worries. Good luck then!

As a workaround until this bug is fixed, I was successfully able to fix copying files to my Backblaze B2 bucket using rclone by downgrading one version in Debian 12.

root@host:~# apt-cache policy rclone
rclone:
  Installed: 1.60.1+dfsg-2+b5
  Candidate: 1.60.1+dfsg-2+b5
  Version table:
 *** 1.60.1+dfsg-2+b5 500
		500 MIRROR_REDACTED/debian bookworm/main amd64 Packages
		100 /DIR_REDACTED/var/lib/dpkg/status
	 1.45-3+deb10u1 500
		500 MIRROR_REDACTED/debian/security buster/updates/main amd64 Packages
	 1.45-3 500
		500 MIRROR_REDACTED/debian/packages buster/main amd64 Packages
root@host:~#

root@host:~# apt-get install rclone=1.45-3+deb10u1
...

This version works without errors on Debian 12

root@host:~# rclone version
rclone v1.45
- os/arch: linux/amd64
- go version: go1.11.6
root@host:~#

That's an even more ancient version with known issues on security...

that does not look correct?
perhaps REMOTE:BUCKET/DIR
i cannot be sure, as you were asked twice, to answer all questions, including the redacted config?
if you create a dummy bucket, dir and one file, then no need to redact.

is that error present in the dump you posted?
in any event, if you test using latest rclone, would notice rclone does not HEAD.

just curious, why track down a suspected bug by comparing ancient version versus old version?
are you planning to fork an old version/modify/compile and use that?

trying to understand what you need help with?

on the upside, i like your idea of PGP fingerprint being published in multiple distinct domains

Thanks for making the pgp issue. Lots to think about there.

I did upload my key to the keyserver you suggested so you should be able to verify the hashes now at least and give the latest version a go.

1 Like

That was an issue in my redaction. There is no issue with the command's remote/bucket/dir/etc. As shown above, the exact same command works fine on one version (the latest version that's available in the Debian 11 repos) but not on the latest version that's available in the Debian 12 repos.

Yes .You can see it here