-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kong can't start after restarting docker container #1164
Comments
After container kong-database runs over 10 minutes. I start kong again and it can run. I dont' know why sometime I see the "[ERR] dnsmasq is already running" |
I have the same issue, it's only happen when i restart the docker container |
You should check additional messages in You can go inside docker by |
@harryparmar do you recall what was the issue with the Runscope plugin? |
@thefosk If I remember right, one of your files constants.lua was missing runscope reference but allowed installing runscope following your guide on website. This was all good as long as Kong was running but on next restart Kong would not start. I manually cleaned up cassandra tables and removed runscope and fixed constants.lua file or something like that to fix the issue. This is no longer issue though as your constants.lua file is good unless people are using old version. |
@thefosk I faced this dnsmasq issue in one of my dev instances today and after deleting container and image and downloading new image..the error turned into cannot connect to port kong-database:9042. could not figure out what was wrong. Suspecting there was bug in docker itself i deleted all containers and images...and updated my docker through Yum command and then installed kong and cassandra again and everything starting running smooth again. |
I got the same issue. Any helps appreciate ! |
If you run kong-dashboard then it should be stopped before restart kong container. Hope it can help you! |
Thanks ! Actually, I have to stop kong in docker container first, then exit to docker container and restart the docker, anyway thanks for your answer ! |
So it actually looks like the dnsmasq process or its pid or whatever is not cleaned up when the container is stopped. Maybe it's linked to #1074 because that is not fixed either. So far I have been successful with changing the command to kong restart instead of kong start. Also the problem will probably go away when #1225 hits. |
Hello Here is a fix proposal for this issue : Kong/docker-kong#47 |
In the new Kong 0.9 this command seems to work as expected - do you confirm? |
Considering this answered, please re-open if occurring with Kong 0.9. |
I install kong on docker container by following this document https://getkong.org/install/docker/
I use postgres. It runs properly. But after run command "docker restart kong kong-database". Kong can't start.
Result of command "docker logs kong" is here:
[INFO] kong 0.8.0
[INFO] Using configuration: /etc/kong/kong.yml
[INFO] Setting working directory to /usr/local/kong
[INFO] database...........postgres host=kong-database database=kong user=kong port=5432
[INFO] Leaving cluster..
[ERR] dnsmasq is already running
[ERR] Could not start Kong
The text was updated successfully, but these errors were encountered: