Syncing over Nextcloud Desktop client heavily unstable and slow

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 31.0.7
  • Operating system and version (e.g., Ubuntu 24.04):
    • TrueNAS Scale/Docker
  • Web server and version (e.g, Apache 2.4.25):
    • Unknown/Latest version in docker image
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • Traefik V3.0
  • PHP version (e.g, 8.3):
    • Unknown/Latest version in docker image
  • Is this the first time you’ve seen this error? (Yes / No):
    • No
  • When did this problem seem to first start?
    • 1-3 months of using the desktop client
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Docker
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • Yes, but using local DNS for quick and faster responses

Summary of the issue you are facing:

I have been constantly having issues with my Nextcloud instance where when I use the Nextcloud desktop app (Linux) and try to sync a project through the desktop app, it’s abysmally slow to even attempt syncing this way. For example, I have a project with lots of little files and lots of folder, say a Unity project or just tons of files in general, it say it would take 7 years to sync and sometimes it would swap to say 15 hours. From what I can explain is that I have say 200,000 files all rounding out to about 20GB in total, some in the MB size and some in the KB size, After leaving my laptop on a 2.5GB connection to my Nextcloud server for about 3 hours, it only synced about 1,000 files. When I dug deeper and was looking around for why this was happening, it seems that the desktop application will transfer the file at the fastest speeds possibly, BUT when it’s starting a new file to transfer, it would just hang there for about 2-8 seconds before any data is being sent to the server.

I did more and more testing, my connection from my laptop or desktop gets about 2.3-2.5GB/s over the wire so it’s not like I’m being limited by my local network. I’ve checked the logs to be sure that I am connecting on my local network, in which I am. I’ve done about everything from adding variables to my compose file for the Nextcloud container as such:

- APACHE_BODY_LIMIT=0
- PHP_UPLOAD_LIMIT=64G
- PHP_MEMORY_LIMIT=8G

And yet, this changed basically NOTHING in regards to my syncing issues. I have Redis setup, I have my timeouts and everything setup on my Traefik to hopefully change something, I also got all my security headers for Traefik, I got my body limits increased for Traefik, and still nothing.

I’m at a loss to what I’m either doing wrong or that I have misconfigured as I really would like to have a really good workflow using this sync setup with Nextcloud for both working from home and on the go.

Any help would be appreciated.

Configuration

Nextcloud

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  '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,
    ),
  ),
  'instanceid' => 'zzzzzzzzzzzzzzzzzz',
  'passwordsalt' => 'zzzzzzzzzzzzzzzzzzzzzz',
  'secret' => 'zzzzzzzzzzzzzzzzzzzzzzzzz',
  'trusted_domains' =>
  array (
    0 => 'next.domain.com',
  ),
  'trusted_proxies' =>
  array (
    0 => '192.168.200.254',
    1 => '127.0.0.1',
    2 => '::1',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '31.0.7.1',
  'overwrite.cli.url' => 'https://next.domain.com',
  'overwritehost' => 'next.domain.com',
  'overwriteprotocol' => 'https',
  'dbname' => 'nextcloud',
  'dbhost' => 'db',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'zzzzzzzzzzzzzzzzzzzz',
  'dbpassword' => 'zzzzzzzzzzzzzzzzzzzzzzzzz',
  'installed' => true,
  'mail_from_address' => 'zzzzzzzzzzzzzz',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'zzzzzzzzzzz',
  'mail_smtpport' => 'zzzzzzzzz',
  'mail_smtphost' => 'zzzzzzzzzzzzzz',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'zzzzzzzzzzzzzzzzzz',
  'mail_smtppassword' => 'zzzzzzzzzzzzzz',
  'updater.release.channel' => 'stable',
  'maintenance' => false,
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' =>
  array (
    0 => 'admin',
  ),
  'twofactor_enforced_excluded_groups' =>
  array (
  ),
  'loglevel' => 2,
  'app_install_overwrite' =>
  array (
    0 => 'end_to_end_encryption',
    1 => 'files_markdown',
    2 => 'files_readmemd',
    3 => 'memories',
    4 => 'facerecognition',
    5 => 'camerarawpreviews',
    6 => 'mail_roundcube',
  ),
  'end_to_end_encryption.supported-user-agents' =>
  array (
    '/^Mozilla\\/5\\.0 \\(Android\\) Nextcloud\\-android\\/(?<version>(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)).*$/' => '3.13.0',
    '/^Mozilla\\/5\\.0 \\([A-Za-z ]+\\) (mirall|csyncoC)\\/(?<version>(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)).*$/' => '3.0.0',
    '/^Mozilla\\/5\\.0 \\(iOS\\) Nextcloud\\-iOS\\/(?<version>(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)).*$/' => '3.0.5',
  ),
  'memories.exiftool' => '/var/www/html/custom_apps/memories/bin-ext/exiftool-amd64-glibc',
  'memories.vod.path' => '/var/www/html/custom_apps/memories/bin-ext/go-vod-amd64',
  'enabledPreviewProviders' =>
  array (
    0 => 'OC\\Preview\\PNG',
    1 => 'OC\\Preview\\JPEG',
    2 => 'OC\\Preview\\GIF',
    3 => 'OC\\Preview\\BMP',
    4 => 'OC\\Preview\\XBitmap',
    5 => 'OC\\Preview\\MP3',
    6 => 'OC\\Preview\\HEIC',
    7 => 'OC\\Preview\\Movie',
    8 => 'OC\\Preview\\TIFF',
    9 => 'OC\\Preview\\MKV',
    10 => 'OC\\Preview\\MP4',
    11 => 'OC\\Preview\\AVI',
    12 => 'OC\\Preview\\MOV',
    13 => 'OC\\Preview\\webp',
  ),
  'memories.vod.external' => true,
  'memories.vod.bind' => 'go-vod:47788',
  'memories.vod.vaapi' => true,
  'enable_previews' => 'true',
  'preview_max_memory' => '4096',
  'preview_max_x' => 2048,
  'preview_max_y' => 2048,
  'jpeg_quality' => 75,
  'preview_max_filesize_image' => '256',
  'preview_ffmpeg_path' => '/usr/bin/ffmpeg',
  'memories.vod.ffmpeg' => '/usr/bin/ffmpeg',
  'memories.vod.ffprobe' => '/usr/bin/ffprobe',
  'remember_login_cookie_lifetime' => 345600,
  'memories.db.triggers.fcu' => true,
  'davstorage.request_timeout' => 300,
  'integrity.check.disabled' => false,
  'files.chunked_upload.max_size' => 50000000,
  'theme' => '',
  'chunkSize' => '5120MB',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'redis' => [
    'host' => 'redis',
    'port' => 6379,
    'timeout' => 1.5,
    'dbindex' => 0,
  ],
);

