-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Minikube commands fail with error Exiting due to DRV_CP_ENDPOINT: Unable to get forwarded endpoint: failed to lookup ip for ""
#17452
Comments
I tried to reproduce but have been unable to do so. I setup a VM with arch linux from The error is raised in @munir0b0t on your Archlinux laptop can you tell me what |
Looking at the code, there may be some valid values of DOCKER_HOST that the minikube/pkg/minikube/driver/endpoint.go Line 41 in bca8883
hostname := oci.DaemonHost(driverName)
ips, err := net.LookupIP(hostname)
if err != nil || len(ips) == 0 {
return hostname, nil, port, fmt.Errorf("failed to lookup ip for %q", hostname)
} in
https://github.com/kubernetes/minikube/blob/master/pkg/drivers/kic/oci/oci.go#L701 A simple reproducer using "tcp://:" (that docker has as valid) shows a failure where we get a host but an empty hostname from the parsed URL https://go.dev/play/p/l_rSOLHq0TW
|
Indeed with running
|
/kind bug |
/assign |
This handles DOCKER_HOST='tcp://:' Fixes kubernetes#17452
Seems like you've found the issue but there is no such variable defined in my environment. The start command for docker in my systemd unit file is |
Hmm @munir0b0t I'd still like to understand what it is about your config that is triggering the issue. Could you also :
|
|
I did some more digging into my problem and I noticed that when I run Now I guess the question is why is the node IP empty. Perhaps this can help with debugging the issue. |
@munir0b0t hmm - so the way the docker driver works is there is a minikube docker container that within it is also running containers. For the docker driver you can get what the node IP should be via docker inspect. Note that setting it to 127.0.0.1 won't work as that's not where the mapped port to the container through to the apiserver is (for comparison Can you do the below can you try starting minikube after a purge delete and see if the config json still has no ip set in the node
docker inspect \
-f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' minikube
192.168.49.2 If that doesn't return an IP address please attach the output of
For comparison on my system it matches here [
{
"Name": "",
"IP": "192.168.49.2",
"Port": 8443,
"KubernetesVersion": "v1.28.3",
"ContainerRuntime": "docker",
"ControlPlane": true,
"Worker": true
}
] |
The first command did return an IP, but it's not in
|
I think I figured out the issue. I have systemd network file for bridge devices that is overriding the configuration of the bridge device created by minikube.
The network bridge device created by minikube matches this and causes a conflict with the network confguration. After changing the pattern to Thanks for helping me debug this. I'd say that this is mostly a configuration issue and not a bug in minikube. But this should help anyone else who might run into a similar issue. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What Happened?
I am following the tutorial in https://kubernetes.io/docs/tutorials/hello-minikube/ on Archlinux laptop with docker. I did
minikube start
and the docker container has started up. But when I runminikube dashboard
, I get the errorDeleting and restarting did not work, even after I restarted my entire machine.
When I run
minikube logs --file=logs.txt
, I get the same error. I have attached all the log files below.Versions
I'm not entirely sure what the issue is here since the only other reference I found to the error is on Windows. I can verify that the
minikube
container is running and I am able to log in to the container withdocker exec -it minikube bash
while the container is running.Attach the log file
logs.txt
minikube_dashboard_e82743e0f55314733604a6150dcacabfbc842639_0.log
minikube_logs_273c584afb8f56625d862285474a6a21019a3238_0.log
Operating System
Other
Driver
Docker
The text was updated successfully, but these errors were encountered: