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:
- Try to connect to EdgeDB instance setup on Fly.io, that worked successfully a while before. Nothing has changed since then.
- 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:
- Created a year ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The docs already say so: https://www.edgedb.com/docs/guides/deployment/fly_io#create-a-postgresql-cluster
@elprans That fixed it. Might be good to update the Fly.io documentation to mention setting the size to
dedicated-cpu-1x