hoellen / docker-nextcloud

All-in-one Nextcloud Docker image. Alpine-based, rootless and simple.
31 stars 5 forks source link

No database connection #58

Closed thiesschneider closed 10 months ago

thiesschneider commented 10 months ago

Hey there,

since the commit 8070434 I do get the log message: waiting for the database container... and the container is not starting. I use a postgres database and it was and is connectable from within the nextcloud container. When I do occ upgrade for example the response is

Setting log level to debug
Turned on maintenance mode
Updating database schema
Updated database
Updating <calendar> ...
Updated <calendar> to 4.6.1
Starting code integrity check...
Finished code integrity check
Update successful
Turned off maintenance mode
Resetting log level

so I assume nextcloud itself can access the database.

Do you have an idea how to fix this?

thx!

waja commented 10 months ago

If you enter your Nextcloud container, what is in the values DB_TYPE, DB_PORT and DB_HOST?

thiesschneider commented 10 months ago

Hey @waja,

I did not specify DB_PORT, which I added now (5432) and now it is working again. It did work without before, but good to know now!

Thank you.

hoellen commented 10 months ago

The new database check at startup now has the correct default port for Postgres (https://github.com/hoellen/docker-nextcloud/commit/dec3a7f7894f4152270c69fff71b812d7d047e08). Sorry for the inconvenience.