me-box / databox

Databox container manager and dashboard server
MIT License
94 stars 25 forks source link

Cannot stop databox #306

Open grandpaul opened 5 years ago

grandpaul commented 5 years ago

Hi,

I've tried to stop databox by using the command in README.md. But it doesn't want to stop. And it continues creates new core-store-amd64.

paulliu@freya:/tmp$ docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v -t databoxsystems/databox:0.5.1 /databox stop

[INFO]2018/12/24 17:14:49 Stoping Databox ...
ERRO[0002] error waiting for container: unexpected EOF  
paulliu@freya:/tmp$ docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v -t databoxsystems/databox:0.5.1 /databox stop
[INFO]2018/12/24 17:15:02 Stoping Databox ...
ERRO[0009] error waiting for container: unexpected EOF  
paulliu@freya:/tmp$ docker ps -a
CONTAINER ID        IMAGE                                           COMMAND                  CREATED             STATUS                           PORTS                                      NAMES
50e12777a287        databoxsystems/core-store-amd64:0.5.1           "/app/zest/run.sh"       2 seconds ago       Created                                                                     app-store-core-store.1.5z01ft9rxd3j2prk0qm6ls87h
77014a47f516        databoxsystems/core-ui-amd64:0.5.1              "./app"                  4 seconds ago       Up 1 second                                                                 core-ui.1.o0uap30i9jfhswn3tltivq9jx
0a359e541668        databoxsystems/export-service-amd64:0.5.1       "./service -v"           19 seconds ago      Up 16 seconds                    8080/tcp                                   export-service.1.x8y5bo7jxg96oyplqd55tq0p8
0c004bfb4ad6        databoxsystems/core-store-amd64:0.5.1           "/app/zest/run.sh"       20 seconds ago      Up 17 seconds                    5555-5556/tcp                              container-manager-core-store.1.x34xoyzp2989jmu6wql5v8nt0
2a3d69323fd9        databoxsystems/arbiter-amd64:0.5.1              "/app/zest/server.ex…"   32 seconds ago      Up 29 seconds                    4444-4445/tcp, 5555-5556/tcp               arbiter.1.m0jvago6n2cl3l480ax7edzw9
3aca93d367ee        databoxsystems/core-network-relay-amd64:0.5.1   "./bcast-relay -f /t…"   37 seconds ago      Exited (2) 35 seconds ago                                                   databox-broadcast-relay
e8ea5af92783        databoxsystems/core-network-amd64:0.5.1         "./start.sh -f /tmp/…"   40 seconds ago      Up 37 seconds                    8080/tcp                                   databox-network
73ec6da7670b        databoxsystems/container-manager-amd64:0.5.1    "./app"                  42 seconds ago      Up 40 seconds                    0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp   container-manager.1.k3u0cgngey5rk1z6y2vluq7r2
6b1d84a6a3d5        databoxsystems/databox:0.5.1                    "/databox stop"          59 seconds ago      Dead                                                                        
fef0c2c1290c        databoxsystems/container-manager-amd64:0.5.1    "./app"                  2 minutes ago       Exited (2) About a minute ago    0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp   container-manager.1.rqwt0qp56bs2zjekmcd982x2j
1eed7fc554b1        databoxsystems/container-manager-amd64:0.5.1    "./app"                  2 minutes ago       Created                                                                     container-manager.1.f2907r7tps4waggkc7evhqjge
d227bc7cbcf9        databoxsystems/container-manager-amd64:0.5.1    "./app"                  2 minutes ago       Created                                                                     container-manager.1.9oxg8viseqv61a5cleisvaqg0
788f35f40867        databoxsystems/container-manager-amd64:0.5.1    "./app"                  2 minutes ago       Created                                                                     container-manager.1.8nar56fix6p4mvye1fr4upqnq
372fadab9e95        databoxsystems/container-manager-amd64:0.5.1    "./app"                  2 minutes ago       Created                                                                     container-manager.1.nmzd0ngtx66ocnc71kwsrx5qe
bf24e364aa88        databoxsystems/arbiter-amd64:0.5.1              "/app/zest/server.ex…"   45 minutes ago      Exited (0) 15 minutes ago        4444-4445/tcp, 5555-5556/tcp               arbiter.1.uhm4fvbm7owynyyjl98ahw2k9
83a40648e04d        databoxsystems/container-manager-amd64:0.5.1    "./app"                  About an hour ago   Created                                                                     container-manager.1.olksdiwn42qn8f9q6wzy3m6wo
ca24767c9a2d        databoxsystems/container-manager-amd64:0.5.1    "./app"                  12 hours ago        Created                                                                     container-manager.1.5b0msybdlnhqlthv1zln8y2gj
34a6a195bb8f        databoxsystems/arbiter-amd64:0.5.1              "/app/zest/server.ex…"   13 hours ago        Exited (255) About an hour ago   4444-4445/tcp, 5555-5556/tcp               arbiter.1.tm92slrvtta9rcou4oit5eouj
2c1c9c4c3d73        databoxsystems/arbiter-amd64:0.5.1              "/app/zest/server.ex…"   13 hours ago        Exited (0) 13 hours ago          4444-4445/tcp, 5555-5556/tcp               arbiter.1.z7806pgx9i6m7g6hn2mbjb5pe
43b648feab0c        databoxsystems/arbiter-amd64:0.5.1              "/app/zest/server.ex…"   14 hours ago        Exited (0) 13 hours ago          4444-4445/tcp, 5555-5556/tcp               arbiter.1.k0p0z6uigxzc8wd2awo4kdfw4
890e4465ac83        databoxsystems/container-manager-amd64:0.5.1    "./app"                  14 hours ago        Created                                                                     container-manager.1.ywoq3py3nnfzaejj37vjjuv27
d3367ecc3286        databoxsystems/arbiter-amd64:0.5.1              "/app/zest/server.ex…"   15 hours ago        Exited (0) 14 hours ago          4444-4445/tcp, 5555-5556/tcp               arbiter.1.v43ppyorihkup009ihgz8c9f4
2ef68e22e964        databoxsystems/container-manager-amd64:0.5.1    "./app"                  15 hours ago        Created                                                                     container-manager.1.jyfajusijrtyho3d7fg2potp8
c4dbcbeace24        databoxsystems/container-manager-amd64:0.5.1    "./app"                  15 hours ago        Created                                                                     container-manager.1.gr0p024mqnmvn5oad375pgm0w
1f03f587d76d        databoxsystems/core-store-amd64:0.5.1           "/app/zest/run.sh"       16 hours ago        Exited (255) About an hour ago   5555-5556/tcp                              container-manager-core-store.1.iaq5iaikrr3396nonhifbz88w
563e38dc75c9        databoxsystems/export-service-amd64:0.5.1       "./service -v"           16 hours ago        Exited (255) About an hour ago   8080/tcp                                   export-service.1.vp7q9mt2wgrqynqx7jg94sqza
ef6a764c506f        databoxsystems/arbiter-amd64:0.5.1              "/app/zest/server.ex…"   24 hours ago        Exited (255) 16 hours ago        4444-4445/tcp, 5555-5556/tcp               arbiter.1.qh0mnywzw9jrdug6ebrvr8mox
58673c0f5598        databoxsystems/container-manager-amd64:0.5.1    "./app"                  24 hours ago        Created                                                                     container-manager.1.5r7scvrzcq3o22gsz8d66v83h
e652f49fc7ea        databoxsystems/container-manager-amd64:0.5.1    "./app"                  24 hours ago        Created                                                                     container-manager.1.qtyetpdpqpdzo8wks8squ0lkf
28ab5c07c674        databoxsystems/container-manager-amd64:0.5.1    "./app"                  27 hours ago        Created                                                                     container-manager.1.k3hjzxdol4wyeb9gkh301b91c
25552115ba47        databoxsystems/container-manager-amd64:0.5.1    "./app"                  27 hours ago        Created                                                                     container-manager.1.zfxvlxggp6dwj7fn0k79z1xgu
b80416d77b4c        databoxsystems/container-manager-amd64:0.5.1    "./app"                  27 hours ago        Created                                                                     container-manager.1.21wuyptk07wt6wy3fasfks092
2b90c30df6ad        databoxsystems/container-manager-amd64:0.5.1    "./app"                  27 hours ago        Created                                                                     container-manager.1.6zn12gg6jylv9nr89za9t30bo
346a28a2539f        databoxsystems/container-manager-amd64:0.5.1    "./app"                  28 hours ago        Created                                                                     container-manager.1.pdpt32mu19wik3npl0hrknaf5
c45a8d97c775        databoxsystems/arbiter-amd64:0.5.1              "/app/zest/server.ex…"   28 hours ago        Exited (0) 28 hours ago          4444-4445/tcp, 5555-5556/tcp               arbiter.1.65h2mkm663o9tst6pqtgw7glo
a54f28cf21c8        databoxsystems/arbiter-amd64:0.5.1              "/app/zest/server.ex…"   29 hours ago        Dead                             4444-4445/tcp, 5555-5556/tcp               arbiter.1.kgm4tkiwzgx9vx8hc4jox34ct
f6eac914af80        databoxsystems/arbiter-amd64:0.5.1              "/app/zest/server.ex…"   29 hours ago        Exited (0) 29 hours ago          4444-4445/tcp, 5555-5556/tcp               arbiter.1.r24fmpedkkm3svczeeoyia65o
3805407c43da        databoxsystems/container-manager-amd64:0.5.1    "./app"                  30 hours ago        Created                                                                     container-manager.1.t9cjmlub5q9dbsyi2hujttn7a
b3375ad28b42        databoxsystems/arbiter-amd64:0.5.1              "/app/zest/server.ex…"   31 hours ago        Exited (0) 30 hours ago          4444-4445/tcp, 5555-5556/tcp               arbiter.1.l2xuw22n2lkx06nfrcw5hdhiw
ab8d4b934270        databoxsystems/arbiter-amd64:0.5.1              "/app/zest/server.ex…"   31 hours ago        Exited (0) 31 hours ago          4444-4445/tcp, 5555-5556/tcp               arbiter.1.64ucyzh22ubgh1xuvrj03ga97
26878f92abea        databoxsystems/container-manager-amd64:0.5.1    "./app"                  31 hours ago        Created                                                                     container-manager.1.layz6afp8ctvoi4xb3sa9brax
8986ed5edcb3        databoxsystems/container-manager-amd64:0.5.1    "./app"                  31 hours ago        Created                                                                     container-manager.1.tdb2snrexnqo7d4e7bz7nfm1g
1457c75c7e82        databoxsystems/container-manager-amd64:0.5.1    "./app"                  32 hours ago        Created                                                                     container-manager.1.w3gelnn2kfcfqgmlzsgitu6ez
b80ce6f53109        databoxsystems/arbiter-amd64:0.5.1              "/app/zest/server.ex…"   32 hours ago        Exited (0) 32 hours ago          4444-4445/tcp, 5555-5556/tcp               arbiter.1.b99dspaxhpl0nmgoy6kh43lko
b3f0fae626f8        databoxsystems/container-manager-amd64:0.5.1    "./app"                  33 hours ago        Created                                                                     container-manager.1.swfrupiad5nuxu50ren89bncs
87da2f8c02f2        databoxsystems/container-manager-amd64:0.5.1    "./app"                  33 hours ago        Created                                                                     container-manager.1.l0852pbonh7ovyuc2ka07458g
06b793217d46        databoxsystems/container-manager-amd64:0.5.1    "./app"                  34 hours ago        Created                                                                     container-manager.1.n4svu7dgqmurizqg7mw7jbv5y
c0a31f4ca93a        databoxsystems/arbiter-amd64:0.5.1              "/app/zest/server.ex…"   35 hours ago        Exited (0) 35 hours ago          4444-4445/tcp, 5555-5556/tcp               arbiter.1.ln843yo6aulwibm8ldsrvoi6b
44d3ff31dea8        databoxsystems/arbiter-amd64:0.5.1              "/app/zest/server.ex…"   36 hours ago        Exited (0) 35 hours ago          4444-4445/tcp, 5555-5556/tcp               arbiter.1.32vbx1z8ls7rcje5cvvfxyivn
7fd308ea13ee        databoxsystems/arbiter-amd64:0.5.1              "/app/zest/server.ex…"   36 hours ago        Exited (0) 36 hours ago          4444-4445/tcp, 5555-5556/tcp               arbiter.1.km21nyumrba7si9mk49vvxao0
a6453b3584b6        databoxsystems/container-manager-amd64:0.5.1    "./app"                  36 hours ago        Created                                                                     container-manager.1.e7zbvthx27rtzc9r3bj1at767
0404eed5442c        databoxsystems/container-manager-amd64:0.5.1    "./app"                  36 hours ago        Created                                                                     container-manager.1.rzx8873vmz7ayapuqb9oew3cj
4dec1ecc4b4c        databoxsystems/arbiter-amd64:0.5.1              "/app/zest/server.ex…"   37 hours ago        Exited (0) 37 hours ago          4444-4445/tcp, 5555-5556/tcp               arbiter.1.09b7jmhub0efm1fo68w95u9gr
76602ff481de        databoxsystems/container-manager-amd64:0.5.1    "./app"                  38 hours ago        Created                                                                     container-manager.1.dcs92elnrckw9vwrhjkfnru10
2c962c9dc9d1        databoxsystems/export-service-amd64:0.5.1       "./service -v"           39 hours ago        Exited (255) 16 hours ago        8080/tcp                                   export-service.1.nn92a67dg40w5enlsuezpm9r0
f18755dd4226        databoxsystems/core-store-amd64:0.5.1           "/app/zest/run.sh"       39 hours ago        Exited (255) 16 hours ago        5555-5556/tcp                              container-manager-core-store.1.ttgolp65gitqp3cx1qmoixvfk
5195f908d3bc        databoxsystems/export-service-amd64:0.5.1       "./service -v"           46 hours ago        Dead                             8080/tcp                                   export-service.1.8erq80xnhkbcvwvoym4aai1jc
Toshbrown commented 5 years ago

