bumpy-policeman-45538
12/14/2022, 9:16 AMIssue :
On login
{
"code": 500,
"status": "Internal Server Error",
"message": "ERROR: column \"oauth2_login_challenge\" of relation \"selfservice_login_flows\" does not exist (SQLSTATE 42703)"
}
We are facing above issue when providing DSN as below in my quickstart.yml file
environment:
- DSN=<postgres://database-server-credentials:5432/dev-ory>
- LOG_LEVEL=trace
Note
: DSN= memory --> works finecurved-fountain-46946
12/14/2022, 2:04 PMbumpy-policeman-45538
12/14/2022, 5:40 PMcurved-fountain-46946
12/14/2022, 10:17 PMbumpy-policeman-45538
12/15/2022, 4:21 AMbumpy-policeman-45538
12/15/2022, 4:41 AMlevel=debug msg=No SQL connection options have been defined, falling back to default connection options. func=<http://github.com/ory/x/logrusx.(*Logger).Logf|github.com/ory/x/logrusx.(*Logger).Logf> file=/go/pkg/mod/github.com/ory/x@v0.0.392/logrusx/helper.go:118 audience=application service_name=Ory Kratos service_version=v0.10.1 sql_max_connection_lifetime=0s sql_max_connections=16 sql_max_idle_connection_time=0s sql_max_idle_connections=8
bumpy-policeman-45538
12/15/2022, 4:45 AMsteep-lamp-91158
steep-lamp-91158
steep-lamp-91158
kratos-migrate
container needs a commandbumpy-policeman-45538
12/15/2022, 12:47 PMbumpy-policeman-45538
12/15/2022, 12:48 PM{
"code": 500,
"status": "Internal Server Error",
"message": "ERROR: column \"oauth2_login_challenge\" of relation \"selfservice_login_flows\" does not exist (SQLSTATE 42703)"
}
steep-lamp-91158
steep-lamp-91158
kratos migrate sql
against your db and verify all are applied?steep-lamp-91158
bumpy-policeman-45538
12/15/2022, 3:59 PMsteep-lamp-91158
bumpy-policeman-45538
12/15/2022, 4:07 PMsteep-lamp-91158
bumpy-policeman-45538
12/16/2022, 10:08 AM