What is the problem you are having with rclone?
Hey all!
I've been testing a setup to sync files from a local disk on a windows machine to a sharepoint online enviroment.
I first did this in a test environment to make sure the command would do as we wanted it to do. This all was done in a test office 365 tenant.
once the command was finetuned, I went on to implement it in the production environment, so an actual sharepoint site on the production tenant. Here, the copy/sync works OK, but after some time I get throttled. With the help of the -vv option I noticed the process get's throttled (which never happened in the test environment).
Can anyone give me some more insights on how the throttling is applied, and better, how to get past this?
I've been playing with -tpslimit option, changing it from 4 to 2 makes that the sync gets throttled after 150MB, instead of 80 MB
Thanks in advance for your feedback!
What is your rclone version (output from rclone version
)
rclone version output:
rclone v1.56.1
- os/version: Microsoft Windows Server 2012 R2 Standard (64 bit)
- os/kernel: 6.3.9600.20069 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.16.8
- go/linking: dynamic
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
Source = folder on windows machine (locally available from the windows machine)
Destination = Sharepoint online (when creating a new remote in rclone, i used "26 Microsoft OneDrive")
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone copy d:\data\ REMOTE:Active --backup-dir REMOTE:Backup/%Day%-%Month%-%Year% --progress --bwlimit 2M --log-file=C:\RClone\logs\manual_sync_log.txt --transfers 2 --ignore-size --ignore-errors --ignore-checksum --create-empty-src-dirs --config %configfile% --checksum --onedrive-chunk-size 320k --fast-list --tpslimit 2 --user-agent "ISV|rclone.org|rclone/v1.56.1" -vv
The rclone config contents with secrets removed.
[REMOTE]
type = onedrive
client_id = ***
client_secret = ***
token = {"access_token":"***","token_type":"Bearer","refresh_token":"***","expiry":"2021-11-16T10:09:29.7570269+01:00"}
drive_id = ***
drive_type = documentLibrary
A log from the command with the -vv
flag
2021/11/16 09:46:45 DEBUG : Data/file1.zip: Uploading segment 33423360/98548327 size 327680
2021/11/16 09:46:45 DEBUG : Data/file2.zip: Uploading segment 36700160/503654298 size 327680
2021/11/16 09:46:45 DEBUG : Data/file1.zip: Uploading segment 33751040/98548327 size 327680
2021/11/16 09:46:45 DEBUG : Too many requests. Trying again in 32 seconds.
2021/11/16 09:46:45 DEBUG : pacer: low level retry 1/10 (error activityLimitReached: throttledRequest: The request has been throttled)
2021/11/16 09:46:45 DEBUG : pacer: Rate limited, increasing sleep to 32s
2021/11/16 09:46:46 DEBUG : pacer: Reducing sleep to 24s
2021/11/16 09:46:46 DEBUG : Data/file1.zip: Uploading segment 34078720/98548327 size 327680
2021/11/16 09:46:47 DEBUG : pacer: Reducing sleep to 18s
2021/11/16 09:46:47 DEBUG : Data/file2.zip: Uploading segment 37027840/503654298 size 327680
2021/11/16 09:47:18 DEBUG : pacer: Reducing sleep to 13.5s
2021/11/16 09:47:18 DEBUG : Data/file1.zip: Uploading segment 34406400/98548327 size 327680