CityOfZion / neo-local

Personal blockchain for NEO dApp development!
MIT License
52 stars 26 forks source link

Infinite startup time #178

Open corollari opened 5 years ago

corollari commented 5 years ago

Summary

After running make start, [neo-local] Waiting for network..... never finishes, it's been running for over 1 hour and a half and it shows no signs of advancing.

To Reproduce

Run the following instructions on a bash shell on Fedora 30:

$ git clone https://github.com/CityOfZion/neo-local.git
$ cd neo-local
$ make start

Then open another shell and run these instructions (lines starting with $ are instructions being run, the other lines represent the output received):

$ docker inspect --format '{{json .State.Health.Status }}' neo-local_autoheal
"unhealthy"
$ docker inspect --format '{{json .State.Health.Status }}' neo-scan-api
"unhealthy"
$ docker inspect --format '{{json .State.Health.Status }}' notifications-server
"unhealthy"
$ docker inspect --format '{{json .State.Health.Status }}' neo-faucet
"healthy"

Expected Behaviour

make start finishes starting up in a finite amount of time.

Docker

Docker version 18.06.3, build d7080c1

Docker Compose

docker-compose version 1.22.0, build f46880f

Operating System

Fedora 30

Screenshots

Screenshot

Other

docker ps output:

CONTAINER ID        IMAGE                                                 COMMAND                  CREATED             STATUS                            PORTS                                                                                                        NAMES
f96cce95b55d        willfarrell/autoheal                                  "/docker-entrypoint …"   2 hours ago         Restarting (7) 58 seconds ago                                                                                                                  neo-local_autoheal
1011baad5817        cityofzion/neo-local-faucet:latest                    "npm start"              2 hours ago         Up 2 hours (healthy)              0.0.0.0:4002->4002/tcp                                                                                       neo-faucet
6ee30c12dcac        cityofzion/neo-python:v0.8.4                          "/bin/sh -c /bin/bash"   2 hours ago         Up 2 hours                                                                                                                                     neo-python
feaf95b81fd1        registry.gitlab.com/cityofzion/neo-scan/api:latest    "/start.sh"              2 hours ago         Up 2 hours (unhealthy)            0.0.0.0:4000->4000/tcp                                                                                       neo-scan-api
755d1f8818ca        registry.gitlab.com/cityofzion/neo-scan/sync:latest   "/start.sh"              2 hours ago         Up 2 hours                                                                                                                                     neo-scan-sync
b88dd3a2b6b9        cityofzion/neo-python:v0.8.4                          "/usr/bin/python3 /n…"   2 hours ago         Up 2 seconds (health: starting)   0.0.0.0:8080->8080/tcp                                                                                       notifications-server
55346399d62c        cityofzion/neo-local-privatenet:2.9.3_6kBlocks        "/bin/bash /opt/run.…"   2 hours ago         Up 2 hours (healthy)              20333/tcp, 20335-20336/tcp, 0.0.0.0:20334->20334/tcp, 30333/tcp, 30335-30336/tcp, 0.0.0.0:30334->30334/tcp   neo-cli-privatenet-2
8c1ca836263f        cityofzion/neo-local-privatenet:2.9.4_6kBlocks        "/bin/bash /opt/run.…"   2 hours ago         Up 2 hours (healthy)              20334/tcp, 0.0.0.0:20333->20333/tcp, 20336/tcp, 30334/tcp, 0.0.0.0:30333->30333/tcp, 30336/tcp               neo-cli-privatenet-1
d6a0e69d5117        cityofzion/neo-local-privatenet:2.9.0_6kBlocks        "/bin/bash /opt/run.…"   2 hours ago         Up 2 hours (healthy)              20333/tcp, 20336/tcp, 0.0.0.0:20335->20335/tcp, 30333/tcp, 30336/tcp, 0.0.0.0:30335->30335/tcp               neo-cli-privatenet-3
8a289e8ff42e        cityofzion/neo-local-privatenet:2.8.0_6kBlocks        "/bin/bash /opt/run.…"   2 hours ago         Up 2 hours (unhealthy)            20333/tcp, 20335/tcp, 30333/tcp, 0.0.0.0:20336->20336/tcp, 30335/tcp, 0.0.0.0:30336->30336/tcp               neo-cli-privatenet-4
corollari commented 5 years ago

I think the problem is caused by upstream neo-privatenet-docker. I'll keep this issue open while I resolve the problem cause I'm not entirely sure that the root cause is in neo-privatenet-docker, but feel free to close it if you think it's off-topic here.

nunojusto commented 5 years ago

I really cannot reproduce this. Are you using the latest Master branch?

corollari commented 5 years ago

Yes, well I was 15 days ago and it hasn't changed since then.