Open grandpaul opened 5 years ago
error waiting for container: unexpected EOF
looks odd I've not seen this before. What's your OS, and docker version?
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
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
Thanks, I will spin up a Debian VM and take a look.
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.
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"
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.
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.