Docker: Using stack.yml to deploy this error

Created on 12 Sep 2018  路  3Comments  路  Source: nextcloud/docker

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.

duplicate help wanted

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:

...
services:
  image: postgres
  ...
  environment: 
    - POSTGRES_DATABASE=idontcare
  ...

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings