Nextcloud AIO fast after starting, but quickly gets very slow

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
  • Operating system and version (e.g., Ubuntu 24.04):
    • Linux 7.0.0-27-generic x86_64 / Ubuntu 26.04 LTS
  • Web server and version (e.g, Apache 2.4.25):
    • Not sure what this would be that the other info doesn’t cover
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • Traefik 3.7.1
  • PHP version (e.g, 8.3):
    • PHP 8.3.31
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • After I've changed from local step-ca local domain name setup to a letsencrypt public domain name setup
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • AIO, docker
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

I’ve first setup my Nextcloud with step-ca and a local domain (nextcloud.xxx.internal). This was working, mostly. It was relatively snappy, but e.g. hardware acceleration wasn’t working, I couldn’t get Memories Transcoder to work. I understood from searching online that this could be because the different containers couldn’t communicate with each other, because they want a public certificate or so.

I also couldn’t get calDAV working before, i.e. getting NC calendar to show up in my FOSS Calendar phone app.

I did the all-in-one/reverse-proxy.md at main · nextcloud/all-in-one · GitHub guide to set NC up with a public domain. The Memories HW acceleration worked now! The rest seemed to work just fine, too, including the calDAV stuff.

Went to bed, woke up to a terribly slow NC instance. I tried connecting with my phone Quillpad App to the server (it uses NC Notes), and it’d say invalid credentials.. but most likely it just got timed out. Browsing from page to page is really slow, and the CPU usage in NC says it’s at somewhere between 400% and 800%, often.

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

  1. Think you’ve fixed a bunch of stuff (NC from local step-ca setup to letsencrypt public domain; memories HW accel; calDAV integration setup)

  2. Server still runs smoothly (after just restarting)

  3. Server runs very slow with timeouts (relatively soon after restarting, say from 30min later on)

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

Longer more detailed: nextcloud admin logs - Pastebin.com

Below an excerpt:


Error
	no app in context
	
Capabilities of OCA\Theming\Capabilities took 1.51 seconds to generate.
2026-07-11T13:09:29+00:00
	
Error
	memories
	
Indexing exception: Timeout
2026-07-11T13:06:29+00:00
	
Warning
	no app in context
	
LockedException"/user/files/Documents/Origami" is locked, existing lock on file: none
issue while running MetadataUpdate
2026-07-11T12:51:21+00:00
	
Error
	memories
	
Indexing exception: Timeout
2026-07-11T12:42:12+00:00
	
Error
	memories
	
Indexing exception: Timeout
2026-07-11T12:19:22+00:00
	
Warning
	recognize
	
TagAlreadyExistsExceptionTag Tagged by recognize v3.0.0 already exists
2026-07-11T12:12:07+00:00
	
Warning
	recognize
	
Failed to generate preview of 657856 with dimension 1024 with nextcloud preview manager: No provider successfully handled the preview generation
2026-07-11T12:10:45+00:00
	
Warning
	PHP
	