error waiting for container: unexpected EOF looks odd I've not seen this before. What's your OS, and docker version?

grandpaul commented 5 years ago

Hi. I'm using docker.io.

$ apt-cache policy docker.io docker.io: 已安裝:18.06.1+dfsg1-2 候選: 18.06.1+dfsg1-2 版本列表: *** 18.06.1+dfsg1-2 500 500 http://ftp.us.debian.org/debian testing/main amd64 Packages 100 /var/lib/dpkg/status $ docker --version Docker version 18.06.1-ce, build e68fc7a

grandpaul commented 5 years ago

I tried to re-run everything and gain the logs. Starting:

$ docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v -t databoxsystems/databox:0.5.1 /databox start -sslHostName freya Unable to find image 'databoxsystems/databox:0.5.1' locally 0.5.1: Pulling from databoxsystems/databox 4fe2ade4980c: Pull complete
02cea6039f00: Pull complete
63421155b504: Pull complete
28753e4092cd: Pull complete
Digest: sha256:115d5baf4eb5f01e0327d1d05339991b50cd72b5abcd92632e1176b7fef4f467 Status: Downloaded newer image for databoxsystems/databox:0.5.1 [INFO]2019/01/12 12:53:15 Starting Databox 0.5.1 [INFO]2019/01/12 12:53:17 Pulling Image databoxsystems/container-manager-amd64:0 .5.1 [INFO]2019/01/12 12:53:31 Done pulling Image databoxsystems/container-manager-am d64:0.5.1 [INFO]2019/01/12 12:53:31 Outputting logs container-manager : [INFO]2019/01/12 12:53:36 GenRootCA called container-manager : [INFO]2019/01/12 12:53:37 Making cert ./certs/databox -network.pem container-manager : [INFO]2019/01/12 12:53:37 Making cert ./certs/export- service.pem container-manager : [INFO]2019/01/12 12:53:38 Making cert ./certs/arbiter .pem container-manager : [INFO]2019/01/12 12:53:38 Making cert ./certs/app-ser ver.pem container-manager : [INFO]2019/01/12 12:53:38 ContainerManager Started container-manager : [INFO]2019/01/12 12:53:38 Starting databox-network container-manager : [INFO]2019/01/12 12:53:38 Pulling Image databoxsystem s/core-network-amd64:0.5.1 container-manager : [INFO]2019/01/12 12:53:59 Done pulling Image databoxs ystems/core-network-amd64:0.5.1 container-manager : [INFO]2019/01/12 12:54:03 [startCoreNetwork] done sta rting databox-network container-manager : [INFO]2019/01/12 12:54:03 Pulling Image databoxsystem s/core-network-relay-amd64:0.5.1 container-manager : [INFO]2019/01/12 12:54:19 Done pulling Image databoxs ystems/core-network-relay-amd64:0.5.1 container-manager : [INFO]2019/01/12 12:54:22 [updateContainerManager] ca lled container-manager : [INFO]2019/01/12 12:54:22 [updateContainerManager] up dating dns server container-manager : [INFO]2019/01/12 12:54:22 Restarting the Container Ma nager container-manager : [INFO]2019/01/12 12:54:32 ContainerManager Started container-manager : [INFO]2019/01/12 12:54:32 [updateContainerManager] ca lled container-manager : [INFO]2019/01/12 12:54:32 [updateContainerManager] up dating dns server container-manager : [INFO]2019/01/12 12:54:32 Pulling Image databoxsystem s/arbiter-amd64:0.5.1 container-manager : [INFO]2019/01/12 12:54:45 Done pulling Image databoxs ystems/arbiter-amd64:0.5.1 container-manager : [INFO]2019/01/12 12:54:58 Pulling Image databoxsystem s/core-store-amd64:0.5.1 container-manager : [INFO]2019/01/12 12:54:58 Pulling Image databoxsystem s/export-service-amd64:0.5.1 container-manager : [INFO]2019/01/12 12:55:28 Done pulling Image databoxs ystems/export-service-amd64:0.5.1 container-manager : [INFO]2019/01/12 12:55:29 Done pulling Image databoxs ystems/core-store-amd64:0.5.1 container-manager : [INFO]2019/01/12 12:55:41 Password=R2nt6xC7e2kFDRjEAO x7BJ9xMFj2Y35o container-manager : [INFO]2019/01/12 12:55:41 Container Manager Ready and waiting container-manager : [INFO]2019/01/12 12:55:41 Restarting saved apps and d rivers container-manager : [INFO]2019/01/12 12:55:41 Installing app-store container-manager : [INFO]2019/01/12 12:55:41 API: registering ServiceSta tus container-manager : [INFO]2019/01/12 12:55:41 Installing core-ui container-manager : [INFO]2019/01/12 12:55:49 Pulling Image databoxsystem s/driver-app-store-amd64:0.5.1 container-manager : [INFO]2019/01/12 12:55:51 Pulling Image databoxsystem s/core-ui-amd64:0.5.1 container-manager : [INFO]2019/01/12 12:56:06 Done pulling Image databoxs ystems/driver-app-store-amd64:0.5.1 container-manager : [INFO]2019/01/12 12:56:06 Done pulling Image databoxs ystems/core-ui-amd64:0.5.1 container-manager : [INFO]2019/01/12 12:56:06 Successfully installed core -ui container-manager : makeArbiterPostRequest /token Error:: unauthorized container-manager : [WARNING]2019/01/12 12:56:14 [populateDataSources] Ge tStoreDataSourceCatalogue item.Href=tcp://app-store-core-store:5555 storeURL=tcp ://app-store-core-store:5555 500:
container-manager : [INFO]2019/01/12 12:56:17 Successfully installed app- store

