You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is your current rclone version (output from rclone version)?
rclone v1.53.1
- os/arch: linux/amd64
- go version: go1.15
What problem are you are trying to solve?
I'm running rclone through ansible and, due to the way ansible works, I can only see the resulting stdout once the command finishes. Sometimes all the files being sync'd have wrong permissions and are therefore skipped due to a permission denied error. But I can only find out about it after the whole command is finished, which can take a long time.
Example:
2020/10/11 00:22:36 ERROR : restic: failed to open directory "restic": open /mnt/caixote/restic: permission denied
2020/10/11 00:22:36 ERROR : 1.txt: Failed to calculate src hash: hash: failed to open: open /mnt/caixote/1.txt: permission denied
I would like that rclone could be configured to abort after the first error (permission denied or other).
How do you think rclone should be changed to solve that?
Introducing flag --max-errors-before-abort with a number argument. And keep an error counter which would abort after reaching the provided number.
Activity
ncw commentedon Oct 13, 2020
I think
--max-errorswould fit in well with the--max-transferand--max-durationflags.It could also obey the hard/soft cutoff.
MarcosFelipeBC commentedon Oct 14, 2020
I would like to try to solve this issue! Could it be valid to hacktoberfest?
darthShadow commentedon Oct 14, 2020
Yeah, that shouldn't be a problem. Ping me when you have submitted the PR so I can mark it for hacktoberfest.
MarcosFelipeBC commentedon Oct 19, 2020
--max-errorsis going to be anrclone syncflag or a global flag?ncw commentedon Oct 22, 2020
It should be a global flag I think.
MarcosFelipeBC commentedon Oct 24, 2020
All right! i think that maybe I wouldn't be able to work on this as soon as I wanted, so if someone else wants to take this no problem!
But if this issue stay open longer, maybe I could take this later
ncw commentedon Nov 25, 2026
I've merged @hdsfat fix for this to master now which means it will be in the latest beta in 15-30 minutes and released in v1.77.0
fs: add --max-errors flag - fixes rclone#4670