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

Minikube fails to start due to SSH handshake issue #20582

Open
krstp opened this issue Mar 30, 2025 · 1 comment
Open

Minikube fails to start due to SSH handshake issue #20582

krstp opened this issue Mar 30, 2025 · 1 comment

Comments

@krstp
Copy link

krstp commented Mar 30, 2025

What Happened?

Well.. I did have minikube running just fine under ubuntu. There were some laptop hibernations, which might have affected stability of minikube (assumption I make). Needless to say I wanted to reinstantiate my minikube start without success.

I did try:

  • remove all docker instances/images to clean docker status
  • restart docker with systemctl
  • minikube delete --all --purge
  • remove all docker networks
  • restart minikube with more specific system conf like cpu and mem with increased verbosity and log dump to stderr, each of those tries fails
  • regenerated ssh-key for minikube
  • also verified there is nothing else using the docker port, which is fine.
    None of the above helped.

Here I found somewhat related post without clear resolution: #12939

I am out of option, not sure what to do at this point.

Attach the log file

I0330 18:26:42.865067 1191498 out.go:177] 🏃  Updating the running docker "minikube" container ...
🏃  Updating the running docker "minikube" container ...
I0330 18:26:42.866140 1191498 machine.go:93] provisionDockerMachine start ...
I0330 18:26:42.866429 1191498 cli_runner.go:164] Run: docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube
I0330 18:26:42.914275 1191498 main.go:141] libmachine: Using SSH client type: native
I0330 18:26:42.914972 1191498 main.go:141] libmachine: &{{{<nil> 0 [] [] []} docker [0x8641c0] 0x866ea0 <nil>  [] 0s} 127.0.0.1 32768 <nil> <nil>}
I0330 18:26:42.915021 1191498 main.go:141] libmachine: About to run SSH command:
hostname
I0330 18:26:42.916198 1191498 main.go:141] libmachine: Error dialing TCP: ssh: handshake failed: read tcp 127.0.0.1:51978->127.0.0.1:32768: read: connection reset by peer
I0330 18:26:45.918668 1191498 main.go:141] libmachine: Error dialing TCP: ssh: handshake failed: read tcp 127.0.0.1:51986->127.0.0.1:32768: read: connection reset by peer
I0330 18:26:48.921804 1191498 main.go:141] libmachine: Error dialing TCP: ssh: handshake failed: read tcp 127.0.0.1:51996->127.0.0.1:32768: read: connection reset by peer
I0330 18:26:51.924714 1191498 main.go:141] libmachine: Error dialing TCP: ssh: handshake failed: read tcp 127.0.0.1:34550->127.0.0.1:32768: read: connection reset by peer
I0330 18:26:54.926313 1191498 main.go:141] libmachine: Error dialing TCP: ssh: handshake failed: read tcp 127.0.0.1:34556->127.0.0.1:32768: read: connection reset by peer

Operating System

ubuntu 24.0.4.1

Driver

minikube v1.35.0
docker 28.0.4

@krstp
Copy link
Author

krstp commented Mar 30, 2025

OK. Bizarrely, after reinstalling minikube and docker with the same versions, now minikube started just fine.

Not closing the ticket though, I hope I might get some reasonable resolution or tip that would point me in the right direction for any future issues.

Thanks!

@medyagh medyagh added co/vfkit VFkit related issues and removed co/vfkit VFkit related issues labels Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants