Skip to content

dropbox: Unable to decrypt returned paths from changeNotify #5165

Closed

Description

@dennisoderwald

What is the problem you are having with rclone?

As soon as many files are tried to be read at the same time, the "too_many_requests/..: Too many requests or write operations. Trying again in 300 seconds." error occurs. From that point on, no further log entries appear and the mount seems to have hung up. Neither a timeout nor any other attribute helps. Only a restart of the service solves the problem.

An attempt at 'df -h' or an 'ls' freezes completely.

With my Google Drive mount, the problem does not occur. I get i/o errors sometimes but it does not freeze.

What is your rclone version (output from rclone version)

rclone v1.54.1

Which OS you are using and how many bits (e.g. Windows 7, 64 bit)

Ubuntu 18.04

Which cloud storage system are you using? (e.g. Google Drive)

Dropbox

The command you were trying to run (e.g. rclone copy /tmp remote:tmp)

/usr/bin/rclone mount \
  --user-agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36' \
  --config=/home/admin/.config/rclone/rclone.conf \
  --allow-other \
  --allow-non-empty \
  --rc \
  --rc-addr=localhost:5572 \
  --fast-list \
  --vfs-read-chunk-size=64M \
  --vfs-read-chunk-size-limit=2048M \
  --buffer-size=64M \
  --dir-cache-time=1h \
  --timeout=1m \
  --attr-timeout=10m \
  --dropbox-chunk-size=64M \
  --umask=002 \
  --syslog \
  -vvv \
  dropbox: /mnt/remote