session_write_close(): Failed to write session data (redis). Please verify that the current setting of session.save_path is correct (tcp://nextcloud-aio-redis:6379?database=0&auth[]=45e22dc22f586f359408841507237d7a585788a73847c372&timeout=3.0&read_timeout=10.0) at /var/www/html/lib/private/Session/Internal.php#214
2026-07-11T12:01:27+00:00
	
Warning
	PHP
	
session_write_close(): Unable to write session: session lock not held at /var/www/html/lib/private/Session/Internal.php#214
2026-07-11T12:01:27+00:00
	
Warning
	PHP
	
session_write_close(): Session lock expired at /var/www/html/lib/private/Session/Internal.php#214
2026-07-11T12:01:27+00:00
	
Warning
	no app in context
	
Capabilities of OCA\Talk\Capabilities took 0.48 seconds to generate.
2026-07-11T12:00:02+00:00
	
Warning
	PHP
	
Array to string conversion at /var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php#48
2026-07-11T11:39:48+00:00
	
Warning
	PHP
	
Array to string conversion at /var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php#48
2026-07-11T11:39:48+00:00
	
Warning
	PHP
	
Array to string conversion at /var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php#48
2026-07-11T11:39:38+00:00
	
Warning
	PHP
	
Array to string conversion at /var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php#48
2026-07-11T11:39:38+00:00
	
Warning
	PHP
	
Array to string conversion at /var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php#48
2026-07-11T11:39:36+00:00
	
Warning
	PHP
	
Array to string conversion at /var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php#48
2026-07-11T11:39:36+00:00
	
Warning
	PHP
	
Array to string conversion at /var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php#48
2026-07-11T11:39:32+00:00
	
Warning
	PHP
	
Array to string conversion at /var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php#48
2026-07-11T11:39:32+00:00
	
Error
	memories
	
Indexing exception: Timeout
2026-07-11T11:36:06+00:00
	
Error
	memories
	
Indexing exception: Timeout
2026-07-11T11:17:26+00:00
	
Warning
	no app in context
	
LockedException"/user/files/Documents/file 6.2" is locked, existing lock on file: none
2026-07-11T11:05:13+00:00
	
Warning
	no app in context
	
Capabilities of OCA\Theming\Capabilities took 0.48 seconds to generate.
2026-07-11T11:02:23+00:00
	
Warning
	no app in context
	
Capabilities of OCA\Theming\Capabilities took 0.46 seconds to generate.
2026-07-11T11:02:19+00:00
	
Error
	memories
	
Indexing exception: Timeout
2026-07-11T10:59:57+00:00
	
Warning
	no app in context
	
Capabilities of OCA\Theming\Capabilities took 0.47 seconds to generate.
2026-07-11T10:49:13+00:00
	

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

This is the logs of just loading a my base url for nextcloud (logged in already)

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

My Traefik logs seem to be spammed with this:

....


2026-07-11T12:38:32+02:00 DBG github.com/traefik/traefik/v3/pkg/server/service/loadbalancer/wrr/wrr.go:251 > Service selected by WRR: http://nextcloud-aio-apache:9876

2026-07-11T12:38:32+02:00 DBG github.com/traefik/traefik/v3/pkg/server/service/loadbalancer/wrr/wrr.go:251 > Service selected by WRR: http://nextcloud-aio-apache:9876

2026-07-11T12:38:32+02:00 DBG github.com/traefik/traefik/v3/pkg/server/service/loadbalancer/wrr/wrr.go:251 > Service selected by WRR: http://nextcloud-aio-apache:9876

2026-07-11T12:38:32+02:00 DBG github.com/traefik/traefik/v3/pkg/server/service/loadbalancer/wrr/wrr.go:251 > Service selected by WRR: http://nextcloud-aio-apache:9876

2026-07-11T12:38:32+02:00 DBG github.com/traefik/traefik/v3/pkg/server/service/loadbalancer/wrr/wrr.go:251 > Service selected by WRR: http://nextcloud-aio-apache:9876

2026-07-11T12:38:33+02:00 DBG github.com/traefik/traefik/v3/pkg/server/service/loadbalancer/wrr/wrr.go:251 > Service selected by WRR: http://nextcloud-aio-apache:9876

2026-07-11T12:38:33+02:00 DBG github.com/traefik/traefik/v3/pkg/server/service/loadbalancer/wrr/wrr.go:251 > Service selected by WRR: http://nextcloud-aio-apache:9876

2026-07-11T12:38:33+02:00 DBG github.com/traefik/traefik/v3/pkg/server/service/loadbalancer/wrr/wrr.go:251 > Service selected by WRR: http://nextcloud-aio-apache:9876

2026-07-11T12:38:34+02:00 DBG github.com/traefik/traefik/v3/pkg/server/service/loadbalancer/wrr/wrr.go:251 > Service selected by WRR: http://nextcloud-aio-apache:9876

2026-07-11T12:38:34+02:00 DBG github.com/traefik/traefik/v3/pkg/server/service/loadbalancer/wrr/wrr.go:251 > Service selected by WRR: http://nextcloud-aio-apache:9876

2026-07-11T12:38:34+02:00 DBG github.com/traefik/traefik/v3/pkg/server/service/loadbalancer/wrr/wrr.go:251 > Service selected by WRR: http://nextcloud-aio-apache:9876

2026-07-11T12:38:34+02:00 DBG github.com/traefik/traefik/v3/pkg/server/service/loadbalancer/wrr/wrr.go:251 > Service selected by WRR: http://nextcloud-aio-apache:9876

2026-07-11T12:38:34+02:00 DBG github.com/traefik/traefik/v3/pkg/server/service/loadbalancer/wrr/wrr.go:251 > Service selected by WRR: http://nextcloud-aio-apache:9876

2026-07-11T12:38:34+02:00 DBG github.com/traefik/traefik/v3/pkg/server/service/loadbalancer/wrr/wrr.go:251 > Service selected by WRR: http://172.19.0.18:8096

2026-07-11T12:38:35+02:00 DBG github.com/traefik/traefik/v3/pkg/server/service/loadbalancer/wrr/wrr.go:251 > Service selected by WRR: http://nextcloud-aio-apache:9876

2026-07-11T12:38:35+02:00 DBG github.com/traefik/traefik/v3/pkg/server/service/loadbalancer/wrr/wrr.go:251 > Service selected by WRR: http://nextcloud-aio-apache:9876

2026-07-11T12:38:36+02:00 DBG github.com/traefik/traefik/v3/pkg/server/service/loadbalancer/wrr/wrr.go:251 > Service selected by WRR: http://nextcloud-aio-apache:9876

2026-07-11T12:38:36+02:00 DBG github.com/traefik/traefik/v3/pkg/server/service/loadbalancer/wrr/wrr.go:251 > Service selected by WRR: http://nextcloud-aio-apache:9876

2026-07-11T12:38:36+02:00 DBG github.com/traefik/traefik/v3/pkg/server/service/loadbalancer/wrr/wrr.go:251 > Service selected by WRR: http://nextcloud-aio-apache:9876

2026-07-11T12:38:36+02:00 DBG github.com/traefik/traefik/v3/pkg/server/service/loadbalancer/wrr/wrr.go:251 > Service selected by WRR: http://nextcloud-aio-apache:9876

...

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!):