Starting has no problem.

Stopping:

$ docker run --rm -v /var/run/docker.sock:/var/run/doc ker.sock -v -t databoxsystems/databox:0.5.1 /databox stop [INFO]2019/01/12 18:44:27 Stoping Databox ... [INFO]2019/01/12 18:44:28 Removing old databox service app-store-core-store [INFO]2019/01/12 18:44:28 Removing old databox service core-ui [INFO]2019/01/12 18:44:28 Removing old databox service arbiter [INFO]2019/01/12 18:44:28 Removing old databox service container-manager-core-st ore [INFO]2019/01/12 18:44:28 Removing old databox service export-service [INFO]2019/01/12 18:44:28 Removing old databox service app-store ERRO[0012] error waiting for container: unexpected EOF

Docker ps -a:

$ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 05932b994f9e databoxsystems/arbiter-amd64:0.5.1 "/app/zest/server.ex…" 22 seconds ago Up 19 seconds 4444-4445/tcp, 5555-5556/tcp arbiter.1.083nei3y6u1dqrex20dmjlurb c49006550ffa databoxsystems/container-manager-amd64:0.5.1 "./app" 28 seconds ago Up 25 seconds 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp container-manager.1.gluc4rx6o5tcfv23q837z56od 0ae3c553a3ab databoxsystems/databox:0.5.1 "/databox stop" About a minute ago Dead0c0563b876ee databoxsystems/driver-app-store-amd64:0.5.1 "./app" 6 hours ago Exited (2) 44 seconds ago 8080/tcp app-store.1.7ys7plfzudqom3po907hi6aln cef9a1ab4aac databoxsystems/core-store-amd64:0.5.1 "/app/zest/run.sh" 6 hours ago Up 6 hours 5555-5556/tcp app-store-core-store.1.z0d7fe7pay4jy8nxrm7huoksj 3dc77a246597 databoxsystems/core-ui-amd64:0.5.1 "./app" 6 hours ago Exited (2) 44 seconds ago core-ui.1.nr31n2qzfndovuuupk3z7xiyj e4a2bce2467e databoxsystems/core-store-amd64:0.5.1 "/app/zest/run.sh" 6 hours ago Up 6 hours 5555-5556/tcp container-manager-core-store.1.mnq8hdl11ec9hkmsxblumswn sb00ba4e24f20 databoxsystems/export-service-amd64:0.5.1 "./service -v" 6 hours ago Up 6 hours 8080/tcp export-service.1.hdk7lb3p9cvl6plr7e4b9zqvg 571b15b38e98 databoxsystems/arbiter-amd64:0.5.1 "/app/zest/server.ex…" 6 hours ago Exited (0) 42 seconds ago 4444-4445/tcp, 5555-5556/tcp arbiter.1.k04mh40by3qt4pvjoeabn9tns 8bc80f0fd13d databoxsystems/container-manager-amd64:0.5.1 "./app" 6 hours ago Exited (2) 43 seconds ago 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp container-manager.1.t3uqd8df9x47a84dkm8uk40xl bd69673d3836 databoxsystems/core-network-relay-amd64:0.5.1 "./bcast-rel ay -f /t…" 6 hours ago Exited (2) 6 hours ago databox-broadcast-relay ad529c538845 databoxsystems/core-network-amd64:0.5.1 "./start.sh-f /tmp/…" 6 hours ago Up 6 hours 8080/tcp databox-network

