Health endpoint fails

When I go to /health/ready endpoit it returs status:

{
  "errors": {
    "database": "bad connection"
  }
}

In localhost everything is OK, but in prod I get this error, no logs about it…

Everything else works well…

More context please. Version, configuration, logs…

RC 06 version, there are no errors, http status 503 message “bad connection”. When app starts this endpoint works well, but after some time connection dies and ping doesn’t reconnect it and error appears

Experiment with one of those settings: https://www.ory.sh/docs/ecosystem/persistence#postgresql

It looks it helped. Thanks very much!

Maybe should add to docs this issue as a notification or something…