"Error occurred while checking server setup" in Overview after updating from 29.0.9 to 30.0.2

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.2
  • Operating system and version (e.g., Ubuntu 24.04):
    • replace me
  • Web server and version (e.g, Apache 2.4.25):
    • Ubuntu 20.04
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • Nginx 1.27.2
  • PHP version (e.g, 8.3):
    • 8.2.25
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • Immediately upon upgrading from 29.0.9
  • Installation method (e.g. AIO, NCP, Bare Metal/Archive, etc.)
    • Docker
  • Are you using Cloudflare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

I run Nextcloud in Docker.

~$ docker ps
CONTAINER ID   IMAGE                                COMMAND                  CREATED       STATUS                 PORTS                                       NAMES
343444726aa6   nginxinc/nginx-unprivileged:1.27.2   "/docker-entrypoint.…"   2 hours ago   Up 2 hours             0.0.0.0:9090->8080/tcp, :::9090->8080/tcp   nc-nginx
67709008bcae   rcdailey/nextcloud-cronjob           "tini -- /entrypoint…"   2 hours ago   Up 2 hours (healthy)                                               nc-cron
8744d36d6baa   nextcloud:30.0.2-fpm                 "/entrypoint.sh php-…"   2 hours ago   Up 2 hours             9000/tcp                                    nc-php
b77becfe616d   redis:7-bullseye                     "docker-entrypoint.s…"   2 hours ago   Up 2 hours             6379/tcp                                    nc-redis
7ab37fc4d738   postgres:16.3-bullseye               "docker-entrypoint.s…"   2 hours ago   Up 2 hours             5432/tcp                                    nc-postgres

Friday I upgraded to 29.0.9 without incident. This morning I upgraded to 30.0.2. and Admin/Overview only shows “Error occurred while checking server setup”. Everything appears to actually be working properly, so I’m guessing this is a problem with the checking.

I manually ran the checks from Overview and got:

www-data@43552193d26d:~/html$ ./occ setupchecks -vvv
	database:
		✓ PDO SQLite driver: PDO SQLite driver is enabled, full text search of page content is available.
		✓ Database missing columns: None
		✓ Database missing indices: None
		✓ Database missing primary keys: None
		✓ Database pending bigint migrations: None
		✓ MySQL Unicode support: You are not using MySQL
		✓ Scheduling objects table size: Scheduling objects table size is within acceptable range.
		✓ Database version: 16.3 (Debian 16.3-1.pgdg110+1)
		✓ Database transaction isolation level: Read committed
	app:
		✓ Teams App Enabled: Teams app is enabled
	dav:
		✓ DAV system address book: No outstanding DAV system address book sync.
	network:
		✓ WebDAV endpoint: Your web server is properly set up to allow file synchronization over WebDAV.
		✓ Data directory protected
		✓ Internet connectivity
		✓ JavaScript source map support
		✓ JavaScript modules support
		✓ OCS provider resolving
		ℹ .well-known URLs: Could not check that your web server serves `.well-known` correctly. Please check manually.
To allow this check to run you have to make sure that your Web server can connect to itself. Therefore it must be able to resolve and connect to at least one of its `trusted_domains` or the `overwrite.cli.url`. This failure may be the result of a server-side DNS mismatch or outbound firewall rule.
		✓ Font file loading
	system:
		⚠ Errors in the log: 293 errors in the logs since November 11, 2024, 8:56:52 PM
		✓ Allowed admin IP ranges: Admin IP filtering isn’t applied.
		ℹ Brute-force Throttle: Your remote address could not be determined.
		✓ Cron errors: The last cron job ran without errors.
		✓ Cron last run: Last background job execution ran 12 minutes ago.
		✓ Debug mode: Debug mode is disabled.
		✓ File locking
		✓ Maintenance window start: Maintenance window to execute heavy background jobs is between 1:00 UTC and 7:00 UTC
		✓ Memcache: Configured
		✓ Mimetype migrations available: None
		✓ Architecture: 64-bit
		✓ Temporary space available: Temporary directory is correctly configured:
- 149.7 GiB available in /tmp (PHP temporary directory)
		✓ Push service: Free push service
	security:
		✓ App directories owner: App directories have the correct owner "www-data"
		✓ Old administration imported certificates
		✓ Code integrity: No altered files
		ℹ Forwarded for headers: Your remote address could not be determined.
		ℹ HTTPS access and URLs: Your instance is generating insecure URLs. If you access your instance over HTTPS, this likely means that your instance is behind a reverse proxy and the Nextcloud `overwrite*` config values are not set correctly.
		✓ Old server-side-encryption: Disabled
		✓ PHP version: You are currently running PHP 8.2.25.
		✓ Random generator: Secure
		⚠ HTTP headers: Some headers are not set correctly on your instance
- The `Strict-Transport-Security` HTTP header is not set (should be at least `15552000\ seconds). For enhanced security, it is recommended to enable HSTS.

	config:
		✓ Default phone region: US
		✓ Email test: Email test was successfully sent
		✓ Overwrite CLI URL: The "overwrite.cli.url" option in your config.php is set to "http://10.0.40.233:9090/" which is a correct URL. Suggested URL is "http://localhost".
		✓ Configuration file access rights: Nextcloud configuration file is writable
	php:
		✓ PHP default charset: UTF-8
		✓ PHP set_time_limit: The function is available.
		✓ Freetype: Supported
		✓ PHP getenv
		✓ PHP memory limit: 8 GB
		✓ PHP modules
		✓ PHP opcache: Checking from CLI, OPcache checks have been skipped.
		✓ PHP "output_buffering" option: Disabled
		✓ PHP Imagick module
	ldap:
		✓ Invalid LDAP UUIDs: None found
		✓ LDAP Connection: Binding and searching works on all of the 2 configured LDAP connections (s03,s04)

I believe these are the same findings I had with 29.0.9.

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

  1. Run 29.0.9
  2. docker pull nextcloud:30.0.2-fpm
  3. docker-compose down
  4. Edit docker-compose.yml to replace 29.9.9 with 30.0.2.
  5. docker-compose up -d
  6. Check nginx for permission denied messages (this happens every upgrade because I’m running unprivileged nginx)
  7. docker-compose down
  8. find /data/nextcloud/data -exec chgrp 101 {} +
  9. docker-compose up -d
  10. Check nginx for permission denied messages
  11. None, so open Admin/overview page

Log entries (Docker)

Nov 18 20:55:31 ncutest docker-postgres/c15a1d5cfb60[1335]: PostgreSQL Database directory appears to contain a database; Skipping initialization
Nov 18 20:55:31 ncutest docker-redis/f315c832c3ac[1335]: 1:C 18 Nov 2024 20:55:31.063 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
Nov 18 20:55:31 ncutest docker-redis/f315c832c3ac[1335]: 1:C 18 Nov 2024 20:55:31.063 # Redis version=7.0.11, bits=64, commit=00000000, modified=0, pid=1, just started
Nov 18 20:55:31 ncutest docker-redis/f315c832c3ac[1335]: 1:C 18 Nov 2024 20:55:31.063 # Configuration loaded
Nov 18 20:55:31 ncutest docker-redis/f315c832c3ac[1335]: 1:M 18 Nov 2024 20:55:31.064 * monotonic clock: POSIX clock_gettime
Nov 18 20:55:31 ncutest docker-redis/f315c832c3ac[1335]: 1:M 18 Nov 2024 20:55:31.065 * Running mode=standalone, port=6379.
Nov 18 20:55:31 ncutest docker-redis/f315c832c3ac[1335]: 1:M 18 Nov 2024 20:55:31.065 # Server initialized
Nov 18 20:55:31 ncutest docker-redis/f315c832c3ac[1335]: 1:M 18 Nov 2024 20:55:31.065 * Loading RDB produced by version 7.0.11
Nov 18 20:55:31 ncutest docker-redis/f315c832c3ac[1335]: 1:M 18 Nov 2024 20:55:31.065 * RDB age 9 seconds
Nov 18 20:55:31 ncutest docker-redis/f315c832c3ac[1335]: 1:M 18 Nov 2024 20:55:31.065 * RDB memory usage when created 1.43 Mb
Nov 18 20:55:31 ncutest docker-redis/f315c832c3ac[1335]: 1:M 18 Nov 2024 20:55:31.067 * DB loaded from disk: 0.002 seconds
Nov 18 20:55:31 ncutest docker-redis/f315c832c3ac[1335]: 1:M 18 Nov 2024 20:55:31.067 * Ready to accept connections
Nov 18 20:55:31 ncutest docker-postgres/c15a1d5cfb60[1335]: 2024-11-18 20:55:31.152 UTC [1] LOG:  starting PostgreSQL 16.3 (Debian 16.3-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
Nov 18 20:55:31 ncutest docker-postgres/c15a1d5cfb60[1335]: 2024-11-18 20:55:31.152 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
Nov 18 20:55:31 ncutest docker-postgres/c15a1d5cfb60[1335]: 2024-11-18 20:55:31.152 UTC [1] LOG:  listening on IPv6 address "::", port 5432
Nov 18 20:55:31 ncutest docker-postgres/c15a1d5cfb60[1335]: 2024-11-18 20:55:31.184 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
Nov 18 20:55:31 ncutest docker-postgres/c15a1d5cfb60[1335]: 2024-11-18 20:55:31.242 UTC [22] LOG:  database system was shut down at 2024-11-18 20:55:23 UTC
Nov 18 20:55:31 ncutest docker-postgres/c15a1d5cfb60[1335]: 2024-11-18 20:55:31.288 UTC [1] LOG:  database system is ready to accept connections
Nov 18 20:55:31 ncutest docker-php/43552193d26d[1335]: => Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/before-starting
Nov 18 20:55:31 ncutest docker-php/43552193d26d[1335]: [18-Nov-2024 20:55:31] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
Nov 18 20:55:31 ncutest docker-php/43552193d26d[1335]: [18-Nov-2024 20:55:31] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
Nov 18 20:55:31 ncutest docker-php/43552193d26d[1335]: [18-Nov-2024 20:55:31] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
Nov 18 20:55:31 ncutest docker-php/43552193d26d[1335]: [18-Nov-2024 20:55:31] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
Nov 18 20:55:31 ncutest docker-php/43552193d26d[1335]: [18-Nov-2024 20:55:31] NOTICE: fpm is running, pid 1
Nov 18 20:55:31 ncutest docker-php/43552193d26d[1335]: [18-Nov-2024 20:55:31] NOTICE: ready to handle connections
Nov 18 20:55:31 ncutest docker-cron/038b2a7d1aa9[1335]: Container Name: nc-php
Nov 18 20:55:31 ncutest docker-cron/038b2a7d1aa9[1335]: Found Nextcloud container with ID 43552193d26d
Nov 18 20:55:31 ncutest docker-cron/038b2a7d1aa9[1335]: Chosen shell "bash" was found in the Nextcloud container
Nov 18 20:55:31 ncutest docker-cron/038b2a7d1aa9[1335]: Starting crond
Nov 18 20:55:32 ncutest docker-nginx/6819ddbfe522[1335]: /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
Nov 18 20:55:32 ncutest docker-nginx/6819ddbfe522[1335]: /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
Nov 18 20:55:32 ncutest docker-nginx/6819ddbfe522[1335]: /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
Nov 18 20:55:32 ncutest docker-nginx/6819ddbfe522[1335]: 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
Nov 18 20:55:32 ncutest docker-nginx/6819ddbfe522[1335]: 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version
Nov 18 20:55:32 ncutest docker-nginx/6819ddbfe522[1335]: /docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
Nov 18 20:55:32 ncutest docker-nginx/6819ddbfe522[1335]: /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
Nov 18 20:55:32 ncutest docker-nginx/6819ddbfe522[1335]: /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
Nov 18 20:55:32 ncutest docker-nginx/6819ddbfe522[1335]: /docker-entrypoint.sh: Configuration complete; ready for start up
Nov 18 20:55:41 ncutest docker-php/43552193d26d[1335]: 192.168.80.5 -  18/Nov/2024:20:55:40 +0000 "GET /index.php" 200

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.

{"reqId":"ENCew9GZYx9jCeVBiqAn","level":0,"time":"2024-11-18T21:21:35+00:00","remoteAddr":"xx.yy.178.66","user":"433DA5B0-7A82-4D4E-B7DD-1067BE513330","app":"no app in context","method":"GET","url":"/apps/logreader/api/poll?lastReqId=WxkDfUsZJDa61AhHdAyn","message":"The loading of lazy AppConfig values have been requested","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36","version":"30.0.2.2","exception":{"Exception":"RuntimeException","Message":"ignorable exception","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppConfig.php","line":1180,"function":"loadConfig","class":"OC\\AppConfig","type":"->","args":[null]},{"file":"/var/www/html/lib/private/AppConfig.php","line":100,"function":"loadConfigAll","class":"OC\\AppConfig","type":"->","args":[]},{"file":"/var/www/html/lib/private/AllConfig.php","line":169,"function":"getKeys","class":"OC\\AppConfig","type":"->","args":["user_ldap"]},{"file":"/var/www/html/apps/user_ldap/lib/Helper.php","line":111,"function":"getAppKeys","class":"OC\\AllConfig","type":"->","args":["user_ldap"]},{"file":"/var/www/html/apps/user_ldap/lib/Helper.php","line":52,"function":"getServersConfig","class":"OCA\\User_LDAP\\Helper","type":"->","args":["ldap_configuration_active"]},{"file":"/var/www/html/apps/user_ldap/lib/AppInfo/Application.php","line":114,"function":"getServerConfigurationPrefixes","class":"OCA\\User_LDAP\\Helper","type":"->","args":[true]},{"file":"/var/www/html/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":28,"function":"OCA\\User_LDAP\\AppInfo\\{closure}","class":"OCA\\User_LDAP\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Bootstrap/BootContext.php","line":32,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\FunctionInjector","type":"->","args":[{"__class__":"Closure"}]},{"file":"/var/www/html/apps/user_ldap/lib/AppInfo/Application.php","line":105,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\BootContext","type":"->","args":[{"__class__":"Closure"}]},{"file":"/var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php","line":157,"function":"boot","class":"OCA\\User_LDAP\\AppInfo\\Application","type":"->","args":[{"__class__":"OC\\AppFramework\\Bootstrap\\BootContext"}]},{"file":"/var/www/html/lib/private/App/AppManager.php","line":434,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":["user_ldap"]},{"file":"/var/www/html/lib/private/App/AppManager.php","line":211,"function":"loadApp","class":"OC\\App\\AppManager","type":"->","args":["user_ldap"]},{"file":"/var/www/html/lib/private/legacy/OC_App.php","line":85,"function":"loadApps","class":"OC\\App\\AppManager","type":"->","args":[["authentication"]]},{"file":"/var/www/html/lib/base.php","line":973,"function":"loadApps","class":"OC_App","type":"::","args":[["authentication"]]},{"file":"/var/www/html/index.php","line":24,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppConfig.php","Line":1194,"message":"The loading of lazy AppConfig values have been requested","exception":[],"CustomMessage":"The loading of lazy AppConfig values have been requested"},"id":"673bafdf9c93d"}

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.

PASTE

Web server / Reverse Proxy

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

10.0.5.133 - - [18/Nov/2024:21:25:12 +0000] "GET /settings/admin/overview HTTP/1.1" 200 8393 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"
10.0.5.133 - - [18/Nov/2024:21:25:12 +0000] "GET /apps/firstrunwizard/js/firstrunwizard-about.mjs?v=7ff08fc0-25 HTTP/1.1" 200 533 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"
10.0.5.133 - - [18/Nov/2024:21:25:12 +0000] "GET /apps/firstrunwizard/js/modulepreload-polyfill-Be8VauhY.chunk.mjs HTTP/1.1" 200 969 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"
10.0.5.133 - - [18/Nov/2024:21:25:12 +0000] "GET /apps/theming/theme/dark.css?plain=1&v=1abd566c HTTP/1.1" 200 1245 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"
10.0.5.133 - - [18/Nov/2024:21:25:12 +0000] "GET /apps/theming/theme/light-highcontrast.css?plain=0&v=1abd566c HTTP/1.1" 200 1330 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"
10.0.5.133 - - [18/Nov/2024:21:25:12 +0000] "GET /apps/theming/theme/default.css?plain=1&v=1abd566c HTTP/1.1" 200 1252 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"
10.0.5.133 - - [18/Nov/2024:21:25:13 +0000] "GET /apps/theming/theme/dark-highcontrast.css?plain=0&v=1abd566c HTTP/1.1" 200 1362 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"
10.0.5.133 - - [18/Nov/2024:21:25:13 +0000] "GET /apps/theming/theme/light.css?plain=0&v=1abd566c HTTP/1.1" 200 1278 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"
10.0.5.133 - - [18/Nov/2024:21:25:13 +0000] "GET /apps/theming/theme/opendyslexic.css?plain=0&v=1abd566c HTTP/1.1" 200 321 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"
10.0.5.133 - - [18/Nov/2024:21:25:13 +0000] "GET /apps/theming/theme/dark.css?plain=0&v=1abd566c HTTP/1.1" 200 1269 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"
10.0.5.133 - - [18/Nov/2024:21:25:13 +0000] "GET /js/core/merged-template-prepend.js?v=7ff08fc0-25 HTTP/1.1" 200 2811 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"
10.0.5.133 - - [18/Nov/2024:21:25:13 +0000] "GET /apps/theming/image/logoheader?v=25 HTTP/1.1" 200 8554 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"
10.0.5.133 - - [18/Nov/2024:21:25:13 +0000] "GET /apps/theming/image/background?v=25 HTTP/1.1" 404 6130 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"
10.0.5.133 - - [18/Nov/2024:21:25:13 +0000] "GET /apps/theming/theme/light.css?plain=1&v=1abd566c HTTP/1.1" 200 1252 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"
10.0.5.133 - - [18/Nov/2024:21:25:13 +0000] "GET /apps/theming/theme/light-highcontrast.css?plain=1&v=1abd566c HTTP/1.1" 200 1304 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"
10.0.5.133 - - [18/Nov/2024:21:25:13 +0000] "GET /apps/theming/theme/dark-highcontrast.css?plain=1&v=1abd566c HTTP/1.1" 200 1337 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"
10.0.5.133 - - [18/Nov/2024:21:25:13 +0000] "GET /ocs/v2.php/search/providers?from=%2Fsettings%2Fadmin%2Foverview HTTP/1.1" 200 433 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"
10.0.5.133 - - [18/Nov/2024:21:25:13 +0000] "GET /settings/ajax/checksetup HTTP/1.1" 403 6029 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"
10.0.5.133 - - [18/Nov/2024:21:25:13 +0000] "GET /avatar/433DA5B0-7A82-4D4E-B7DD-1067BE513330/64/dark?v=2 HTTP/1.1" 200 1361 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"
10.0.5.133 - - [18/Nov/2024:21:25:13 +0000] "GET /apps/theming/favicon/settings?v=1abd566c HTTP/1.1" 200 9414 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"
10.0.5.133 - - [18/Nov/2024:21:25:13 +0000] "POST /contactsmenu/contacts HTTP/1.1" 200 2359 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"
10.0.5.133 - - [18/Nov/2024:21:25:13 +0000] "GET /apps/theming/manifest/settings?v=1abd566c HTTP/1.1" 200 240 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"
10.0.5.133 - - [18/Nov/2024:21:25:13 +0000] "GET /apps/theming/favicon/settings?v=1abd566c HTTP/1.1" 200 9414 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"
10.0.5.133 - - [18/Nov/2024:21:25:13 +0000] "GET /apps/theming/icon/settings?v=25 HTTP/1.1" 200 32140 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"
10.0.5.133 - - [18/Nov/2024:21:25:13 +0000] "GET /apps/logreader/api/poll?lastReqId=NAVwFFRoEqLzp6xtf6on HTTP/1.1" 200 5646 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"

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

www-data@43552193d26d:~/html$ ./occ config:list system
{
    "system": {
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "files.sample.com",
            "1": "ncutest.sample.com",
            "3": "10.0.40.233"
        },
        "overwrite.cli.url": "http:\/\/10.0.40.233:9090\/",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "forwarded_for_headers": [
            "HTTP_X_FORWARDED_FOR"
        ],
        "dbtype": "pgsql",
        "version": "30.0.2.2",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "installed": true,
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "default_phone_region": "US",
        "loglevel": 2,
        "log.condition": {
            "apps": [
                "admin_audit"
            ]
        },
        "maintenance": false,
        "maintenance_window_start": 1,
        "theme": "",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpsecure": "tls",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "twofactor_enforced": "false",
        "twofactor_enforced_groups": [
            "testbed_admins"
        ],
        "twofactor_enforced_excluded_groups": [],
        "app_install_overwrite": [
            "twofactor_totp"
        ],
        "upgrade.disable-web": true
    }
}

Apps

www-data@43552193d26d:~/html$ ./occ app:list
Enabled:
  - admin_audit: 1.20.0
  - app_api: 4.0.0
  - circles: 30.0.0
  - cloud_federation_api: 1.13.0
  - collectives: 2.15.0
  - dav: 1.31.1
  - federatedfilesharing: 1.20.0
  - files: 2.2.0
  - files_downloadlimit: 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
  - logreader: 3.0.0
  - lookup_server_connector: 1.18.0
  - oauth2: 1.18.1
  - password_policy: 2.0.0
  - provisioning_api: 1.20.0
  - related_resources: 1.5.0
  - serverinfo: 2.0.0
  - settings: 1.13.0
  - sharebymail: 1.20.0
  - text: 4.1.0
  - theming: 2.5.0
  - twofactor_backupcodes: 1.19.0
  - twofactor_totp: 12.0.0-dev
  - user_ldap: 1.21.0
  - viewer: 3.0.0
  - webhook_listeners: 1.1.0-dev
  - workflowengine: 2.12.0
Disabled:
  - activity: 3.0.0 (installed 2.15.0)
  - bruteforcesettings: 3.0.0 (installed 2.4.0)
  - comments: 1.20.1 (installed 1.12.0)
  - contactsinteraction: 1.11.0 (installed 1.2.0)
  - dashboard: 7.10.0 (installed 7.1.0)
  - encryption: 2.18.0
  - federation: 1.20.0 (installed 1.11.0)
  - files_external: 1.22.0
  - files_pdfviewer: 3.0.0 (installed 2.1.0)
  - files_rightclick: 0.15.1 (installed 1.0.0)
  - nextcloud_announcements: 2.0.0 (installed 1.10.0)
  - notifications: 3.0.0 (installed 2.10.1)
  - openotp_auth: 1.4.5 (installed 1.4.5)
  - photos: 3.0.2 (installed 1.3.0)
  - privacy: 2.0.0 (installed 1.5.0)
  - recommendations: 3.0.0 (installed 1.0.0)
  - support: 2.0.0 (installed 1.4.0)
  - survey_client: 2.0.0 (installed 1.9.0)
  - suspicious_login: 8.0.0
  - systemtags: 1.20.0 (installed 1.12.0)
  - twofactor_nextcloud_notification: 4.0.0
  - updatenotification: 1.20.0 (installed 1.12.0)
  - user_status: 1.10.0 (installed 1.1.1)
  - weather_status: 1.10.0 (installed 1.1.0)

This is the notable entry:

10.0.5.133 - - [18/Nov/2024:21:25:13 +0000] "GET /settings/ajax/checksetup HTTP/1.1" 403 6029 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "xx.yy.178.66"

It returns a 403.

What shows up in your Nextcloud log around that time?

During that time a see a few messages related to “Circles”, and quite a few related to ldap. I disabled Teams, and reloaded the overview page. The 403 on checksetup recurred, but messages for “Circles” went away (as expected). The nextcloud.log messages for ldap continued.

But, I now think this may be a red herring.

I normally manage Nextcloud with an ldap user account with admin privileges, and the local admin account disabled via occ. The ldap account can’t manage apps, so I enabled the local admin account, logged in as local admin using an incognito window, disabled Teams, and then went back to my ldap admin account in the original window. On a whim, I went back to the local admin account and opened the Overview page there. IT WORKS!

So I guess the next question is whether the overview page is intended to work for a normal user with admin privileges, and then whether anyone else can reproduce this problem.

Just to formalize reproduction steps for what currently appears to be the issue:

  1. Visit the Admin/overview page as a normal user that’s been granted admin privileges.
  2. See that it very quickly fails with “Error occurred while checking server setup”.
  3. Visit the Admin/overciew page as admin user.
  4. See that the overview completes as expected, with messages mirroring those in occ setupchecks

Created [Bug]: · Issue #49608 · nextcloud/server · GitHub

I have a similar issue but I get 504 error everytime on ajax/checksetup endpoint. But I don´t have this LDAP setup, just using a local admin user.

I am also getting the same error.
Just updated to the latest version and it still appears to be happening.
Any ideas on a fix?