I can't find where is the upload max file size on nextcloud

How do I modify upload max file size on nextcloud all in one running on VM?

Hi, the default max size for file uploads in AIO is set to 10GB. Is this not enough in your case?

Unfortunately no :frowning:

See GitHub - nextcloud/all-in-one: Nextcloud AIO stands for Nextcloud All In One and provides easy deployment and maintenance with most features included in this one Nextcloud instance.
and
GitHub - nextcloud/all-in-one: Nextcloud AIO stands for Nextcloud All In One and provides easy deployment and maintenance with most features included in this one Nextcloud instance. then

Yeah I tried this -e NEXTCLOUD_UPLOAD_LIMIT=20G, but I receive this bash: -e: command not found.

As with any other docker container you need to stop it first, remove it and then adjust the docker run command by adding this environmental varilable to the docker run command. (but before the last line nextcloud/all-in-one:latest).

I’m new to linux, can you tell me the commands I need to run?

sudo docker stop nextcloud-aio-mastercontainer
sudo docker rm nextcloud-aio-mastercontainer

and then depending on the startup command that you used e.g.:

sudo docker run \
--sig-proxy=false \
--name nextcloud-aio-mastercontainer \
--restart always \
--publish 80:80 \
--publish 8080:8080 \
--publish 8443:8443 \
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
-e NEXTCLOUD_UPLOAD_LIMIT=20G \
nextcloud/all-in-one:latest

Do you see how I added this value here?

ncadmin@nextcloud:~$ sudo docker stop nextcloud-aio-mastercontainer
[sudo] password for ncadmin:
nextcloud-aio-mastercontainer
ncadmin@nextcloud:~$ sudo docker rm nextcloud-aio-mastercontainer
nextcloud-aio-mastercontainer
ncadmin@nextcloud:~$ sudo docker run
–sig-proxy=false
–name nextcloud-aio-mastercontainer
–restart always
–publish 80:80
–publish 8080:8080
–publish 8443:8443
–volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config
–volume /var/run/docker.sock:/var/run/docker.sock:ro
-e NEXTCLOUD_UPLOAD_LIMIT=100G
nextcloud/all-in-one:latest
Trying to fix docker.sock permissions internally…
Adding internal www-data to group ping
Initial startup of Nextcloud All In One complete!
You should be able to open the Nextcloud AIO Interface now on port 8080 of this server!
E.g. https://internal.ip.of.this.server:8080

If your server has port 80 and 8443 open and you point a domain to your server, you can get a valid certificate automatically by opening the Nextcloud AIO Interface via:
https://your-domain-that-points-to-this-server.tld:8443
[15-Apr-2023 16:26:27] NOTICE: fpm is running, pid 108
[15-Apr-2023 16:26:27] NOTICE: ready to handle connections
{“level”:“info”,“ts”:1681575987.3427486,“msg”:“using provided configuration”,“config_file”:“/Caddyfile”,“config_adapter”:“”}
{“level”:“info”,“ts”:1681575987.346904,“msg”:“failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See UDP Receive Buffer Size · quic-go/quic-go Wiki · GitHub for details.”}

is this good? :slight_smile:
But I restart it because on php in nextcloud it was still showing 10gb upload limit, and the upload limit is still 10gb

Did you already restarted all containers from the AIO interface?

Nope, but I restarted the entire vm

Then please do so. Restarting the VM will not apply the change. Only restarting from the AIO interface.

Now It’s working, Thanks a lot! One more thing, this will stay saved even after I shutdown the system? :slight_smile:

yes it will

Awesome thank you for your help, I really appreciate it! Have a great day!