Toshbrown commented 5 years ago

Thanks, I will spin up a Debian VM and take a look.

Toshbrown commented 5 years ago

Confirmed working on this setup:

root@debian-databox:/home/tosh# uname -a && docker --version
Linux debian-databox 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux
Docker version 18.09.0, build 4d60db4

root@debian-databox:/home/tosh# docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v -t databoxsystems/databox:0.5.1 /databox start -sslHostName $(hostname)
[INFO]2018/12/05 20:27:51 Starting Databox 0.5.1
[INFO]2018/12/05 20:27:52 Outputting logs
container-manager        : [INFO]2018/12/05 20:27:54 ContainerManager Started
container-manager        : [INFO]2018/12/05 20:27:54 Starting databox-network
container-manager        : [INFO]2018/12/05 20:27:55 [startCoreNetwork] done starting databox-network
container-manager        : [INFO]2018/12/05 20:27:55 [updateContainerManager] called
container-manager        : [INFO]2018/12/05 20:27:55 [updateContainerManager] updating dns server
container-manager        : [INFO]2018/12/05 20:27:55 Restarting the Container Manager
container-manager        : [INFO]2018/12/05 20:27:59 ContainerManager Started
container-manager        : [INFO]2018/12/05 20:27:59 [updateContainerManager] called
container-manager        : [INFO]2018/12/05 20:27:59 [updateContainerManager] updating dns server
container-manager        : [INFO]2018/12/05 20:28:15 Password=9GcHITCf7LOLqijVGdlFqut6SYOZYOMj
container-manager        : [INFO]2018/12/05 20:28:15 Container Manager Ready and waiting
container-manager        : [INFO]2018/12/05 20:28:15 Restarting saved apps and drivers
container-manager        : [INFO]2018/12/05 20:28:15 Installing app-store
container-manager        : [INFO]2018/12/05 20:28:15 API: registering ServiceStatus
container-manager        : [INFO]2018/12/05 20:28:15 Installing core-ui
container-manager        : [INFO]2018/12/05 20:28:15 Installing driver-os-monitor
container-manager        : [INFO]2018/12/05 20:28:21 Successfully installed core-ui
container-manager        : [INFO]2018/12/05 20:28:27 Successfully installed app-store
container-manager        : [INFO]2018/12/05 20:28:29 Successfully installed driver-os-monitor
container-manager        : [INFO]2018/12/05 20:28:29 Installing app-os-monitor
container-manager        : [INFO]2018/12/05 20:28:35 Successfully installed app-os-monitor
^Croot@debian-databox:/home/toshdocker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v -t databoxsystems/databox:0.5.1 /databox stop
[INFO]2018/12/05 20:29:33 Stoping Databox ...
[INFO]2018/12/05 20:29:33 Removing old databox service arbiter
[INFO]2018/12/05 20:29:33 Removing old databox service driver-os-monitor-core-store
[INFO]2018/12/05 20:29:33 Removing old databox service core-ui
[INFO]2018/12/05 20:29:33 Removing old databox service driver-os-monitor
[INFO]2018/12/05 20:29:33 Removing old databox service app-os-monitor
[INFO]2018/12/05 20:29:33 Removing old databox service export-service
[INFO]2018/12/05 20:29:33 Removing old databox service app-store-core-store
[INFO]2018/12/05 20:29:33 Removing old databox service container-manager-core-store
[INFO]2018/12/05 20:29:33 Removing old databox service app-store
[INFO]2018/12/05 20:29:39 Removing old databox container databoxsystems/core-network-amd64:0.5.1
root@debian-databox:/home/tosh#

