Setupchecks is very slow, takes more than 8 minutes

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.4
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 24.04.1 LTS
  • Web server and version (e.g, Apache 2.4.25):
    • Apache/2.4.62 (Debian)
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx-proxy-manager v2.12.2
  • PHP version (e.g, 8.3):
    • 8.2.27
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • unsure, only noticed today
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • official Nextcloud Docker image
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

Setupchecks consistently takes over 8 minutes to complete with zero active users. This applies to the web variant and CLI.
Example:

# time docker exec -it --user www-data nextcloud php occ setupchecks
// ...
real    8m41.243s
user    0m0.012s
sys     0m0.006s

Is this normal? If not, what could be the issue? The server/host runs Proxmox with an i5-12500 and doesn’t show signs of overloading. The guest VM is Ubuntu with 8GB of reserved RAM and also doesn’t show signs of overloading.

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

don’t know, sorry :frowning:

Log entries

Nextcloud

n/a

Web Browser

n/a

Web server / Reverse Proxy

n/a

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": {
        "default_phone_region": "DE",
        "overwrite.cli.url": "https:\/\/cloud.bunker496.de",
        "overwriteprotocol": "https",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "int.bunker496.de",
            "cloud.bunker496.de",
            "localhost"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "30.0.4.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "updatedirectory": "\/nc-updater",
        "app_install_overwrite": [
            "nextcloud-aio"
        ],
        "logfile": "\/var\/www\/html\/data\/nextcloud.log",
        "upgrade.disable-web": true,
        "trashbin_retention_obligation": "auto, 30",
        "versions_retention_obligation": "auto, 30",
        "activity_expire_days": 30,
        "simpleSignUpLink.shown": false,
        "share_folder": "\/Shared",
        "upgrade.cli-upgrade-link": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/2726",
        "maintenance_window_start": 100,
        "htaccess.RewriteBase": "\/",
        "dbpersistent": false,
        "files_external_allow_create_new_local": false,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "forbidden_filename_basenames": [
            "con",
            "prn",
            "aux",
            "nul",
            "com0",
            "com1",
            "com2",
            "com3",
            "com4",
            "com5",
            "com6",
            "com7",
            "com8",
            "com9",
            "com\u00b9",
            "com\u00b2",
            "com\u00b3",
            "lpt0",
            "lpt1",
            "lpt2",
            "lpt3",
            "lpt4",
            "lpt5",
            "lpt6",
            "lpt7",
            "lpt8",
            "lpt9",
            "lpt\u00b9",
            "lpt\u00b2",
            "lpt\u00b3"
        ],
        "forbidden_filename_characters": [
            "<",
            ">",
            ":",
            "\"",
            "|",
            "?",
            "*",
            "\\",
            "\/"
        ],
        "forbidden_filename_extensions": [
            " ",
            ".",
            ".filepart",
            ".part"
        ],
        "documentation_url.server_logs": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/5425",
        "config_is_read_only": false,
        "ratelimit.protection.enabled": true,
        "one-click-instance": true,
        "one-click-instance.user-limit": 100,
        "maintenance": false
    },
    "apps": {
        "activity": {
            "types": "filesystem",
            "enabled": "yes",
            "installed_version": "3.0.0"
        },
        "admin_audit": {
            "installed_version": "1.20.0",
            "types": "logging",
            "enabled": "yes",
            "logfile": "\/var\/www\/html\/data\/audit.log"
        },
        "app_api": {
            "default_daemon_config": "docker_aio",
            "types": "",
            "enabled": "yes",
            "installed_version": "4.0.3"
        },
        "backgroundjob": {
            "lastjob": "190"
        },
        "bruteForce": {
            "whitelist_1": "192.168.178.0\/24"
        },
        "bruteforcesettings": {
            "installed_version": "3.0.0",
            "types": "",
            "enabled": "yes"
        },
        "calendar": {
            "types": "",
            "enabled": "yes",
            "installed_version": "5.2.0"
        },
        "circles": {
            "types": "filesystem,dav",
            "enabled": "yes",
            "installed_version": "30.0.0",
            "migration_22": "1",
            "migration_run": "0",
            "loopback_tmp_path": "\/",
            "loopback_tmp_scheme": "https",
            "maintenance_run": "0",
            "maintenance_update": "{\"3\":1743615002,\"2\":1743615902,\"1\":1743616201}"
        },
        "cloud_federation_api": {
            "types": "filesystem",
            "enabled": "yes",
            "installed_version": "1.13.0"
        },
        "comments": {
            "types": "logging",
            "enabled": "yes",
            "installed_version": "1.20.1"
        },
        "contacts": {
            "types": "dav",
            "enabled": "no",
            "installed_version": "7.0.4",
            "allowSocialSync": "yes"
        },
        "contactsinteraction": {
            "types": "dav",
            "enabled": "yes",
            "installed_version": "1.11.0"
        },
        "core": {
            "vendor": "nextcloud",
            "lastupdatedat": 0,
            "public_files": "files_sharing\/public.php",
            "moveavatarsdone": "yes",
            "previewsCleanedUp": "1",
            "installedat": "1731687725.9300",
            "backgroundjobs_mode": "cron",
            "emailTestSuccessful": "1",
            "metadataGenerationDone": true,
            "lastcron": 1743616201,
            "files_metadata": {
                "photos-original_date_time": {
                    "value": null,
                    "type": "int",
                    "etag": "",
                    "indexed": true,
                    "editPermission": 0
                },
                "photos-size": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "photos-exif": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "photos-ifd0": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "blurhash": {
                    "value": null,
                    "type": "string",
                    "etag": "ba23c4c7936e390a648c8d27a4d7c20a",
                    "indexed": false,
                    "editPermission": 0
                }
            },
            "oc.integritycheck.checker": []
        },
        "dashboard": {
            "types": "",
            "enabled": "yes",
            "installed_version": "7.10.0"
        },
        "dav": {
            "types": "filesystem",
            "enabled": "yes",
            "installed_version": "1.31.1",
            "regeneratedBirthdayCalendarsForYearFix": "yes",
            "buildCalendarSearchIndex": "yes",
            "buildCalendarReminderIndex": "yes",
            "chunks_migrated": "1",
            "builtSocialSearchIndex": "yes"
        },
        "deck": {
            "types": "dav",
            "enabled": "no",
            "installed_version": "1.14.4"
        },
        "federatedfilesharing": {
            "types": "",
            "enabled": "yes",
            "installed_version": "1.20.0"
        },
        "federation": {
            "types": "authentication",
            "installed_version": "1.20.0",
            "enabled": "no"
        },
        "files": {
            "types": "filesystem",
            "enabled": "yes",
            "installed_version": "2.2.0",
            "mimetype_version": "30.0.4.1",
            "default_quota": "100 GB"
        },
        "files_downloadlimit": {
            "types": "",
            "enabled": "yes",
            "installed_version": "3.0.0",
            "default-download-limit": 1
        },
        "files_fulltextsearch": {
            "types": "filesystem",
            "enabled": "no",
            "files_pdf": "1",
            "files_office": "1",
            "installed_version": "31.0.0"
        },
        "files_pdfviewer": {
            "types": "",
            "enabled": "yes",
            "installed_version": "3.0.0"
        },
        "files_reminders": {
            "types": "",
            "enabled": "yes",
            "installed_version": "1.3.0"
        },
        "files_sharing": {
            "types": "filesystem",
            "enabled": "yes",
            "installed_version": "1.22.0"
        },
        "files_trashbin": {
            "types": "filesystem,dav",
            "enabled": "yes",
            "installed_version": "1.20.1"
        },
        "files_versions": {
            "types": "filesystem,dav",
            "enabled": "yes",
            "installed_version": "1.23.0"
        },
        "firstrunwizard": {
            "types": "logging",
            "enabled": "yes",
            "installed_version": "3.0.0"
        },
        "fulltextsearch": {
            "types": "",
            "search_platform": "OCA\\FullTextSearch_Elasticsearch\\Platform\\ElasticSearchPlatform",
            "enabled": "no",
            "installed_version": "30.0.1",
            "cron_err_reset": "1740955803"
        },
        "fulltextsearch_elasticsearch": {
            "enabled": "no",
            "types": "",
            "elastic_host": "http:\/\/elastic:b236d11e13330b026fb518f13239b6b24f16d19047806a6a@nextcloud-aio-fulltextsearch:9200",
            "elastic_index": "nextcloud-aio",
            "installed_version": "30.0.1"
        },
        "geoblocker": {
            "installed_version": "0.5.16",
            "types": "",
            "enabled": "yes",
            "chosenService": "3"
        },
        "group_everyone": {
            "installed_version": "0.1.17",
            "types": "authentication",
            "enabled": "yes"
        },
        "groupfolders": {
            "types": "filesystem,dav",
            "installed_version": "18.1.2",
            "enabled": "yes"
        },
        "logreader": {
            "types": "logging",
            "enabled": "yes",
            "installed_version": "3.0.0"
        },
        "lookup_server_connector": {
            "types": "authentication",
            "enabled": "yes",
            "installed_version": "1.18.0"
        },
        "nextcloud-aio": {
            "types": "",
            "enabled": "yes",
            "installed_version": "0.7.0"
        },
        "nextcloud_announcements": {
            "types": "logging",
            "enabled": "yes",
            "installed_version": "2.0.0",
            "pub_date": "Thu, 24 Oct 2019 00:00:00 +0200"
        },
        "notes": {
            "installed_version": "4.11.0",
            "types": "",
            "enabled": "no"
        },
        "notifications": {
            "types": "logging",
            "enabled": "yes",
            "installed_version": "3.0.0"
        },
        "notify_push": {
            "types": "filesystem",
            "installed_version": "1.0.0",
            "enabled": "no",
            "base_endpoint": "https:\/\/cloud.bunker496.de\/push",
            "cookie": "***REMOVED SENSITIVE VALUE***"
        },
        "oauth2": {
            "types": "authentication",
            "enabled": "yes",
            "installed_version": "1.18.1"
        },
        "password_policy": {
            "types": "authentication",
            "enabled": "yes",
            "installed_version": "2.0.0",
            "enforceNumericCharacters": "1",
            "minLength": "16",
            "historySize": "5",
            "expiration": "365",
            "maximumLoginAttempts": "5",
            "enforceUpperLowerCase": "1"
        },
        "photos": {
            "types": "dav,authentication",
            "enabled": "yes",
            "installed_version": "3.0.2",
            "lastPlaceMappedUser": "admin",
            "lastPlaceMappingDone": "true"
        },
        "preview": {
            "jpeg_quality": "60"
        },
        "privacy": {
            "types": "",
            "enabled": "yes",
            "installed_version": "2.0.0",
            "readableLocation": "de"
        },
        "provisioning_api": {
            "types": "prevent_group_restriction",
            "enabled": "yes",
            "installed_version": "1.20.0"
        },
        "recommendations": {
            "types": "",
            "enabled": "yes",
            "installed_version": "3.0.0"
        },
        "related_resources": {
            "types": "",
            "enabled": "yes",
            "installed_version": "1.5.0"
        },
        "richdocuments": {
            "wopi_allowlist": "77.22.100.50,127.0.0.1\/8,192.168.0.0\/16,172.16.0.0\/12,10.0.0.0\/8,fd00::\/8,::1,95.33.213.171,95.33.210.14,95.33.193.93,95.33.212.44",
            "types": "prevent_group_restriction",
            "installed_version": "8.5.6",
            "wopi_url": "https:\/\/cloud.bunker496.de\/",
            "enabled": "no",
            "wopi_callback_url": "",
            "public_wopi_url": "https:\/\/cloud.bunker496.de"
        },
        "serverinfo": {
            "types": "",
            "enabled": "yes",
            "installed_version": "2.0.0",
            "cached_count_filecache": "3510",
            "cached_count_storages": "5",
            "token": "***REMOVED SENSITIVE VALUE***"
        },
        "settings": {
            "types": "",
            "enabled": "yes",
            "installed_version": "1.13.0",
            "profile_enabled_by_default": "0"
        },
        "sharebymail": {
            "types": "filesystem",
            "enabled": "yes",
            "installed_version": "1.20.0"
        },
        "sociallogin": {
            "types": "",
            "installed_version": "5.9.2",
            "disable_registration": "",
            "create_disabled_users": "1",
            "allow_login_connect": "1",
            "prevent_create_email_exists": "1",
            "no_prune_user_groups": "",
            "auto_create_groups": "1",
            "restrict_users_wo_mapped_groups": "",
            "restrict_users_wo_assigned_groups": "",
            "disable_notify_admins": "",
            "update_profile_on_login": "1",
            "enabled": "yes",
            "hide_default_login": "",
            "button_text_wo_prefix": "",
            "custom_providers": "null",
            "oauth_providers": "{\"google\":{\"appid\":\"816474586682-vg4g97vq33ic1amrhftsac52q1pip0tm.apps.googleusercontent.com\",\"secret\":\"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\",\"defaultGroup\":\"\",\"auth_params\":{\"hd\":\"\"}},\"discord\":{\"appid\":\"1307036611875442768\",\"secret\":\"CW99h3ISU7L9iF38Hv-lqaDq4uN3jtJo\",\"defaultGroup\":\"\",\"guilds\":\"\"}}"
        },
        "spreed": {
            "turn_servers": "***REMOVED SENSITIVE VALUE***",
            "stun_servers": "***REMOVED SENSITIVE VALUE***",
            "types": "dav,prevent_group_restriction",
            "signaling_servers": "***REMOVED SENSITIVE VALUE***",
            "enabled": "no",
            "installed_version": "20.1.5",
            "project_access_invalidated": "1",
            "signaling_token_privkey_es256": "***REMOVED SENSITIVE VALUE***",
            "signaling_token_pubkey_es256": "***REMOVED SENSITIVE VALUE***"
        },
        "support": {
            "types": "session",
            "enabled": "yes",
            "installed_version": "2.0.0",
            "SwitchUpdaterServerHasRun": "yes"
        },
        "survey_client": {
            "types": "",
            "enabled": "yes",
            "installed_version": "2.0.0",
            "last_sent": "1743591607",
            "last_report": "{\"id\":\"oc4m7eyezz6w\",\"items\":[[\"server\",\"version\",\"30.0.4.1\"],[\"server\",\"code\",\"other\"],[\"server\",\"enable_avatars\",\"yes\"],[\"server\",\"enable_previews\",\"yes\"],[\"server\",\"memcache.local\",\"\\\\OC\\\\Memcache\\\\APCu\"],[\"server\",\"memcache.distributed\",\"\\\\OC\\\\Memcache\\\\Redis\"],[\"server\",\"asset-pipeline.enabled\",\"no\"],[\"server\",\"filelocking.enabled\",\"yes\"],[\"server\",\"memcache.locking\",\"\\\\OC\\\\Memcache\\\\Redis\"],[\"server\",\"debug\",\"no\"],[\"server\",\"cron\",\"cron\"],[\"php\",\"version\",\"8.2.27\"],[\"php\",\"memory_limit\",2147483648],[\"php\",\"max_execution_time\",0],[\"php\",\"upload_max_filesize\",214748364800],[\"database\",\"type\",\"pgsql\"],[\"database\",\"version\",\"PostgreSQL 16.6 on x86_64-pc-linux-musl, compiled by gcc (Alpine 14.2.0) 14.2.0, 64-bit\"],[\"database\",\"size\",44020195],[\"apps\",\"lookup_server_connector\",\"1.18.0\"],[\"apps\",\"oauth2\",\"1.18.1\"],[\"apps\",\"password_policy\",\"2.0.0\"],[\"apps\",\"files\",\"2.2.0\"],[\"apps\",\"activity\",\"3.0.0\"],[\"apps\",\"circles\",\"30.0.0\"],[\"apps\",\"cloud_federation_api\",\"1.13.0\"],[\"apps\",\"dav\",\"1.31.1\"],[\"apps\",\"files_trashbin\",\"1.20.1\"],[\"apps\",\"files_versions\",\"1.23.0\"],[\"apps\",\"sharebymail\",\"1.20.0\"],[\"apps\",\"workflowengine\",\"2.12.0\"],[\"apps\",\"comments\",\"1.20.1\"],[\"apps\",\"firstrunwizard\",\"3.0.0\"],[\"apps\",\"logreader\",\"3.0.0\"],[\"apps\",\"nextcloud_announcements\",\"2.0.0\"],[\"apps\",\"notifications\",\"3.0.0\"],[\"apps\",\"systemtags\",\"1.20.0\"],[\"apps\",\"theming\",\"2.5.0\"],[\"apps\",\"dashboard\",\"7.10.0\"],[\"apps\",\"federatedfilesharing\",\"1.20.0\"],[\"apps\",\"files_downloadlimit\",\"3.0.0\"],[\"apps\",\"files_pdfviewer\",\"3.0.0\"],[\"apps\",\"files_reminders\",\"1.3.0\"],[\"apps\",\"privacy\",\"2.0.0\"],[\"apps\",\"provisioning_api\",\"1.20.0\"],[\"apps\",\"recommendations\",\"3.0.0\"],[\"apps\",\"related_resources\",\"1.5.0\"],[\"apps\",\"serverinfo\",\"2.0.0\"],[\"apps\",\"settings\",\"1.13.0\"],[\"apps\",\"support\",\"2.0.0\"],[\"apps\",\"survey_client\",\"2.0.0\"],[\"apps\",\"text\",\"4.1.0\"],[\"apps\",\"twofactor_backupcodes\",\"1.19.0\"],[\"apps\",\"user_status\",\"1.10.0\"],[\"apps\",\"viewer\",\"3.0.0\"],[\"apps\",\"weather_status\",\"disabled\"],[\"apps\",\"federation\",\"disabled\"],[\"apps\",\"photos\",\"3.0.2\"],[\"apps\",\"files_sharing\",\"1.22.0\"],[\"apps\",\"contactsinteraction\",\"1.11.0\"],[\"apps\",\"updatenotification\",\"disabled\"],[\"apps\",\"webhook_listeners\",\"1.1.0-dev\"],[\"apps\",\"bruteforcesettings\",\"3.0.0\"],[\"apps\",\"admin_audit\",\"1.20.0\"],[\"apps\",\"deck\",\"disabled\"],[\"apps\",\"twofactor_totp\",\"12.0.0-dev\"],[\"apps\",\"tasks\",\"disabled\"],[\"apps\",\"contacts\",\"disabled\"],[\"apps\",\"notes\",\"disabled\"],[\"apps\",\"fulltextsearch_elasticsearch\",\"disabled\"],[\"apps\",\"fulltextsearch\",\"disabled\"],[\"apps\",\"files_fulltextsearch\",\"disabled\"],[\"apps\",\"whiteboard\",\"disabled\"],[\"apps\",\"notify_push\",\"1.0.0\"],[\"apps\",\"spreed\",\"disabled\"],[\"apps\",\"richdocuments\",\"disabled\"],[\"apps\",\"calendar\",\"5.0.9\"],[\"apps\",\"app_api\",\"4.0.3\"],[\"apps\",\"nextcloud-aio\",\"0.7.0\"],[\"apps\",\"sociallogin\",\"5.7.0\"],[\"apps\",\"suspicious_login\",\"8.0.0\"],[\"apps\",\"twofactor_nextcloud_notification\",\"4.0.0\"],[\"apps\",\"groupfolders\",\"18.0.8\"],[\"apps\",\"group_everyone\",\"0.1.16\"],[\"apps\",\"geoblocker\",\"0.5.15\"],[\"stats\",\"num_files\",3514],[\"stats\",\"num_users\",4],[\"stats\",\"num_storages\",5],[\"stats\",\"num_storages_local\",1],[\"stats\",\"num_storages_home\",4],[\"stats\",\"num_storages_other\",0],[\"stats\",\"num_comments\",7],[\"stats\",\"num_comment_markers\",0],[\"stats\",\"num_systemtags\",0],[\"stats\",\"num_systemtags_mappings\",0],[\"files_sharing\",\"num_shares\",11],[\"files_sharing\",\"num_shares_user\",1],[\"files_sharing\",\"num_shares_groups\",2],[\"files_sharing\",\"num_shares_link\",0],[\"files_sharing\",\"num_shares_link_no_password\",0],[\"files_sharing\",\"num_fed_shares_sent\",0],[\"files_sharing\",\"num_fed_shares_received\",0],[\"files_sharing\",\"permissions_2_5\",8],[\"files_sharing\",\"permissions_0_31\",1],[\"files_sharing\",\"permissions_1_5\",2],[\"encryption\",\"enabled\",\"no\"],[\"encryption\",\"default_module\",\"no\"]]}"
        },
        "suspicious_login": {
            "installed_version": "8.0.0",
            "types": "authentication",
            "enabled": "yes"
        },
        "systemtags": {
            "types": "logging",
            "enabled": "yes",
            "installed_version": "1.20.0"
        },
        "tasks": {
            "installed_version": "0.16.1",
            "types": "",
            "enabled": "no"
        },
        "text": {
            "types": "dav",
            "enabled": "yes",
            "installed_version": "4.1.0"
        },
        "theming": {
            "types": "logging",
            "enabled": "yes",
            "installed_version": "2.5.0",
            "slogan": "***REMOVED SENSITIVE VALUE***",
            "name": "Bunker496 Cloud",
            "logoMime": "image\/png",
            "url": "***REMOVED SENSITIVE VALUE***",
            "cachebuster": "12",
            "background_color": "#c4c4c4",
            "primary_color": "#5b64b3",
            "backgroundMime": "image\/jpeg",
            "logoDimensions": "406x314"
        },
        "twofactor_backupcodes": {
            "types": "",
            "enabled": "yes",
            "installed_version": "1.19.0"
        },
        "twofactor_nextcloud_notification": {
            "installed_version": "4.0.0",
            "types": "",
            "enabled": "yes"
        },
        "twofactor_totp": {
            "installed_version": "12.0.0-dev",
            "types": "",
            "enabled": "yes"
        },
        "updatenotification": {
            "types": "",
            "installed_version": "1.20.0",
            "enabled": "no"
        },
        "user_status": {
            "types": "",
            "enabled": "yes",
            "installed_version": "1.10.0"
        },
        "viewer": {
            "types": "",
            "enabled": "yes",
            "installed_version": "3.0.0"
        },
        "weather_status": {
            "types": "",
            "installed_version": "1.10.0",
            "enabled": "no"
        },
        "webhook_listeners": {
            "installed_version": "1.1.0-dev",
            "types": "filesystem",
            "enabled": "yes"
        },
        "whiteboard": {
            "installed_version": "1.0.5",
            "types": "",
            "jwt_secret_key": "***REMOVED SENSITIVE VALUE***",
            "enabled": "no",
            "collabBackendUrl": "https:\/\/cloud.bunker496.de\/whiteboard"
        },
        "workflowengine": {
            "types": "filesystem",
            "enabled": "yes",
            "installed_version": "2.12.0"
        }
    }
}

