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.

Tutorial fails using docker install

See original GitHub issue

Edgedb seems to install OK using the docker method:

root@pilaf ~# docker run -it --rm -p 5656:5656 \
                          -v data:/var/lib/edgedb/data \
                          edgedb/edgedb
INFO 1 2019-04-11 21:10:05,150 edb.server: EdgeDB server (1.0.alpha.1) starting.
INFO 1 2019-04-11 21:10:05,791 edb.server: Initializing database cluster in /var/lib/edgedb/data
INFO 1 2019-04-11 21:10:08,354 edb.server: Creating template database...
INFO 1 2019-04-11 21:10:09,037 edb.server: Bootstrapping meta schema...
INFO 1 2019-04-11 21:10:29,461 edb.server: Creating database: edgedb
INFO 1 2019-04-11 21:10:30,543 edb.server: Restarting server to reload configuration...
INFO 1 2019-04-11 21:10:32,623 edb.server: Serving on 127.0.0.1:5656
INFO 1 2019-04-11 21:10:32,624 edb.server: Serving on /run/edgedb/.s.EDGEDB.5656
INFO 1 2019-04-11 21:10:32,624 edb.server: Serving admin on /run/edgedb/.s.EDGEDB.admin.5656

But then if I follow the tutorial:

root@pilaf:~# sudo -u edgedb edgedb --admin alter role edgedb --password
Traceback (most recent call last):
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/lib/python3.7/site-packages/edgedb/blocking_con.py", line 88, in _connect_addr
    sock.connect(addr)
FileNotFoundError: [Errno 2] No such file or directory

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/bin/edgedb", line 11, in <module>
    sys.exit(cli())
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/lib/python3.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/lib/python3.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/lib/python3.7/site-packages/click/core.py", line 1063, in invoke
    Command.invoke(self, ctx)
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/lib/python3.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/lib/python3.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/lib/python3.7/site-packages/edb/cli/mng.py", line 306, in alter
    connect(ctx)
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/lib/python3.7/site-packages/edb/cli/mng.py", line 37, in connect
    admin=ctx.obj['admin'], password=ctx.obj['password'],
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/lib/python3.7/site-packages/edgedb/blocking_con.py", line 156, in connect
    raise last_error
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/lib/python3.7/site-packages/edgedb/blocking_con.py", line 147, in connect
    connection_class=BlockingIOConnection)
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/lib/python3.7/site-packages/edgedb/blocking_con.py", line 94, in _connect_addr
    ) from e
edgedb.errors.ClientConnectionError: [Errno 2] No such file or directory
	Is the server running locally and accepting
	connections on Unix domain socket '/var/run/edgedb/.s.EDGEDB.admin.5656'?

and

root@pilaf:~# sudo -u edgedb edgedb -p 5656 -h localhost --admin alter role edgedb --password
Traceback (most recent call last):
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/bin/edgedb", line 11, in <module>
    sys.exit(cli())
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/lib/python3.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/lib/python3.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/lib/python3.7/site-packages/click/core.py", line 1063, in invoke
    Command.invoke(self, ctx)
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/lib/python3.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/lib/python3.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/lib/python3.7/site-packages/edb/cli/mng.py", line 306, in alter
    connect(ctx)
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/lib/python3.7/site-packages/edb/cli/mng.py", line 37, in connect
    admin=ctx.obj['admin'], password=ctx.obj['password'],
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/lib/python3.7/site-packages/edgedb/blocking_con.py", line 137, in connect
    server_settings=None)
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/lib/python3.7/site-packages/edgedb/con_utils.py", line 302, in parse_connect_arguments
    server_settings=server_settings,
  File "/usr/lib/x86_64-linux-gnu/edgedb-1-alpha1/lib/python3.7/site-packages/edgedb/con_utils.py", line 257, in _parse_connect_dsn_and_args
    'admin connections are only supported over UNIX sockets')
root@pilaf:~# edgedb -p 5656 -h localhost
Could not establish connection to EdgeDB: [Errno 104] Connection reset by peer

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
LeonardAukeacommented, May 3, 2019

@elprans It’s probably worth modifying the website (https://edgedb.com/download?distro=docker) as well, by adding the additional port to the docker run command. It’s hard to anticipate beforehand that another port is needed for graphql.


$ docker run -it --rm -p 5656:5656 -p 8888:8888 \
            -v <datadir>:/var/lib/edgedb/data \
            edgedb/edgedb

Very interesting project. When do you think it will reach a state of reliable use for real prod cases? Any idea when it will transition from alpha?

1reaction
imichaelcommented, Apr 15, 2019

In case anyone ever runs into this again, when entering the above CONFIGURE SYSTEM… I initially got the error ConstraintViolationError: Port.port violates exclusivity constriant

Exploring the docs a little more I found I could do this: edgedb> configure system reset Port; and then the CONFIGURE SYSTEM… given above worked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

First Install Docker Tutorial Fails to Start Container · Issue #8237
Just install Docker and open it for the first time. Run each command. Command fails when starting the container on port 80.
Read more >
Workarounds for common problems - Docker Documentation
Docker Desktop fails to start when anti-virus software is installed . Some anti-virus software may be incompatible with Hyper-V and Microsoft Windows 10 ......
Read more >
Unable to build a docker image following Docker Tutorial
The problem with the Docker file in the root folder is caused by a Python version mismatch issue, as pointed out by @atline...
Read more >
Docker Tutorial for Beginners - YouTube
Docker Tutorial for Beginners - Learn Docker for a career in software or DevOps engineering. This Docker tutorial teaches you everything you ...
Read more >
A Docker Tutorial for Beginners
Learn to build and deploy your distributed applications easily to the cloud with Docker.
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