edgedb-cli icon indicating copy to clipboard operation
edgedb-cli copied to clipboard

ClientConnectionFailedError: could not resolve address `("localhost", 10700)`

Open studentiks opened this issue 2 years ago • 7 comments

Good day!

Gratz with release of 1.0!

Wanted to try EdgeDB and went to 'quickstart tutorial'

At step 'edgedb package init' I got error:

edgedb error: ClientConnectionFailedError: could not resolve address ("localhost", 10700): failed to lookup address information: Name does not resolve

image

What can be done to fix it? Thank you!

localhost ping is fine and [email protected] runs too

  • EdgeDB Version: 1.0
  • OS Version: Archlinux

BR,

Roman

studentiks avatar Feb 11 '22 06:02 studentiks

Does this happen consistently or intermittently? What does host localhost show?

elprans avatar Feb 11 '22 17:02 elprans

Problem survived reboot:

image

studentiks avatar Feb 11 '22 17:02 studentiks

This seems like a problem with your system. host localhost cannot resolve it either. Check if it's in /etc/hosts and that /etc/hosts are used by your system resolver.

elprans avatar Feb 11 '22 17:02 elprans

@tailhook, any reason why we can't switch to 127.0.0.1 to make things work better in cases like this?

elprans avatar Feb 11 '22 17:02 elprans

I think used localhost because rustls doesn't work with IPs. But we have a workaround for that anyway, so I think we can switch to 127.0.0.1.

tailhook avatar Feb 11 '22 18:02 tailhook

My /etc/hosts is empty and network is generic wifi configured by NetworkManager with DNS 8.8.8.8:

image

studentiks avatar Feb 11 '22 18:02 studentiks

Not quite sure if this is a bug or feature, but I adjusted NetworkManager.conf and problem got away. Thank you for clues and good luck with your project!

studentiks avatar Feb 11 '22 19:02 studentiks