Can't login into a fresh Nextcloud 31 AIO install (probably a database issue)

The Basics

  • Nextcloud Server version:
    • 31.0.5
  • Operating system and version :
    • Debian 12 on RPi 5
  • Web server and version :
    • Apache 2.4.63
  • PHP version :
    • 8.3.21
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • after the update to Nextcloud 31
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • AIO
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

Can’t login into a fresh install of Nextcloud. The login page gives no response and no errors on the correct or wrong login/password. Initially the issue appeared after upgrading a Nextcloud 30 setup that was working well. Previously logged in devices stay logged in but are also unable to log in on exit. I have noticed that the database container constantly outputs connection errors (see below)

Log entries

Nextcloud

nextcloud.log

{"reqId":"kGJUYPDtjToiw3Xt5eHm","level":2,"time":"2025-06-14T07:23:52+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Cached preview not found for file /admin/files/Photos/Frog.jpg, generating a new preview.","userAgent":"--","version":"31.0.5.1","data":[]}
{"reqId":"kGJUYPDtjToiw3Xt5eHm","level":2,"time":"2025-06-14T07:23:52+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Cached preview not found for file /admin/files/Photos/Nextcloud community.jpg, generating a new preview.","userAgent":"--","version":"31.0.5.1","data":[]}
{"reqId":"kGJUYPDtjToiw3Xt5eHm","level":2,"time":"2025-06-14T07:23:53+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Cached preview not found for file /admin/files/Photos/Library.jpg, generating a new preview.","userAgent":"--","version":"31.0.5.1","data":[]}
{"reqId":"kGJUYPDtjToiw3Xt5eHm","level":2,"time":"2025-06-14T07:23:53+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Cached preview not found for file /admin/files/Nextcloud.png, generating a new preview.","userAgent":"--","version":"31.0.5.1","data":[]}
{"reqId":"kGJUYPDtjToiw3Xt5eHm","level":3,"time":"2025-06-14T07:23:55+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Error while running background job OCA\\Theming\\Jobs\\MigrateBackgroundImages (id: 110, arguments: {\"stage\":\"prepare\"})","userAgent":"--","version":"31.0.5.1","exception":{"Exception":"OCP\\Files\\NotFoundException","Message":"/appdata_ocrano0f04bh/theming/global","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Files/Node/LazyFolder.php","line":138,"function":"get","class":"OC\\Files\\Node\\Root","type":"->","args":["/appdata_ocrano0f04bh/theming/global"]},{"file":"/var/www/html/lib/private/Files/AppData/AppData.php","line":114,"function":"get","class":"OC\\Files\\Node\\LazyFolder","type":"->","args":["appdata_ocrano0f04bh/theming/global"]},{"file":"/var/www/html/apps/theming/lib/Jobs/MigrateBackgroundImages.php","line":140,"function":"getFolder","class":"OC\\Files\\AppData\\AppData","type":"->","args":["global"]},{"file":"/var/www/html/apps/theming/lib/Jobs/MigrateBackgroundImages.php","line":72,"function":"storeUserIdsToProcess","class":"OCA\\Theming\\Jobs\\MigrateBackgroundImages","type":"->","args":[[]]},{"file":"/var/www/html/apps/theming/lib/Jobs/MigrateBackgroundImages.php","line":51,"function":"runPreparation","class":"OCA\\Theming\\Jobs\\MigrateBackgroundImages","type":"->","args":[]},{"file":"/var/www/html/lib/public/BackgroundJob/Job.php","line":61,"function":"run","class":"OCA\\Theming\\Jobs\\MigrateBackgroundImages","type":"->","args":[{"stage":"prepare"}]},{"file":"/var/www/html/lib/public/BackgroundJob/QueuedJob.php","line":43,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"}]},{"file":"/var/www/html/lib/public/BackgroundJob/QueuedJob.php","line":29,"function":"start","class":"OCP\\BackgroundJob\\QueuedJob","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"}]},{"file":"/var/www/html/cron.php","line":170,"function":"execute","class":"OCP\\BackgroundJob\\QueuedJob","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"}]}],"File":"/var/www/html/lib/private/Files/Node/Root.php","Line":182,"message":"Error while running background job OCA\\Theming\\Jobs\\MigrateBackgroundImages (id: 110, arguments: {\"stage\":\"prepare\"})","exception":{},"CustomMessage":"Error while running background job OCA\\Theming\\Jobs\\MigrateBackgroundImages (id: 110, arguments: {\"stage\":\"prepare\"})"}}
{"reqId":"kGJUYPDtjToiw3Xt5eHm","level":2,"time":"2025-06-14T07:23:58+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"failed to create instance of background job: OCA\\Talk\\BackgroundJob\\CheckTurnCertificate","userAgent":"--","version":"31.0.5.1","exception":{"Exception":"OC\\AppFramework\\Utility\\QueryNotFoundException","Message":"Could not resolve OCA\\Talk\\BackgroundJob\\CheckTurnCertificate! Class \"OCA\\Talk\\BackgroundJob\\CheckTurnCertificate\" does not exist","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":124,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Talk\\BackgroundJob\\CheckTurnCertificate"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":440,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Talk\\BackgroundJob\\CheckTurnCertificate"]},{"file":"/var/www/html/lib/private/ServerContainer.php","line":137,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Talk\\BackgroundJob\\CheckTurnCertificate"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":42,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OCA\\Talk\\BackgroundJob\\CheckTurnCertificate"]},{"file":"/var/www/html/lib/public/Server.php","line":39,"function":"get","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Talk\\BackgroundJob\\CheckTurnCertificate"]},{"file":"/var/www/html/lib/private/BackgroundJob/JobList.php","line":309,"function":"get","class":"OCP\\Server","type":"::","args":["OCA\\Talk\\BackgroundJob\\CheckTurnCertificate"]},{"file":"/var/www/html/lib/private/BackgroundJob/JobList.php","line":198,"function":"buildJob","class":"OC\\BackgroundJob\\JobList","type":"->","args":[{"id":123,"class":"OCA\\Talk\\BackgroundJob\\CheckTurnCertificate","argument":"null","last_run":0,"last_checked":1749885814,"0":"And 4 more entries, set log level to debug to see all entries"}]},{"file":"/var/www/html/cron.php","line":152,"function":"getNext","class":"OC\\BackgroundJob\\JobList","type":"->","args":[false,null]}],"File":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","Line":113,"message":"failed to create instance of background job: OCA\\Talk\\BackgroundJob\\CheckTurnCertificate","exception":{},"CustomMessage":"failed to create instance of background job: OCA\\Talk\\BackgroundJob\\CheckTurnCertificate"}}
{"reqId":"KfA0I55inEDtxVRrLO7q","level":2,"time":"2025-06-14T07:24:38+00:00","remoteAddr":"192.168.1.1","user":"--","app":"spreed","method":"GET","url":"/login","message":"Value type is set to zero (0) in database. This is fine only during the upgrade process from 28 to 29.","userAgent":"Mozilla/5.0 (Windows) mirall/3.16.5 (build 20250602) (Nextcloud, windows-10.0.26100 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"31.0.5.1","data":{"app":"spreed","key":"signaling_token_privkey_es256"}}
{"reqId":"KfA0I55inEDtxVRrLO7q","level":3,"time":"2025-06-14T07:24:38+00:00","remoteAddr":"192.168.1.1","user":"--","app":"index","method":"GET","url":"/login","message":"unknown config key","userAgent":"Mozilla/5.0 (Windows) mirall/3.16.5 (build 20250602) (Nextcloud, windows-10.0.26100 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"31.0.5.1","exception":{"Exception":"OCP\\Exceptions\\AppConfigUnknownKeyException","Message":"unknown config key","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppConfig.php","line":816,"function":"isLazy","class":"OC\\AppConfig","type":"->","args":["spreed","signaling_token_privkey_es256"]},{"file":"/var/www/html/lib/private/AppConfig.php","line":1346,"function":"setTypedValue","class":"OC\\AppConfig","type":"->","args":["spreed","signaling_token_privkey_es256","-----BEGIN PRIVATE KEY-----\nMIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgNC0i0savUCoBdODp\n4xeQ2uBgUJdDmbQZ6WcSboE6HamhRANCAARW1gygEm7ltBNuyNGjs6RIHmDSE14z\nCmIqHLW1KOgE7HNAbfd4Sq1ROgV/EX0ud6y3vlpDj92/OvxRSlIvXEDe\n-----END PRIVATE KEY-----\n",false,2]},{"file":"/var/www/html/lib/private/AllConfig.php","line":184,"function":"setValue","class":"OC\\AppConfig","type":"->","args":["spreed","signaling_token_privkey_es256","-----BEGIN PRIVATE KEY-----\nMIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgNC0i0savUCoBdODp\n4xeQ2uBgUJdDmbQZ6WcSboE6HamhRANCAARW1gygEm7ltBNuyNGjs6RIHmDSE14z\nCmIqHLW1KOgE7HNAbfd4Sq1ROgV/EX0ud6y3vlpDj92/OvxRSlIvXEDe\n-----END PRIVATE KEY-----\n"]},{"file":"/var/www/html/custom_apps/spreed/lib/Config.php","line":555,"function":"setAppValue","class":"OC\\AllConfig","type":"->","args":["spreed","signaling_token_privkey_es256","-----BEGIN PRIVATE KEY-----\nMIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgNC0i0savUCoBdODp\n4xeQ2uBgUJdDmbQZ6WcSboE6HamhRANCAARW1gygEm7ltBNuyNGjs6RIHmDSE14z\nCmIqHLW1KOgE7HNAbfd4Sq1ROgV/EX0ud6y3vlpDj92/OvxRSlIvXEDe\n-----END PRIVATE KEY-----\n"]},{"file":"/var/www/html/custom_apps/spreed/lib/Config.php","line":576,"function":"ensureSignalingTokenKeys","class":"OCA\\Talk\\Config","type":"->","args":["ES256"]},{"file":"/var/www/html/custom_apps/spreed/lib/Capabilities.php","line":315,"function":"getSignalingTokenPublicKey","class":"OCA\\Talk\\Config","type":"->","args":[]},{"file":"/var/www/html/lib/private/CapabilitiesManager.php","line":61,"function":"getCapabilities","class":"OCA\\Talk\\Capabilities","type":"->","args":[]},{"file":"/var/www/html/lib/private/Template/JSConfigHelper.php","line":137,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->","args":[false,true]},{"file":"/var/www/html/lib/private/TemplateLayout.php","line":233,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->","args":[]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":120,"function":"__construct","class":"OC\\TemplateLayout","type":"->","args":["guest","core"]},{"file":"/var/www/html/lib/public/AppFramework/Http/TemplateResponse.php","line":189,"function":"fetchPage","class":"OC_Template","type":"->","args":[{"alt_login":[],"pageTitle":"\u0412\u043e\u0439\u0442\u0438"}]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":159,"function":"render","class":"OCP\\AppFramework\\Http\\TemplateResponse","type":"->","args":[]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\LoginController"},"showLoginForm"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":307,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\LoginController","showLoginForm",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"core.login.showloginform"}]},{"file":"/var/www/html/lib/base.php","line":1040,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/login"]},{"file":"/var/www/html/index.php","line":24,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppConfig.php","Line":182,"message":"unknown config key","exception":{},"CustomMessage":"unknown config key"}}
{"reqId":"qLmhER1UMKQZmDjVAcxF","level":2,"time":"2025-06-14T07:25:48+00:00","remoteAddr":"192.168.1.1","user":"--","app":"no app in context","method":"GET","url":"/login","message":"Capabilities of OCA\\Files_Sharing\\Capabilities took 0.73 seconds to generate.","userAgent":"Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36","version":"31.0.5.1","data":[]}
{"reqId":"qLmhER1UMKQZmDjVAcxF","level":3,"time":"2025-06-14T07:25:50+00:00","remoteAddr":"192.168.1.1","user":"--","app":"no app in context","method":"GET","url":"/login","message":"Capabilities of OCA\\Provisioning_API\\Capabilities took 0.91 seconds to generate.","userAgent":"Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36","version":"31.0.5.1","data":[]}


