Error while trying to create admin user: Failed to connect to the database: An exception occured in driver: SQLSTATE[08006] [7] FATAL: permission denied for database "nextcloud" DETAIL: User does not have CONNECT privilege.
Hey please have a look at #345.
It boils down to the following: If you use postgres, nextcloud has to create the database with the installation routine and can not use the automatically created one from the postgres container:
To solve this let the container create a database with a different name:
...
services:
image: postgres
...
environment:
- POSTGRES_DATABASE=idontcare
...
Thanks @SnowMB, I had the same issue, and your workaround worked for me \o/
Shouldn't it be documented somewhere ?
We will track the status of the bug in #345.
Most helpful comment
Hey please have a look at #345.
It boils down to the following: If you use postgres, nextcloud has to create the database with the installation routine and can not use the automatically created one from the postgres container:
To solve this let the container create a database with a different name: