What is the problem you are having with rclone?
About 80% of the time, rclone will fail to upload any file larger than a single chunk to Opendrive with either Incorrect chunk offset
or Invalid upload file size
Run the command 'rclone version' and share the full output of the command.
rclone v1.57.0
- os/version: debian 11.2 (64 bit)
- os/kernel: 5.10.0-10-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.17.2
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Opendrive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
% dd if=/dev/urandom bs=1M count=100 | rclone rcat -vvvv --log-file=rclone.log -P opendrive:test/test
The rclone config contents with secrets removed.
[opendrive]
type = opendrive
username = <user>
password = <pass>
A log from the command with the -vv
flag
2022/02/25 16:49:59 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "rcat" "-vvvv" "--log-file=rclone.log" "-P" "opendrive:test/test"]
2022/02/25 16:49:59 DEBUG : Creating backend with remote "opendrive:test/"
2022/02/25 16:49:59 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2022/02/25 16:49:59 DEBUG : Starting OpenDrive session with ID: 2482362a6177bbed16c030c8baee30df2e2d9157508a50d2a0db39e6a74a303b
2022/02/25 16:49:59 DEBUG : fs cache: renaming cache item "opendrive:test/" to be canonical "opendrive:test"
2022/02/25 16:49:59 DEBUG : OpenDrive root 'test': Target remote doesn't support streaming uploads, creating temporary local FS to spool file
2022/02/25 16:49:59 DEBUG : Creating backend with remote "/tmp/rclone-spool1049813267"
2022/02/25 16:50:00 DEBUG : test: Size and modification time the same (differ by 0s, within tolerance 1s)
2022/02/25 16:50:09 DEBUG : test: Uploading chunk 0, size=10485760, remain=94371840
2022/02/25 16:50:10 DEBUG : test: Uploading chunk 1, size=10485760, remain=83886080
2022/02/25 16:50:10 DEBUG : test: Uploading chunk 2, size=10485760, remain=73400320
2022/02/25 16:50:18 DEBUG : test: Uploading chunk 3, size=10485760, remain=62914560
2022/02/25 16:50:19 DEBUG : test: Uploading chunk 4, size=10485760, remain=52428800
2022/02/25 16:50:26 DEBUG : test: Uploading chunk 5, size=10485760, remain=41943040
2022/02/25 16:50:30 DEBUG : test: Uploading chunk 6, size=10485760, remain=31457280
2022/02/25 16:50:32 DEBUG : test: Uploading chunk 7, size=10485760, remain=20971520
2022/02/25 16:50:32 DEBUG : test: Uploading chunk 8, size=10485760, remain=10485760
2022/02/25 16:50:35 DEBUG : test: Uploading chunk 9, size=10485760, remain=0
2022/02/25 16:50:42 ERROR : test: Failed to copy: failed to create file: Invalid upload file size. Total uploaded=94371840. File size=104857600 (Error 400)
2022/02/25 16:50:42 ERROR : test: Post request rcat error: failed to create file: Invalid upload file size. Total uploaded=94371840. File size=104857600 (Error 400)
2022/02/25 16:50:42 DEBUG : 3 go routines active
2022/02/25 16:50:42 Failed to rcat: failed to create file: Invalid upload file size. Total uploaded=94371840. File size=104857600 (Error 400)
2022/02/25 17:00:32 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "rcat" "-vvvv" "--log-file=rclone.log" "-P" "opendrive:test/test"]
2022/02/25 17:00:32 DEBUG : Creating backend with remote "opendrive:test/"
2022/02/25 17:00:32 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2022/02/25 17:00:33 DEBUG : Starting OpenDrive session with ID: bad42bb6a97ed2e98046cf448fc051d425242ebe557b7c223f2a7143acb40eff
2022/02/25 17:00:33 DEBUG : fs cache: renaming cache item "opendrive:test/" to be canonical "opendrive:test"
2022/02/25 17:00:33 DEBUG : OpenDrive root 'test': Target remote doesn't support streaming uploads, creating temporary local FS to spool file
2022/02/25 17:00:33 DEBUG : Creating backend with remote "/tmp/rclone-spool3548910675"
2022/02/25 17:00:34 DEBUG : test: Size and modification time the same (differ by 0s, within tolerance 1s)
2022/02/25 17:00:58 DEBUG : test: Uploading chunk 0, size=10485760, remain=94371840
2022/02/25 17:01:14 DEBUG : test: Uploading chunk 1, size=10485760, remain=83886080
2022/02/25 17:01:14 DEBUG : test: Uploading chunk 2, size=10485760, remain=73400320
2022/02/25 17:01:15 ERROR : test: Failed to copy: failed to create file: Incorrect chunk offset: uploaded=10485760, chunk_offset=20971520 (Error 400)
2022/02/25 17:01:15 ERROR : test: Post request rcat error: failed to create file: Incorrect chunk offset: uploaded=10485760, chunk_offset=20971520 (Error 400)
2022/02/25 17:01:15 DEBUG : 3 go routines active
2022/02/25 17:01:15 Failed to rcat: failed to create file: Incorrect chunk offset: uploaded=10485760, chunk_offset=20971520 (Error 400)