elkozmon / zoonavigator

Web-based ZooKeeper UI / editor / browser
https://zoonavigator.elkozmon.com
GNU Affero General Public License v3.0
506 stars 72 forks source link

Docker state stuck in "health: starting" #25

Closed monkybrain closed 5 years ago

monkybrain commented 6 years ago

Hey! I recently added Zoonavigator to a Docker Compose project and I can access the web ui without any problems. However, I've noticed that the containers never seem to get past the "starting" stage. If I run docker-compose ps I get the following output:

             Name                           Command                       State                                      Ports
------------------------------------------------------------------------------------------------------------------------------------------------------
zookeeper                        /docker-entrypoint.sh zkSe ...   Up                      0.0.0.0:2181->2181/tcp, 2888/tcp, 3888/tcp
zoonavigator-api                 ./run.sh                         Up (health: starting)   9000/tcp
zoonavigator-web                 ./run.sh                         Up (health: starting)   80/tcp, 0.0.0.0:32771->8000/tcp

This wasn't a problem until I started using Traefik, which doesn't register services until the starting stage has completed. Is there anything I can do here? Or is this a bug?

Btw, great project!

monkybrain commented 6 years ago

Sorry, I jumped the gun there. Apparently the container is registered as up & healthy after the first health check. The problem is that the first health check isn't triggered until 5 min after the container has started. Would it be possible to decrease the interval to say 30s? Or make the interval an option?

elkozmon commented 6 years ago

Hi! Yes I'm aware of this issue and there's already an accepted PR which decreases the interval down to 30s for API module, the same will be done for "Web" module and released with next version.

In the meantime there's a nightly API build for Docker already available with this change tagged as "latest". I could do the same for Web module if it helps you. :)

monkybrain commented 6 years ago

That would be great! Thanks!

elkozmon commented 6 years ago

No problem, I just published the new Web build so feel free to use 'latest' images until version 0.6.0 is out :)

monkybrain commented 6 years ago

Great, thanks! I really appreciate the swift response.

elkozmon commented 6 years ago

Happy to help!

elkozmon commented 5 years ago

Hey! Unfortunately, I'm not gonna be able to finish all the things I meant for version '0.6.0' before December so I decided to roll out this fix a little sooner in a patch release with version '0.5.1'. Cheers!

SoorajSundar1505 commented 1 year ago

Hey there, I have been facing the same issue when i am trying to run my selenium script in docker. It got stuck after health check Can anyone please help out?

image