question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No way to supply --runstate-dir on edgedb init

See original GitHub issue

When trying to setup an EdgeDB instance on a limited environment; EdgeDB throws this warnings,

$ ~/.edgedb/bin/edgedb server init --nightly default
...
2020-12-20T11:44:34.0903426Z CRITICAL 6748 2020-12-20 11:44:34,089 edb.server: cannot create the runstate directory: '/run/user/1001' does not exist; please use --runstate-dir to specify the correct location

but I couldn’t find how to pass this as an option;

 $ ~/.edgedb/bin/edgedb server init --runstate-dir x --nightly test
error: Found argument '--runstate-dir' which wasn't expected, or isn't valid in this context

If you tried to supply `--runstate-dir` as a PATTERN use `-- --runstate-dir`

USAGE:
    edgedb server init [FLAGS] [OPTIONS] <name>

For more information try --help

or

 $ ~/.edgedb/bin/edgedb --runstate-dir server init x --nightly test 
error: Found argument '--runstate-dir' which wasn't expected, or isn't valid in this context

If you tried to supply `--runstate-dir` as a PATTERN use `-- --runstate-dir`

USAGE:
    edgedb [FLAGS] [OPTIONS] [SUBCOMMAND]

For more information try --help

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:17 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
tailhookcommented, Jan 6, 2021

By the way, looking at original issue: https://github.com/reizio/reiz.io/pull/24 (/cc @isidentical )

  1. You may use edgedb/setup-edgedb github action to install edgedb
  2. Not having XDG_RUNTIME_DIR means you don’t have systemd user daemon too, as far as I remember. You may try:
    edgedb init --start-conf=manual default
    edgedb server start --foreground default
    
    (i.e. running server as a subprocess rather than service and backgrounding via shell)
  3. We may want to create edgedb/run-edgedb github action to run a server (and configure credentials)
1reaction
tailhookcommented, Sep 7, 2021

@haikyuu two posible workarounds:

  1. Do as edgedb-js (temporary runtime dir, and propagate it to the actual test manually)
  2. Set env: {XDG_RUNTIME_DIR: "${{ runner.temp }}/edgedb"} in the environment, covering all actions that touch edgedb and client apps (e.g. root of your workflow or a job)
Read more comments on GitHub >

github_iconTop Results From Across the Web

edgedb project init
This command sets up a new project, creating an instance and a schema directory for it. It can also be used to convert...
Read more >
Error initializing server · Issue #2153 · edgedb ... - GitHub
I am building with docker build -t edgedb_test . . The error is: > [2/2] RUN edgedb server install --method=docker: #5 1.078 edgedb...
Read more >
README.md - Create pdf from source files
means any form of electronic, verbal, or written communication ... Reworked auth setup via ``edgedb server init`` (`#91.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found