You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
INFO[0000] initialization started caller="/home/runner/work/zitadel/zitadel/cmd/initialise/init.go:73"
FATA[0000] unable to initialize the database caller="/home/runner/work/zitadel/zitadel/cmd/initialise/init.go:66" error="ID=DATAB-0pIWD Message=Errors.Database.Connection.Failed Parent=(failed to connect to `host=aws_rds_endpoint user=admin_username database=postgres`: server error (FATAL: database \"postgres\" does not exist (SQLSTATE 3D000)))"
It seems that it uses postgres as database even if I set ZITADEL_DATABASE_POSTGRES_DATABASE=zitadel.
Something to note, I removed the postgres database as I won't use it, maybe I shouldn't?
Edit: I added back the postgre database, but I'm getting the same error, hm, adding back the postgres database and it works (correctly create things in the zitadel database)
To reproduce
Create a PostgreSQL database
Remove postgres database
Try to connect with the previous command (with proper credentials)
Screenshots
No response
Expected behavior
No error, I'm not using the postgres database.
Operating System
Debian 12 ARM64 (both database & zitadel server).
Relevant Configuration
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Same issue here.
I'm using Timescale Cloud DB where postgres database is not exist.
Checking #5346 PR, the postgres database name is hard-coded in admin mode.
Would be better a ZITADEL_DATABASE_POSTGRES_ADMIN_DATABASE config where I can overwrite this DB name.
Hacky workaround, but for those blocked, just create a DB w/ the name postgres and ensure the admin user can connect to it. All the admin user needs to do is make its connection to that db, so the postgres DB can effectively be a dummy / no-op.
The admin user is only needed for the installation step but can also be avoided by preparing the necessary requirements:
the zitadel user
the zitadel database
granting required permissions to the zitadel user
CREATE ROLE zitadel LOGIN;
CREATE DATABASE zitadel;
GRANT CONNECT, CREATE ON DATABASE zitadel TO zitadel;
but that doesn't appear to be true, as it tries to connect as the admin user to the 'postgres' db regardless of the ZITADEL_DATABASE_POSTGRES_USER_USERNAME user being preconfigured.
Preflight Checklist
Environment
Self-hosted
Version
v2.51.2
Database
PostgreSQL
Database Version
AWS RDS PostgreSQL 16.2
Describe the problem caused by this bug
Hello,
I'm using an AWS RDS PostgreSQL database and wanted to execute the following command:
I'm getting the following error:
It seems that it uses
postgres
as database even if I setZITADEL_DATABASE_POSTGRES_DATABASE=zitadel
.Something to note, I removed the
postgres
database as I won't use it, maybe I shouldn't?Edit:
I added back the, adding back thepostgre
database, but I'm getting the same error, hmpostgres
database and it works (correctly create things in thezitadel
database)To reproduce
postgres
databaseScreenshots
No response
Expected behavior
No error, I'm not using the
postgres
database.Operating System
Debian 12 ARM64 (both database & zitadel server).
Relevant Configuration
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: