Repository navigation
Description
Problem: I have an encrypted remote nestled into my Google Drive folder. I am cryptchecking from one unencrypted folder in Google Drive to the encrypted directory by the same name in the encrypted folder. Sometimes files will fail to check (500 and 404 errors are the usual results) and when I run the check again on a smaller folder within my directory, it will yield no errors and say there are 0 different files. I have retries set to 5 (I was guessing maybe I had to be specific since this is in the beta), but the verbose log shows no retrying occurs like I seem to recall happening when copying a file, for example.
What is your rclone version (eg output from
rclone -V)
rclone v1.35-95-g5419292 beta
Which OS you are using and how many bits (eg Windows 7, 64 bit)
CentOS 64 bit
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 cryptcheck "firstremote:My Stuff" "secondremote:My Stuff" --retries 5 --verbose
A log from the command with the
-vvflag (eg output fromrclone -vv copy /tmp remote:tmp)
Here's an example of one of my more recent commands:
INFO: Encrypted Google drive root 'gibberish': Modify window is 1 ms
INFO: Using MD5 for hash comparisons
INFO: Google drive root 'plaintext': Building file list
INFO: Encrypted Google drive root 'gibberish': Building file list
NOTICE: myfile.file: Duplicate file detected
NOTICE: Encrypted Google drive root 'gibberish': 0 files not in Google drive root 'plaintext'
NOTICE: Google drive root 'gibberish': 0 files not in Encrypted Google drive root 'gibberish'
INFO: Encrypted Google drive root 'gibberish': Waiting for checks to finish
ERROR: myfile2.file: Error computing hash: failed to read nonce: bad response: 500: 500 Internal Server Error
NOTICE: Encrypted Google drive root 'gibberish': 1 differences found
Failed to cryptcheck: 1 differences found
Activity
ncw commentedon Feb 15, 2017
cryptcheck does --low-level retries, but not --retries at the moment.
I'll make it do retries too.
Jdogzz commentedon Feb 22, 2017
Got it.
On a probably related side note, cryptcheck currently also seems to quit whenever the rate limit is exceeded (I have brought the number of checkers down to 1, and it will get through a good chunk of my folders of small files before quitting altogether, evidently due to that error).
ncw commentedon Feb 22, 2017
@Jdogzz what error does it quit with?
Jdogzz commentedon Feb 22, 2017
The last line of the log in verbose mode is
Failed to cryptcheck: error listing: Google drive root 'Plaintextfolder': couldn't list directory: googleapi: Error 403: Rate Limit Exceeded, rateLimitExceededncw commentedon Feb 22, 2017
@Jdogzz Try increasing
--low-level-retries. You might have got yourself a ban though. Also look at the log with-vvjust before it exits - hopefully you see the low level retries.1 remaining item
[-]New Cryptcheck Command in beta Not Retrying[/-][+]rclone cryptcheck Not Retrying[/+]ncw commentedon Jan 11, 2018
The way this should be done is to alter
checkFnin fs/operations.go to return an error if reading any of the hashes failed. Its callercheckIdenticalshould they retry likeCopydoes in the same file, checking the returned error to see if it is retriable. It should try retries times.