18.06.1-ce is very old is that the latest one in the Debian repos?

I will downgrade to 18.06.1-ce and see if i can replicate the problem.

grandpaul commented 5 years ago

Hi, it still seems to be reproducible to me on AWS EC2 running Ubuntu 16.04 Server image. I tried to stop the aws instance and start it again. The same syndrome happens. This time I haven't use the stop command but just restart the aws instance. Does that mean I must stop databox before I stop the aws ec2 instance?

For the Debian VM do you mean running inside a virtual box or a docker image?

$ uname -a ; docker --version
Linux ip-172-31-23-50 4.4.0-1074-aws #84-Ubuntu SMP Thu Dec 6 08:57:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Docker version 18.09.1, build 4c52b90
$ docker ps -a
CONTAINER ID        IMAGE                                           COMMAND                  CREATED              STATUS                          PORTS                                      NAMES
eb3a21ee0a8f        databoxsystems/app-os-monitor-amd64:0.5.1       "./app"                  35 seconds ago       Up 34 seconds                                                              app-os-monitor.1.5c2qk9dihu9odw3d1o8k132e9
e70109715c08        databoxsystems/driver-os-monitor-amd64:0.5.1    "npm start"              41 seconds ago       Up 40 seconds                   8080/tcp                                   driver-os-monitor.1.y0q047m603kfdlzjh44snqwmn
2b5da787f37d        databoxsystems/driver-app-store-amd64:0.5.1     "./app"                  41 seconds ago       Up 40 seconds                   8080/tcp                                   app-store.1.b779sif6akej2m5gjp96pol1m
2e96a03562b2        databoxsystems/core-store-amd64:0.5.1           "/app/zest/run.sh"       47 seconds ago       Up 46 seconds                   5555-5556/tcp                              driver-os-monitor-core-store.1.ryuk1a7lkreid7s0rbu1c7w61
70691f0ebf25        databoxsystems/core-ui-amd64:0.5.1              "./app"                  49 seconds ago       Up 47 seconds                                                              core-ui.1.gk3tj05gxx862q17l4eikt3hw
555cad4b67e6        databoxsystems/core-store-amd64:0.5.1           "/app/zest/run.sh"       49 seconds ago       Up 47 seconds                   5555-5556/tcp                              app-store-core-store.1.ryeop41s9s5sokklf8bybrf30
64fd9eb4d9f6        databoxsystems/core-store-amd64:0.5.1           "/app/zest/run.sh"       About a minute ago   Up About a minute               5555-5556/tcp                              container-manager-core-store.1.aw7hs2opm3waxfai88wdl7upz
69b3758b2598        databoxsystems/export-service-amd64:0.5.1       "./service -v"           About a minute ago   Up About a minute               8080/tcp                                   export-service.1.3050loa5ldmnxvmabn3monvlg
e9c81e0e0d55        databoxsystems/arbiter-amd64:0.5.1              "/app/zest/server.ex…"   About a minute ago   Up About a minute               4444-4445/tcp, 5555-5556/tcp               arbiter.1.5ugz6ic0j4gx3t1xw5p5agagw
2251e0b1ad0e        databoxsystems/container-manager-amd64:0.5.1    "./app"                  About a minute ago   Up About a minute               0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp   container-manager.1.ur64mg2jt7blbs3ics6b9mqrt
81ecabc9b6fb        databoxsystems/core-network-relay-amd64:0.5.1   "./bcast-relay -f /t…"   About a minute ago   Exited (2) About a minute ago                                              databox-broadcast-relay
6eadcc4c61f8        databoxsystems/core-network-amd64:0.5.1         "./start.sh -f /tmp/…"   About a minute ago   Up About a minute               8080/tcp                                   databox-network
1a57a8563097        databoxsystems/container-manager-amd64:0.5.1    "./app"                  2 minutes ago        Exited (1) About a minute ago                                              container-manager.1.zewl58ftr43i5ap5m5fdc4ndr
530b19bb01c3        databoxsystems/container-manager-amd64:0.5.1    "./app"     
Toshbrown commented 5 years ago

Hi, restarts in 0.5.1 are still affected by this https://github.com/me-box/databox/issues/187

Although I think I have finally fixed this in the upcoming 0.5.2 release. Can you try:

docker run --rm -v /var/run/docker.sock:/var/run/docker.sock --network host -t databoxsystems/databox:latest /databox start -sslHostName $(hostname) -release latest

This will run the latest development code and should fix the issue restarting the host without stopping databox.