Skip to content

rclone occasionally displays >100% completion #2924

Open

Description

@ealgase

What is the problem you are having with rclone?

Some files show a percentage of progress greater than 100%

What is your rclone version (output from rclone version)

v1.45

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

Linux, 64 Bit

Which cloud storage system are you using? (eg Google Drive)

Cache --> Crypt --> Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

Typical rclone move command for a large number of files

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

The relevant area:

2019/01/18 11:07:24 DEBUG : Cache remote Downloads:: put data at 'usbloadergx-master/data/images/drumsR.png'
2019/01/18 11:07:26 INFO  : 
Transferred:       51.556M / 52.165 MBytes, 99%, 108.677 kBytes/s, ETA 5s
Errors:                 0
Checks:               606 / 606, 100%
Transferred:          606 / 743, 82%
Elapsed time:      8m5.7s
Transferring:
 *      usbloadergx-master/data/images/drums.png: 100% /6.553k, 6.596k/s, -
 *     usbloadergx-master/d…ges/dialogue_box.png: 101% /3.744k, 1.895k/s, -
 *     usbloadergx-master/d…ta/images/drumsR.png: 100% /6.950k, 6.994k/s, -
 *     usbloadergx-master/d…ue_box_startgame.png: 100% /15.463k, 15.501k/s, -

2019/01/18 11:07:26 DEBUG : Cache remote Downloads:: starting cleanup

I have no consistent way to reproduce but I've seen this issue multiple times.

