-
Notifications
You must be signed in to change notification settings - Fork 803
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
Nextcloud Client not Chunking (uploads over 100 MB fail) #4271
Comments
Keeping all else the same, I tried using an older client (3.3.6) and I'm able to upload large files. This definitely seems to have been introduced with recent client versions |
Merging this issue with #4278 |
Fix:Hi everybody, thanks for finding this. I found simply setting the maximum chunk size to 50 MB (half of Cloudflare's 100 MB upload size limit) worked to resolve this issue. I put together a short guide to fix this issue with the latest stable release (3.4.4, but should work on any client v3.4+). I tried to make it as accessible as possible to follow. Windows FixPress
This will either ask you to pick an application to open Add the following line under the
Save the file, quit Nextcloud desktop, and start it again. MacOS FixOpen a Finder window and press
Open the Add the following line under the
Save the file, quit Nextcloud desktop, and start it again. Linux FixOpen a terminal window and edit the following file:
Add the following line under the
Save the file ( |
@metheis hello there, I am running nextcloud in a docker container and behind a nginx proxy manager via Cloudflare. Question: where do I find the nextcloud.cfg inside nextcloud docker? I look everywhere but I cannot find it. I also look at my mounted "config" volume and cant find the file, if not, where should I entered the "maxChunkSize=5000000" so files above 100MB gets uploaded? thanks in advance |
In case you still have this issue; since it's a client-side configuration option, for Windows it will be in: (%AppData%\Roaming\Nextcloud\nextcloud.cfg). |
I'm running into this problem again with nextcloud-client 3.6.0 |
Hello, |
thank you for the fix, it's still a problem with the default config using macOS client 3.10.81 |
This was the fix for me in March 2024, Windows client 3.12.3 |
I cannot seem to find the nextcloud.cfg on any of my Macs. They are Apple Silicone if that makes a difference. So if anyone knows where I can fine this setting on my Mac it would be much appreciated! |
Ok, I'm just gonna put this here in case someone else with a Mac comes here with the same question. Viewing the hidden ~/Library folder
|
It's still an issue on linux, but works fine on android. The upvoted answer rescued me after 3 days of blind troubleshooting. |
It seems like it can be fixed on the server side for all clients as well. Add line to
So far all good on my side. |
Thanks @cainnz for the clue of Cloudflare. Cloudflare stated that the maximum body size limit behind Cloudflare proxy has been 100MB for free tier since 2020 or earlier. The upload limit for each tier is as follows.
To bypass the limit, @metheis's solution still works on Nextcloud client 3.13.3. Another solution is to unproxy DNS records that point to Nextcloud server(s). By the way, if someone cannot upload files larger than 200 MB or 500 MB, they may hit the limit of Cloudflare as well. |
Can confirm this is still an issue for Linux and Windows. Deployed NextCloud Server official Docker. With default settings, any files over 100MB fail to upload, server says "files not found", which is a very unintuitive error message. Added the lines to the local config file and the issues are fixed for both Linux and Windows. |
Perhaps conceptually correct solution would be to expose server ENV Variable " |
Alternatively, there could just be an option under the Advanced section under Nextcloud settings - seems a bit too common of an issue to be having text configuration files as the solution |
maxChunkSize=50000000 is not fixing it for me |
maxChunkSize is only one of many things that needs to be adjusted. you have to continue editing the php config on computer running nextcloud server! in my case on macOS this is the path, but it will be differ on yours sudo pico /usr/local/etc/php/8.3/php.ini ...change ...if using opcachen, then uncomment and change from 8 to 64 |
hi @Potato-007 there is no web server installed on my local machine (macos monterey) so there is no php in /usr/local/etc |
the reason for your trouble @punkyard is that php is not configured properly - as in my previous post on server side. php is not in use on client side. contact the admin who manages the server |
hi @Potato-007 or Shall I warn the AiO about this? |
I have no experience with the AIO version of Nextcloud (I'm using a manual installation on macOS) but properly configured PHP is essential for big file upload, and Nextcloud is based on php. I hope you find a way to configure it and then share the steps here with others chatgpt says: Nextcloud AIO (All-in-One) is designed for a simplified Nextcloud installation and management, but it doesn't offer detailed configuration options like custom PHP settings out of the box. However, Nextcloud itself relies heavily on PHP, and with a more manual Nextcloud setup, PHP is configurable. In AIO, the containerized approach limits direct access to PHP configurations. To modify PHP settings, you might need to adjust the Docker container or override the configurations indirectly. |
also, make sure to read the related guide: |
Expected behaviour
The Nextcloud Client should chunk large files to 10MB so that large files can be uploaded even when the max upload size is smaller than the file size.
Actual behaviour
When placing files larger than 100 MB into a synced folder, I am hitting cloudflare's 100 MB upload limit, even though I expected the nextcloud client to chunk requests to 10 MB in size per request. Cloudflare allows for uploads up to 100 MB per request. This issue has only happened over the past month or two.
Steps to reproduce
Client configuration
Client version: 3.4.1
Operating system: Windows 11 22000.493
OS language: Englush (US)
Installation path of client: C:\Program Files\Nextcloud
Server configuration
Nextcloud version: 22.2.3
Logs
Please use Gist (https://gist.github.com/) or a similar code paster for longer
logs.
Client logfile:
The file I tried to upload is: mt_20220203.tar.gz
https://gist.github.com/metheis/d5e59e705f501438af82cf9ebfe2f7b1
Web server error log:
Server logfile: nextcloud log (data/nextcloud.log):
The text was updated successfully, but these errors were encountered: