Hi all,
I have installed rclone to use for transferring approximately 215 GB of content from an existing network drive (let's call it J Drive) to a OneDrive location mapped as a network drive via rclone (let's call it R Drive).
Conf and version details:
rclone.conf (C:\Users\Userdeets\AppData\Roaming\rclone):
[onedrive]
type = onedrive
drive_type = business
client_id = x
client_secret = x
token = {"access_token":"x"}
drive_id = x
drive_type = documentLibrary
chunk_size = 250Mi
C:\Users\Userdeets> version
rclone v1.67.0
- os/type: windows
- os/arch: amd64
- go/version: go1.22.4
- go/linking: static
- go/tags: cmount
now for the initial command...
rclone copy "J:\folder1\folder2" onedrive:folder3
A bottleneck occurs around the 30 GB transfer point when syncing the entire 215 GB folder top directory. Even when transferring in smaller batches of, say, 10 GB, it always slows to around 10 KB/s (completely unfeasible), with all attempts resulting in the same errors that I suspect are causing the issue: 'corrupted on transfer: sizes differ'. For example:
2022/08/30 14:00:45 ERROR : master/sapb1_oibq.xml: corrupted on transfer: sizes differ 422438 vs 422421
I have tried various cache modes, including full, minimal, and write, all resulting in the same errors. I have also used the --ignore-checksum flag to bypass checksum mismatches.
rclone mount onedrive: X: --network-mode --vfs-cache-mode full --vfs-cache-max-size 100G --vfs-cache-max-age 24h
then
rclone sync "J:\folder1\folder2" onedrive:folder3
I have tried optimising chunk sizes to avoid these bottlenecks, e.g...
rclone mount onedrive: X: --network-mode --vfs-cache-mode full --vfs-cache-max-size 100G --vfs-cache-max-age 24h
then
rclone sync "J:\folder1\folder2" onedrive:folder3 --onedrive-chunk-size 250M --transfers 32 --checkers 32 --retries 3 --low-level-retries 10
After these steps, I still receive the same plethora of errors saying that x corrupted on transfer, files sizes differ.
Under the impression that no cache mode is needed to simply transfer files (correct me if I'm wrong here), I attempted the same transfer without any cache mode...
rclone mount onedrive: X: --network-mode
then
rclone sync "J:\folder1\folder2" onedrive:folder3 --onedrive-chunk-size 250M --transfers 32 --checkers 32 --retries 3 --low-level-retries 10
which resulted in a new error:
"Can’t read and write to file without --vfs-cache-mode >= minimal"
Upon which when setting cache mode to minimal, this results in 'corrupted on transfer: sizes differ' error again.
Please note, we can rule out network speed. Tested. It's fine.
Has anyone encountered either or both of these errors before?
- For the "corrupted on transfer: sizes differ" error:
- Why does this occur and what can I do to address it?
- For the "Can’t read and write to file without --vfs-cache-mode >= minimal" error:
- Is cache mode (of any kind) needed to move files from one location to another? If so, why?
- How should I address this error?
Thanks a bunch in advanced!
Jacko