-
Notifications
You must be signed in to change notification settings - Fork 816
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
[Bug]: Syncing files larger than 1GB does not work #6222
Comments
This is the correct approach if you're unwilling to adjust your Apache The docs do need adjustment though to make clear the Apache situation can also impact chunked uploads if the files are large enough. I'll try to address that now. |
The recent addition clarified Apache's new behavior and and this setting's impact on non-chunking clients. With the recent v2 chunking client implementations, the maxChunkSize can be as high as 5 GiB by default (e.g. see nextcloud/desktop#6222). This expands the language to note impact for chunking clients too and clarifies the available options. Signed-off-by: Josh Richards <[email protected]>
Docs update pending in nextcloud/documentation#11295 I'll close this here. Edit: Leaving open until merged just in case |
Thank you for adding the documentation. I think additionally the default body size should be increased in the official docker image, since right now those two components are not fully compatible in their default configuration. |
I agree with the general idea that things should work as much as possible across the board with "the defaults". Unfortunately there are a lot of factors so it doesn't always end up being that way. Other times it just needs to get sorted out by somebody and then adjustments coordinated across the board. Let's see if we can make some progress today. :-) So I agree, but let's start with the documentation. The community Docker image tends to track the docs. The default is already changed in the AIO Docker image (to unlimited/0 the old Apache behavior). The community image though chose to add an environment variable to support overriding it while sticking with the default upstream value for now. At the time that seemed enough and the docs weren't too assertive about the need to change it because it wasn't really an issue with v1 chunking. Based upon a further review of the code (particularly the dynamic chunking in the desktop client) and your follow-up I've further revised the doc change (in the previously linked PR). The change is to now recommend an official value of 5 GiB. |
For those of us running nginx, the Nextcloud recommended nginx config (found here) needs to be updated:
I set mine up to 5G and my uploads started working. The weird part is that large uploads worked on the web interface just fine, just not through the Nextcloud agent. but this change fixed it. |
Bug description
Since Client version 3.10.0 syncing files larger than 1GB doesn't work anymore. This is most likely due to this commit cbbb4c8 , where the default value for
maxChunkSize
was increased to 5GB, but with newer Apache (>2.4.53) versions the maximum body size is 1GB:When I manually set
maxChunkSize
in~/.config/Nextcloud/nextcloud.cfg
syncing large files works again.Steps to reproduce
dd if=/dev/zero of=test bs=2GB count=1
)Expected behavior
Syncing files larger than 1GB works with default client and server config
Which files are affected by this bug
src/libsync/configfile.cpp
Operating system
Linux
Which version of the operating system you are running.
arch
Package
Distro package manager
Nextcloud Server version
27.1.3
Nextcloud Desktop Client version
3.10.1
Is this bug present after an update or on a fresh install?
Updated to a major version (ex. 3.3.6 to 3.4.0)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
Are you using an external user-backend?
Nextcloud Server logs
Additional info
No response
The text was updated successfully, but these errors were encountered: