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

gel extension install [...] broken

Open demaet opened this issue 3 months ago • 1 comments

Hello

the gel-cli seems to be broken for extensions installation. With the current CLI installers, it is not possible (to my knowledge) to revert to an older version ?

Thanks in advance !

> gel --version
Gel CLI 7.9.0+070b371
> uname -a
Linux [...] 6.4.0-[...] geldata/gel#1 SMP PREEMPT_DYNAMIC [...] x86_64 x86_64 x86_64 GNU/Linux
> gel project info
┌──────────────────┬────────────────────────────────────────────────────┐
│ Database         │ (unavailable)                                      │
│ Instance name    │ database                                           │
│ Project root     │ [...]/database          │
│ Schema directory │ [...]/database/dbschema │
└──────────────────┴────────────────────────────────────────────────────┘
> gel instance list
┌───────┬──────────┬─────────────────┬─────────────┬─────────┐
│ Kind  │ Name     │ Location        │ Version     │ Status  │
├───────┼──────────┼─────────────────┼─────────────┼─────────┤
│ local │ database │ localhost:10701 │ 6.6+01d987d │ running │
└───────┴──────────┴─────────────────┴─────────────┴─────────┘
> gel info
Gel uses the following local paths:
┌─────────┬─────────────────────────────────────┐
│ Cache   │ /home/[...]/.cache/edgedb/            │
│ Config  │ /home/[...]/.config/edgedb/           │
│ Install │ /home/[...]/.local/bin/               │
│ Data    │ /home/[...]/.local/share/edgedb/data/ │
│ Service │ /home/[...]/.config/systemd/user/     │
└─────────┴─────────────────────────────────────┘
> gel extension list
Connecting to Gel instance 'database' at localhost:10701...
┌─────────────┬─────────┐
│ Name        │ Version │
├─────────────┼─────────┤
│ ai          │ 1.0     │
│ graphql     │ 1.0     │
│ pgvector    │ 0.7     │
│ edgeql_http │ 1.0     │
│ pg_unaccent │ 1.1     │
│ pg_trgm     │ 1.6     │
│ pgcrypto    │ 1.3     │
│ auth        │ 1.0     │
└─────────────┴─────────┘
> gel extension install postgis

thread 'main' panicked at src/portable/repository.rs:198:1:
Cannot start a runtime from within a runtime. This happens because a function (like `block_on`) attempted to block the current thread while the thread is being used to drive asynchronous tasks.
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
> gel extension install ai

thread 'main' panicked at src/portable/repository.rs:198:1:
Cannot start a runtime from within a runtime. This happens because a function (like `block_on`) attempted to block the current thread while the thread is being used to drive asynchronous tasks.
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

  • Gel Version: 6.6+01d987d (have tried 6.9 & 6.10 for the same result)
  • Gel CLI Version: 7.9.0+070b371 (cannot test another one)
  • OS Version: openSUSE Leap 15.6

Steps to Reproduce:

  1. gel init
  2. gel extension install [any]

demaet avatar Sep 24 '25 10:09 demaet

In case somebody needs a workaround until a patch is released, here is how to downgrade the CLI (I found no straightforward way to do it, so I thought I might share this)

  • download the CLI install script : curl --proto '=https' --tlsv1.2 -sSf https://www.geldata.com/sh > gel_install.sh
  • pick a CLI version from https://packages.edgedb.com/archive/ (I used https://packages.geldata.com/archive/x86_64-unknown-linux-musl/gel-cli-7.7.0%2B3788f53)
  • change the _url variable in the install script at line 74 to the version you picked, e.g. :
- local _url="${EDGEDB_PKG_ROOT}/dist/${_arch}${suffix:+.}${suffix}/edgedb-cli${_ext}"
+ local _url="https://packages.geldata.com/archive/x86_64-unknown-linux-musl/gel-cli-7.7.0%2B3788f53"
  • sh gel_install.sh
  • gel -V to check the downgraded version

lsdch avatar Oct 07 '25 10:10 lsdch