Slow and unresponsive, 504 Gateway Time-out

Nextcloud version (eg, 20.0.5): 24.0.2
Operating system and version (eg, Ubuntu 20.04): Linux 5.15.46-Unraid x86_64
Apache or nginx version (eg, Apache 2.4.25): Don’t know
PHP version (eg, 7.4): 7.4.26
I am using the Linuxserver.io docker container for UnRAID, also using mariaDB,

The issue you are facing:
When I am uploading a lot of data, multiple files it starts to be unstable, slow and unresponsive. Often with error 504 Gateway Time-out The server didn’t respond in time..
It is also slow to transfer in general.

Is this the first time you’ve seen this error? (Y/N): No

Steps to replicate it:

  1. Transfer bigger amount of files to Nextcload
  2. Wait
  3. Result

The output of your Nextcloud log in Admin > Logging:
(Feil no app in context Sabre\DAV\Exception\BadRequest: Expected filesize of 1862 - Pastebin.com)

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/data',
  'instanceid' => 'XXX',
  'passwordsalt' => 'XXX',
  'secret' => 'XXX',
  'trusted_domains' =>
  array (
    0 => 'nextcloud.XXX',
  ),
  'dbtype' => 'mysql',
  'version' => '24.0.2.1',
  'overwrite.cli.url' => 'https://nextcloud.XXX',
  'dbname' => 'nextcloud',
  'dbhost' => '10.0.24.10:3333',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'XXXl',
  'installed' => true,
  'maintenance' => false,
  'loglevel' => 2,
  'shared_folder' => '/delt_med_meg',
);

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

**




**