What is the problem you are having with rclone?
When trying to perform a server-side copy of certain files on B2, I encounter a bad byte range: bytes=8589934592-8589934591
error, presumably when Copying chunk 2 length 0
. Chunks 0 and 1 add up to the correct filesize, 5,676,749,018 bytes.
I was previously trying to un-nest a file structure server-side, and ran a larger copy command which errored on some, but not all, files larger than 2GB. This is the output of retrying one of those files.
Perhaps some finagling with chunk size settings will produce a workaround.
Run the command 'rclone version' and share the full output of the command.
rclone v1.64.0
- os/version: darwin 14.0 (64 bit)
- os/kernel: 23.0.0 (arm64)
- os/type: darwin
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.21.1
- go/linking: dynamic
- 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 copy vibedoc:vibedoc/vibedoc/proxies/ vibedoc:vibedoc/proxies/ -vv
The rclone config contents with secrets removed.
[vibedoc]
type = b2
account = <removed>
key = <removed?
A log from the command with the -vv
flag
2023/10/11 18:16:54 DEBUG : rclone: Version "v1.64.0" starting with parameters ["rclone" "copy" "vibedoc:vibedoc/vibedoc/proxies/VC_0044_Proxy.mov" "vibedoc:vibedoc/proxies/" "-vv"]
2023/10/11 18:16:54 DEBUG : Creating backend with remote "vibedoc:vibedoc/vibedoc/proxies/VC_0044_Proxy.mov"
2023/10/11 18:16:54 DEBUG : Using config file from "/Users/rachelshu/.config/rclone/rclone.conf"
2023/10/11 18:16:55 DEBUG : fs cache: adding new entry for parent of "vibedoc:vibedoc/vibedoc/proxies/VC_0044_Proxy.mov", "vibedoc:vibedoc/vibedoc/proxies"
2023/10/11 18:16:55 DEBUG : Creating backend with remote "vibedoc:vibedoc/proxies/"
2023/10/11 18:16:55 DEBUG : Couldn't decode error response: EOF
2023/10/11 18:16:55 DEBUG : fs cache: renaming cache item "vibedoc:vibedoc/proxies/" to be canonical "vibedoc:vibedoc/proxies"
2023/10/11 18:16:55 DEBUG : Couldn't decode error response: EOF
2023/10/11 18:16:55 DEBUG : VC_0044_Proxy.mov: Need to transfer - File not found at Destination
2023/10/11 18:16:55 DEBUG : VC_0044_Proxy.mov: Starting copy of large file in 2 chunks (id "4_z258dfed870379be387820615_f203876198f33cede_d20231012_m011655_c000_v0001053_t0026_u01697073415594")
2023/10/11 18:16:55 DEBUG : VC_0044_Proxy.mov: Copying chunk 2 length 0
2023/10/11 18:16:55 DEBUG : VC_0044_Proxy.mov: Copying chunk 0 length 4294967296
2023/10/11 18:16:55 DEBUG : VC_0044_Proxy.mov: Copying chunk 1 length 1381781722
2023/10/11 18:16:55 DEBUG : VC_0044_Proxy.mov: Error copying chunk 2 (retry=false): bad byte range: bytes=8589934592-8589934591 (400 bad_request): &api.Error{Status:400, Code:"bad_request", Message:"bad byte range: bytes=8589934592-8589934591"}
2023/10/11 18:16:55 DEBUG : VC_0044_Proxy.mov: Error copying chunk 2: bad byte range: bytes=8589934592-8589934591 (400 bad_request)
2023/10/11 18:16:55 DEBUG : VC_0044_Proxy.mov: Error copying chunk 1 (retry=false): Post "https://api000.backblazeb2.com/b2api/v1/b2_copy_part": context canceled: &url.Error{Op:"Post", URL:"https://api000.backblazeb2.com/b2api/v1/b2_copy_part", Err:(*errors.errorString)(0x105c53610)}
2023/10/11 18:16:55 DEBUG : VC_0044_Proxy.mov: Error copying chunk 1: Post "https://api000.backblazeb2.com/b2api/v1/b2_copy_part": context canceled
2023/10/11 18:16:55 DEBUG : VC_0044_Proxy.mov: Error copying chunk 0 (retry=false): Post "https://api000.backblazeb2.com/b2api/v1/b2_copy_part": context canceled: &url.Error{Op:"Post", URL:"https://api000.backblazeb2.com/b2api/v1/b2_copy_part", Err:(*errors.errorString)(0x105c53610)}
2023/10/11 18:16:55 DEBUG : VC_0044_Proxy.mov: Error copying chunk 0: Post "https://api000.backblazeb2.com/b2api/v1/b2_copy_part": context canceled
2023/10/11 18:16:55 DEBUG : VC_0044_Proxy.mov: Cancelling large file copy
2023/10/11 18:16:56 ERROR : VC_0044_Proxy.mov: Failed to copy: bad byte range: bytes=8589934592-8589934591 (400 bad_request)
2023/10/11 18:16:56 ERROR : Attempt 1/3 failed with 1 errors and: bad byte range: bytes=8589934592-8589934591 (400 bad_request)
2023/10/11 18:16:56 DEBUG : Couldn't decode error response: EOF
2023/10/11 18:16:56 DEBUG : VC_0044_Proxy.mov: Need to transfer - File not found at Destination
2023/10/11 18:16:56 DEBUG : VC_0044_Proxy.mov: Starting copy of large file in 2 chunks (id "4_z258dfed870379be387820615_f20059388d4019fb7_d20231012_m011656_c000_v0001410_t0002_u01697073416137")
2023/10/11 18:16:56 DEBUG : VC_0044_Proxy.mov: Copying chunk 2 length 0
2023/10/11 18:16:56 DEBUG : VC_0044_Proxy.mov: Copying chunk 0 length 4294967296
2023/10/11 18:16:56 DEBUG : VC_0044_Proxy.mov: Copying chunk 1 length 1381781722
2023/10/11 18:16:56 DEBUG : VC_0044_Proxy.mov: Error copying chunk 2 (retry=false): bad byte range: bytes=8589934592-8589934591 (400 bad_request): &api.Error{Status:400, Code:"bad_request", Message:"bad byte range: bytes=8589934592-8589934591"}
2023/10/11 18:16:56 DEBUG : VC_0044_Proxy.mov: Error copying chunk 2: bad byte range: bytes=8589934592-8589934591 (400 bad_request)
2023/10/11 18:16:56 DEBUG : VC_0044_Proxy.mov: Error copying chunk 1 (retry=false): Post "https://api000.backblazeb2.com/b2api/v1/b2_copy_part": context canceled: &url.Error{Op:"Post", URL:"https://api000.backblazeb2.com/b2api/v1/b2_copy_part", Err:(*errors.errorString)(0x105c53610)}
2023/10/11 18:16:56 DEBUG : VC_0044_Proxy.mov: Error copying chunk 0 (retry=false): Post "https://api000.backblazeb2.com/b2api/v1/b2_copy_part": context canceled: &url.Error{Op:"Post", URL:"https://api000.backblazeb2.com/b2api/v1/b2_copy_part", Err:(*errors.errorString)(0x105c53610)}
2023/10/11 18:16:56 DEBUG : VC_0044_Proxy.mov: Error copying chunk 1: Post "https://api000.backblazeb2.com/b2api/v1/b2_copy_part": context canceled
2023/10/11 18:16:56 DEBUG : VC_0044_Proxy.mov: Error copying chunk 0: Post "https://api000.backblazeb2.com/b2api/v1/b2_copy_part": context canceled
2023/10/11 18:16:56 DEBUG : VC_0044_Proxy.mov: Cancelling large file copy
2023/10/11 18:16:56 ERROR : VC_0044_Proxy.mov: Failed to copy: bad byte range: bytes=8589934592-8589934591 (400 bad_request)
2023/10/11 18:16:56 ERROR : Attempt 2/3 failed with 1 errors and: bad byte range: bytes=8589934592-8589934591 (400 bad_request)
2023/10/11 18:16:56 DEBUG : Couldn't decode error response: EOF
2023/10/11 18:16:56 DEBUG : VC_0044_Proxy.mov: Need to transfer - File not found at Destination
2023/10/11 18:16:56 DEBUG : VC_0044_Proxy.mov: Starting copy of large file in 2 chunks (id "4_z258dfed870379be387820615_f2061288290ac6db5_d20231012_m011656_c000_v0001406_t0029_u01697073416689")
2023/10/11 18:16:56 DEBUG : VC_0044_Proxy.mov: Copying chunk 2 length 0
2023/10/11 18:16:56 DEBUG : VC_0044_Proxy.mov: Copying chunk 0 length 4294967296
2023/10/11 18:16:56 DEBUG : VC_0044_Proxy.mov: Copying chunk 1 length 1381781722
2023/10/11 18:16:56 DEBUG : VC_0044_Proxy.mov: Error copying chunk 2 (retry=false): bad byte range: bytes=8589934592-8589934591 (400 bad_request): &api.Error{Status:400, Code:"bad_request", Message:"bad byte range: bytes=8589934592-8589934591"}
2023/10/11 18:16:56 DEBUG : VC_0044_Proxy.mov: Error copying chunk 2: bad byte range: bytes=8589934592-8589934591 (400 bad_request)
2023/10/11 18:16:56 DEBUG : VC_0044_Proxy.mov: Error copying chunk 1 (retry=false): Post "https://api000.backblazeb2.com/b2api/v1/b2_copy_part": context canceled: &url.Error{Op:"Post", URL:"https://api000.backblazeb2.com/b2api/v1/b2_copy_part", Err:(*errors.errorString)(0x105c53610)}
2023/10/11 18:16:56 DEBUG : VC_0044_Proxy.mov: Error copying chunk 1: Post "https://api000.backblazeb2.com/b2api/v1/b2_copy_part": context canceled
2023/10/11 18:16:56 DEBUG : VC_0044_Proxy.mov: Error copying chunk 0 (retry=false): Post "https://api000.backblazeb2.com/b2api/v1/b2_copy_part": context canceled: &url.Error{Op:"Post", URL:"https://api000.backblazeb2.com/b2api/v1/b2_copy_part", Err:(*errors.errorString)(0x105c53610)}
2023/10/11 18:16:56 DEBUG : VC_0044_Proxy.mov: Error copying chunk 0: Post "https://api000.backblazeb2.com/b2api/v1/b2_copy_part": context canceled
2023/10/11 18:16:56 DEBUG : VC_0044_Proxy.mov: Cancelling large file copy
2023/10/11 18:16:57 ERROR : VC_0044_Proxy.mov: Failed to copy: bad byte range: bytes=8589934592-8589934591 (400 bad_request)
2023/10/11 18:16:57 ERROR : Attempt 3/3 failed with 1 errors and: bad byte range: bytes=8589934592-8589934591 (400 bad_request)
2023/10/11 18:16:57 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 2.6s
2023/10/11 18:16:57 DEBUG : 14 go routines active
2023/10/11 18:16:57 Failed to copy: bad byte range: bytes=8589934592-8589934591 (400 bad_request)