Error Message about Insufficient Space

Hello, guys.
I’m trying to upload large files to my Nextcloud, but it’s always returning an error:

“Insufficient space in /, 5296713728 required, 396648448 available.”

The settings in php.ini are already correct for max_uploads and such.
My disk has plenty of free space.
And the users have no quota limits.

What could it be?

Error log file:

{
   "reqId":"teVyzxXgbAmwxC01ou3x",
   "level":3,
   "time":"2023-07-27T02:14:16+00:00",
   "remoteAddr":"cloud.xxxxx.com",
   "user":"xxxx",
   "app":"richdocuments",
   "method":"GET",
   "url":"/ocs/v2.php/apps/notifications/api/v2/notifications",
   "message":"Failed to fetch the Collabora capabilities endpoint: cURL error 7: Failed to connect to cloud.xxxxx.com port xxx: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://cloud.xxxxx.com:xxx/apps/richdocumentscode/proxy.php?req=/hosting/capabilities",
   "userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64)....",
   "version":"27.0.1.2",
   "exception":{
      "Exception":"GuzzleHttp\\Exception\\ConnectException",
      "Message":"cURL error 7: Failed to connect to cloud.xxxxx.com port xxx: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://cloud.xxxxx.com:xxx/apps/richdocumentscode/proxy.php?req=/hosting/capabilities",
      "Code":0,
      "Trace":[
         {
            "file":"/var/www/cloud.xxxxx.com/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php",
            "line":158,
            "function":"createRejection",
            "class":"GuzzleHttp\\Handler\\CurlFactory",
            "type":"::",
            "args":["*** sensitive parameters replaced ***"]
         },
         {
            "file":"/var/www/cloud.xxxxx.com/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php",
            "line":110,
            "function":"finishError",
            "class":"GuzzleHttp\\Handler\\CurlFactory",
            "type":"::"
         },
         ...
         ...
      ],
      "File":"/var/www/cloud.xxxxx.com/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php",
      "Line":210
   },
   "CustomMessage":"Failed to fetch the Collabora capabilities endpoint: cURL error 7: Failed to connect to cloud.xxxxx.com port xxx0: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://cloud.xxxxx.com:xxx/apps/richdocumentscode/proxy.php?req=/hosting/capabilities"
}

Take a look at: Error uploading large files

Define “plenty”.

According to this you’re uploading a ~5GB file, but only have 0.4GB available. Note that for uploading you will often need at least twice the file size available to handle the movement of the temporary files.

Another possibility is a user quota, either on your account or on the owner of a shared folder.