{
    "system": {
        "one-click-instance": true,
        "one-click-instance.user-limit": 100,
        "update_channel": "stable",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "check_data_directory_permissions": false,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "timeout": 3,
            "read_timeout": 10,
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "overwritehost": "nextcloud.mypublicdomain.com",
        "overwriteprotocol": "https",
        "serverid": 445,
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "nextcloud.mypublicdomain.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "34.0.1.2",
        "overwrite.cli.url": "https:\/\/nextcloud.mypublicdomain.com\/",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance": false,
        "updatechecker": true,
        "loglevel": 2,
        "log_type": "file",
        "log_type_audit": "file",
        "logfile": "\/var\/www\/html\/data\/nextcloud.log",
        "logfile_audit": "\/var\/www\/html\/data\/audit.log",
        "log_rotate_size": 10485760,
        "log.condition": {
            "apps": [
                "admin_audit"
            ]
        },
        "preview_max_x": 2048,
        "preview_max_y": 2048,
        "jpeg_quality": 60,
        "enabledPreviewProviders": {
            "1": "OC\\Preview\\Image",
            "2": "OC\\Preview\\MarkDown",
            "3": "OC\\Preview\\MP3",
            "4": "OC\\Preview\\TXT",
            "5": "OC\\Preview\\OpenDocument",
            "6": "OC\\Preview\\Movie",
            "7": "OC\\Preview\\Krita",
            "0": "OC\\Preview\\Imaginary",
            "23": "OC\\Preview\\ImaginaryPDF",
            "24": "OCA\\Eurooffice\\Preview"
        },
        "enable_previews": true,
        "upgrade.disable-web": true,
        "mail_smtpmode": "smtp",
        "trashbin_retention_obligation": "auto, 30",
        "versions_retention_obligation": "auto, 30",
        "activity_expire_days": 30,
        "simpleSignUpLink.shown": false,
        "share_folder": "\/Shared",
        "memories.db.triggers.fcu": true,
        "memories.exiftool": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/exiftool-amd64-musl",
        "memories.vod.path": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/go-vod-amd64",
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "one-click-instance.link": "https:\/\/nextcloud.com\/all-in-one\/",
        "upgrade.cli-upgrade-link": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/2726",
        "updatedirectory": "\/nc-updater",
        "maintenance_window_start": 100,
        "allow_local_remote_servers": true,
        "davstorage.request_timeout": 3600,
        "documentation_url.server_logs": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/5425",
        "htaccess.RewriteBase": "\/",
        "dbpersistent": false,
        "auth.bruteforce.protection.enabled": true,
        "ratelimit.protection.enabled": true,
        "files_external_allow_create_new_local": true,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",
        "preview_imaginary_key": "***REMOVED SENSITIVE VALUE***",
        "eurooffice": {
            "editors_check_interval": 0,
            "jwt_secret": "69b1079fd7b549697beb83cff96f1ae50f99d26c2d659dcd",
            "jwt_header": "AuthorizationJwt"
        },
        "app_install_overwrite": [
            "memories"
        ],
        "memories.gis_type": 2,
        "memories.vod.bind": "nextcloud-aio-memories:47788",
        "memories.vod.connect": "nextcloud-aio-memories:47788",
        "memories.vod.external": true,
        "memories.vod.disable": false,
        "memories.vod.vaapi": true,
        "memories.vod.vaapi.low_power": true,
        "DOMAIN": "nextcloud.mypublicdomain.com",
        "AIO_VERSION": "v13.3.1"
    }
}