Activity

  1. ncw commented on Jan 18, 2019

    @ncw
    Member

    Are there retries in your log can you see?

  2. ealgase commented on Jan 19, 2019

    @ealgase
    Author

    For that file, no.

  3. brenc commented on Jul 1, 2019

    @brenc

    I've been seeing this lately too. FreeBSD 12.0-RELEASE-p6. Backing up from local ZFS to crypt to B2. Command I'm using:

    rclone --filter '- .zfs/**' --progress --use-mmap --transfers=32 \
        --checkers=32 --links sync \
        /zroot/mount_being_backed_up b2e-mount-being-backed-up:
    

    Crypt is set to not encrypt files/dirs. Example output from a sync I have running right now:

     * mount_being_backed_up/file.zlib:120% /237, 0/s, -
     * mount_being_backed_up/file.zlib:111% /407, 0/s, -
     * mount_being_backed_up/file.png:103% /1.223k, 648/s, -
    
  4. added this to the Known Problem milestone on Jul 1, 2019
  5. ncw commented on Jul 1, 2019

    @ncw
    Member

    I have seen this too very occasionally. I haven't been able to reproduce it reliably,nor figure out what is the problem!

    Can you reproduce it reliably?

  6. brenc commented on Jul 1, 2019

    @brenc

    Yep, reliably happens with every backup. Random thought: could this at all be related to the fact that I'm using ZFS with compression enabled?

  7. trapexit commented on Jul 1, 2019

    @trapexit

    I see it with an encrypted gdrive target regularly.

  8. ncw commented on Jul 1, 2019

    @ncw
    Member

    Yep, reliably happens with every backup. Random thought: could this at all be related to the fact that I'm using ZFS with compression enabled?

    Probably not since that is invisible from the POSIX interface.

    I see it with an encrypted gdrive target regularly.

    I think all the reports have been with crypt. I wonder if there is something up there. Crypt does expand files slightly... A small file (< 64k) will have 48 bytes of overhead and all the reports above have been for small files.

    • mount_being_backed_up/file.zlib:120% /237, 0/s, -

    (237+48)/237*100 = 120.2% ✓

    • mount_being_backed_up/file.zlib:111% /407, 0/s, -

    (407+48)/407*100 = 111.8% ✓

    • mount_being_backed_up/file.png:103% /1.223k, 64

    (1.223*1024.+48)/(1.223*1024)*100. = 103.8% ✓

    So looks like we have a winner!

    That must mean that the thing counting the transfer is counting encrypted bytes, but that is being compared to unencrypted bytes.

    I'm not quite sure how that is happening though.

    Does that make sense?

  9. ealgase commented on Jul 1, 2019

    @ealgase
    Author

    Yes, that does make sense! What a weird issue.

  10. ncw commented on Jul 1, 2019

    @ncw
    Member

    I'm pretty sure that this is caused by this code

    https://github.com/ncw/rclone/blob/a6dca4c13fbccd0fa1bbf3c61da879b74ed63dcd/backend/crypt/cipher.go#L704-L712

    Which is putting the accounting on the encrypted stream.

    It is done like that to avoid the accounting showing the initial read into the internal buffer as a transfer. Instead the accounting waits until it is transferred out of the internal buffer.

    So I could stop doing that, but that would have the effect of making it appear the first 64k of transfer was instant.

    The other thing would be to fiddle the accounting somehow and offset it by 48 bytes.

  11. ealgase commented on Jul 1, 2019

    @ealgase
    Author

    Hmm, I think offsetting it by 48 bytes would be the best solution.

  12. ncw commented on Jul 4, 2019

    @ncw
    Member

    I've just realised that the b2 backend likely has this problem too because it adds 16 bytes of checksum on the end of the stream.

    If all we are talking about is 48 or 16 bytes, I'm kind of inclined just never to report > 100% rather than go to a lot of effort fixing things up.

    What think?

  13. ealgase commented on Jul 4, 2019

    @ealgase
    Author

    That's probably a reasonable fix, as long as this isn't going to be a bigger problem in the future.

  14. brenc commented on Jul 4, 2019

    @brenc

    Seems reasonable to me.

  15. 2 remaining items

  16. Saviq commented on Oct 9, 2019

    @Saviq

    Oh I should add, when this happens, it always happens with the same file, 100% reproducible. So may very well be a Google Drive bug, but rclone should probably deal with it better?

  17. ncw commented on Oct 18, 2019

    @ncw
    Member

    The revamp of the stats system means that on retries stats count > 100% which isn't ideal but at leas it shows you how much data got transferred!

  18. LovingMelody commented on Oct 25, 2019

    @LovingMelody

    I have been having this issue with files that are not using crypt, just files sent via btrfs to b2. Not all files that exceed 100% are on the list of retried files.

  19. catdevnull commented on Aug 15, 2023

    @catdevnull

    I'm getting 445% on one file :) local->Backblaze B2

  20. Barre commented on Nov 20, 2024

    @Barre

    I am seeing the same with s3 => azure blob

     * path/object1:133% /6.459Gi, 7.122Mi/s, -
     * path/object2:193% /4.457Gi, 7.793Mi/s, -
     * path/object3:160% /5.293Gi, 7.634Mi/s, -
     * path/object4:143% /5.953Gi, 7.126Mi/s, -
     * path/object5:148% /5.697Gi, 7.651Mi/s, -
     * path/object6:154% /5.505Gi, 7.267Mi/s, -
     * path/object7:160% /5.197Gi, 7.366Mi/s, -
     * path/object8:163% /5.109Gi, 7.390Mi/s, -
     * path/object9:166% /4.910Gi, 7.759Mi/s, -
     * path/object10:175% /4.641Gi, 7.914Mi/s, -
    
  21. ShockDeveloper commented on Nov 24, 2024

    @ShockDeveloper

    I have that issue too! Worked fine using the sync/http for lots of files and then it "stalls" and presents the file progress as > 100% and just continues to rise the percentage forever until I shut down the application with no end in sight.

    I have spent many hours on this and tried all the suggestions I could find online and ChatGPT but it still stalls.

  22. Barre commented on Nov 24, 2024

    @Barre

    I have that issue too! Worked fine using the sync/http for lots of files and then it "stalls" and presents the file progress as > 100% and just continues to rise the percentage forever until I shut down the application with no end in sight.

    I have spent many hours on this and tried all the suggestions I could find online and ChatGPT but it still stalls.

    Is it going past the actual size of the file in your case?

  23. ShockDeveloper commented on Nov 24, 2024

    @ShockDeveloper

    I have that issue too! Worked fine using the sync/http for lots of files and then it "stalls" and presents the file progress as > 100% and just continues to rise the percentage forever until I shut down the application with no end in sight.
    I have spent many hours on this and tried all the suggestions I could find online and ChatGPT but it still stalls.

    Is it going past the actual size of the file in your case?

    I haven't checked that. Since RClone never completed the file in terms of 100% percentage I considered the file corrupted and started to look for solutions on what could be wrong.

    It's not consistent in my case, which means that many files can be downloaded like they should and then all of a sudden I have these spikes that never completes the file in percentage.

    I have played around with encoding, retries/back off policies and nothing has worked. I can see the main developer has looked into various things but I don't think there is a final conclusion.

    It seemed very cool at first, but now I'm not the biggest fan. I needed it for it's powerful features of downloading files from a webpage, and if it already fails this test I'm not going to advocate for any serious solution depending on it.

  24. Barre commented on Nov 24, 2024

    @Barre

    I have that issue too! Worked fine using the sync/http for lots of files and then it "stalls" and presents the file progress as > 100% and just continues to rise the percentage forever until I shut down the application with no end in sight.

    I have spent many hours on this and tried all the suggestions I could find online and ChatGPT but it still stalls.

    Is it going past the actual size of the file in your case?

    I haven't checked that. Since RClone never completed the file in terms of 100% percentage I considered the file corrupted and started to look for solutions on what could be wrong.

    It's not consistent in my case, which means that many files can be downloaded like they should and then all of a sudden I have these spikes that never completes the file in percentage.

    I have played around with encoding, retries/back off policies and nothing has worked. I can see the main developer has looked into various things but I don't think there is a final conclusion.

    It seemed very cool at first, but now I'm not the biggest fan. I needed it for it's powerful features of downloading files from a webpage, and if it already fails this test I'm not going to advocate for any serious solution depending on it.

    FYI, from my limited testing, it seems like the files are actually properly uploaded in the end (sum matches), but I agree, that's a little scary.

  25. ShockDeveloper commented on Nov 24, 2024

    @ShockDeveloper

    I have that issue too! Worked fine using the sync/http for lots of files and then it "stalls" and presents the file progress as > 100% and just continues to rise the percentage forever until I shut down the application with no end in sight.

    I have spent many hours on this and tried all the suggestions I could find online and ChatGPT but it still stalls.

    Is it going past the actual size of the file in your case?

    I haven't checked that. Since RClone never completed the file in terms of 100% percentage I considered the file corrupted and started to look for solutions on what could be wrong.
    It's not consistent in my case, which means that many files can be downloaded like they should and then all of a sudden I have these spikes that never completes the file in percentage.
    I have played around with encoding, retries/back off policies and nothing has worked. I can see the main developer has looked into various things but I don't think there is a final conclusion.
    It seemed very cool at first, but now I'm not the biggest fan. I needed it for it's powerful features of downloading files from a webpage, and if it already fails this test I'm not going to advocate for any serious solution depending on it.

    FYI, from my limited testing, it seems like the files are actually properly uploaded in the end (sum matches), but I agree, that's a little scary.

    Hmmm... I found out something interesting (it might not be your same issue) while I was looking through the log file with debugging enabled and based on some searches on Google I found out, that there is an issue somewhere when files are getting bigger and split up in threaded chunks.

    I added the following parameter:
    --multi-thread-streams 0

    And RClone actually downloaded those files that failed and stopped like it should after 100% of the file was downloaded.

  26. Barre commented on Nov 24, 2024

    @Barre

    I have that issue too! Worked fine using the sync/http for lots of files and then it "stalls" and presents the file progress as > 100% and just continues to rise the percentage forever until I shut down the application with no end in sight.

    I have spent many hours on this and tried all the suggestions I could find online and ChatGPT but it still stalls.

    Is it going past the actual size of the file in your case?

    I haven't checked that. Since RClone never completed the file in terms of 100% percentage I considered the file corrupted and started to look for solutions on what could be wrong.
    It's not consistent in my case, which means that many files can be downloaded like they should and then all of a sudden I have these spikes that never completes the file in percentage.
    I have played around with encoding, retries/back off policies and nothing has worked. I can see the main developer has looked into various things but I don't think there is a final conclusion.
    It seemed very cool at first, but now I'm not the biggest fan. I needed it for it's powerful features of downloading files from a webpage, and if it already fails this test I'm not going to advocate for any serious solution depending on it.

    FYI, from my limited testing, it seems like the files are actually properly uploaded in the end (sum matches), but I agree, that's a little scary.

    Hmmm... I found out something interesting (it might not be your same issue) while I was looking through the log file with debugging enabled and based on some searches on Google I found out, that there is an issue somewhere when files are getting bigger and split up in threaded chunks.

    I added the following parameter: --multi-thread-streams 0

    And RClone actually downloaded those files that failed and stopped like it should after 100% of the file was downloaded.

    Yeah so this may be an other, separate issue as even though my files are going past 100%, they are not failing in the end and end up properly uploaded.

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