edgedb-cli
edgedb-cli copied to clipboard
Restart on WSL might not work
While stop/start works fine:
I've been using start
to restart instances since this issue was raised but today start began failing, gave restart a try and it works now so may be resolved:
c:\rust\easy-edgedb>edgedb instance list
[2023-05-22T04:08:34Z WARN edgedb::version_check] Newer version of edgedb tool exists 3.0.0-beta.2+2ce3d4c (current 3.0.0-beta.1+a4e4d33)
┌───────┬───────────────────────┬─────────────────┬──────────────────┬──────────┐
│ Kind │ Name │ Location │ Version │ Status │
├───────┼───────────────────────┼─────────────────┼──────────────────┼──────────┤
│ local │ anything │ localhost:10719 │ 3.0-rc.1+5979043 │ running │
│ local │ easy │ localhost:10716 │ 2.14+7aec755 │ inactive │
│ local │ edgedb_client_example │ localhost:10708 │ 3.0-rc.1+5979043 │ running │
└───────┴───────────────────────┴─────────────────┴──────────────────┴──────────┘
c:\rust\easy-edgedb>edgedb instance start -I "easy"
[2023-05-22T04:08:42Z WARN edgedb::version_check] Newer version of edgedb tool exists 3.0.0-beta.2+2ce3d4c (current 3.0.0-beta.1+a4e4d33)
[2023-05-22T04:08:42Z WARN edgedb::version_check] Newer version of edgedb tool exists 3.0.0-beta.2+2ce3d4c (current 3.0.0-beta.1+a4e4d33)
edgedb error: edgedb exited prematurely: exit status: 1 (command-line: Command { std: "/home/edgedb/.local/share/edgedb/portable/2.14/bin/edgedb-server" "--data-dir" "/home/edgedb/.local/share/edgedb/data/easy" "--runstate-dir" "/home/edgedb/.cache/edgedb/run/easy" "--port" "10716" "--compiler-pool-mode=on_demand" "--admin-ui=enabled", kill_on_drop: false })
edgedb error: failed to run edgedb cli (command-line: Command { std: "/usr/bin/edgedb" "instance" "start" "-I" "easy" "--managed-by=edgedb-cli", kill_on_drop: false }): exit status: 1
edgedb error: edgedb failed: exit code: 1 (command-line: Command { std: "wsl" "--user" "edgedb" "--distribution" "EdgeDB.WSL.1" "_EDGEDB_FROM_WINDOWS=1" "/usr/bin/edgedb" "instance" "start" "-I" "easy", kill_on_drop: false })
c:\rust\easy-edgedb>edgedb
Connecting to an EdgeDB instance at localhost:10716...
edgedb error: ClientConnectionFailedError: cannot establish connection for 30s: No connection could be made because the target machine actively refused it. (os error 10061)
c:\rust\easy-edgedb>edgedb instance restart -I "easy"
[2023-05-22T04:10:58Z WARN edgedb::version_check] Newer version of edgedb tool exists 3.0.0-beta.2+2ce3d4c (current 3.0.0-beta.1+a4e4d33)
[2023-05-22T04:10:58Z WARN edgedb::version_check] Newer version of edgedb tool exists 3.0.0-beta.2+2ce3d4c (current 3.0.0-beta.1+a4e4d33)
c:\rust\easy-edgedb>edgedb instance list
[2023-05-22T04:11:17Z WARN edgedb::version_check] Newer version of edgedb tool exists 3.0.0-beta.2+2ce3d4c (current 3.0.0-beta.1+a4e4d33)
┌───────┬───────────────────────┬─────────────────┬──────────────────┬─────────┐
│ Kind │ Name │ Location │ Version │ Status │
├───────┼───────────────────────┼─────────────────┼──────────────────┼─────────┤
│ local │ anything │ localhost:10719 │ 3.0-rc.1+5979043 │ running │
│ local │ easy │ localhost:10716 │ 2.14+7aec755 │ running │
│ local │ edgedb_client_example │ localhost:10708 │ 3.0-rc.1+5979043 │ running │
└───────┴───────────────────────┴─────────────────┴──────────────────┴─────────┘