Apps

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

Enabled:
  - activity: 3.0.0
  - admin_audit: 1.20.0
  - app_api: 4.0.3
  - bruteforcesettings: 3.0.0
  - calendar: 5.2.0
  - circles: 30.0.0
  - cloud_federation_api: 1.13.0
  - comments: 1.20.1
  - contactsinteraction: 1.11.0
  - dashboard: 7.10.0
  - dav: 1.31.1
  - federatedfilesharing: 1.20.0
  - files: 2.2.0
  - files_downloadlimit: 3.0.0
  - files_pdfviewer: 3.0.0
  - files_reminders: 1.3.0
  - files_sharing: 1.22.0
  - files_trashbin: 1.20.1
  - files_versions: 1.23.0
  - firstrunwizard: 3.0.0
  - geoblocker: 0.5.16
  - group_everyone: 0.1.17
  - groupfolders: 18.1.2
  - logreader: 3.0.0
  - lookup_server_connector: 1.18.0
  - nextcloud_announcements: 2.0.0
  - notifications: 3.0.0
  - oauth2: 1.18.1
  - password_policy: 2.0.0
  - photos: 3.0.2
  - privacy: 2.0.0
  - provisioning_api: 1.20.0
  - recommendations: 3.0.0
  - related_resources: 1.5.0
  - serverinfo: 2.0.0
  - settings: 1.13.0
  - sharebymail: 1.20.0
  - sociallogin: 5.9.2
  - support: 2.0.0
  - survey_client: 2.0.0
  - suspicious_login: 8.0.0
  - systemtags: 1.20.0
  - text: 4.1.0
  - theming: 2.5.0
  - twofactor_backupcodes: 1.19.0
  - twofactor_nextcloud_notification: 4.0.0
  - twofactor_totp: 12.0.0-dev
  - user_status: 1.10.0
  - viewer: 3.0.0
  - webhook_listeners: 1.1.0-dev
  - workflowengine: 2.12.0
