-
Notifications
You must be signed in to change notification settings - Fork 289
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
Kubernetes fails to start (hangs in starting phase) #1962
Comments
have the same issue |
I resolve this issue by delete ./kube/config , then enable Kurnetes again |
Same issue. Things that I tried:
The error reported in the log file is always the same [13:57:05.303][ApiProxy ][Info ] time="2018-06-06T13:57:05-07:00" msg="Node status error: Get https://localhost:6445/api/v1/nodes: EOF" Funny fact: Docker itself works great. I tried docker run hello-world as well as docker run -it ubuntu bash With both container I had no problem whatsoever. Inside the ubuntu container, I was able to call apt-get update and apt-get install, so external connection works fine. |
surprisingly, @cuiping1004's solution worked for me. My steps:
After that fwiw I still see the error
Maybe it's more of a "did you turn it off and on again?" kinda situation, but I've restarted Docker for Win many times prior to trying @cuiping1004's solution before it worked. Could be related, or could just have been lucky this time. |
As far as diagnostic information goes: Version 18.05.0-ce-win67 (18263) And indeed, docker itself was working fine the entire time, just not |
Same issue.
|
I have the same issue which I already have reported here: #2065 |
having the same issue here, I got it solved by @cuiping1004 's method |
I've got the same Issue on my Windows machine. I have chosen the "Reset to factory defaults" from the settings window to get rid of the hanging Kubernetes instance. This will delete your MobyLinuxVM Hyper-V VM and get rid of everything! For a second try I fully disabled my Windows firewalls and tried again. Now Kubernetes is installed and up and running. 😄 Maybe the Docker configuration should setup the Windows firewall rules for Docker+Kubernetes! After that I added an outgoing firewall rule to my windows firewall settings for |
Diagnostic ID: 51BE916F-11C1-4855-9037-9EE0541E1A40/20180905161830 I have tried every firewall rule with IT. They have added vpnkit.exe to the rule set to BitDefender to allow every outgoing connection. Still no luck.
|
@anwalkers +1 |
@anwalkers Have you had any luck with this? I'm running into the same issue. |
@patrickbadley No luck... |
@patrickbadley I did try it at home and succeeded to get it running on my surface, not on the corporate network. Diagnostic ID for the successful startup: 4CE55FC1-174C-4F00-AD3D-75E954F136D2/20180918213135 |
I had the same problem. Docker hello-world worked fine for me too with corporate network so downloading images and such was not a problem but something else was blocked when trying kubernetes. |
@JohanSellberg @patrickbadley I have it running. I had to change my DNS services from our corporate servers to a public server. I am using the Verisign DNS servers and changed both the IPv4 and IPv6 protocols. I still have the vpnkit firewall rule in place as well. Hope this helps... |
@anwalkers Where did you change the DNS? On the DockerNAT adapter? I changed it there, but still no luck for me. |
@jherman on my host machine. Not in Hyper-V or Docker. |
Same experience: could only get K8s up when Windows Firewall fully OFF AND connected to a home network. Booting Docker & K8s while connected to the corporate network causes it to hang again at "Kubernetes is starting..." What blocked external resource is it trying to access? It doesn't seem to be documented anywhere. Adding an outbound rule in the Windows firewall for the vpnkit.exe as suggested above doesn't seem to make a difference (on the corporate network it may still be getting blocked by the network firewall). |
I initially installed Docker on my desktop that's my devbox. Couldn't get K8s working and ran through the gamut of the suggestions here and other threads, but none of them worked. Got tired of fussing around on that so I installed on a clean windows 10 environment on my laptop where HyperV had not been installed yet. K8s worked right away. However 3 hours later when I rebooted the machine, I started seeing that K8s wouldn't come back up and once again seeing the same exact issue on my laptop:
A day later, I tried running it again on my desktop that morning. Still failing. Try again in the afternoon, and all of sudden it starts working. WTF? There has to be something fundamentally wrong... maybe there is a timing issue within the containers... |
I also have my laptop sitting behind a corporate network doing the steps that @anwalkers mentioned: |
I've tried doing that as well, but I only get the following results:
|
I suggest you reinstall the Docker Desktop and set Docker Desktop's Network to 8.8.8.8 |
This is still not solved. I am on 2.1.0.5 Docker.
I always get the same |
Expected behaviorKubernetes start after is enabled Actual behaviorInformation
Steps to reproduce the behavior
|
I have the same problem here, |
add a line in your local hosts |
@phonzia Got the same issues. |
I fixed this by restarting the docker-desktop |
If you didn't uninstall or disable your anti-virus program before installing Docker Desktop on Windows 10 (Enterprise) and it's Kubernetes will not start, this may help you. I've been troubleshooting this for over a week now and finally resolved it. No matter how many times I uninstalled, then reinstalled Docker in ANY instance I ran into the same problem with Kubernetes never finally starting. If I ONLY followed instructions well I could have avoided all these issues and I must say Docker does warn you (see image). Unfortunately, they weren't very clear in there message about which pieces would fail but nonetheless (see warning below). In short, my anti-virus program put a lock on the host file so Docker could never update it and add this line, "127.0.0.1 kubernetes.docker.internal', in my local hosts file, "C:\Windows\System32\drivers\etc\hosts". So either uninstall your anti-virus as warned or find the setting within your anti-virus program that prevents updates to your local host file and turn it off like I did with mine here. Then add a line in your hosts file, "C:\Windows\System32\drivers\etc\hosts", save it, re-open and verify it saved correctly(important). This is important because on Windows 10 Enterprise you must open notepad in Administrator's mode by typing notepad in the run dialog box then when it's visible right-click on it and choose "Run As Administrator", in order to save the file.
I tested the hosts file change by using a Powershell commandlet, "Resolve-DnsName", and could finally see that "kubernetes.docker.internal" was resolving. However, simply restarting Docker Desktop didn't resolve my issue. Instead, I had to follow a more thorough cleansing of Docker Desktop to get it working again. So, I then followed maddy10s, "Docker Reset Sequence", by following steps below. Yes, even though his issue was originally reported as a MAC issue, not Windows, it worked for me and I experienced the same issues below.
I hope this helps save you some time. I hope the Docker Developers start reporting error's a bit more stringently both in their documentation and as their installer runs into these types of issues. I mean really, couldn't a warning message not been thrown once you weren't able to update the hosts file locally? We've all written that code at some point as developers. Good day (END OF SOAPBOX). systeminfoOS Name: Microsoft Windows 10 Enterprise |
47A10DD9-CCC7-4F86-A58C-3E1C80017E2E/20200422144701 |
adding line in /etc/hosts didn't solve the issue, still showing, "can't list nodes Had anyone able to solve the issue ?? |
My K8S installation Journey on Mac -
|
have the same issue
The k8s of docker desktop does not work properly, I tried to install minikube myself, no problem. For some reasons, I can't directly access k8s.gcr.io, etc., so I can't confirm the installation, Is there an alternative? thank you |
I did every thing, delete all config file, reinstall docker desktop nothing works Good luck Docker-Desktop Version 2.3.0.3 |
I don't know what to say. I nearly give up. I tried every method above, but no use. |
Did you try restarting your computer?
…On Tue, Jul 14, 2020, 2:26 AM RTZha ***@***.***> wrote:
I don't know what to say. I nearly give up. I tried every method above,
but no use.
I solved this issue by waiting for a very very long night (sleeping).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1962 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKG6Q57R77FBW64JTBQUNGTR3QQFVANCNFSM4E3EIFTA>
.
|
nope, just let it hanging on background. I changed DNS, deleted ./kube/config and restart Docker and so on. But still no lucky. Then, it maybe fix the issue by itsefl. lmao |
Move to minikube and resolve my problem |
This happens to me every time a new update for docker comes out (on mac as well as windows). Today is one of those days (new update). Kubernetes is now stuck at "Starting...". This issue has been around since 2017 from what I can tell from searches. I'm cool with it If the issue is too difficult to fix, too problamatic to fix, or poses too many other issues to fix. I'd just like to know that instead of finding myself searching fro this error from time to time =) haha. The solutions for me have been removing the |
Issues go stale after 90 days of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Please, check https://docs.docker.com/docker-for-win/troubleshoot/.
Issues without logs and details cannot be debugged, and will be closed.
Expected behavior
Kubernetes cluster should start, Settings panel should have green dot saying Kubernetes is running.
kubectl get pods
should return empty set.Actual behavior
Kubernetes is stuck in Kubernetes is starting phase.
kubetctl get pods
hangs.Information
Diagnostic ID: 943836AC-0B99-4BEE-BC82-900781400047/2018-04-17_23-06-41
Steps to reproduce the behavior
This issue looks a lot like #1845, which I am not sure why OP closed.
Settings
Kubernetes
menuEnable Kubernetes
Apply
Tried
Reset to factory settings
and different combinations of resetting. The port6445
seems to be correctly tunneled, as I seevpnkit.exe
listening on it. K8s images are downloaded, no k8s dockers are visible indocker ps
and docker logs include following entries:The text was updated successfully, but these errors were encountered: