gritzko / swarm

JavaScript replicated model (M of MVC) library
http://swarmdb.net/
MIT License
2.68k stars 97 forks source link

SwarmDB Docker container exits immediately #101

Closed ile closed 6 years ago

ile commented 6 years ago

Hi,

First, thanks for the Swarm release(s).

Then, the docker container exits immediately, and it's hard to find out why. It exits if I run it on background or foreground.

ile@pc:/home/app/swarm/todo$ docker run  --name swarmdb -p 31415:31415 -v /home/app/swarm/todo:/var/lib/swarm olebedev/swarmdb
ile@pc:/home/app/swarm/todo$ 
ile commented 6 years ago

How would I run the SwarmDB server without the ready made docker image? The actual SwarmBD server doesn't seem to be here? Yet?

gritzko commented 6 years ago

@olebedev must know that

olebedev commented 6 years ago

Hi @ile,

I faced with the same problem at DO in my 3 y old ubuntu 14.10.

We provide a basic SwarmDB server only as a docker image for now.

ile commented 6 years ago

I'm using Ubuntu 16.04 + latest docker.

It would be nice to have the SwarmDB server as open source as well, for sure. Now I can't debug this problem.

olebedev commented 6 years ago

Please provide an output of docker events and docker log commands ran in your context.

ile commented 6 years ago

The logs is empty, 0 bytes.

Events:

2018-07-04T22:30:55.720414362+03:00 container create af47525a34cacb2b8d6a257764619d42d4dafb6aeb49fdf9e4042061bf786e94 (image=olebedev/swarmdb, name=swarmdb)
2018-07-04T22:30:55.840327270+03:00 network connect fa36e48eb24ecb825b1de87f7ec718c32c78dcfc870739cde2cd42b885d7a949 (container=af47525a34cacb2b8d6a257764619d42d4dafb6aeb49fdf9e4042061bf786e94, name=bridge, type=bridge)
2018-07-04T22:30:56.628485778+03:00 container start af47525a34cacb2b8d6a257764619d42d4dafb6aeb49fdf9e4042061bf786e94 (image=olebedev/swarmdb, name=swarmdb)
2018-07-04T22:30:56.992721006+03:00 container die af47525a34cacb2b8d6a257764619d42d4dafb6aeb49fdf9e4042061bf786e94 (exitCode=132, image=olebedev/swarmdb, name=swarmdb)
2018-07-04T22:30:57.106088381+03:00 network disconnect fa36e48eb24ecb825b1de87f7ec718c32c78dcfc870739cde2cd42b885d7a949 (container=af47525a34cacb2b8d6a257764619d42d4dafb6aeb49fdf9e4042061bf786e94, name=bridge, type=bridge)
olebedev commented 6 years ago

exitCode=132 tells us that the CPU architecture is quite old and some of the instructions are not being supported.