Web Browser

No errors

Web server / Reverse Proxy

2025-06-14T07:21:23.311901993Z Waiting for Nextcloud to start...

2025-06-14T07:21:28.327870827Z Waiting for Nextcloud to start...

2025-06-14T07:21:33.336508476Z Waiting for Nextcloud to start...

2025-06-14T07:21:38.783573763Z Waiting for Nextcloud to start...

2025-06-14T07:21:43.781597301Z Waiting for Nextcloud to start...

2025-06-14T07:21:48.783948746Z Waiting for Nextcloud to start...

2025-06-14T07:21:53.785741136Z Waiting for Nextcloud to start...

2025-06-14T07:21:58.794937415Z Waiting for Nextcloud to start...

2025-06-14T07:22:03.810303638Z Waiting for Nextcloud to start...

2025-06-14T07:22:08.812931454Z Waiting for Nextcloud to start...

2025-06-14T07:22:13.815849121Z Waiting for Nextcloud to start...

2025-06-14T07:22:18.822353678Z Waiting for Nextcloud to start...

2025-06-14T07:22:23.823131605Z Waiting for Nextcloud to start...

2025-06-14T07:22:28.825329439Z Waiting for Nextcloud to start...

2025-06-14T07:22:33.829075162Z Waiting for Nextcloud to start...

