no pg_hba.conf entry for host - `init`+`setup` works fine with PG, but main `start` entrypoint fails
I'm seeing PostgreSQL connection errors from the zitadel "start" process, and I'm finding them puzzling, as the
init
and setup
processes complete successfully. This is using version ghcr.io/zitadel/zitadel:v2.61.0
.
What does work:
init
and setup
processes run to completion and can all connect just fine to PostgreSQL and manage to setup the full structure of schemas and tables.
What does not work:
The main start
process boots fine, but shortly after starts emitting messages of this format (IPs anonymized).
* Zitadel server: 10.10.10.3
* PostgreSQL server: 10.10.10.5. Version 16.
Line from pg_hba.conf
which I expected to allow access with the correct password:
I verified the zitadel
user in PostgreSQL does indeed use SCRAM-SHA-256:
I have served up the connection credentials (stored encrypted) as a snippet of YAML looking like this:
What am I not seeing? As may be apparent from the above I've been looking at this for a while now 🙂1 Reply
I take this extract from the log to mean the
setup
step was able to connect to the database and do migration work:
Could it be ufw? The database server simply has 5432/tcp ALLOW
; could be a ratelimiting thing?
Resolution: it was ufw