-
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 tunnel hangs on Ubuntu 20 in Windows 10 #12115
Comments
Hi @johnnybigert, thanks for reporting your issue with minikube! There's a large discussion about running minikube on WSL2 on this issue #7879. There are multiple comments discussing the tunnel command, I'd recommend reading through them and seeing if any of them are applicable to you and maybe solve your issue, thanks! |
@spowelljr Thanks for responding. I read #7879, nothing helpful there what I could see, just @ashishsecdev having the same issue as me. |
@johnnybigert Thanks for checking out that issue, I'll see if I have time to check it out today. If you could though, try running |
Nice @spowelljr, got some more info:
...and this is where it freezes. (Not sure why the newlines gets removed, sorry about the poor readability.) |
I'm having the very same problem. Here's my log if it helps, but it looks very similar to that of @johnnybigert
And at this point, the tunnel just sits there and no tunneling works and also no user input is requested. I also tried running the tunnel in an admin-console, but to no avail. |
Oh I think I found something. Running that last command directly in the bash gives the following error:
Looking at the command, it seems like there is a problem with I just digged a little deeper. It feels like this is the core of the problem: Sofar I couldn't get the command to run, even after fixing the quotes, it still errors out on an unexpted
|
Ok, some more digging, the correct command seems to be the following
The following changes where needed:
With that the actual port was reported back as expected The line that probably needs to be changed is this: minikube/pkg/drivers/kic/oci/network.go Line 179 in 4f005bd
What I'm not sure because I'm currently not having an old docker installation available is, if we can simply add the escaping of the quotes and it'll still work with older versions and also newer version or whether we have to check the docker version and have different implementations. |
@pfeigl you fixed the problem with your change? did you recompile the executable? |
No, tbh I just analyzed the problem and tested the fixed command line command on the bash directly. I never changed / compiled the minikube code. |
Also facing the same issue |
Any updates on that? I am also facing the same issue :/ |
Thanks for finding the cause @pfeigl, I'll take a look at implementing your change and seeing if it's backwards with older versions of Docker as you mentioned. |
So I was looking into this a bit, the
If you do the following:
That's what I got on Ubuntu 20.04 WSL. If you don't have a service running and run
Which is the exact same thing reported, but the tunnel should be operational. minikube should do a better job notifying that the tunnel is running. Can anyone try the steps above and let me know if their tunnel is in fact working or if there's an actual error on their end, thanks! |
I find myself in a similar situation to this issue, Pengwin 21.10.1 on WSL2. When I try your steps above for If I run
With
And I can then |
Comparing the setup that led me to this bug to the apparently-working |
I can confirm that if I use However, other folks on my team who are using Linux rather than WSL observed |
Hi @rfk,
Yes you should be getting something like:
Based on the discussion on this issue I created a PR (#12976) that will be included with the next release of minikube. Before (tunnel without service):
After:
It's possible, it will require further investigation to confirm. |
I got the same issue when running
When tunnels invoke Extra information:
|
Hi @lord22shark, can you please download this development version of minikube and let me know what the output of the tunnel command is, thanks! https://storage.googleapis.com/minikube-builds/master/minikube-darwin-amd64 |
Hey @spowelljr
|
Until the fix is shipped, you can also use |
I am facing this issue on windows 11. |
looks like because of this ingress is also not working. It is also hanging. |
Yeah I'm also hanging. I am also on win10. Got It claims it exists but I am constantly getting a timeout. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs 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 and PRs. This bot triages issues and PRs 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. |
Steps to reproduce the issue:
minikube start
kubectl apply -f manifests/storage-deployment.yaml
kubectl apply -f manifests/storage-service.yaml
minikube tunnel
Full output of
minikube logs
command:out.txt
Full output of failed command:
Observed behavior: The
minikube tunnel
command provides no output and appears to be frozen. (However, usinghtop
I can see that the tunnel command is using cpu and memory. Also, if I dominikube stop
in another terminal, the tunnel command starts outputting error messages.)Expected behavior: Output of service IP addresses etc. like the output in this example.
Note that the Ubuntu 20.04 is running in Windows 10 (WSL2).
The text was updated successfully, but these errors were encountered: