Skip to content

rclone cryptcheck Not Retrying #1134

Open

Description

@Jdogzz

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 -vv flag (eg output from rclone -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

  1. ncw commented on Feb 15, 2017

    @ncw
    Member

    cryptcheck does --low-level retries, but not --retries at the moment.

    I'll make it do retries too.

  2. added this to the v1.36 milestone on Feb 15, 2017
  3. Jdogzz commented on Feb 22, 2017

    @Jdogzz
    Author

    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).

  4. ncw commented on Feb 22, 2017

    @ncw
    Member

    @Jdogzz what error does it quit with?

  5. Jdogzz commented on Feb 22, 2017

    @Jdogzz
    Author

    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, rateLimitExceeded

  6. ncw commented on Feb 22, 2017

    @ncw
    Member

    @Jdogzz Try increasing --low-level-retries. You might have got yourself a ban though. Also look at the log with -vv just before it exits - hopefully you see the low level retries.

  7. modified the milestones: v1.36, v1.37 on Mar 1, 2017
  8. modified the milestones: v1.37, v1.38 on Jul 19, 2017
  9. 1 remaining item

  10. added this to the v1.39 milestone on Sep 30, 2017
  11. changed the title [-]New Cryptcheck Command in beta Not Retrying[/-] [+]rclone cryptcheck Not Retrying[/+] on Jan 11, 2018
  12. ncw commented on Jan 11, 2018

    @ncw
    Member

    The way this should be done is to alter checkFn in fs/operations.go to return an error if reading any of the hashes failed. Its caller checkIdentical should they retry like Copy does in the same file, checking the returned error to see if it is retriable. It should try retries times.

  13. modified the milestones: v1.39, v1.40 on Jan 11, 2018
  14. modified the milestones: v1.40, v1.41 on Mar 19, 2018
  15. modified the milestones: v1.41, v1.42 on Apr 28, 2018
  16. modified the milestones: v1.42, v1.43 on Jun 17, 2018
  17. modified the milestones: v1.43, Soon on Sep 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions