# Postgres database down... again.

**URL:** <https://community.fly.io/t/postgres-database-down-again/12244>\
**Category:** General\
**Tags:** login-only\
**Created:** [April 14, 2023, 4:37pm UTC](https://community.fly.io/t/postgres-database-down-again/12244 "2023-04-14T16:37:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![foocux](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/foocux/32/35393_2.png) [@foocux](https://community.fly.io/u/foocux)\
**Post date:** [April 14, 2023, 4:37pm UTC](https://community.fly.io/t/postgres-database-down-again/12244/1 "2023-04-14T16:37:22Z")

</div>

I’m experiencing the same issue that I had 18 days ago with the same database, for the record, [https://community.fly.io/t/fly-pg-suddenly-went-down/11757](https://community.fly.io/t/fly-pg-suddenly-went-down/11757).

This is the error that I’m getting:

```auto
2023-04-14T16:35:16.846 app[e286279ae51686] mia [info] sentinel | 2023-04-14T16:35:16.845Z ERROR cmd/sentinel.go:1018 no eligible masters

```

When I tried to restart the database using `fly pg restart` and `fly machines restart` it fails with these errors:

```auto
Error failed to obtain lease: failed to get lease on VM 32874755b13d85: request returned non-2xx status, 504

```

```auto
Error could not stop machine 32874755b13d85: failed to stop VM 32874755b13d85: request returned non-2xx status, 504

```

Last time I solved it because the restart commands worked after an hour of downtime.

---

<div class="post-metadata">

**Author:** ![lillian](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/lillian/32/49616_2.png) [@lillian](https://community.fly.io/u/lillian)\
**Post date:** [April 14, 2023, 4:54pm UTC](https://community.fly.io/t/postgres-database-down-again/12244/2 "2023-04-14T16:54:56Z")

</div>

Hello, we’re currently experiencing an incident in the region one of the instances of your database is running in: [Fly.io Status - Network disruption in HKG region.](https://status.flyio.net/incidents/84gr56qzc5c4)  
Failing over databases between regions is not supported. I would recommend adding replicas in the `hkg` region, though unfortunately it wouldn’t have helped with this incident since the network issues are currently impacting all of our hosts in that region.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/fly1/original/3X/6/e/6e8955d00cb218e186ebbe3a6ab06fefdce15290.svg) [@system](https://community.fly.io/u/system)\
**Post date:** [April 21, 2023, 4:55pm UTC](https://community.fly.io/t/postgres-database-down-again/12244/3 "2023-04-21T16:55:07Z")

</div>

Closed on April 21, 2023, 4:55pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
