-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Expected filesize" errors with HTTP2 enabled #16138
Comments
Ref #15095 If you are still using apache2 try http2 but disable mod_reqtimeout. |
@kesselb i still have a VM with apache2, just booted it and disabling mod_reqtimeout and enabling http2 still throw out errors, as i said i was able to not get them only disabling http2 |
Mind to edit your initial post and add the information from the issue template? I'm using http2 and don't see |
@kesselb done, but i want to point out again that this happens to me on fresh installs on two different machines, no matter what i do, and i was only able to avoid it by disabling http2 If it happens only to me what might be the issue? |
Thanks 👍 If you are using the client this issue might be related: nextcloud/desktop#1072 |
I am not using the client but the browser, and i don't have files_antivirus on :( |
Running nextcloud with http1 should be fine. |
I am seeing the same error messages in my log. I also use Apache2 with http2. So far I was ignoring them because everything is working fine. No corrupted files or anything like this. I didn't know that http2 could be the reason. |
@Bertel3 to me it also stop uploading with error most of the times ("An unknown error has occured" and "Connection to server lost"). But i wouldn't trust it to not being corrupted. Did you try disable http2 ? Does it stop to you too? I don't know what's the reason for it but i think devs should look into it if it happens to multiple people to be sure. |
Mind to have a look at #15200? |
@kesselb tried to add client_body_timeout, same results |
I have the same problem when uploading many images. The workaround for the moment was to select only five images at once, wait and when they are uploaded select the next 5. Very annoying. In the moment I select more images at once to upload, some images will fail with "An unknown error has occurred". Seems like there is some timeout. |
@agoat could you please also test without http2? |
Can't test this on the live server. |
Today this problem came up again. nextcloud 16 on nginx. removing http2 solved the problem. |
@linuxrider glad it could help you, it took me more than a week to find out the problem now it seems like i'm able to use it without problems, but it still come up sometimes when i add more uploads when it's still uploading other files (but his might also be my slow processor, maybe try that yourself), before i wasn't able to upload an entire folder correctly so http2 was definetly a big reason. |
After disabling http2 on nginx it still happens sporadically. |
I can confirm this issue. It sucks that I can not find this post earlier. I spent 2 to 3 days trying every solutions listed on google search result with "Sabre\DAV\Exception\BadRequest: expected filesize xxx got yyy". No error in Nginx error log nor PHP error log. After changing the error log level to "debug", I found the message: Then I tried turning off http2 with my Nginx, it works fine so far. Same Linux Desktop client works fine with demo.nextcloud.com, and uploading from the browser always works fine. |
I had the same issue this weekend with nginx install. I wanted to upload jpg files each with 18-20MB size, through http2. After some minutes there were unknown errors on the site, and I found the same errors as above in the nextcloud.log file. I tried every timeout that I found regarding this issue, but for me increasing the http2_idle_timeout |
My NC instance was struggling with upload speeds and expected filesize errors. Max about 10mbit/sec. |
I have the same problem with Nginx 1.14.2 and NC 17.0.1. When I disable http2, everything works well. Yesterday I uploaded almost 2000 files (photos and videos) through the browser with http2 disabled. With http2 enabled, the upload sleep barely exceeds 1 MB/s with a 300 Mbps symmetric connection. I'm using the Nginx configuration from the documentation of NC 17. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Thank you for solution with disabling http2 module. The speed is slow, but uploads not broke anymore. |
Lets track this in #21382 |
I installed Nextcloud on my server following https://www.c-rieger.de/ tutorials
but when i uploaded folders/multiple files i had this error thrown out in my logs multiple times and uploading failing:
Sabre\DAV\Exception\BadRequest: expected filesize XXXX got YYYY
i tried both NGINX and Apache2, on my server and on a VM on main PC
eventually, i found out that disabling http2 in both NGINX and Apache2 solved the issue
For NGINX i deleted http2 in nextcloud.conf
listen 443 ssl
http2default_server;listen [::]:443 ssl
http2default_server;On Apache solved with
a2dismod http2
It took me a week to realize that http2 was the reason, i fresh installed ubuntu many times and couldn't understand what the problem was
I don't know what's the reason, i'd exclude the hardware since it happened also on virtualbox but i can now say i'm 100% sure that having http2 on doesn't let me upload files correctly.
Did anyone have the same problem? Do i have any performance issues using Nextcloud with http1.1 ?
Server configuration
Operating system: Ubuntu Server 18.04.2 LTS
Web server: Both on NGINX 1.17.0 and Apache2 2.4.39
Database: MySQL
PHP version: 7.3
Nextcloud version: 16.0.1
Updated from an older Nextcloud/ownCloud or fresh install: Fresh Install
Where did you install Nextcloud from: https://www.c-rieger.de/
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: Yes, but not on VM, problem still present
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Client configuration
Browser: Happens on Chrome, Firefox and Edge
Operating system: Tried on Win10 and MacOS Mojave
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log (java console)
The text was updated successfully, but these errors were encountered: