Preflight checklist
Ory Network Project
No response
Describe the bug
Hello
Kratos doesn't connect to PostgreSQL 18, running from Kubernetes. Seems like it can't parse DSN
Error is below:
kratos-f4c5f64b9-978jf kratos time=2025-11-22T19:00:35Z level=debug msg=No SQL connection options have been defined, falling back to default connection options. audience=application service_name=Ory Kratos service_version=v25.4.0 sql_max_connection_lifetime=0s sql_max_connections=8 sql_max_idle_connection_time=0s sql_max_idle_connections=4 kratos-f4c5f64b9-978jf kratos time=2025-11-22T19:00:35Z level=debug msg=Connecting to SQL Database audience=application connMaxLifetime=0s idlePool=4 pool=8 service_name=Ory Kratos service_version=v25.4.0 kratos-f4c5f64b9-978jf kratos time=2025-11-22T19:00:35Z level=warning msg=Unable to determine network, retrying. audience=application error=map[debug: message:Unable to locate the table reason: stack_trace: kratos-f4c5f64b9-978jf kratos github.com/ory/x/sqlcon.handlePostgres
My setup works
- with PostgreSQL 17
- with hydra chart version v0.60.0 with image v25.4.0
That's why I think it's an issue with Kratos, which needs to add PostgreSQL 18 support.
PS: Envs are imported correctly and specified as a secret in Kubernetes (see below)
Reproducing the bug
- helm install kratos ory/kratos -f kratos.yml // fails
- helm install kratos ory/kratos --version=0.58.0 -f kratos.yml // fails with older version too
Relevant log output
Relevant configuration
Version
v25.4.0
On which operating system are you observing this issue?
None
In which environment are you deploying?
None
Additional Context
K8s: v1.33.5
chart: v0.60.0
kratos: v25.4.0
Preflight checklist
Ory Network Project
No response
Describe the bug
Hello
Kratos doesn't connect to PostgreSQL 18, running from Kubernetes. Seems like it can't parse DSN
Error is below:
My setup works
That's why I think it's an issue with Kratos, which needs to add PostgreSQL 18 support.
PS: Envs are imported correctly and specified as a secret in Kubernetes (see below)
Reproducing the bug
Relevant log output
Relevant configuration
Version
v25.4.0
On which operating system are you observing this issue?
None
In which environment are you deploying?
None
Additional Context
K8s: v1.33.5
chart: v0.60.0
kratos: v25.4.0