Upgrading from AIO 10.13.0 to 10.14.0 has caused nextcloud-aio-nextcloud to enter a reboot loop. For testing, I can stop all containers and then manually start them all. The nextcloud-aio-nextcloud container will have no issues until nextcloud-aio-database container starts and then nextcloud-aio-nextcloud will proceed with constant reboots.
Sample logs from nextcloud-aio-nextcloud container:
The initial Nextcloud installation failed.
Please reset AIO properly and try again. For further clues what went wrong, check the logs above.
Connection to nextcloud-aio-database (172.18.0.5) 5432 port [tcp/postgresql] succeeded!
- ‘[’ -f /dev-dri-group-was-added ‘]’
++ find /dev -maxdepth 1 -mindepth 1 -name dri - ‘[’ -n ‘’ ‘]’
- set +x
Connection to nextcloud-aio-redis (172.18.0.6) 6379 port [tcp/redis] succeeded!
Connection to nextcloud-aio-database (172.18.0.5) 5432 port [tcp/postgresql] succeeded! - ‘[’ -f /dev-dri-group-was-added ‘]’
See GitHub - nextcloud/all-in-one: 📦 The official Nextcloud installation method. Provides easy deployment and maintenance with most features included in this one Nextcloud instance.
++ find /dev -maxdepth 1 -mindepth 1 -name dri - ‘[’ -n ‘’ ‘]’
- set +x
Connection to nextcloud-aio-redis (172.18.0.6) 6379 port [tcp/redis] succeeded!
Connection to nextcloud-aio-database (172.18.0.5) 5432 port [tcp/postgresql] succeeded!
now
2025-05-14 14:12:01.070123+00
(1 row)
The initial Nextcloud installation failed.
Please reset AIO properly and try again. For further clues what went wrong, check the logs above.
See GitHub - nextcloud/all-in-one: 📦 The official Nextcloud installation method. Provides easy deployment and maintenance with most features included in this one Nextcloud instance.
now
- ‘[’ -f /dev-dri-group-was-added ‘]’
++ find /dev -maxdepth 1 -mindepth 1 -name dri - ‘[’ -n ‘’ ‘]’
- set +x
Connection to nextcloud-aio-redis (172.18.0.6) 6379 port [tcp/redis] succeeded!
Connection to nextcloud-aio-database (172.18.0.5) 5432 port [tcp/postgresql] succeeded! - ‘[’ -f /dev-dri-group-was-added ‘]’
++ find /dev -maxdepth 1 -mindepth 1 -name dri - ‘[’ -n ‘’ ‘]’
- set +x
Connection to nextcloud-aio-redis (172.18.0.6) 6379 port [tcp/redis] succeeded!
Connection to nextcloud-aio-database (172.18.0.5) 5432 port [tcp/postgresql] succeeded! - ‘[’ -f /dev-dri-group-was-added ‘]’
++ find /dev -maxdepth 1 -mindepth 1 -name dri - ‘[’ -n ‘’ ‘]’
- set +x
Connection to nextcloud-aio-redis (172.18.0.6) 6379 port [tcp/redis] succeeded!
2025-05-14 14:12:05.011061+00
(1 row)
Sample logs from nextcloud-aio-database container:
aredman@cloud:[/mnt/data]: sudo docker logs nextcloud-aio-database
Setting postgres values…
chmod: /var/run/postgresql: Operation not permitted
PostgreSQL Database directory appears to contain a database; Skipping initialization
2025-05-14 14:11:26.084 UTC [14] LOG: starting PostgreSQL 16.8 on x86_64-pc-linux-musl, compiled by gcc (Alpine 14.2.0) 14.2.0, 64-bit
2025-05-14 14:11:26.084 UTC [14] LOG: listening on IPv4 address “0.0.0.0”, port 5432
2025-05-14 14:11:26.084 UTC [14] LOG: listening on IPv6 address “::”, port 5432
2025-05-14 14:11:26.085 UTC [14] LOG: listening on Unix socket “/var/run/postgresql/.s.PGSQL.5432”
2025-05-14 14:11:26.087 UTC [24] LOG: database system was shut down at 2025-05-14 02:24:21 UTC
2025-05-14 14:11:26.091 UTC [14] LOG: database system is ready to accept connections
++ rm -f /mnt/data/database-dump.sql.temp
++ touch /mnt/data/export.failed
++ pg_dump --username nextcloud nextcloud_database
++ rm -f /mnt/data/database-dump.sql
++ mv /mnt/data/database-dump.sql.temp /mnt/data/database-dump.sql
++ pg_ctl stop -m fast
2025-05-14 14:12:49.502 UTC [14] LOG: received fast shutdown request
2025-05-14 14:12:49.503 UTC [14] LOG: aborting any active transactions
2025-05-14 14:12:49.505 UTC [14] LOG: background worker “logical replication launcher” (PID 27) exited with exit code 1
2025-05-14 14:12:49.505 UTC [22] LOG: shutting down
2025-05-14 14:12:49.527 UTC [14] LOG: database system is shut down
waiting for server to shut down… done
server stopped
++ rm /mnt/data/export.failed
++ echo ‘Database dump successful!’
++ set +x
Database dump successful!
So, what did I do after the upgrade? Good question. I went to my NAS and restored the backups (tried two of them) from the previous two days but it still fails with the backups restored.
Thoughts?
Andy