Sync large mail box on NextCloud Mail - MailboxLockedError with Mailcow & Docker

  • Nextcloud Server version:
    • 33.0.2
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu Server 24.04.4
  • Web server and version:
    • I’m using Docker version nextcloud:33.0.2
  • Reverse proxy and version
    • Traefik 3.6.7
  • PHP version:
    • php 8.4.20
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • After installing
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Custom Docker with Traefik
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

I’ve just installed NextCloud with Docker. Everything was ok, but then when I added an IMAP account with 1.4GB of email (managed by mailcow on the same server) it shows a bunch of errors in Browser Console while fetching for the first time the INBOX. The last error was MailboxLockedError

Steps to replicate it:

  1. Create a new user account with email

  2. Connect with the new account and open the Mail client

  3. Insert IMAP and SMTP configuration

  4. The inbox starts to loading endlessly with “Loading messages …

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.

Link here:

I haven’t set up the SMTP service yet.

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.

Console log:

Web server / Reverse Proxy

No output from Traefik

Configuration

Nextcloud

The output of occ config:list system

{
    "system": {
        "htaccess.RewriteBase": "\/",
        "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
            }
        ],
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "overwriteprotocol": "https",
        "upgrade.disable-web": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.anotherweb.it"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "32.0.8.2",
        "overwrite.cli.url": "https:\/\/cloud.anotherweb.it",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance": false,
        "default_phone_region": "IT",
        "maintenance_window_start": 1,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "forwarded_for_headers": [
            "HTTP_X_FORWARDED_FOR"
        ],
        "twofactor_enforced": "false",
        "twofactor_enforced_groups": [],
        "twofactor_enforced_excluded_groups": [],
        "app_install_overwrite": [],
        "defaultapp": "",
        "memories.db.triggers.fcu": true,
        "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"
    }
}

Apps

The output of occ app:list

Enabled:
  - activity: 5.0.0
  - app_api: 32.0.0
  - bruteforcesettings: 5.0.0
  - calendar: 6.2.2
  - circles: 32.0.0
  - cloud_federation_api: 1.16.0
  - comments: 1.22.0
  - contacts: 8.3.8
  - contactsinteraction: 1.13.1
  - dashboard: 7.12.0
  - dav: 1.34.2
  - external: 7.0.0
  - externalportal: 2.1.0
  - federatedfilesharing: 1.22.0
  - files: 2.4.0
  - files_downloadlimit: 5.0.0
  - files_pdfviewer: 5.0.0
  - files_reminders: 1.5.0
  - files_sharing: 1.24.1
  - files_trashbin: 1.22.0
  - files_versions: 1.25.0
  - interfonts: 2.0.4
  - logreader: 5.0.0
  - lookup_server_connector: 1.20.0
  - mail: 5.7.12
  - notes: 5.0.0
  - notifications: 5.0.0
  - oauth2: 1.20.0
  - password_policy: 4.0.0
  - photos: 5.0.0
  - privacy: 4.0.0
  - profile: 1.1.0
  - provisioning_api: 1.22.0
  - recommendations: 5.0.0
  - related_resources: 3.0.0
  - serverinfo: 4.0.0
  - settings: 1.15.1
  - sharebymail: 1.22.0
  - survey_client: 4.0.0
  - systemtags: 1.22.0
  - text: 6.0.1
  - theming: 2.7.0
  - twofactor_backupcodes: 1.21.0
  - updatenotification: 1.22.0
  - user_status: 1.12.0
  - viewer: 5.0.0
  - weather_status: 1.12.0
  - welcome: 2.0.0
  - workflowengine: 2.14.0
Disabled:
  - admin_audit: 1.22.0
  - encryption: 2.20.0
  - federation: 1.22.0 (installed 1.22.0)
  - files_external: 1.24.1
  - firstrunwizard: 5.0.0 (installed 5.0.0)
  - forms: 5.2.7 (installed 5.2.7)
  - mail_roundcube: 1.2.2 (installed 1.2.2)
  - mail_roundcube_bridge: 1.2.0 (installed 1.2.0)
  - memories: 7.8.2 (installed 7.8.2)
  - music: 3.0.0 (installed 3.0.0)
  - nextcloud_announcements: 4.0.0 (installed 4.0.0)
  - support: 4.0.0 (installed 4.0.0)
  - suspicious_login: 10.0.0
  - twofactor_nextcloud_notification: 6.0.0
  - twofactor_totp: 14.0.0
  - user_ldap: 1.23.0
  - webhook_listeners: 1.3.0 (installed 1.3.0)

Here’s a screenshot

Reach me if you need any other information.

Thank you for your help :folded_hands:

Any news? :folded_hands: