Nextcloud version: 15
Operating system and version: docker image linuxserver/nextcloud
Apache or nginx version: nginx 1.14.2
PHP version: 7.2.13
The issue:
Some files are not getting synced and the Windows client gives me the error
"Server replied "413 Request Entity Too Large" to "PUT https://my_domain/remote.php/dav/uploads/username/XXXXXXXX/YYYYYY" (skipped due to earlier error, trying again in 6 hour(s))
PATH/TO/FILE.bmp
My nextcloud is behind a letsencrypt nginx reverse proxy. I checked there and modified the file size limits in proxy.conf file:
After doing this I restarted the letsencrypt container and restarted the sync, which now passed almost all the files. Alas, there are some files left (some bmp, pdf, rar, zip and doc) which are not really too big - 20M, 11M, 15M.
At the same time, If I copy a new file (I tried with a zip file) pretty large (160M) I have no problem getting it synchronized on the server.
So, is there a âflagâ set on these files so that they would not sync?
If youâve already tried the usual fixes of changing client_max_body_size in the nginx.conf, as well as the post_max_size and upload_max_filesize in php.ini, and it still doesnât work. Please see the solution that I posted here: https://github.com/nextcloud/docker/issues/762#issuecomment-504225433
Hello, i donât found the file, where is this file ?
i do this
"You can also enter the container by typing docker exec -it letsencrypt bash and then edit /config/nginx/proxy.conf ".
But not file in my container LetsEncrypt.
please, regards,
Hello,
this my result :root@NAS01:~# docker exec -it nginx-letsencrypt bash
bash-5.1# ls -lah /config/nginx/
ls: cannot access â/config/nginx/â: No such file or directory
Regards,
Hello,
i found my issue, on my container nginx-web, the file is /etc/nginx/nginx.conf and i set client_max_body_⌠in this file, and now it works fine.
thanks for all
Regards,
Iâm plagued with the same issue. My Nextcloud Linux dekstop client retries uploading a single 888MB big file again and again and always fails with the error:
Path/of/big-file: Server replied "413 Request Entity Too Large" to "PUT https://my-nextloud-url/remote.php/dav/uploads/my-user/4116002158/0000000000001
My Nextcloud server is running without any docker / virtualization on a Debian Nginx server with php-7.4-fpm setup as instructed by some nextcloud guides.
Iâve added a info.php file (containing phpinfo()) to the www/html folder to tell me that the php.ini file used is /etc/php/7.4/fpm/php.ini - And adapted the values of post_max_size and upload_max_filesize in it.
Iâve tried restarting the nginx and php7.4-fpm services afterwards, but the problem still persists. Strangely, my Android Nextcloud clients has no problem uploading far bigger files than that, which get downloaded to my Linux desktop just fine.
UPDATE: Ah, I just found there is a feature called âChunked file uploadâ that seems to have been implemented in the Android app, but not in the Linux desktop client.
UPDATE2: with grep -ri client_max_body_size /etc/nginx/
I found that the site specific config file in /etc/nginx/sites-available/ still contained a smaller value for client_max_body_size - adapted that to something large enough and restarted nginx again - now the error is gone, nice one!
Hiya,
Iâm having the same issue and tried all of suggested fix.
I changed nginx.conf, php.ini, config.php still not wanting to upload any files bigger than 1G
SOLUTION for me:
Added the recommended configuration in nginx and php.
Restarting Nextcloud-Client did NOT help. Completely removed account vom Nextcloud client and adding account again. After that it works!
(I have a bit different configuration: NAT > nginx (reverse proxy) > apache with nextcloud running on it.)
Docker image of Nextcloud (linuxserver.io, running on nginx).
Docker image of nginx-proxy-manager.
Using PhotoSync app from my Android device, that connects to Nextcloud through nginx-proxy-manager, using a WebDAV connection.
Here is what I had to do:
Add âclient_max_body_size 0;â (without quotes) in the âadvancedâ tab from my proxy host in nginx-proxy-manager.
Replace âclient_max_body_size 512M;â with âclient_max_body_size 0;â in the following file: â[âŚ]/nextcloud/nginx/site-confs/default.confâ in Nextcloud.
(Related parameters in php.ini didnât affect WebDAV connections)
I know this is old but I found my solution.
I noticed in the Nextcloud GUI > Administation Settings > Settings
At the bottom in the PHP section it still said âUpload max size: 512 MBâ
I found â/etc/php83/conf.d/nextcloud.iniâ where it still said 512M. I changed it to 200G
Additionally I was using a cloudflare tunnel. As it turns out the free plan limits âMaximum Upload Sizeâ to 100 MB. In photosync, I enabled âupload in chunksâ, and I no longer get this error when transferring large files.