I have a node application attached to a postgres instance, both on Fly.
I’m using this database url since the beginning of time (2 years+)
postgres://fbn___den:___@top2.nearest.of.fbn___den-db.internal:5432/fbn___den
For unknown reasons, this does not seem to work anymore: I have a failing healthcheck:
2025-02-20T12:08:14Z app[148ed434c15058] fra [info]healthcheck ❌ {
2025-02-20T12:08:14Z app[148ed434c15058] fra [info] error: PrismaClientKnownRequestError:
2025-02-20T12:08:14Z app[148ed434c15058] fra [info] Invalid `prisma.user.count()` invocation:
2025-02-20T12:08:14Z app[148ed434c15058] fra [info] Can't reach database server at `fra.top2.nearest.of.fbn___den-db.internal`:`5432`
2025-02-20T12:08:14Z app[148ed434c15058] fra [info] Please make sure your database server is running at `fra.top2.nearest.of.fbn___en-db.internal`:`5432`.
Was there some changes I’m unaware of ? Is there an issue with FRA ?
Both instances seems to run, including the database:
➜ ~ fly status -a fbn___den-db
ID STATE ROLE REGION CHECKS IMAGE CREATED UPDATED
32871e3ad40785 started readonly fra 3 total, 1 passing, 2 critical flyio/postgres:14.6 (v0.0.41) 2024-07-03T01:26:46Z 2024-08-27T18:56:45Z
➜ ~ fly status -a fbn___den
App
Name = fbn___den
Owner = fbn___
Hostname = fbn___den.fly.dev
Image = fbn___den:main-cf1a7075c10f1c0ff7d74b79bdbf1e7e21f74f2c
Machines
PROCESS ID VERSION REGION STATE ROLE CHECKS LAST UPDATED
app 148ed434c15058 176 fra started 2 total, 1 passing, 1 critical 2025-02-20T12:25:01Z
app 78111def9921e8 172 fra started 2 total, 1 passing, 1 critical 2025-02-17T11:07:28Z
I tried to use a different database url using fly secrets
with others potential hostnames I found here and there:
postgresql://user:password@fbn___den-db.flycast/fbn___den
postgresql://user:password@fbn___den-db.internal/fbn___den
Without success…