NS8 NextCloud single file limit

Hi,
can you please help me with the maximum upload file size limit in nextcloud on ns8?

Thank you

1 Like

I’m having trouble with this as well. Did you ever get an answer?

You can customize the FPM configuration by changing the file named zzz_nethserver.conf inside the state directory, see GitHub - NethServer/ns8-nextcloud: Nextcloud module for NS8 · GitHub

runagent -m nextcloud1 vi zzz_nethserver.conf

Add the following to allow 1024M:

php_value[upload_max_filesize] = 1024M

Restart Nextcloud to apply the change:

runagent -m nextcloud1 systemctl --user restart nextcloud

Thank you, that gets me heading in a direction. Syncing files over 100M is not working. I don’t know that this will be the fix, as the default is 512M which is still bigger than 100M, but do you think it might be? And if not, where would you look next?

Just to be sure it’s not about disk space:

df -h /home

If the sync is interrupted, you could try to increase the input/execution time by adding the following to zzz_nethserver.conf:

php_value[max_input_time] = 3600
php_value[max_execution_time] = 3600

Maybe it helps to customize the nginx config by adding the following to nginx.conf

fastcgi_read_timeout 300s;

You can find more information in the Nextcloud docs.

Do you run another reverse proxy in front of the NS8? Maybe you need to configure the timeouts there…

[root@mail2 ~]# df -h /home
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rlhome-rlhome–home 7.3T 1.3T 6.0T 18% /home

Plenty of space.

I tried changing the chunk size to 200MB and ended up with an internal server error.

I changed the chunk size to 20MB and set the new timeout values for php_value, and now it is working correctly and I was able to upload the 107MB file. I couldn’t figure out where to put the fastcgi entry in the nginx.conf file. So, I didn’t make that change. How do I install your module from github? I haven’t done anything like that before.

Thank you for your help!!

Related to this ?

1 Like

Yes, an additional reverse proxy may need some adaptions but in this case the issue was solved by changing the chunk settings.

The simplest way to install community apps is adding the needed repository in Software Center as explained in the docs.

Thanks to @laylow apps and repositories are listed in the wiki.