Disabled:
  - contacts: 7.0.4 (installed 7.0.4)
  - deck: 1.14.4 (installed 1.14.4)
  - encryption: 2.18.0
  - federation: 1.20.0 (installed 1.20.0)
  - files_external: 1.22.0
  - files_fulltextsearch: 31.0.0 (installed 31.0.0)
  - fulltextsearch: 30.0.1 (installed 30.0.1)
  - fulltextsearch_elasticsearch: 30.0.1 (installed 30.0.1)
  - notes: 4.11.0 (installed 4.11.0)
  - richdocuments: 8.5.6 (installed 8.5.6)
  - spreed: 20.1.5 (installed 20.1.5)
  - tasks: 0.16.1 (installed 0.16.1)
  - user_ldap: 1.21.0
  - weather_status: 1.10.0 (installed 1.10.0)
  - whiteboard: 1.0.5 (installed 1.0.5)

I also had a slow-running issue once, which was due to a DNS resolution that wasn’t working properly.
In other words, the DNS was there, but only after several timeouts until the working DNS reported the response.
For example, apps.nextcloud.com should be resolvable in a correspondingly timely manner.
The check also depends on the size of your environment, database, etc.
I have a relatively small one, and the check takes about 20 seconds with a correct DNS, and about 1 minute with a DNS that isn’t working properly.