Activity

  1. darthShadow commented on Mar 24, 2021

    @darthShadow
    Member

    Can you try the latest beta and see if you can reproduce the issue with it? If so, please paste the log from that.

  2. dennisoderwald commented on Mar 24, 2021

    @dennisoderwald
    Author

    @darthShadow Thank you for your quick support. I'll test it out and get back to you.

  3. dennisoderwald commented on Mar 24, 2021

    @dennisoderwald
    Author

    I am now testing with the following version:

    rclone v1.55.0-beta.5334.d6870473a
    - os/type: linux
    - os/arch: amd64
    - go/version: go1.16.2
    - go/linking: static
    - go/tags: cmount
    

    A message that I did not notice before or did not appear where I am at a loss right now. There are just increased problems that occur with individual folders:

    2021/03/24 10:53:53 NOTICE: Encrypted drive 'dropbox:': ChangeNotify was unable to decrypt "1l77gk0gcijgrei4hlvr7ugoc/569vnmue4q5nvl9s5rhu8h2bt8/u8kc3jgspqf9sgh1ndi38nopmf9n5cdnpmbugv8k9sr8b5squlnt85l00sah3gp239oear3khr8je": illegal base32 data at input byte 25
    2021/03/24 10:53:53 NOTICE: Encrypted drive 'dropbox:': ChangeNotify was unable to decrypt "1l77gk0gcijgrei4hlvr7ugoc/569vnmue4q5nvl9s5rhu8h2bt8/u8kc3jgspqf9sgh1ndi38nopmf9n5cdnpmbugv8k9sr8b5squlnt85l00sah3gp239oear3khr8je/f68s6an5n2fmffai81oqumadhfcmb8qj7omahnae53u3l9sm8uut9u2pg8q525q3p1o0n34g25pgu": illegal base32 data at input byte 25
    

    Otherwise, it runs just felt more stable... but I continue to observe it...

  4. darthShadow commented on Mar 24, 2021

    @darthShadow
    Member

    Can you please add your redacted config?

  5. darthShadow commented on Mar 24, 2021

    @darthShadow
    Member

    @wolveix Can you take a look at this? I am guessing the entryPath manipulation we are doing in the changeNotifyRunner function in the dropbox remote is breaking the crypt decryption logic.

  6. changed the title [-]rclone mount with Dropbox (too many requests error, mount freeze)[/-] [+]dropbox: Unable to decrypt returned paths from changeNotify[/+] on Mar 24, 2021
  7. robtme commented on Mar 24, 2021

    @robtme
    Contributor

    I'll look into this shortly.

  8. dennisoderwald commented on Mar 24, 2021

    @dennisoderwald
    Author

    Can you please add your redacted config?

    [dropbox_unencrypted]
    type = dropbox
    token = {"access_token":"XXX","token_type":"bearer","refresh_token":"XXX","expiry":"2021-03-24T14:47:11.666625156+01:00"}
    
    [dropbox]
    type = crypt
    remote = dropbox_unencrypted:Folder/Folder
    filename_encryption = standard
    directory_name_encryption = true
    password = XXX (62 length)
    password2 = XXX (62 length)
    
  9. dennisoderwald commented on Mar 25, 2021

    @dennisoderwald
    Author

    Do I understand this correctly: Everything is fine with my data, but polling is supported in the beta and here decryption does not work for data checked via polling?

  10. darthShadow commented on Mar 25, 2021

    @darthShadow
    Member

    Yes, you are correct.

  11. dennisoderwald commented on Mar 25, 2021

    @dennisoderwald
    Author

    Yes, you are correct.

    Okay, then I am reassured :) And look forward to @wolveix his fix.

  12. 21 remaining items

  13. ncw commented on Apr 19, 2021

    @ncw
    Member

    Damn, of course it was something simple. I'm unfamiliar with the differences between TrimLeft and TrimPrefix. I'll test out the fix shortly as I was able to reliably reproduce the issue in testing.

    I just had a quick scan through the code looking for places where the path name was manipulated and that leapt out at me! Or rather I thought - what does strings.TrimLeft - not used that before - do and looked up the docs for it.

  14. added a commit that references this issue on Apr 21, 2021
    e67ac64
  15. ncw commented on Apr 21, 2021

    @ncw
    Member

    I've merged this to master now which means it will be in the latest beta in 15-30 minutes and released in v1.56

    I'll also put it in v1.55.1

  16. added this to the v1.56 milestone on Apr 21, 2021
  17. jkristoph commented on Apr 21, 2021

    @jkristoph

    I'm seeing polling functioning perfectly for some files, where others are being omitted...

  18. ncw commented on Apr 22, 2021

    @ncw
    Member

    I'm seeing polling functioning perfectly for some files, where others are being omitted...

    Omitted as in not present in the poll? That is likely a different problem so can you make a new issue with instructions on how to reproduce?

  19. dennisoderwald commented on Apr 22, 2021

    @dennisoderwald
    Author

    @ncw Thanks a lot, the fix helped! Had you seen my comment (#5165 (comment)) regarding broken files or was it lost?

  20. ncw commented on Apr 25, 2021

    @ncw
    Member

    Thanks a lot, the fix helped!

    Great

    Had you seen my comment (#5165 (comment)) regarding broken files or was it lost?

    I'm not sure what the problem is here?

  21. dennisoderwald commented on Apr 25, 2021

    @dennisoderwald
    Author

    I'm not sure what the problem is here?

    @ncw Providers like Dropbox check the state of the file when uploading and if the file is corrupted, the following error is returned:

    2021-04-19 16:24:01 ERROR : 532.db: Failed to copy: upload failed: post "https://content.dropboxapi.com/2/files/upload_session/finish": unexpected EOF

    This will cause the file to be uploaded again with each execution until it finally fails with the error.

  22. ncw commented on Apr 25, 2021

    @ncw
    Member

    Providers like Dropbox check the state of the file when uploading and if the file is corrupted, the following error is returned:

    2021-04-19 16:24:01 ERROR : 532.db: Failed to copy: upload failed: post "https://content.dropboxapi.com/2/files/upload_session/finish": unexpected EOF

    This will cause the file to be uploaded again with each execution until it finally fails with the error.

    The above error might be caused by a local file that was shortened during the upload process or something like that.

    If you can make a reproduction for this, can you open a new issue with this in and we can look further.

    Thanks

  23. added a commit that references this issue on Jul 20, 2026
    be8c764
  24. added a commit that references this issue on Nov 21, 2026
    3f9f211
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

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions