When uploading files, prompt ‘Unknown error occurred during upload’

I installed NextCloud using Docker, set the file upload size in the command, and accessed the browser page using IP+port to upload larger files. However, after using NAT to translate the address, only files below 30MB can be uploaded, otherwise an error message ‘Unknown error occurred during upload’ will be reported,after a while, I found out that IP+port access also reported errors‘Unknown error occurred during upload’ ,please help me

docker-compose.yml

version : '3.8'
services:
  nextcloud:
    container_name: nextcloud
    image: nextcloud:28.0.9
    restart: always
    volumes:
      - ./nextcloud:/var/www/html
    ports:
      - "8888:80"
    environment:
      - REDIS_HOST=192.168.2.110  
      - REDIS_HOST_PORT=6379    
      - PHP_MEMORY_LIMIT=2048M 
      - PHP_UPLOAD_LIMIT=10G 
    depends_on:
      - mysql

config.php

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '192.168.2.110',
    'password' => '',
    'port' => 6379,
  ),
  'upgrade.disable-web' => true,
  'instanceid' => 'oc***REDACTED***',
  'passwordsalt' => '***REDACTED***',
  'secret' => '***REDACTED***',
  'trusted_domains' => 
  array (
    0 => '192.168.2.110:8888',
    1 => '*.com',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '28.0.9.1',
  'overwrite.cli.url' => 'http://192.168.2.110:8888',
  'dbname' => 'nextcloud',
  'dbhost' => '192.168.2.110:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'oc_admin20',
  'dbpassword' => '***REDACTED***',
  'installed' => true,
);
root@0db12e542b35:/var/www/html# php -i |grep max
max_execution_time => 0 => 0
max_file_uploads => 20 => 20
max_input_nesting_level => 64 => 64
max_input_time => -1 => -1
max_input_vars => 1000 => 1000
max_multipart_body_parts => -1 => -1
post_max_size => 10G => 10G
upload_max_filesize => 10G => 10G
zend.exception_string_param_max_len => 15 => 15
ldap.max_links => Unlimited => Unlimited
memcached.sess_lock_max_wait => not set => not set
memcached.sess_lock_wait_max => 150 => 150
session.gc_maxlifetime => 1440 => 1440
unserialize_max_depth => 4096 => 4096
opcache.jit_max_exit_counters => 8192 => 8192
opcache.jit_max_loop_unrolls => 8 => 8
opcache.jit_max_polymorphic_calls => 2 => 2
opcache.jit_max_recursive_calls => 2 => 2
opcache.jit_max_recursive_returns => 2 => 2
opcache.jit_max_root_traces => 1024 => 1024
opcache.jit_max_side_traces => 128 => 128
opcache.max_accelerated_files => 10000 => 10000
opcache.max_file_size => 0 => 0
opcache.max_wasted_percentage => 5 => 5

What does your Nextcloud log say?

This is the content of NextCloud log

{
    "reqId": "SmO4kkfPQr23zH5tyVYl",
    "level": 3,
    "time": "2024-08-28T01:28:29+00:00",
    "remoteAddr": "192.168.2.100",
    "user": "admin",
    "app": "webdav",
    "method": "MOVE",
    "url": "/remote.php/dav/uploads/admin/web-file-upload-3f4a75b7db0ab422/.file",
    "message": "Insufficient space in /, 4712300544 required, 3225899008 available",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36",
    "version": "28.0.9.1",
    "exception": {
        "Exception": "Sabre\\DAV\\Exception\\InsufficientStorage",
        "Message": "Insufficient space in /, 4712300544 required, 3225899008 available",
        "Code": 0,
        "Trace": [
            {
                "file": "/var/www/html/apps/dav/lib/Connector/Sabre/QuotaPlugin.php",
                "line": 142,
                "function": "checkQuota",
                "class": "OCA\\DAV\\Connector\\Sabre\\QuotaPlugin",
                "type": "->",
                "args": [
                    "/",
                    4712300544
                ]
            },
            {
                "file": "/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
                "line": 89,
                "function": "beforeMove",
                "class": "OCA\\DAV\\Connector\\Sabre\\QuotaPlugin",
                "type": "->",
                "args": [
                    "uploads/admin/web-file-upload-3f4a75b7db0ab422/.file",
                    "files/admin/CentOS-7-x86_64-DVD-2009.iso"
                ]
            },
            {
                "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
                "line": 603,
                "function": "emit",
                "class": "Sabre\\DAV\\Server",
                "type": "->",
                "args": [
                    "beforeMove",
                    [
                        "uploads/admin/web-file-upload-3f4a75b7db0ab422/.file",
                        "files/admin/CentOS-7-x86_64-DVD-2009.iso"
                    ]
                ]
            },
            {
                "file": "/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
                "line": 89,
                "function": "httpMove",
                "class": "Sabre\\DAV\\CorePlugin",
                "type": "->",
                "args": [
                    [
                        "Sabre\\HTTP\\Request"
                    ],
                    [
                        "Sabre\\HTTP\\Response"
                    ]
                ]
            },
            {
                "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 472,
                "function": "emit",
                "class": "Sabre\\DAV\\Server",
                "type": "->",
                "args": [
                    "method:MOVE",
                    [
                        [
                            "Sabre\\HTTP\\Request"
                        ],
                        [
                            "Sabre\\HTTP\\Response"
                        ]
                    ]
                ]
            },
            {
                "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 253,
                "function": "invokeMethod",
                "class": "Sabre\\DAV\\Server",
                "type": "->",
                "args": [
                    [
                        "Sabre\\HTTP\\Request"
                    ],
                    [
                        "Sabre\\HTTP\\Response"
                    ]
                ]
            },
            {
                "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 321,
                "function": "start",
                "class": "Sabre\\DAV\\Server",
                "type": "->",
                "args": [

                ]
            },
            {
                "file": "/var/www/html/apps/dav/lib/Server.php",
                "line": 382,
                "function": "exec",
                "class": "Sabre\\DAV\\Server",
                "type": "->",
                "args": [

                ]
            },
            {
                "file": "/var/www/html/apps/dav/appinfo/v2/remote.php",
                "line": 35,
                "function": "exec",
                "class": "OCA\\DAV\\Server",
                "type": "->",
                "args": [

                ]
            },
            {
                "file": "/var/www/html/remote.php",
                "line": 172,
                "args": [
                    "/var/www/html/apps/dav/appinfo/v2/remote.php"
                ],
                "function": "require_once"
            }
        ],
        "File": "/var/www/html/apps/dav/lib/Connector/Sabre/QuotaPlugin.php",
        "Line": 216,
        "message": "Insufficient space in /, 4712300544 required, 3225899008 available",
        "exception": {

        },
        "CustomMessage": "Insufficient space in /, 4712300544 required, 3225899008 available"
    }
}
"function": "checkQuota",
Insufficient space in /, 4712300544 required, 3225899008 available

Seems the explanation.

The log path I found is in ‘/var/www/html/data/nextcloud.log’, I’m not sure if it’s this log file, and I’m not sure why sometimes larger files can be uploaded, but sometimes they can’t