What is the problem you are having with rclone?
I'm a happy rclone user currently migrating from bare metal to backblaze b2. For this, I use the b2 integration. In front, I'm using Cloudflare as a CDN for caching and saving costs (cost saving only until October 3rd, that is).
My issue is that the B2 integration adds a /file/ as part of the path or the URI, which breaks the download_url pointing via Cloudflare to the CDN
Without the download URL it works fine.
This is the same for both the crypt wrapped and direct remote.
Run the command 'rclone version' and share the full output of the command.
On macOS:
rclone v1.65.0-beta.7392.b296f3780
- os/version: darwin 13.5.2 (64 bit)
- os/kernel: 22.6.0 (arm64)
- os/type: darwin
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.21.1
- go/linking: dynamic
- go/tags: cmount
On my server:
rclone v1.64.0
- os/version: alpine 3.18.3 (64 bit)
- os/kernel: 6.1.0-0.deb11.11-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.21.1
- 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 -vv copyto --b2-download-url https://cdn.domain.tld crypt-backblaze-<name>:/path/to/files /Users/<name>/test/
rclone -vv mount --b2-download-url https://cdn.domain.tld crypt-backblaze-<name>: /mnt/test
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
/data # rclone config redacted
[backblaze]
type = b2
account = XXX
key = XXX
hard_delete = true
[crypt-backblaze-<name>]
type = crypt
remote = backblaze:<name>
password = XXX
password2 = XXX
[crypt-backblaze-<othername>]
type = crypt
remote = backblaze:<othername>
password = XXX
password2 = XXX
### Double check the config for sensitive info before posting publicly
A log from the command that you were trying to run with the -vv
flag
2023/09/28 15:23:10 DEBUG : DSC09652.jpg: Need to transfer - File not found at Destination
2023/09/28 15:23:10 DEBUG : DSC09658.jpg: Need to transfer - File not found at Destination
2023/09/28 15:23:10 DEBUG : DSC09666.jpg: Need to transfer - File not found at Destination
2023/09/28 15:23:10 DEBUG : DSC09704.jpg: Need to transfer - File not found at Destination
2023/09/28 15:23:10 DEBUG : DSC09751.jpg: Need to transfer - File not found at Destination
2023/09/28 15:23:10 DEBUG : DSC09762.jpg: Need to transfer - File not found at Destination
2023/09/28 15:23:10 DEBUG : DSC09770.jpg: Need to transfer - File not found at Destination
2023/09/28 15:23:10 DEBUG : DSC09774.jpg: Need to transfer - File not found at Destination
2023/09/28 15:23:10 DEBUG : DSC09781.jpg: Need to transfer - File not found at Destination
2023/09/28 15:23:10 DEBUG : Local file system at /Users/<name>/test: Waiting for checks to finish
2023/09/28 15:23:10 DEBUG : Local file system at /Users/<name>/test: Waiting for transfers to finish
2023/09/28 15:23:10 DEBUG : Couldn't decode error response: invalid character '<' looking for beginning of value
2023/09/28 15:23:10 ERROR : DSC09652.jpg: Failed to copy: failed to open source object: object not found
2023/09/28 15:23:10 DEBUG : Couldn't decode error response: invalid character '<' looking for beginning of value
2023/09/28 15:23:10 ERROR : DSC09658.jpg: Failed to copy: failed to open source object: object not found
2023/09/28 15:23:10 DEBUG : Couldn't decode error response: invalid character '<' looking for beginning of value
2023/09/28 15:23:10 ERROR : DSC09666.jpg: Failed to copy: failed to open source object: object not found
2023/09/28 15:23:10 DEBUG : Couldn't decode error response: invalid character '<' looking for beginning of value
2023/09/28 15:23:10 ERROR : DSC09704.jpg: Failed to copy: failed to open source object: object not found
2023/09/28 15:23:10 DEBUG : Couldn't decode error response: invalid character '<' looking for beginning of value
2023/09/28 15:23:10 ERROR : DSC09762.jpg: Failed to copy: failed to open source object: object not found
2023/09/28 15:23:10 DEBUG : Couldn't decode error response: invalid character '<' looking for beginning of value
2023/09/28 15:23:10 ERROR : DSC09770.jpg: Failed to copy: failed to open source object: object not found
2023/09/28 15:23:10 DEBUG : Couldn't decode error response: invalid character '<' looking for beginning of value
2023/09/28 15:23:10 ERROR : DSC09774.jpg: Failed to copy: failed to open source object: object not found
Checking the log from the worker, Links look like this:
https://cdn.domain.tld/file/<bucketname>/tur22lsuacq07gk5t2vij6ak9o/j05j1iqg95gbss0hkfuhod0hn4/9jk9iok21sukm6q57bteipu8nc
And following such a link yields:
<Error>
<Code>NoSuchBucket</Code>
<Message>The specified bucket does not exist: file</Message>
<Resource>file</Resource>
</Error>
If I remove /file from the path, it works. I get to download the correct, although encrypted file.