You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
onedrive: doc files have different download sizes to the size in listings #2036
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.
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.
@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.
@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" ?
@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"}
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
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.
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.
@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.
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:
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:
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:
I guess Post-script?
Thanks a lot!
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.
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.
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.
Activity
TJ82 commentedon Jan 31, 2018
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.
ncw commentedon Jan 31, 2018
@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).TJ82 commentedon Jan 31, 2018
@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.
ncw commentedon Jan 31, 2018
@TJ82 and @KonradHolubek what would be most helpful is if you could attach complete logs made with
-vvof the problems you are having - thanks7aklhz commentedon Feb 1, 2018
@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.
ncw commentedon Feb 3, 2018
@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" ?
ncw commentedon Feb 4, 2018
@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...
Here is the beta for you to try
https://pub.rclone.org/v1.39-121-gbc21e05c-b2-transport-2036%CE%B2/
Thanks
[-]net/http: HTTP/1.x transport connection broken[/-][+]"net/http: HTTP/1.x transport connection broken" errors not being retried properly[/+]TJ82 commentedon Feb 4, 2018
@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.
ncw commentedon Feb 10, 2018
@TJ82 I'm looking forward to seeing that log if you have time for it this weekend :-)
b2: add more logging on multipart upload errors to debug #2036
ncw commentedon Feb 21, 2018
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
49 remaining items
RyanQuey commentedon Mar 17, 2021
@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)
RyanQuey commentedon Mar 17, 2021
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.
ivandeex commentedon Mar 17, 2021
You use OneDrive which is internally very similar, just provided as a cloud service by subscription in package with Office365.
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.
ricky0829 commentedon Mar 11, 2022
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:
I checked verison:

And could you please tell me how to add

--backup-dir,--ignore-checksum, and--ignore-sizeagruments in TrueNAS Cloud Sync Tasks? Here is its setings:I guess Post-script?
Thanks a lot!
WarpedPixel commentedon Mar 15, 2022
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.
ricky0829 commentedon Mar 15, 2022
Thanks for your sharing. For me, problems occured with office files and html files only.
b2: add more logging on multipart upload errors to debug rclone#2036
onedrive: document workaround for file size download errors rclone#2036
ncw commentedon Oct 15, 2026
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.