Skip to content

onedrive: doc files have different download sizes to the size in listings #2036

Closed

Description

@7aklhz

Please answer these questions before submitting your issue. Thanks!

What version ?

rclone v1.39

  • os/arch: linux/arm
  • go version: go1.9.2

I'm using a raspberry pi 2

What did you do?

I am using rclone sync between my personal OneDrive folder and Backblaze bucket

What did you expect to see?

All files synced

What did you see instead?

I see 266 Errors, mostly saying:
"Failed to copy: Post https://xxxxxx.backblaze.com/b2api/v1/b2_upload_file/xxxxxxxxxxxx: net/http: HTTP/1.x transport connection broken: http: ContentLength=xxxx with Body length xxxxx"

Please advise.

Konrad

Activity

  1. TJ82 commented on Jan 31, 2018

    @TJ82

    I have a similar issue myself with v1.38 on FreeBSD (FreeNAS) which starts to come into play when uploading files larger than 200MB or so. For those files, the automatic retries usually do the trick, but I ended up dividing a 7GB 7zip archive into 256MB parts because uploading a file of 7GB just couldn't be done because of this.

    What I suspect is that the longer a connection is open, the higher the probability that it will be prematurely terminated, so I think that it is a matter of tuning settings so that the connection duration remains short. What I already did was figure out the lowest amount of concurrent transfers that can saturate my upload (in my case: about 12 for 4Mbit) with --transfers so that each individual transfer is going at its maximum possible speed.

    However, this turned out not to solve the problem for me. I have read that the default value for --b2-chunk-size is 96MB and I want to try if reducing that number fixes things. But I am not yet certain if it will, as I am not sure if my assumption is correct that reducing the transfer time per chunk will help.

  2. ncw commented on Jan 31, 2018

    @ncw
    Member

    @KonradHolubek

    These look like either networking errors or problems at b2.

    What you should see is that rclone retries the transfers and it all ends up OK in the end - look at the final summary (if running with -v).

  3. TJ82 commented on Jan 31, 2018

    @TJ82

    @ncw

    Any thoughts on my ideas for tuning the chunk size? Or should I start a separate thread for that? For large files I end up with 3 failed retries after which rclone gives up.

  4. ncw commented on Jan 31, 2018

    @ncw
    Member

    @TJ82 and @KonradHolubek what would be most helpful is if you could attach complete logs made with -vv of the problems you are having - thanks

  5. 7aklhz commented on Feb 1, 2018

    @7aklhz
    Author

    @ncw Thanks for getting back to me. I ran rclone sync with -vv. I can't post everything here but in summary I get things like :
    pacer: Rate limited, increasing sleep to 80ms
    pacer: low level retry 1/1
    low level retry 3/10
    net/http: HTTP/1.x transport connection broken:
    pacer: Reducing sleep to 40ms
    pacer: Reducing sleep to 20ms

    ... for each of the 200 (+) files.

    PS : for your information, I tried to upload one of the files directly via the web UI and it works.

  6. ncw commented on Feb 3, 2018

    @ncw
    Member

    @KonradHolubek I really need to see a complete log if possible. Any chance you could email it to me at [email protected] with the subject "rclone issue 2036" ?

  7. ncw commented on Feb 4, 2018

    @ncw
    Member

    @TJ82 Thank you very much for your log it was very helpful.

    I can see the problem, it is that the "transport connection broken" error is not being considered an error worth retrying.

    However when I try to replicate this, the error is retried perfectly :-(

    So I've made a beta which has a bit more logging in - can you retry and send me any log lines with "Error sending chunk" in. They'll look something like this...

    2018/02/04 11:19:29 DEBUG : 200M: Error sending chunk 1 (retry=true): c001_v0001101_t0003 is too busy (503 service_unavailable): &api.Error{Status:503, Code:"service_unavailable", Message:"c001_v0001101_t0003 is too busy"}
    

    Here is the beta for you to try

    https://pub.rclone.org/v1.39-121-gbc21e05c-b2-transport-2036%CE%B2/

    Thanks

  8. added this to the v1.40 milestone on Feb 4, 2018
  9. changed the title [-]net/http: HTTP/1.x transport connection broken[/-] [+]"net/http: HTTP/1.x transport connection broken" errors not being retried properly[/+] on Feb 4, 2018
  10. TJ82 commented on Feb 4, 2018

    @TJ82

    @ncw Sure, but it may take a while before I can make the time for it, I hope I can make it the next weekend.

  11. ncw commented on Feb 10, 2018

    @ncw
    Member

    @TJ82 I'm looking forward to seeing that log if you have time for it this weekend :-)

  12. ncw commented on Feb 21, 2018

    @ncw
    Member

    Thanks for the logs @KonradHolubek . I can see that part of the problem is the onedrive size bug... This has been worked around in 2f63a9f which is in the latest beta.

    I've also put some debugging to find the remaining issue in, so I'd appreciate another run of logs with the below.

    https://beta.rclone.org/v1.39-171-g1383df4f/ (uploaded in 15-30 mins)

    This should be significantly better but won't fix all the issues!

    Thanks

  13. 49 remaining items

  14. added this to the Known Problem milestone on Mar 16, 2021
  15. RyanQuey commented on Mar 17, 2021

    @RyanQuey

    @ivandeex I can definitely see the similarity of these issues, but would this affect me even though I don't use Sharepoint?

    I'm just using OneDrive personal (read from OneDrive personal account, write to backblaze b2)

  16. RyanQuey commented on Mar 17, 2021

    @RyanQuey

    By the way, for my personal problem I don't mind going ahead and converting my last 20 files into .docx files, which I assume will solve my problem. If that's the recommended solution, I can go along with that and let this get closed. I just haven't touched them case it is helpful for debugging this issue.

  17. ivandeex commented on Mar 17, 2021

    @ivandeex
    Member

    @ivandeex I can definitely see the similarity of these issues, but would this affect me even though I don't use Sharepoint?

    You use OneDrive which is internally very similar, just provided as a cloud service by subscription in package with Office365.

    just haven't touched them case it is helpful for debugging this issue.

    We have it reported several times on github and on the forum so I think we have enough log snippets to add precise problem symptoms to the rclone docs. Given Microsoft disregard of the problem it will stay with us for some time, I presume.

  18. removed their assignment
    on Dec 14, 2021
  19. ricky0829 commented on Mar 11, 2022

    @ricky0829

    Apparently you are hitting a Microsoft "feature" in Sharepoint and Onedrive (which is in fact Sharepoint in the cloud) that was reported so many times, for example:

    It has a semi-official workaround:

    Sharepoint modifies your uploaded Office files. Please use --backup-dir, --ignore-checksum, and --ignore-size at the same time and try again!

    We had reported it to Microsoft two years ago, actively ignored by them until now -> OneDrive/onedrive-api-docs#1068

    P.S. This "feature" is reported so frequently that I am going to submit a dedicated documentation request!

    Hi @ivandeex
    I'm using TrueNAS based on FreeBSD, and its Cloud Sync Tasks is based on Rclone. I got the same error like this:

    2022/03/11 11:14:40 Failed to sync with 43 errors: last error was: corrupted on transfer: sizes differ 1454900 vs 1455109

    I checked verison:
    image

    And could you please tell me how to add --backup-dir, --ignore-checksum, and --ignore-size agruments in TrueNAS Cloud Sync Tasks? Here is its setings:
    image
    I guess Post-script?
    Thanks a lot!

  20. WarpedPixel commented on Mar 15, 2022

    @WarpedPixel
    Contributor

    I also use TrueNAS and I have none of these options in my cloud sync tasks. Once I converted the files that caused these problems, the default options you have worked for me without any of the special options.

  21. ricky0829 commented on Mar 15, 2022

    @ricky0829

    I also use TrueNAS and I have none of these options in my cloud sync tasks. Once I converted the files that caused these problems, the default options you have worked for me without any of the special options.

    Thanks for your sharing. For me, problems occured with office files and html files only.

  22. ncw commented on Oct 15, 2026

    @ncw
    Member

    The OneDrive docs now explain why Office files have different sizes and how to work around it with --ignore-checksum --ignore-size. Closing, as the remaining cause is on Microsoft's side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions