The Basics
-
Nextcloud Server version (e.g., 29.x.x):
30.0.4
-
Operating system and version (e.g., Ubuntu 24.04):
docker image
-
Web server and version (e.g, Apache 2.4.25):
nginx
-
Reverse proxy and version _(e.g. nginx 1.27.2)
traefik v3
-
Is this the first time you’ve seen this error? (Yes / No):
yes
-
When did this problem seem to first start?
don't know. Saw it today the first time
-
Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
docker
-
Are you using CloudfIare, mod_security, or similar? (Yes / No)
no
docker compose file:
services:
database:
image: mariadb:10.11
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: on-failure
volumes:
- "./database:/var/lib/mysql"
environment:
- MYSQL_ROOT_PASSWORD=mypw
env_file:
- ./build/db.env
redis:
image: redis:alpine
restart: always
app:
image: nextcloud:fpm-alpine
restart: on-failure
environment:
MYSQL_HOST: database
REDIS_HOST: redis
env_file:
- ./build/db.env
volumes:
- ./data:/var/www/html
depends_on:
- database
- redis
web:
build: ./build/web
restart: on-failure
volumes:
- ./data:/var/www/html/:ro
labels:
- "traefik.enable=true"
- "traefik.http.routers.nextcloud.rule=Host(`nextcloud.mydomain.de`)"
- "traefik.http.routers.nextcloud.tls.certresolver=myresolver"
- "traefik.http.routers.nextcloud.entrypoints=websecure"
- "traefik.http.routers.nextcloud.middlewares=nc-header,nc-rep"
- "traefik.http.middlewares.nc-rep.redirectregex.regex=https://(.*)/.well-known/(card|cal)dav"
- "traefik.http.middlewares.nc-rep.redirectregex.replacement=https://$$1/remote.php/dav/"
- "traefik.http.middlewares.nc-rep.redirectregex.permanent=true"
- "traefik.http.middlewares.nc-header.headers.customFrameOptionsValue=SAMEORIGIN"
- "traefik.http.middlewares.nc-header.headers.customResponseHeaders.Strict-Transport-Security=15552000"
- "traefik.http.services.nextcloud.loadbalancer.passHostHeader=true"
depends_on:
- app
networks:
- proxy-tier
- default
cron:
image: nextcloud:fpm-alpine
restart: on-failure
volumes:
- ./data:/var/www/html
entrypoint: /cron.sh
depends_on:
- database
- redis
nextcloud-nc-backup:
image: waja/calcardbackup
links:
- database:nextcloud-db
- app:nextcloud
environment:
- CRON_TIME=0 0 * * *
- INIT_BACKUP=yes
- CALCARD_OPTS=-i -r 20
- NC_DIR=/nextcloud
- NC_HOST=web
- NC_PORT=80
- DB_HOST=database
depends_on:
- database
- app
restart: unless-stopped
volumes:
- ./calcardbackup:/backup
- ./data:/nextcloud
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
networks:
- proxy-tier
- default
networks:
proxy-tier:
name: proxy-tier
external: true
Summary of the issue you are facing:
If I visit the settings → management → overview, the process "Security & setup warnings does not work " fails with error:
“There are some errors with your system configuration.
Error when checking the server setup”
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.
{"reqId":"VYVhDbkrMNhtyu22J9T3","level":3,"time":"2025-01-16T12:02:51+00:00","remoteAddr":"172.18.0.2","user":"--","app":"core","method":"GET","url":"/apps/logreader/api/poll?lastReqId=4vWYyR3UqzDi39ELi8CT","message":"Exception thrown: Doctrine\\DBAL\\Exception","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:134.0) Gecko/20100101 Firefox/134.0","version":"30.0.4.1","exception":{"Exception":"Doctrine\\DBAL\\Exception","Message":"Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused","Code":2002,"Trace":[{"file":"/var/www/html/3rdparty/doctrine/dbal/src/Connection.php","line":453,"function":"connect","class":"OC\\DB\\Connection","type":"->","args":[]},{"file":"/var/www/html/3rdparty/doctrine/dbal/src/Connection.php","line":411,"function":"getDatabasePlatformVersion","class":"Doctrine\\DBAL\\Connection","type":"->","args":[]},{"file":"/var/www/html/3rdparty/doctrine/dbal/src/Connection.php","line":318,"function":"detectDatabasePlatform","class":"Doctrine\\DBAL\\Connection","type":"->","args":[]},{"file":"/var/www/html/lib/private/DB/Connection.php","line":899,"function":"getDatabasePlatform","class":"Doctrine\\DBAL\\Connection","type":"->","args":[]},{"file":"/var/www/html/lib/private/DB/ConnectionAdapter.php","line":235,"function":"getDatabaseProvider","class":"OC\\DB\\Connection","type":"->","args":[]},{"file":"/var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php","line":96,"function":"getDatabaseProvider","class":"OC\\DB\\ConnectionAdapter","type":"->","args":[]},{"file":"/var/www/html/lib/private/AppConfig.php","line":1211,"function":"expr","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->","args":[]},{"file":"/var/www/html/lib/private/AppConfig.php","line":237,"function":"loadConfig","class":"OC\\AppConfig","type":"->","args":[false]},{"file":"/var/www/html/lib/private/legacy/OC_App.php","line":695,"function":"searchValues","class":"OC\\AppConfig","type":"->","args":["installed_version"]},{"file":"/var/www/html/lib/private/TemplateLayout.php","line":198,"function":"getAppVersions","class":"OC_App","type":"::","args":[]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":119,"function":"__construct","class":"OC\\TemplateLayout","type":"->","args":["error",""]},{"file":"/var/www/html/lib/private/Template/Base.php","line":113,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":296,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"/var/www/html/index.php","line":89,"function":"printExceptionErrorPage","class":"OC_Template","type":"::","args":[{"__class__":"Doctrine\\DBAL\\Exception"},500]}],"File":"/var/www/html/lib/private/DB/Connection.php","Line":233,"CustomMessage":"Exception thrown: Doctrine\\DBAL\\Exception"},"id":"67897804723c0"}
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!):
<?php
$CONFIG = array (
'memcache.local' => '\\OC\\Memcache\\APCu',
'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,
),
),
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'redis',
'password' => '',
'port' => 6379,
),
'instanceid' => 'id',
'passwordsalt' => 'salt',
'secret' => 'secret',
'trusted_domains' =>
array (
0 => 'nextcloud.domain.de',
),
'trusted_proxies' =>
array (
0 => '172.30.0.2',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '30.0.4.1',
'overwrite.cli.url' => 'https://nextcloud.domain.de',
'dbname' => 'nextcloud',
'dbhost' => 'database',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => 'pw',
'installed' => true,
'overwriteprotocol' => 'https',
'default_phone_region' => 'DE',
'app_install_overwrite' =>
array (
0 => 'ldapcontacts',
),
'loglevel' => 2,
'maintenance' => false,
'theme' => '',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_smtpport' => '587',
'mail_smtphost' => 'smtp-mail.outlook.com',
'mail_smtpauth' => 1,
'mail_from_address' => 'mail',
'mail_domain' => 'live.de',
'mail_smtpname' => 'mail@live.de',
'mail_smtppassword' => 'pw',
'trashbin_retention_obligation' => 'auto',
'maintenance_window_start' => 1,
);
Apps
The output of occ app:list
(if possible).
Enabled:
- activity: 3.0.0
- app_api: 4.0.3
- calendar: 5.0.8
- circles: 30.0.0
- cloud_federation_api: 1.13.0
- comments: 1.20.1
- contacts: 6.1.3
- contactsinteraction: 1.11.0
- dashboard: 7.10.0
- dav: 1.31.1
- deck: 1.14.2
- federatedfilesharing: 1.20.0
- federation: 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
- integration_openai: 3.3.0
- logreader: 3.0.0
- lookup_server_connector: 1.18.0
- nextcloud_announcements: 2.0.0
- notes: 4.11.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
- richdocuments: 8.5.3
- serverinfo: 2.0.0
- settings: 1.13.0
- sharebymail: 1.20.0
- support: 2.0.0
- survey_client: 2.0.0
- systemtags: 1.20.0
- text: 4.1.0
- theming: 2.5.0
- twofactor_backupcodes: 1.19.0
- updatenotification: 1.20.0
- user_status: 1.10.0
- viewer: 3.0.0
- weather_status: 1.10.0
- webhook_listeners: 1.1.0-dev
- whiteboard: 1.0.4
- workflowengine: 2.12.0
Disabled:
- admin_audit: 1.20.0
- bruteforcesettings: 3.0.0 (installed 2.3.0)
- encryption: 2.18.0
- files_external: 1.22.0
- suspicious_login: 8.0.0
- twofactor_nextcloud_notification: 4.0.0
- twofactor_totp: 12.0.0-dev
- user_ldap: 1.21.0
If something is missing, I will provide the information later.