My environment is also tiny, there have only been 2 other users for testing and there has been no activity on the instance for months.

As for DNS:

# time docker exec nextcloud dig +noall +answer apps.nextcloud.com
apps.nextcloud.com.     3368    IN      A       65.21.231.50

real    0m0.058s
user    0m0.007s
sys     0m0.005s

So that’s not the issue :confused:

Still, thank you very much for your reply.

Okay, too bad :slight_smile:
Are there any messages during the check, or is everything green?
How big is the nextcloud.log? I think it’s being analyzed quite a bit, and if it’s very, very large, that could be causing a delay.

ls -lh nextcloud.log*
-rw-r----- 1 www-data www-data 12M Apr  2 20:02 nextcloud.log
-rw-r----- 1 www-data www-data 59M Jan 19 01:02 nextcloud.log.1

Notable from setupchecks output:

  • 18 errors since Mar 26 (seem to be all FQDN related)
  • Brute-force Throttle & Forwarded for headers: Remote address could not be determined
  • HSTS header not set (though i have enabled it in nginx proxy manager :thinking:)

Everything else is green.

If you don’t need the log, you can set it to 0 using truncate and see if it speeds up. I once read that anything larger than 5MB causes a certain delay.

But just an idea.

Does it take that long on the GUI too?

(Yes)

Did that and restarted the container, but still takes 8min+ :frowning:

Are you getting an error when the check finally stops? I was and the fix was to increase timeout for php-fpm.

Nope. [filler to meet the 10 characters requirement]

I guess reinstall is my only option.