2025-06-14T07:22:38.830835330Z Waiting for Nextcloud to start...

2025-06-14T07:22:43.835322979Z Waiting for Nextcloud to start...

2025-06-14T07:22:48.838374109Z Waiting for Nextcloud to start...

2025-06-14T07:22:53.847055555Z Waiting for Nextcloud to start...

2025-06-14T07:22:58.858381333Z Waiting for Nextcloud to start...

2025-06-14T07:23:03.860051779Z Waiting for Nextcloud to start...

2025-06-14T07:23:08.863181891Z Waiting for Nextcloud to start...

2025-06-14T07:23:13.865564207Z Waiting for Nextcloud to start...

2025-06-14T07:23:18.868700189Z Waiting for Nextcloud to start...

2025-06-14T07:23:23.873059819Z Waiting for Nextcloud to start...

2025-06-14T07:23:28.876251820Z Waiting for Nextcloud to start...

2025-06-14T07:23:33.881963303Z Waiting for Nextcloud to start...

2025-06-14T07:23:38.884616211Z Waiting for Nextcloud to start...

2025-06-14T07:23:43.886748675Z Waiting for Nextcloud to start...

2025-06-14T07:23:48.889515861Z Connection to nextcloud-aio-nextcloud (172.29.0.8) 9000 port [tcp/*] succeeded!

2025-06-14T07:23:51.502310063Z INF ts=1749885831.501877 msg=maxprocs: Leaving GOMAXPROCS=4: CPU quota undefined

2025-06-14T07:23:51.503020563Z INF ts=1749885831.5024478 msg=GOMEMLIMIT is updated package=github.com/KimMachineGun/automemlimit/memlimit GOMEMLIMIT=7609850265 previous=9223372036854776000

2025-06-14T07:23:51.503433378Z INF ts=1749885831.502539 msg=using config from file file=/tmp/Caddyfile

2025-06-14T07:23:51.507264304Z INF ts=1749885831.5070167 msg=adapted config to JSON adapter=caddyfile

2025-06-14T07:23:51.534417655Z [Sat Jun 14 10:23:51.530594 2025] [mpm_event:notice] [pid 120:tid 120] AH00489: Apache/2.4.63 (Unix) configured -- resuming normal operations

2025-06-14T07:23:51.534462896Z [Sat Jun 14 10:23:51.530738 2025] [core:notice] [pid 120:tid 120] AH00094: Command line: '/usr/local/apache2/bin/httpd -D FOREGROUND'

2025-06-14T07:23:51.538619729Z INF ts=1749885831.5383866 msg=serving initial configuration



Database

2025-06-14T07:21:08.927764717Z + rm -rf '/var/lib/postgresql/data/*'

2025-06-14T07:21:08.933122679Z + touch /mnt/data/initial-cleanup-done

2025-06-14T07:21:08.936670772Z + set +ex

2025-06-14T07:21:08.975198160Z chmod: /var/run/postgresql: Operation not permitted

2025-06-14T07:21:09.111096342Z The files belonging to this database system will be owned by user "postgres".

2025-06-14T07:21:09.111135601Z This user must also own the server process.

2025-06-14T07:21:09.111147268Z 

2025-06-14T07:21:09.112551713Z The database cluster will be initialized with locale "en_US.utf8".

2025-06-14T07:21:09.112580583Z The default database encoding has accordingly been set to "UTF8".

2025-06-14T07:21:09.112584972Z The default text search configuration will be set to "english".

2025-06-14T07:21:09.112587490Z 

2025-06-14T07:21:09.112589509Z Data page checksums are disabled.

2025-06-14T07:21:09.112591731Z 

2025-06-14T07:21:09.112594453Z fixing permissions on existing directory /var/lib/postgresql/data ... ok

2025-06-14T07:21:09.112597120Z creating subdirectories ... ok

2025-06-14T07:21:09.112599231Z selecting dynamic shared memory implementation ... posix

2025-06-14T07:21:09.174693137Z selecting default "max_connections" ... 100

2025-06-14T07:21:09.240040710Z selecting default "shared_buffers" ... 128MB

2025-06-14T07:21:09.242896321Z selecting default time zone ... Europe/Minsk

2025-06-14T07:21:09.246210043Z creating configuration files ... ok

2025-06-14T07:21:09.652294108Z running bootstrap script ... ok

2025-06-14T07:21:10.248923613Z sh: locale: not found

2025-06-14T07:21:10.249398817Z 2025-06-14 10:21:10.249 +03 [30] WARNING:  no usable system locales were found

2025-06-14T07:21:11.550835177Z performing post-bootstrap initialization ... ok

2025-06-14T07:21:11.974415835Z syncing data to disk ... ok

2025-06-14T07:21:11.974446983Z 

2025-06-14T07:21:11.974452279Z 

2025-06-14T07:21:11.974456057Z Success. You can now start the database server using:

2025-06-14T07:21:11.974459131Z 

2025-06-14T07:21:11.974461742Z     pg_ctl -D /var/lib/postgresql/data -l logfile start

2025-06-14T07:21:11.974464668Z 

2025-06-14T07:21:11.974415798Z initdb: warning: enabling "trust" authentication for local connections

2025-06-14T07:21:11.974473057Z initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.

2025-06-14T07:21:12.164591775Z waiting for server to start....2025-06-14 10:21:12.164 +03 [36] LOG:  starting PostgreSQL 17.5 on aarch64-unknown-linux-musl, compiled by gcc (Alpine 14.2.0) 14.2.0, 64-bit

2025-06-14T07:21:12.164636608Z 2025-06-14 10:21:12.164 +03 [36] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"

2025-06-14T07:21:12.180114608Z 2025-06-14 10:21:12.179 +03 [39] LOG:  database system was shut down at 2025-06-14 10:21:11 +03

2025-06-14T07:21:12.187484293Z 2025-06-14 10:21:12.186 +03 [36] LOG:  database system is ready to accept connections

2025-06-14T07:21:12.222742922Z  done

2025-06-14T07:21:12.222816737Z server started

2025-06-14T07:21:12.386402826Z CREATE DATABASE

2025-06-14T07:21:12.386858252Z 

2025-06-14T07:21:12.389271529Z 

2025-06-14T07:21:12.389481863Z /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/init-user-db.sh

2025-06-14T07:21:12.392130363Z + touch /mnt/data/initialization.failed

2025-06-14T07:21:12.394137400Z + psql -v ON_ERROR_STOP=1 --username nextcloud --dbname nextcloud_database

2025-06-14T07:21:12.431169917Z CREATE ROLE

2025-06-14T07:21:12.432361047Z ALTER DATABASE

2025-06-14T07:21:12.436414843Z GRANT

2025-06-14T07:21:12.439168954Z GRANT

2025-06-14T07:21:12.440870473Z + rm /mnt/data/initialization.failed

2025-06-14T07:21:12.443885695Z + set +ex

2025-06-14T07:21:12.446488213Z 

2025-06-14T07:21:12.447047917Z waiting for server to shut down....2025-06-14 10:21:12.445 +03 [36] LOG:  received fast shutdown request

2025-06-14T07:21:12.449875213Z 2025-06-14 10:21:12.449 +03 [36] LOG:  aborting any active transactions

2025-06-14T07:21:12.455228769Z 2025-06-14 10:21:12.455 +03 [36] LOG:  background worker "logical replication launcher" (PID 42) exited with exit code 1

2025-06-14T07:21:12.457807787Z 2025-06-14 10:21:12.457 +03 [37] LOG:  shutting down

2025-06-14T07:21:12.461781491Z 2025-06-14 10:21:12.461 +03 [37] LOG:  checkpoint starting: shutdown immediate

2025-06-14T07:21:12.766336706Z 2025-06-14 10:21:12.765 +03 [37] LOG:  checkpoint complete: wrote 933 buffers (5.7%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.046 s, sync=0.247 s, total=0.309 s; sync files=308, longest=0.043 s, average=0.001 s; distance=4255 kB, estimate=4255 kB; lsn=0/1912928, redo lsn=0/1912928

2025-06-14T07:21:12.773048632Z 2025-06-14 10:21:12.772 +03 [36] LOG:  database system is shut down

2025-06-14T07:21:12.848255371Z  done

2025-06-14T07:21:12.848287908Z server stopped

2025-06-14T07:21:12.855961889Z 

2025-06-14T07:21:12.856020075Z PostgreSQL init process complete; ready for start up.

2025-06-14T07:21:12.856026575Z 

2025-06-14T07:21:12.895719370Z 2025-06-14 10:21:12.895 +03 [14] LOG:  starting PostgreSQL 17.5 on aarch64-unknown-linux-musl, compiled by gcc (Alpine 14.2.0) 14.2.0, 64-bit

2025-06-14T07:21:12.896079055Z 2025-06-14 10:21:12.895 +03 [14] LOG:  listening on IPv4 address "0.0.0.0", port 5432

2025-06-14T07:21:12.896096000Z 2025-06-14 10:21:12.895 +03 [14] LOG:  listening on IPv6 address "::", port 5432

2025-06-14T07:21:12.898189277Z 2025-06-14 10:21:12.898 +03 [14] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"

2025-06-14T07:21:12.906394648Z 2025-06-14 10:21:12.905 +03 [57] LOG:  database system was shut down at 2025-06-14 10:21:12 +03

2025-06-14T07:21:12.916487462Z 2025-06-14 10:21:12.915 +03 [14] LOG:  database system is ready to accept connections

2025-06-14T07:22:23.746191699Z 2025-06-14 10:22:23.746 +03 [97] ERROR:  relation "oc_circle_circles" does not exist at character 15

2025-06-14T07:22:23.747013125Z 2025-06-14 10:22:23.746 +03 [97] STATEMENT:  SELECT * FROM "oc_circle_circles"

2025-06-14T07:24:38.855776409Z 2025-06-14 10:24:38.855 +03 [257] ERROR:  duplicate key value violates unique constraint "oc_appconfig_pkey"

2025-06-14T07:24:38.855811743Z 2025-06-14 10:24:38.855 +03 [257] DETAIL:  Key (appid, configkey)=(spreed, signaling_token_privkey_es256) already exists.

2025-06-14T07:24:38.855817539Z 2025-06-14 10:24:38.855 +03 [257] STATEMENT:  INSERT INTO "oc_appconfig" ("appid", "lazy", "type", "configkey", "configvalue") VALUES($1, $2, $3, $4, $5)

2025-06-14T07:26:13.002736207Z 2025-06-14 10:26:13.002 +03 [55] LOG:  checkpoint starting: time

2025-06-14T07:27:45.981147789Z 2025-06-14 10:27:45.980 +03 [55] LOG:  checkpoint complete: wrote 900 buffers (5.5%); 1 WAL file(s) added, 0 removed, 0 recycled; write=88.647 s, sync=0.217 s, total=92.978 s; sync files=1042, longest=0.005 s, average=0.001 s; distance=6555 kB, estimate=6555 kB; lsn=0/1F79638, redo lsn=0/1F795A8

2025-06-14T07:31:14.078397633Z 2025-06-14 10:31:14.078 +03 [55] LOG:  checkpoint starting: time

2025-06-14T07:31:19.119086281Z 2025-06-14 10:31:19.118 +03 [55] LOG:  checkpoint complete: wrote 51 buffers (0.3%); 0 WAL file(s) added, 0 removed, 0 recycled; write=5.015 s, sync=0.015 s, total=5.041 s; sync files=44, longest=0.004 s, average=0.001 s; distance=213 kB, estimate=5920 kB; lsn=0/1FAEB58, redo lsn=0/1FAEB00

2025-06-14T07:36:14.212384451Z 2025-06-14 10:36:14.212 +03 [55] LOG:  checkpoint starting: time

2025-06-14T07:36:16.940411483Z 2025-06-14 10:36:16.940 +03 [55] LOG:  checkpoint complete: wrote 28 buffers (0.2%); 0 WAL file(s) added, 0 removed, 0 recycled; write=2.710 s, sync=0.010 s, total=2.728 s; sync files=23, longest=0.004 s, average=0.001 s; distance=151 kB, estimate=5343 kB; lsn=0/1FD47D8, redo lsn=0/1FD4780

2025-06-14T07:41:15.038403438Z 2025-06-14 10:41:15.038 +03 [55] LOG:  checkpoint starting: time

2025-06-14T07:41:17.768414415Z 2025-06-14 10:41:17.768 +03 [55] LOG:  checkpoint complete: wrote 28 buffers (0.2%); 0 WAL file(s) added, 0 removed, 0 recycled; write=2.709 s, sync=0.006 s, total=2.731 s; sync files=18, longest=0.002 s, average=0.001 s; distance=163 kB, estimate=4825 kB; lsn=0/1FFD570, redo lsn=0/1FFD518

2025-06-14T07:46:15.867606907Z 2025-06-14 10:46:15.867 +03 [55] LOG:  checkpoint starting: time

2025-06-14T07:46:17.895222548Z 2025-06-14 10:46:17.895 +03 [55] LOG:  checkpoint complete: wrote 21 buffers (0.1%); 0 WAL file(s) added, 0 removed, 1 recycled; write=2.007 s, sync=0.008 s, total=2.028 s; sync files=15, longest=0.005 s, average=0.001 s; distance=110 kB, estimate=4354 kB; lsn=0/2018EF8, redo lsn=0/2018EA0

2025-06-14T07:51:15.994445799Z 2025-06-14 10:51:15.994 +03 [55] LOG:  checkpoint starting: time

2025-06-14T07:51:17.720681539Z 2025-06-14 10:51:17.720 +03 [55] LOG:  checkpoint complete: wrote 18 buffers (0.1%); 0 WAL file(s) added, 0 removed, 0 recycled; write=1.707 s, sync=0.008 s, total=1.727 s; sync files=12, longest=0.003 s, average=0.001 s; distance=124 kB, estimate=3931 kB; lsn=0/2037F70, redo lsn=0/2037EE0

2025-06-14T07:56:15.809218050Z 2025-06-14 10:56:15.809 +03 [55] LOG:  checkpoint starting: time

2025-06-14T07:56:18.337847976Z 2025-06-14 10:56:18.337 +03 [55] LOG:  checkpoint complete: wrote 26 buffers (0.2%); 0 WAL file(s) added, 0 removed, 0 recycled; write=2.509 s, sync=0.007 s, total=2.529 s; sync files=16, longest=0.002 s, average=0.001 s; distance=139 kB, estimate=3552 kB; lsn=0/205AF08, redo lsn=0/205AEB0

2025-06-14T08:01:15.434158286Z 2025-06-14 11:01:15.433 +03 [55] LOG:  checkpoint starting: time

2025-06-14T08:01:17.160334470Z 2025-06-14 11:01:17.160 +03 [55] LOG:  checkpoint complete: wrote 18 buffers (0.1%); 0 WAL file(s) added, 0 removed, 0 recycled; write=1.707 s, sync=0.008 s, total=1.727 s; sync files=12, longest=0.004 s, average=0.001 s; distance=122 kB, estimate=3209 kB; lsn=0/2079978, redo lsn=0/2079920

The container itself constantly outputs this error:
psql: error: connection to server at “127.0.0.1”, port 11000 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? now ------------------------------

Configuration

Nextcloud

{
    "system": {
        "one-click-instance": true,
        "one-click-instance.user-limit": 100,
        "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***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "overwritehost": "mydomain",
        "overwriteprotocol": "https",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "mydomain"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "31.0.5.1",
        "overwrite.cli.url": "https:\/\/mydomain\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "loglevel": 2,
        "log_type": "file",
        "logfile": "\/var\/www\/html\/data\/nextcloud.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"
        },
        "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",
        "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": false,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "preview_imaginary_key": "***REMOVED SENSITIVE VALUE***",
        "DOMAIN": "mydomain"
    }
}

Apps

Enabled:
  - activity: 4.0.0
  - admin_audit: 1.21.0
  - bruteforcesettings: 4.0.0
  - calendar: 5.3.2
  - circles: 31.0.0
  - cloud_federation_api: 1.14.0
  - comments: 1.21.0
  - contacts: 7.1.3
  - contactsinteraction: 1.12.0
  - dashboard: 7.11.0
  - dav: 1.33.0
  - deck: 1.15.1
  - federatedfilesharing: 1.21.0
  - federation: 1.21.0
  - files: 2.3.1
  - files_downloadlimit: 4.0.0
  - files_pdfviewer: 4.0.0
  - files_reminders: 1.4.0
  - files_sharing: 1.23.1
  - files_trashbin: 1.21.0
  - files_versions: 1.24.0
  - firstrunwizard: 4.0.0
  - logreader: 4.0.0
  - lookup_server_connector: 1.19.0
  - nextcloud-aio: 0.8.0
  - nextcloud_announcements: 3.0.0
  - notes: 4.12.1
  - notifications: 4.0.0
  - notify_push: 1.1.0
  - oauth2: 1.19.1
  - password_policy: 3.0.0
  - photos: 4.0.0-dev.1
  - privacy: 3.0.0
  - profile: 1.0.0
  - provisioning_api: 1.21.0
  - recommendations: 4.0.0
  - related_resources: 2.0.0
  - serverinfo: 3.0.0
  - settings: 1.14.0
  - sharebymail: 1.21.0
  - support: 3.0.0
  - survey_client: 3.0.0
  - systemtags: 1.21.1
  - tasks: 0.16.1
  - text: 5.0.0
  - theming: 2.6.1
  - twofactor_backupcodes: 1.20.0
  - twofactor_totp: 13.0.0-dev.0
  - user_status: 1.11.0
  - viewer: 4.0.0
  - weather_status: 1.11.0
  - webhook_listeners: 1.2.0
  - workflowengine: 2.13.0
Disabled:
  - app_api: 5.0.2 (installed 5.0.2)
  - encryption: 2.19.0
  - files_external: 1.23.0
  - suspicious_login: 9.0.1
  - twofactor_nextcloud_notification: 5.0.0
  - user_ldap: 1.22.0