Nextcloud WebDAV performance extremely slow

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Nextcloud Hub 25 Autumn (32.0.3)
  • Operating system and version (e.g., Ubuntu 24.04):
    • TrueNAS Scale 25.10.1
  • Web server and version (e.g, Apache 2.4.25):
    • replace me
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • N/A
  • PHP version (e.g, 8.3):
    • Unsure how to check
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • Since installation`
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Docker via TrueNAS
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

I have recently installed Nextcloud as an app in TrueNAS scale, I have followed this tutorial (https://youtu.be/1rpeKWGoMRY?si=ctB_QN-IdzY_ecIO).
The web interface is working fine and I am able to access it, however when I upload files via WebDAV mounted in Windows the performance is awful. When I am accessing a SMB share running on TrueNAS I can get 100 MB/s, but on Nextcloud I get barely 10 MB/s.

I have tried looking into this on various threads here, but I am unsure how to attempt what people are suggesting.

The upload speed on the web app is considerably better, I also have the same performance issues in WinSCP.

Steps to replicate it (hint: details matter!):

  1. Mount Nextcloud using WebDAV in file explorer

  2. Try uploading files, the speed is extremely slow

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

<?php
$CONFIG = array (
  'files.chunked_upload.max_size' => 0,
  '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' => 'redis',
    'password' => 'REDACTED',
    'port' => 6379,
  ),
  'upgrade.disable-web' => true,
  'passwordsalt' => 'REDACTED',
  'secret' => 'REDACTED',
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'pgsql',
  'version' => '32.0.3.2',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'nextcloud',
  'dbhost' => 'postgres:5432',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_admin',
  'dbpassword' => 'REDACTED',
  'installed' => true,
  'instanceid' => 'REDACTED',
  'config_preset' => 2,
  'mail_from_address' => 'REDACTED',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'gmail.com',
  'mail_smtphost' => 'smtp.gmail.com',
  'mail_smtpauth' => true,
  'mail_smtpport' => '587',
  'mail_smtpname' => 'REDACTED',
  'mail_smtppassword' => '465 ',
  'forbidden_filename_basenames' => 
  array (
    0 => 'con',
    1 => 'prn',
    2 => 'aux',
    3 => 'nul',
    4 => 'com0',
    5 => 'com1',
    6 => 'com2',
    7 => 'com3',
    8 => 'com4',
    9 => 'com5',
    10 => 'com6',
    11 => 'com7',
    12 => 'com8',
    13 => 'com9',
    14 => 'com¹',
    15 => 'com²',
    16 => 'com³',
    17 => 'lpt0',
    18 => 'lpt1',
    19 => 'lpt2',
    20 => 'lpt3',
    21 => 'lpt4',
    22 => 'lpt5',
    23 => 'lpt6',
    24 => 'lpt7',
    25 => 'lpt8',
    26 => 'lpt9',
    27 => 'lpt¹',
    28 => 'lpt²',
    29 => 'lpt³',
  ),
  'forbidden_filename_characters' => 
  array (
    0 => '<',
    1 => '>',
    2 => ':',
    3 => '"',
    4 => '|',
    5 => '?',
    6 => '*',
    7 => '\\',
    8 => '/',
  ),
  'forbidden_filename_extensions' => 
  array (
    0 => ' ',
    1 => '.',
    2 => '.filepart',
    3 => '.part',
  ),
  'twofactor_enforced' => 'false',
  'twofactor_enforced_groups' => 
  array (
    0 => 'admin',
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
    0 => 'Family',
    1 => 'guest_app',
  ),
  'trusted_domains' => 
  array (
    0 => '127.0.0.1',
    1 => 'localhost',
    2 => 'nextcloud',
    3 => 'truenas',
    4 => 'truenas.local',
  ),
);

Apps

The output of occ app:list (if possible).

Unsure how to do this.

As discussed a few years ago:

WebDAV is slow.

1 Like

Thank you for linking me to this, are there any alternative ways I can access Nextcloud without the sync app. I need my files to not be stored locally on my PC, similar to how an SMB share works, since I don’t have much local storage.

If you do not sync, but only need data to be stored on a server, Nextcloud is not the right system. A simple file server with SMB better will meet your needs.

SMB directly connects to the drive on the server, WebDAV accesses to the webserver, which stores the files through Nextcloud on the drive, while Nextcloud updates its file list in the database.

I wanted to use Nextcloud to make sharing files easy since multiple members of my family will use the NAS. But I require fast direct access to the NAS without local storage for photo and video editing, without needing copies on my PC.

I think I will just stick with TrueNAS, and have a separate share that every family member can access.

Then use dirct access via SMB bypassing Nextcloud and its storage.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.