Nextcloud noob user - Postgres and Nextcloud

Hi all

I just tryed setting up a PostgresSQL.
Made a database
But after i connectet and made a “admin” account. I get
“Internal server error”
NHbhih3mycfGYzNwC8mF

The logs dont tell me mutch :frowning:
using keys found in /config/keys
[custom-init] No custom files found, skipping…
[ls.io-init] done.
Exception: Not installed in /config/www/nextcloud/lib/base.php:281
Stack trace:
#0 /config/www/nextcloud/lib/base.php(697): OC::checkInstalled()
#1 /config/www/nextcloud/lib/base.php(1165): OC::init()
#2 /config/www/nextcloud/cron.php(43): require_once(‘…’)
#3 {main}

But the postgres logs give me this?
PostgreSQL Database directory appears to contain a database; Skipping initialization

2023-05-09 16:04:01.156 CEST [33] FATAL: password authentication failed for user “nextcloud_db”

2023-05-09 16:04:01.156 CEST [33] DETAIL: Role “nextcloud_db” does not exist.

Connection matched pg_hba.conf line 100: “host all all all scram-sha-256”

2023-05-09 16:04:16.633 CEST [34] FATAL: password authentication failed for user “nextcloud_db”

2023-05-09 16:04:16.633 CEST [34] DETAIL: Role “nextcloud_db” does not exist.

Connection matched pg_hba.conf line 100: “host all all all scram-sha-256”

But i can see this in the postgres container

Can you help?
Thanks!

It seems that your sql user is nextcloud_db_user instead of nextcloud_db.

1 Like

Yeap i used the wroung user.

But why cant you change the db username? I had to remove the nextcloud container.

I do not use PostgreSQL and i do not know if the container can also be a problem. But i thnk you can rename the db user read this. Also maybe you can create a new db user (with the new name) and than change the owner read this.

1 Like