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.

Error initializing server

See original GitHub issue
  • EdgeDB Version: 1-alpha5
  • OS Version: Docker container (edgedb/edgedb)

Steps to Reproduce:

  1. I tried setting up an EdgeDB instance in a docker container using this Dockerfile:
FROM edgedb/edgedb

EXPOSE 5656

USER daemon

RUN edgedb server upgrade
RUN edgedb server init
  1. I am getting the following error:
#6 0.815 [2021-01-26T08:10:21Z ERROR edgedb::server::init] Bootstrap error, cleaning up...
#6 0.815 Error: failed to clean up /usr/sbin/.local/share/edgedb/data/default: No such file or directory (os error 2)
  1. I am not sure if I am doing this correctly because I am also quite new to Docker. I switched the user to daemon because it had trouble when run as root and daemon was apparently a user that was already created. What I want to do is I want to create a Docker container which sets up and runs my database.

Am I doing something wrong?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
elpranscommented, Jan 28, 2021

The edgedb server install is meant to be used on the host to setup and run EdgeDB instances without having to use the docker CLI directly. You shouldn’t normally need to run it in an edgedb/edgedb container, because the image already has the server installed and ready to use.

If you need to run the Docker image directly, you can do it as such:

docker run --name=edgedb -p5656:5656 -it --rm -v /tmp/data:/var/lib/edgedb/data edgedb/edgedb:20210128023945dde634

(I used the nightly image above, because :latest and :1-alpha7 are unfortunately broken due to https://github.com/edgedb/edgedb-docker/issues/9)

The real issue is that I think that the documentation doesn’t tell you a lot, especially about the setup

Point taken. We’ve made lots of changes to the setup flow recently with the introduction of edgedb server CLI and the docs currently focus on that. We are working on putting together Docker/Docker Compose guides as well for the upcoming Beta.

0reactions
tailhookcommented, Feb 17, 2021

As of edgedb/edgedb-cli#238 we emit an error message when running edgdb server install in container. I think there is nothing actionable left in this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Server initialization failed Error: 0XE001003E
If a Windows Resource Protection (WRP) file is missing or is corrupted, Windows may not behave as expected. For example, some Windows functions ......
Read more >
ERROR INITIALIZING SERVER - Forums - 7 Days to Die
Game quit unexpectedly. Upon attempting to re-start, after selecting Continue Game, got the following message: "Starting the server failed.
Read more >
Error "Setup cannot initialize the server." occurs while ...
Open the command prompt as an Administrator. Right-click cmd.exe > Run as Administrator. Reboot the server. After the reboot, check the HTTP driver....
Read more >
Error initializing server: Createsocketorthreadefailure - Reddit
Says open task manager and close any instance of 7daystodie.exe and try again. If it doesn't work, let me know I'll keep looking...
Read more >
7 days to die error initializing server create socket or thread ...
So i delete the game and installed it again and every thing was normal again... Didn't use the server though... But then i...
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