# Apps not connecting to databases

**URL:** <https://community.fly.io/t/apps-not-connecting-to-databases/17519>\
**Category:** Questions / Help\
**Tags:** elixir, postgres, databases, login-only\
**Created:** [January 3, 2024, 10:55am UTC](https://community.fly.io/t/apps-not-connecting-to-databases/17519 "2024-01-03T10:55:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eliel](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/eliel/32/2005_2.png) [@eliel](https://community.fly.io/u/eliel)\
**Post date:** [January 3, 2024, 10:55am UTC](https://community.fly.io/t/apps-not-connecting-to-databases/17519/1 "2024-01-03T10:55:08Z")

</div>

I have several apps each connected to a fly postgres database. After a reported incident on fly yesterday, all my apps are failing to connect to the database with a nx domain error. I haven’t deployed in a week, so its nothing on my end.

I cannot even ssh into any of my apps, I get this error:  
Error: error connecting to SSH server: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

I have quite a few customers relying on my app, its really disappointing to see yet another outage after a major one last week that had my customers complaining.

Honestly at this point I think I might have given fly dozens of chances but If I have to keep putting out fires like this I dont think its all worth it.

If anyone is having this same issue and have figured out a fix, please do share, I’m at the mercy of fly support right now with no response yet.

---

<div class="post-metadata">

**Author:** ![timadevelop](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/timadevelop/32/15907_2.png) [@timadevelop](https://community.fly.io/u/timadevelop)\
**Post date:** [January 3, 2024, 11:11am UTC](https://community.fly.io/t/apps-not-connecting-to-databases/17519/2 "2024-01-03T11:11:07Z")

</div>

I have a similar issue today - the old version runs fine but I can’t deploy a new one because -db.flycast:5432 is unreachable in newly provisioned instances (nx domain error).

edit: I’m able to ssh into my app instance though

---

<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:** [January 10, 2024, 11:11am UTC](https://community.fly.io/t/apps-not-connecting-to-databases/17519/3 "2024-01-10T11:11:22Z")

</div>

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