Skip to content
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

hyperkit: Get https://k8s.gcr.io/v2/: dial tcp: lookup k8s.gcr.io: read udp x->192.168.64.1:53: i/o timeout #4265

Closed
ChirayuChirayu opened this issue May 16, 2019 · 5 comments
Labels
area/dns DNS issues co/hyperkit Hyperkit related issues kind/support Categorizes issue or PR as a support question.

Comments

@ChirayuChirayu
Copy link

ChirayuChirayu commented May 16, 2019

I am running the following command on my mac(Mac OS high Sierra(10.13.6)

$ /usr/local/bin/minikube start --vm-driver=hyperkit

😄 minikube v1.0.1 on darwin (amd64)
🤹 Downloading Kubernetes v1.14.1 images in the background ...
💡 Tip: Use 'minikube start -p ' to create a new cluster, or 'minikube delete' to delete this one.
🔄 Restarting existing hyperkit VM for "minikube" ...
⌛ Waiting for SSH access ...
📶 "minikube" IP address is 192.168.64.15
🐳 Configuring Docker as the container runtime ...
🐳 Version of container runtime is 18.06.3-ce
⌛ Waiting for image downloads to complete ...
✨ Preparing Kubernetes environment ...
🚜 Pulling images required by Kubernetes v1.14.1 ...
❌ Unable to pull images, which may be OK: running cmd: sudo kubeadm config images pull --config /var/lib/kubeadm.yaml: command failed: sudo kubeadm config images pull --config /var/lib/kubeadm.yaml
stdout:
stderr: failed to pull image "k8s.gcr.io/kube-apiserver:v1.14.1": output: Error response from daemon: Get https://k8s.gcr.io/v2/: dial tcp: lookup k8s.gcr.io on 192.168.64.1:53: read udp 192.168.64.15:48975->192.168.64.1:53: i/o timeout
, error: exit status 1
: Process exited with status 1
🔄 Relaunching Kubernetes v1.14.1 using kubeadm ...
:
$ /usr/local/bin/minikube start --vm-driver=hyperkit

I am getting the following error:

Unable to pull images, which may be OK: running cmd: sudo kubeadm config images pull --config /var/lib/kubeadm.yaml: command failed: sudo kubeadm config images pull --config /var/lib/kubeadm.yaml stdout: stderr: failed to pull image "k8s.gcr.io/kube-apiserver:v1.14.1": output: Error response from daemon: Get https://k8s.gcr.io/v2/: dial tcp: lookup k8s.gcr.io on 192.168.64.1:53: read udp 192.168.64.15:48975->192.168.64.1:53: i/o timeout

If I run docker pull k8s.gcr.io/kube-apiserver:v1.14.1, then the command is successful. I have tried restarting docker on my mac several times. I have also changed dns settings to 8.8.8.8 as suggested in some other posts but it has not helped:

**$ /usr/local/bin/minikube start --vm-driver=hyperkit

😄 minikube v1.0.1 on darwin (amd64)
🤹 Downloading Kubernetes v1.14.1 images in the background ...
💡 Tip: Use 'minikube start -p ' to create a new cluster, or 'minikube delete' to delete this one.
🔄 Restarting existing hyperkit VM for "minikube" ...
⌛ Waiting for SSH access ...
📶 "minikube" IP address is 192.168.64.15
🐳 Configuring Docker as the container runtime ...
🐳 Version of container runtime is 18.06.3-ce
⌛ Waiting for image downloads to complete ...
✨ Preparing Kubernetes environment ...
🚜 Pulling images required by Kubernetes v1.14.1 ...
❌ Unable to pull images, which may be OK: running cmd: sudo kubeadm config images pull --config /var/lib/kubeadm.yaml: command failed: sudo kubeadm config images pull --config /var/lib/kubeadm.yaml
stdout:
stderr: failed to pull image "k8s.gcr.io/kube-apiserver:v1.14.1": output: Error response from daemon: Get https://k8s.gcr.io/v2/: dial tcp: lookup k8s.gcr.io on 192.168.64.1:53: read udp 192.168.64.15:48975->192.168.64.1:53: i/o timeout
, error: exit status 1
: Process exited with status 1
🔄 Relaunching Kubernetes v1.14.1 using kubeadm ...**

As mentioned in a forum post,the users from China are facing this issue.But I am from India and not behind any proxy

@tstromberg tstromberg changed the title Not able to startup minikube hyperkit: Get https://k8s.gcr.io/v2/: dial tcp: lookup k8s.gcr.io: read udp x->192.168.64.1:53: i/o timeout May 16, 2019
@tstromberg tstromberg added area/dns DNS issues co/hyperkit Hyperkit related issues labels May 16, 2019
@tstromberg
Copy link
Contributor

tstromberg commented May 16, 2019

It seems like the VM is timing out accessing the hyperkit DNS service. Do you mind sharing the output of:

sudo lsof -ni:53

as well as:

ls -la /usr/local/bin/*hyperkit*

@tstromberg tstromberg added the triage/needs-information Indicates an issue needs more information in order to work on it. label May 16, 2019
@ChirayuChirayu
Copy link
Author

sudo lsof -ni:53 does not return anything

ls -la /usr/local/bin/hyperkit

returns following

-rwsr-xr-x  1 root     wheel  27785684 May 15 13:09 /usr/local/bin/docker-machine-driver-hyperkit
lrwxr-xr-x  1 sushank  staff        67 May 15 18:03 /usr/local/bin/hyperkit -> /Applications/Docker.app/Contents/Resources/bin/com.docker.hyperkit

@jasmas
Copy link

jasmas commented May 22, 2019

I have the same problem.

@jasmas
Copy link

jasmas commented May 22, 2019

I think this has something to do with DNS filtering or manipulation on your internet connection. I switched my system over to secure DNS resolution using cloudflared and this worked fine.

@tstromberg tstromberg added priority/backlog Higher priority than priority/awaiting-more-evidence. r/2019q2 Issue was last reviewed 2019q2 and removed triage/needs-information Indicates an issue needs more information in order to work on it. labels May 23, 2019
@sharifelgamal sharifelgamal added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Jul 18, 2019
@tstromberg tstromberg added kind/support Categorizes issue or PR as a support question. and removed help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. priority/backlog Higher priority than priority/awaiting-more-evidence. r/2019q2 Issue was last reviewed 2019q2 labels Sep 20, 2019
@tstromberg
Copy link
Contributor

This issue appears to be a duplicate of #3036, do you mind if we move the conversation there?

Ths way we can centralize the content relating to the issue. If you feel that this issue is not in fact a duplicate, please re-open it using /reopen. If you have additional information to share, please add it to the new issue.

Thank you for reporting this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dns DNS issues co/hyperkit Hyperkit related issues kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

4 participants