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

Fetching https://packages.edgedb.com/archive/.jsonindexes/x86_64-unknown-linux-musl.nightly.json takes too long.

Open maacl opened this issue 1 year ago • 5 comments

  • EdgeDB Version: nightly - does not install
  • EdgeDB CLI Version: nightly - does not install
  • OS Version: DISTRIB_ID=ManjaroLinux DISTRIB_RELEASE=22.0.4 DISTRIB_CODENAME=Sikaris DISTRIB_DESCRIPTION="Manjaro Linux"

Steps to Reproduce:

  1. curl --proto '=https' --tlsv1.2 -sSf https://sh.edgedb.com | sh

Firewall is off. File downloads fine in browser. Same issue when trying to install under Windows and trying to run edgedb project init

maacl avatar Mar 25 '23 10:03 maacl

Oh, sorry, this somehow fall through my radar. Did you manage to install since that time? I guess it was some S3 glitch or something.

If it does not, please show the full output. It looks like shell script and the binary downloads fine and this is only version check that comes later.

Also, you curl .. | sh line doesn't mention nightly which the error message in the title does. Are you upgrading the CLI after installation?

tailhook avatar May 17 '23 14:05 tailhook

This is still an issue:

➜  ~ curl --proto '=https' --tlsv1.2 -sSf https://sh.edgedb.com | sh
info: downloading installer

Welcome to EdgeDB!

This will install the official EdgeDB command-line tools.

The edgedb binary will be placed in the user bin directory located at:
/home/mac/.local/bin

This path is already in your PATH environment variable, so no profile will be modified.
┌──────────────────────┬──────────────────────┐
│ Installation Path    │ /home/mac/.local/bin │
│ Modify PATH Variable │ no                   │
└──────────────────────┴──────────────────────┘
1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
1
The EdgeDB command-line tool is now installed!
To enable zsh completion, add:
fpath+=~/.zfunc
to your ~/.zshrc before compinit command.
To initialize a new project, run:
edgedb project init
➜  ~ ls
projects  tmp
➜  ~ cd tmp
➜  tmp mkdir edgedb-test
➜  tmp cd edgedb-test
➜  edgedb-test edgedb project init
No `edgedb.toml` found in `/home/mac/tmp/edgedb-test` or above
Do you want to initialize a new project? [Y/n]
> Y
Specify the name of EdgeDB instance to use with this project [default: edgedb_test]:
> edgedb_test
Checking EdgeDB versions...
Fetching https://packages.edgedb.com/archive/.jsonindexes/x86_64-unknown-linux-gnu.json takes too long. Common reasons are:
  1. Your internet connectivity is slow
  2. Firewall blocks internet access to this resource

maacl avatar May 18 '23 12:05 maacl

Any progress? I am getting the same issue.

AceN1nja avatar Jul 11 '23 08:07 AceN1nja

I would firstly try debugging with:

curl -v https://packages.edgedb.com/archive/.jsonindexes/x86_64-unknown-linux-gnu.json > /dev/null

in order to see if the connection is alright.

(Detail: because the EdgeDB CLI itself is quite straightforward at this point:

https://github.com/edgedb/edgedb-cli/blob/d50d0764805f34fe1b0c1db0c11254c6b97ada04/src/portable/repository.rs#L165-L173

https://github.com/edgedb/edgedb-cli/blob/d50d0764805f34fe1b0c1db0c11254c6b97ada04/src/portable/repository.rs#L184-L202 )

If curl works fine, try RUST_LOG=debug edgedb project init again with more verbose logging.

fantix avatar Jul 11 '23 13:07 fantix

This now works for me.

maacl avatar Jul 11 '23 13:07 maacl