Apps

Enabled:
  - activity: 4.0.0
  - admin_audit: 1.21.0
  - bruteforcesettings: 4.0.0
  - calendar: 5.3.8
  - camerarawpreviews: 0.8.7
  - cfg_share_links: 7.0.1
  - checksum: 1.2.6
  - cloud_federation_api: 1.14.0
  - comments: 1.21.0
  - contacts: 7.2.3
  - contactsinteraction: 1.12.0
  - dashboard: 7.11.0
  - dav: 1.33.0
  - deck: 1.15.2
  - drawio: 3.1.0
  - end_to_end_encryption: 1.17.0
  - external: 6.0.2
  - federatedfilesharing: 1.21.0
  - federation: 1.21.0
  - files: 2.3.1
  - files_accesscontrol: 2.0.0
  - files_downloadlimit: 4.0.0
  - files_external: 1.23.0
  - files_markdown: 2.4.1
  - files_pdfviewer: 4.0.0
  - files_readmemd: 3.0.2
  - files_sharing: 1.23.1
  - files_trashbin: 1.21.0
  - files_versions: 1.24.0
  - impersonate: 2.0.0
  - integration_gitlab: 3.2.0
  - integration_homeassistant: 0.0.6
  - logreader: 4.0.0
  - lookup_server_connector: 1.19.0
  - mail: 5.1.10
  - maps: 1.6.0
  - nextcloud_announcements: 3.0.0
  - notes: 4.12.2
  - notifications: 4.0.0
  - oauth2: 1.19.1
  - password_policy: 3.0.0
  - photos: 4.0.0
  - privacy: 3.0.0
  - profile: 1.0.0
  - provisioning_api: 1.21.0
  - recommendations: 4.0.0
  - related_resources: 2.0.0
  - richdocuments: 8.7.3
  - serverinfo: 3.0.0
  - settings: 1.14.0
  - side_menu: 5.1.1
  - spreed: 21.1.2
  - systemtags: 1.21.1
  - tasks: 0.16.1
  - text: 5.0.0
  - theming: 2.6.1
  - theming_customcss: 1.18.0
  - twofactor_backupcodes: 1.20.0
  - twofactor_totp: 13.0.0-dev.0
  - twofactor_webauthn: 2.2.0
  - updatenotification: 1.21.0
  - user_status: 1.11.0
  - viewer: 4.0.0
  - weather_status: 1.11.0
  - webhook_listeners: 1.2.0
  - workflowengine: 2.13.0
Disabled:
  - app_api: 5.0.2 (installed 5.0.2)
  - audioplayer: 3.5.1 (installed 3.5.1)
  - circles: 31.0.0 (installed 27.0.1)
  - duplicatefinder: 1.7.3 (installed 1.7.3)
  - encryption: 2.19.0 (installed 2.16.0)
  - externalportal: 1.3.1 (installed 1.3.1)
  - facerecognition: 0.9.70 (installed 0.9.70)
  - files_3dmodelviewer: 0.0.15 (installed 0.0.15)
  - files_mindmap: 0.0.33 (installed 0.0.33)
  - files_reminders: 1.4.0 (installed 1.0.0)
  - files_rightclick: 0.15.1 (installed 1.6.0)
  - firstrunwizard: 4.0.0 (installed 2.16.0)
  - forms: 5.1.2 (installed 5.1.2)
  - gpxpod: 7.0.4 (installed 7.0.4)
  - integration_github: 3.2.1 (installed 3.2.1)
  - integration_zammad: 3.0.2 (installed 3.0.2)
  - mail_roundcube: 1.2.1 (installed 1.2.1)
  - memories: 7.6.1 (installed 7.6.1)
  - multiboards: 1.0.4 (installed 1.0.4)
  - previewgenerator: 5.9.0 (installed 5.9.0)
  - recognize: 9.0.3 (installed 9.0.3)
  - secrets: 2.1.2 (installed 2.1.2)
  - sharebymail: 1.21.0 (installed 1.17.0)
  - support: 3.0.0 (installed 1.11.0)
  - survey_client: 3.0.0 (installed 1.16.0)
  - suspicious_login: 9.0.1 (installed 6.0.0)
  - timetracker: 0.0.85 (installed 0.0.85)
  - twofactor_nextcloud_notification: 5.0.0
  - user_ldap: 1.22.0

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