Hydra does not appears to detect database connection loss #2398
-
This issue follow a discussion on the ORY slack (https://ory-community.slack.com/archives/C012RBW0F18/p1615368062066700): Hi everyone, I wanted to report a weird behavior with Hydra. The database that we use for hydra is hosted on a VPS by OVH on the site of Strasbourg, this datacenter has been mainly destroyed by the flames this night (https://twitter.com/abonin_DNA/status/1369538028243456000). However the instances of Hydra are running on a different datacenter from another provider. So in brief we have lost the database but not hydra. And the even weirder thing is that since my access token in our frontend is expired, it tried to refresh it, but the refresh token endpoint return a status code 401 and not 5XX. And finally the auth endpoint never respond is goes on forever. We are running hydra in version 1.9.2 and we use a postgres database |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Sorry to hear that you were affected by the fire, but glad to hear that you have replication set up! Can you share your DSN connection parameters? Also, the current master includes a patch which gives an error if the database is not yet fully migrated, which consists of actually querying some rows. This should prevent your current health check problem.
I think we never return 5xx for that endpoint? Maybe I'm mistaken. |
Beta Was this translation helpful? Give feedback.
Sorry to hear that you were affected by the fire, but glad to hear that you have replication set up!
Can you share your DSN connection parameters?
Also, the current master includes a patch which gives an error if the database is not yet fully migrated, which consists of actually querying some rows. This should prevent your current health check problem.
I think we never return 5xx for that endpoint? Maybe I'm mistaken.