What is the problem you are having with rclone?
I'm trying to sync to a BackBlaze B2 as I've done for years. And all of a sudden there's one directory (that almost never changes) that I can no longer sync (other directories in the same bucket work fine). This is probably an issue with BackBlaze, whom I'm going to contact. But I'm wondering why rclone gives back Couldn't decode error response: EOF
. Why not relay the 404 directly back to me through the logs?
Here's what I get in the logs using --log-level DEBUG --dump responses
:
2022/11/20 08:26:59 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/11/20 08:26:59 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/11/20 08:26:59 DEBUG : HTTP REQUEST (req 0x1400073a000)
2022/11/20 08:26:59 DEBUG : GET /b2api/v1/b2_authorize_account HTTP/1.1
Host: api.backblazeb2.com
User-Agent: rclone/v1.60.1
Authorization: XXXX
Accept-Encoding: gzip
2022/11/20 08:26:59 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/11/20 08:27:00 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/11/20 08:27:00 DEBUG : HTTP RESPONSE (req 0x1400073a000)
2022/11/20 08:27:00 DEBUG : HTTP/1.1 200
Content-Length: 774
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Date: Sun, 20 Nov 2022 16:27:00 GMT
{
"absoluteMinimumPartSize": 5000000,
"accountId": "__REDACTED__",
"allowed": {
"bucketId": "__REDACTED__",
"bucketName": "__REDACTED__",
"capabilities": [
"listAllBucketNames",
"listBuckets",
"readBuckets",
"listFiles",
"readFiles",
"shareFiles",
"writeFiles",
"deleteFiles",
"readBucketEncryption",
"writeBucketEncryption"
],
"namePrefix": null
},
"apiUrl": "https://api001.backblazeb2.com",
"authorizationToken": "__REDACTED__",
"downloadUrl": "https://f001.backblazeb2.com",
"minimumPartSize": 100000000,
"recommendedPartSize": 100000000,
"s3ApiUrl": "https://s3.us-west-001.backblazeb2.com"
}
2022/11/20 08:27:00 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/11/20 08:27:00 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/11/20 08:27:00 DEBUG : HTTP REQUEST (req 0x1400073ab00)
2022/11/20 08:27:00 DEBUG : HEAD /file/__REDACTED__/5d6iipgve0b3dphe1nldh77tbd HTTP/1.1
Host: f001.backblazeb2.com
User-Agent: rclone/v1.60.1
Authorization: XXXX
2022/11/20 08:27:00 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/11/20 08:27:01 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/11/20 08:27:01 DEBUG : HTTP RESPONSE (req 0x1400073ab00)
2022/11/20 08:27:01 DEBUG : HTTP/1.1 404
Content-Length: 94
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=utf-8
Date: Sun, 20 Nov 2022 16:27:00 GMT
2022/11/20 08:27:01 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/11/20 08:27:01 DEBUG : Couldn't decode error response: EOF
2022/11/20 08:27:01 ERROR : Attempt 1/3 failed with 1 errors and: object not found
2022/11/20 08:27:01 ERROR : Attempt 2/3 failed with 1 errors and: object not found
2022/11/20 08:27:01 ERROR : Attempt 3/3 failed with 1 errors and: object not found
This seems like a fairly standard 404 response. Could this error be relayed in the logs without my having to --dump responses
?
Run the command 'rclone version' and share the full output of the command.
rclone v1.60.1
- os/version: darwin 12.6.1 (64 bit)
- os/kernel: 21.6.0 (arm64)
- os/type: darwin
- os/arch: arm64
- go/version: go1.19.3
- go/linking: dynamic
- go/tags: cmount noselfupdate
Installed via MacPorts.
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
)
time -h -a -o /Users/__REDACTED__/Library/Logs/__REDACTED__/bak.sync.__REDACTED__.log nice -n 15 /opt/local/bin/rclone sync --log-level DEBUG --dump responses /ext/ b2-__REDACTED__-backup-secret:prio3
The rclone config contents with secrets removed.
[b2-__REDACTED__-backup]
type = b2
account = __REDACTED__
key = __REDACTED__
hard_delete = true
encoding = Slash,Del,Ctl,InvalidUtf8,Dot
[b2-__REDACTED__-backup-secret]
type = crypt
remote = b2-__REDACTED__-backup:__REDACTED__-backup
password = __REDACTED__
password2 = __REDACTED__
A log from the command with the -vv
flag
See above.