Apps

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


Enabled:
  - activity: 7.0.0
  - admin_audit: 1.24.0
  - appstore: 1.0.0
  - bruteforcesettings: 7.0.0
  - calendar: 6.5.0
  - calendar_resource_management: 0.12.1
  - circles: 34.0.0
  - cloud_federation_api: 1.18.0
  - comments: 1.24.0
  - contactsinteraction: 1.15.0
  - cookbook: 0.11.7
  - dashboard: 7.14.0
  - dav: 1.39.0
  - eurooffice: 11.0.1
  - federatedfilesharing: 1.24.0
  - federation: 1.24.0
  - files: 2.6.0
  - files_downloadlimit: 5.2.0-dev.0
  - files_external: 1.26.0
  - files_lock: 34.0.0
  - files_pdfviewer: 7.0.0-dev.0
  - files_reminders: 1.7.0
  - files_sharing: 1.26.0
  - files_trashbin: 1.24.0
  - files_versions: 1.27.0
  - firstrunwizard: 7.0.0-dev.0
  - logreader: 7.0.0
  - lookup_server_connector: 1.22.0
  - mail: 5.10.5
  - memories: 8.1.0
  - nextcloud-aio: 0.8.0
  - nextcloud_announcements: 6.0.0
  - notes: 6.0.1
  - notifications: 7.0.0-dev.1
  - notify_push: 1.3.3
  - oauth2: 1.22.0
  - office: 1.0.0
  - password_policy: 6.0.0-dev.0
  - photos: 7.0.0
  - privacy: 6.0.0-dev.1
  - profile: 1.3.0
  - provisioning_api: 1.24.0
  - recognize: 12.0.0
  - recommendations: 7.0.0
  - related_resources: 5.0.0-dev.0
  - serverinfo: 6.0.0
  - settings: 1.17.0
  - sharebymail: 1.24.0
  - spreed: 24.0.2
  - support: 6.0.0
  - survey_client: 6.0.0-dev.0
  - systemtags: 1.24.0
  - text: 8.0.0
  - theming: 2.9.0
  - twofactor_backupcodes: 1.23.0
  - twofactor_totp: 16.0.0
  - updatenotification: 1.24.0
  - user_migration: 10.4.0
  - user_status: 1.14.0
  - viewer: 7.0.0-dev.0
  - weather_status: 1.14.0
  - webhook_listeners: 1.6.0
  - whiteboard: 1.5.9
  - workflowengine: 2.16.0
Disabled:
  - app_api: 34.0.0 (installed 33.0.0)
  - encryption: 2.22.0
  - previewgenerator: 5.13.0 (installed 5.13.0)
  - suspicious_login: 12.0.0-dev.0
  - twofactor_nextcloud_notification: 8.0.0
  - user_ldap: 1.25.0

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

What about on your underlying host? If I’m understanding your description, it’s not clear if Nextcloud is the culprit or merely collateral damage.

Check what’s going on on the underlying host.

Hi @jtr !

I even if I stopped most of my other containers besides traefik and nextcloud, this is what the typical top looks like (here with a spike from jellyfin I suppose):

It’s fine if it’s indeed Memories, I just wish I could throttle it a bit so the rest would continue working fine..

This really makes me think there’s something with memories, but no idea :frowning:

I’m almost starting to think that this is a server that’s trying to do more than it can. I have a N150 and 16GB of RAM, so I feel it shouldn’t.. which makes me think that if I’m right, there’s either no mitigation for e.g. Memories wanting to do a lot, or I’ve misconfigured something within Nextcloud (though almost everything, I think, is still default)…

Or maybe this helps more! All my apps loads slowly now, while I run all apps on an SSD, I only have multimedia on HDDs..