What is the problem you are having with rclone?
I created a Task Scheduler to open a .bat file and run at 02:00 AM:
cd "C:\Users\Administrator\Desktop\Rclone 1.57\"
start rclone sync X gdrivecrypt:Y --fast-list --check-first --checkers=10 --order-by modtime,ascending --bwlimit 2M --log-file=HD5.txt --log-level DEBUG --max-duration=6h -P --retries-sleep=30m --cutoff-mode=soft
At 08:00 AM rclone should cutoff in soft mode currently transfers and after that just stop (waits the currently transfers to finish and then just stop). Also, Im using --retries-sleep=30m because sometimes my internet disconnect and in case it happens I want rclone to retry the entire sync.
But what is happening is that rclone is getting "context deadline exceeded" as a ERROR during the currently transfers, then, after 30min (the sleep time of retries) since there was a ERROR, rclone start again the sync, with a new deadline of 6h.
I want --retries to stop seeing --max-duration + --cutoffomode=soft as a ERROR, to stop this endless loop of ERROR + new deadline.
Many Thanks!
What is your rclone version (output from rclone version
)
rclone v1.57.0
- os/version: Microsoft Windows Server 2019 Standard 1809 (64 bit)
- os/kernel: 10.0.17763.2300 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.17.2
- go/linking: dynamic
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone sync X gdrivecrypt:Y --fast-list --check-first --checkers=10 --order-by modtime,ascending --bwlimit 2M --log-file=HD5.txt --log-level DEBUG --max-duration=6h -P --retries-sleep=30m --cutoff-mode=soft
A log from the command with the -vv
flag
2021/11/26 08:00:04 ERROR : Filmes/Filmes Internacionais/The Conjuring 2 (2016)/The Conjuring 2 1080p BluRay DD5.1 x264-HDMaNiAcS.mkv: Failed to copy: Post "https://www.googleapis.com/upload/drive/v3/files?alt=json&fields=id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CexplicitlyTrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%2CshortcutDetails%2CexportLinks&supportsAllDrives=true&uploadType=resumable&upload_id=ADPycduNbDTL0pK5-7QIsGSlTYmdcxvdFsM9voM0s5mfqMHlFknFdRfH2_k52Dc6L6jnh8QkhhlRtVHqvfOpwB76zws": context deadline exceeded
2021/11/26 08:00:04 ERROR : Filmes/Filmes Internacionais/Batman v Superman Dawn of Justice (2016)/Batman.v.Superman.Dawn.of.Justice.2016.Extended.1080p.BluRay.DD5.1.x264-HDMaNiAcS.mkv: Failed to copy: Post "https://www.googleapis.com/upload/drive/v3/files?alt=json&fields=id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CexplicitlyTrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%2CshortcutDetails%2CexportLinks&supportsAllDrives=true&uploadType=resumable&upload_id=ADPycdvtR7FZ2WEXk0VA6DZFGb7xW_FYS_NyP2WT-sRsoCUraQKH8A1OS9Idqhg21TG3F8L9VWc5NdDteRk6H0goQdQ": context deadline exceeded
2021/11/26 08:00:04 ERROR : Filmes/Filmes Internacionais/Equals (2015)/Equals.2015.1080p.BluRay.DTS.x264-HDMaNiAcS.mkv: Failed to copy: Post "https://www.googleapis.com/upload/drive/v3/files?alt=json&fields=id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CexplicitlyTrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%2CshortcutDetails%2CexportLinks&supportsAllDrives=true&uploadType=resumable&upload_id=ADPycdv57aYwPmo6eJmtFE7jELSJ5JCYAncwidh79n_vlTEDTWMMIgm4iLZ52ordZNO56Mcg5CsTxsE4MadK3XCfz0g": context deadline exceeded
2021/11/26 08:00:04 ERROR : Filmes/Filmes Internacionais/Captain America Civil War (2016)/Captain.America.Civil.War.2016.1080p.BluRay.DTS.x264-HDMaNiAcS.mkv: Failed to copy: Post "https://www.googleapis.com/upload/drive/v3/files?alt=json&fields=id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CexplicitlyTrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%2CshortcutDetails%2CexportLinks&supportsAllDrives=true&uploadType=resumable&upload_id=ADPycdtvLclPI6OD5MnCWGe4yuWvsBx6ODV4kFgvSabqXnNH2KVqKx5uttJ-ohBWADC8Xqua6ebQXWeznhuBY5_vBkM": context deadline exceeded
2021/11/26 08:00:04 ERROR : Encrypted drive 'gdrivecrypt:HD5': not deleting files as there were IO errors
2021/11/26 08:00:04 ERROR : Encrypted drive 'gdrivecrypt:HD5': not deleting directories as there were IO errors
2021/11/26 08:00:04 ERROR : Attempt 1/3 failed with 4 errors and: Post "https://www.googleapis.com/upload/drive/v3/files?alt=json&fields=id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CexplicitlyTrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%2CshortcutDetails%2CexportLinks&supportsAllDrives=true&uploadType=resumable&upload_id=ADPycdtvLclPI6OD5MnCWGe4yuWvsBx6ODV4kFgvSabqXnNH2KVqKx5uttJ-ohBWADC8Xqua6ebQXWeznhuBY5_vBkM": context deadline exceeded
2021/11/26 08:30:04 INFO : Encrypted drive 'gdrivecrypt:HD5': Running all checks before starting transfers
2021/11/26 08:30:04 INFO : Encrypted drive 'gdrivecrypt:HD5': Transfer session deadline: 2021/11/26 14:30:04
2021/11/26 08:30:05 DEBUG : Creating backend with remote "gdrive:XXXXX"