rclone has a bug with b2 when b2 reached caps (for example download cap).
The server returns 403, but rclone communicates as if everything is OK. Nothing is printed and the exit code is 0.
For example cat returns nothing without any error at all. copy
tells there is nothing to transfer. This can corrupt data in a restore process for example, when a file is downloaded.
Here is with dump bodies.
2022/03/23 23:29:06 NOTICE: Automatically setting -vv as --dump is enabled
2022/03/23 23:29:06 DEBUG : rclone: Version "v1.58.0" starting with parameters ["rclone" "--config=c.conf" "--dump" "bodies" "cat" "b2:a/b.tgz"]
2022/03/23 23:29:06 DEBUG : Creating backend with remote "b2:a/b.tgz"
2022/03/23 23:29:06 DEBUG : Using config file from "c.conf"
2022/03/23 23:29:06 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.
2022/03/23 23:29:06 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/03/23 23:29:06 DEBUG : HTTP REQUEST (req 0xc0004e0400)
2022/03/23 23:29:06 DEBUG : GET /b2api/v1/b2_authorize_account HTTP/1.1
Host: api.backblazeb2.com
User-Agent: rclone/v1.58.0
Authorization: XXXX
Accept-Encoding: gzip
2022/03/23 23:29:06 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/03/23 23:29:07 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/03/23 23:29:07 DEBUG : HTTP RESPONSE (req 0xc0004e0400)
2022/03/23 23:29:07 DEBUG : HTTP/1.1 200
Content-Length: 750
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Date: Wed, 23 Mar 2022 23:29:06 GMT
{
"absoluteMinimumPartSize": 5000000,
"accountId": "xxx",
"allowed": {
"bucketId": "xxx",
"bucketName": "a",
"capabilities": [
"listBuckets",
"readBuckets",
"listFiles",
"readFiles",
"shareFiles",
"writeFiles",
"deleteFiles",
"readBucketEncryption",
"writeBucketEncryption"
],
"namePrefix": null
},
"apiUrl": "https://api000.backblazeb2.com",
"authorizationToken": "xxx",
"downloadUrl": "https://f000.backblazeb2.com",
"minimumPartSize": 100000000,
"recommendedPartSize": 100000000,
"s3ApiUrl": "https://s3.us-west-000.backblazeb2.com"
}
2022/03/23 23:29:07 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/03/23 23:29:07 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/03/23 23:29:07 DEBUG : HTTP REQUEST (req 0xc0009f8600)
2022/03/23 23:29:07 DEBUG : HEAD /file/a/b.tgz HTTP/1.1
Host: f000.backblazeb2.com
User-Agent: rclone/v1.58.0
Authorization: XXXX
2022/03/23 23:29:07 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/03/23 23:29:07 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/03/23 23:29:07 DEBUG : HTTP RESPONSE (req 0xc0009f8600)
2022/03/23 23:29:07 DEBUG : HTTP/1.1 403
Content-Length: 199
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=utf-8
Date: Wed, 23 Mar 2022 23:29:07 GMT
2022/03/23 23:29:07 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/03/23 23:29:07 DEBUG : Couldn't decode error response: EOF
2022/03/23 23:29:07 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/03/23 23:29:07 DEBUG : HTTP REQUEST (req 0xc0004e0400)
2022/03/23 23:29:07 DEBUG : POST /b2api/v1/b2_list_file_names HTTP/1.1
Host: api000.backblazeb2.com
User-Agent: rclone/v1.58.0
Content-Length: 140
Authorization: XXXX
Content-Type: application/json
Accept-Encoding: gzip
{"bucketId":"xxx","startFileName":"b.tgz/","maxFileCount":1000,"prefix":"b.tgz/"}
2022/03/23 23:29:07 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/03/23 23:29:08 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/03/23 23:29:08 DEBUG : HTTP RESPONSE (req 0xc0004e0400)
2022/03/23 23:29:08 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, 23 Mar 2022 23:29:07 GMT
{
"files": [],
"nextFileName": null
}
2022/03/23 23:29:08 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/03/23 23:29:08 DEBUG : 8 go routines active