question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BackendUnavailableError when trying to connect to Fly.io EdgeDB instance

See original GitHub issue
  • EdgeDB Version: EdgeDB CLI 2.0.5+53f9c9b
  • OS Version: Mac OS & Amazon Linux 2

Steps to Reproduce:

  1. Try to connect to EdgeDB instance setup on Fly.io, that worked successfully a while before. Nothing has changed since then.
  2. Put in the command
edgedb instance link \
  --trust-tls-cert \
  --dsn $DSN \
  --non-interactive \
  fly

with the proper DSN variable. It tries to connect and spits out the following error.

edgedb error: BackendUnavailableError: cannot fetch database version: Postgres is not available: Connection is lost, please check server log for the reason.
  Server traceback:
      Traceback (most recent call last):
        File "edb/server/protocol/binary.pyx", line 1364, in edb.server.protocol.binary.EdgeConnection.main
        File "edb/server/protocol/binary.pyx", line 1270, in execute
        File "edb/server/protocol/binary.pyx", line 1073, in _execute
        File "edb/server/protocol/binary.pyx", line 258, in get_pgcon
        File "edb/server/protocol/binary.pyx", line 252, in edb.server.protocol.binary.EdgeConnection.get_pgcon
        File "/usr/lib/x86_64-linux-gnu/edgedb-server-2/lib/python3.10/site-packages/edb/server/server.py", line 552, in acquire_pgcon
          raise errors.BackendUnavailableError(
      edb.errors.BackendUnavailableError: Postgres is not available: Connection is lost, please check server log for the reason.

Running fly checks list -a for both the fly.io EdgeDB app and postgres app attached to it. All checkmarks are there meaning it should be good to go.

Not sure what the issue is and how to fix it.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
elpranscommented, Sep 20, 2022
0reactions
vonkoffcommented, Sep 20, 2022

@elprans That fixed it. Might be good to update the Fly.io documentation to mention setting the size to dedicated-cpu-1x

Read more comments on GitHub >

github_iconTop Results From Across the Web

BackendUnavailableError when trying to connect to Fly.io ...
Try to connect to EdgeDB instance setup on Fly.io, that worked successfully a while before. Nothing has changed since then. · Put in...
Read more >
Deploying EdgeDB to Fly.io
In this guide we show how to deploy EdgeDB using a Fly.io PostgreSQL cluster as the backend. The deployment consists of two apps:...
Read more >
EdgeDB on Twitter: "We love @flydotio here at EdgeDB. They ...
here at EdgeDB. They've truly captured a magical DX that's been missing among cloud providers. Check out Fly's new EdgeDB deployment guide ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found