What is the problem you are having with rclone?
Performing a sync operation with many small files (in my test it was around 10k files, for around 200MB total size, which is actually not that many) randomly causes rclone getting throttled with the pacer unpredictably selecting a huge sleep time that hangs the operation for several minutes. In the log below you'll notice the pacer first selecting a 5minutes sleep time, then very slowly decreasing it to an acceptable rate. In this scenario a synchronization can appear to be dead for up to 20 minutes (without going timeout). Killing the operation and restarting it right after can randomly resume the operation with acceptable transaction rate, or more often it will cause rclone to hang similarly. I also tried setting the user-agent to --user-agent "ISV|rclone.org|rclone/v1.56.2"
without improvements.
What is your expected behavior?
rclone should either behave so it will get throttled less or the pacer should not select these (nonsense?) huge sleep times.
What is your rclone version (output from rclone version
)
1.56.2
Which OS you are using and how many bits (eg Windows 7, 64 bit)
ubuntu 18.4.3 64bit
Which cloud storage system are you using? (eg Google Drive)
OneDrive for Business (Microsoft 365 Business Basic)
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone syn -vv "--exclude=cache/" "--exclude=backup/" /srv/vtiger/ onedriveitr:/BackupRUR/vtiger/
The rclone config contents with secrets removed.
[onedriveitr]
type = onedrive
token = [..]
drive_id = [...]
drive_type = business
A log from the command with the -vv
flag
2021-10-02 18:55:38 DEBUG : logs/migration.log: Unchanged skipping
2021-10-02 18:55:38 DEBUG : logs/platform.log: Size and modification time the same (differ by -80.409291ms, within tolerance 1s)
2021-10-02 18:55:38 DEBUG : logs/security.log: Size and modification time the same (differ by -76.409309ms, within tolerance 1s)
2021-10-02 18:55:38 DEBUG : logs/sqltime.log: Size and modification time the same (differ by -80.409291ms, within tolerance 1s)
2021-10-02 18:55:38 DEBUG : logs/.htaccess: Size and modification time the same (differ by 0s, within tolerance 1s)
2021-10-02 18:55:38 DEBUG : logs/platform.log: Unchanged skipping
2021-10-02 18:55:38 DEBUG : logs/security.log: Unchanged skipping
2021-10-02 18:55:38 DEBUG : logs/sqltime.log: Unchanged skipping
2021-10-02 18:55:38 DEBUG : logs/.htaccess: Unchanged skipping
2021-10-02 18:55:38 DEBUG : pacer: Reducing sleep to 18.3515625s
2021-10-02 18:55:38 DEBUG : languages/WSAPP.php: Size and modification time the same (differ by -156.786508ms, within tolerance 1s)
2021-10-02 18:55:38 DEBUG : languages/WSAPP.php: Unchanged skipping
2021-10-02 18:55:39 DEBUG : pacer: Reducing sleep to 13.763671875s
2021-10-02 18:55:39 DEBUG : pacer: Reducing sleep to 10.322753906s
2021-10-02 18:55:39 DEBUG : kcfinder/browse.php: Size and modification time the same (differ by 0s, within tolerance 1s)
2021-10-02 18:55:39 DEBUG : kcfinder/browse.php: Unchanged skipping
2021-10-02 18:55:39 DEBUG : kcfinder/css.php: Size and modification time the same (differ by 0s, within tolerance 1s)
2021-10-02 18:55:39 DEBUG : kcfinder/css.php: Unchanged skipping
2021-10-02 18:55:39 DEBUG : kcfinder/js_localize.php: Size and modification time the same (differ by 0s, within tolerance 1s)
2021-10-02 18:55:39 DEBUG : kcfinder/js_localize.php: Unchanged skipping
2021-10-02 18:55:39 DEBUG : kcfinder/config.php: Size and modification time the same (differ by 0s, within tolerance 1s)
2021-10-02 18:55:39 DEBUG : kcfinder/config.php: Unchanged skipping
2021-10-02 18:55:39 DEBUG : kcfinder/upload.php: Size and modification time the same (differ by 0s, within tolerance 1s)
2021-10-02 18:55:39 DEBUG : kcfinder/upload.php: Unchanged skipping
2021-10-02 18:55:39 DEBUG : pacer: Reducing sleep to 7.742065429s
2021-10-02 18:56:31 DEBUG : pacer: Reducing sleep to 5.806549071s
2021-10-02 18:56:38 DEBUG : pacer: Reducing sleep to 4.354911803s
2021-10-02 18:56:44 DEBUG : pacer: Reducing sleep to 3.266183852s
2021-10-02 18:56:48 DEBUG : Too many requests. Trying again in 322 seconds.
2021-10-02 18:56:48 DEBUG : pacer: low level retry 1/10 (error activityLimitReached: throttledRequest: The request has been throttled)
2021-10-02 18:56:48 DEBUG : pacer: Rate limited, increasing sleep to 5m22s
2021-10-02 18:56:52 DEBUG : pacer: Reducing sleep to 4m1.5s
2021-10-02 18:56:52 DEBUG : resources/app.js: Size and modification time the same (differ by -327.730187ms, within tolerance 1s)
2021-10-02 18:56:52 DEBUG : resources/app.js: Unchanged skipping
2021-10-02 18:56:52 DEBUG : resources/Connector.js: Size and modification time the same (differ by 0s, within tolerance 1s)
2021-10-02 18:56:52 DEBUG : resources/Connector.js: Unchanged skipping
2021-10-02 18:56:52 DEBUG : resources/helper.js: Size and modification time the same (differ by 0s, within tolerance 1s)
2021-10-02 18:56:52 DEBUG : resources/helper.js: Unchanged skipping
2021-10-02 18:56:52 DEBUG : resources/jquery.additions.js: Size and modification time the same (differ by 0s, within tolerance 1s)
2021-10-02 18:56:52 DEBUG : resources/jquery.additions.js: Unchanged skipping
2021-10-02 18:56:52 DEBUG : resources/styles.css: Size and modification time the same (differ by 0s, within tolerance 1s)
2021-10-02 18:56:52 DEBUG : resources/ProgressIndicator.js: Size and modification time the same (differ by 0s, within tolerance 1s)
2021-10-02 18:56:52 DEBUG : resources/ProgressIndicator.js: Unchanged skipping
2021-10-02 18:56:52 DEBUG : resources/styles.css: Unchanged skipping
2021-10-02 19:02:14 DEBUG : pacer: Reducing sleep to 3m1.125s
2021-10-02 19:06:15 DEBUG : pacer: Reducing sleep to 2m15.84375s
2021-10-02 19:09:16 DEBUG : pacer: Reducing sleep to 1m41.8828125s
2021-10-02 19:09:16 DEBUG : schema/DatabaseSchema.xml: Size and modification time the same (differ by -331.730158ms, within tolerance 1s)
2021-10-02 19:09:16 DEBUG : schema/DatabaseSchema.xml: Unchanged skipping
2021-10-02 19:11:32 DEBUG : pacer: Reducing sleep to 1m16.412109375s
2021-10-02 19:11:32 DEBUG : cron/language/phpmailer.lang-en.php: Size and modification time the same (differ by 0s, within tolerance 1s)
2021-10-02 19:11:32 DEBUG : cron/language/phpmailer.lang-en.php: Unchanged skipping
2021-10-02 19:13:14 DEBUG : pacer: Reducing sleep to 57.309082031s
2021-10-02 19:13:14 DEBUG : includes/exceptions/AppException.php: Size and modification time the same (differ by 0s, within tolerance 1s)
2021-10-02 19:13:14 DEBUG : includes/exceptions/AppException.php: Unchanged skipping
2021-10-02 19:14:31 DEBUG : pacer: Reducing sleep to 42.981811523s
2021-10-02 19:14:31 DEBUG : include/database/PearDatabase.php: Size and modification time the same (differ by -601.793556ms, within tolerance 1s)
2021-10-02 19:14:31 DEBUG : include/database/PearDatabase.php: Unchanged skipping
2021-10-02 19:14:31 DEBUG : include/database/Postgres8.php: Size and modification time the same (differ by 0s, within tolerance 1s)
2021-10-02 19:14:31 DEBUG : include/database/Postgres8.php: Unchanged skipping
2021-10-02 19:15:28 DEBUG : pacer: Reducing sleep to 32.236358642s
Transferred: 0 / 0 Byte, -, 0 Byte/s, ETA -
Checks: 95 / 95, 100%
Elapsed time: 20m26.3s