kubernetes / minikube

Run Kubernetes locally
https://minikube.sigs.k8s.io/
Apache License 2.0
29.48k stars 4.89k forks source link

libmachine: Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain #15234

Closed ingeb0rga closed 2 years ago

ingeb0rga commented 2 years ago

What Happened?

Can't start minikube cluster with docker driver.

Attach the log file

stderr: Error: No such network: minikube I1028 22:27:48.753506 98700 network_create.go:277] output of [docker network inspect minikube]: -- stdout -- []

-- /stdout -- stderr Error: No such network: minikube

/stderr I1028 22:27:48.753589 98700 cli_runner.go:164] Run: docker network inspect bridge --format "{"Name": "{{.Name}}","Driver": "{{.Driver}}","Subnet": "{{range .IPAM.Config}}{{.Subnet}}{{end}}","Gateway": "{{range .IPAM.Config}}{{.Gateway}}{{end}}","MTU": {{if (index .Options "com.docker.network.driver.mtu")}}{{(index .Options "com.docker.network.driver.mtu")}}{{else}}0{{end}}, "ContainerIPs": [{{range $k,$v := .Containers }}"{{$v.IPv4Address}}",{{end}}]}" I1028 22:27:48.776184 98700 network.go:295] reserving subnet 192.168.49.0 for 1m0s: &{mu:{state:0 sema:0} read:{v:{m:map[] amended:true}} dirty:map[192.168.49.0:0xc000015010] misses:0} I1028 22:27:48.776226 98700 network.go:241] using free private subnet 192.168.49.0/24: &{IP:192.168.49.0 Netmask:255.255.255.0 Prefix:24 CIDR:192.168.49.0/24 Gateway:192.168.49.1 ClientMin:192.168.49.2 ClientMax:192.168.49.254 Broadcast:192.168.49.255 Interface:{IfaceName: IfaceIPv4: IfaceMTU:0 IfaceMAC:}} I1028 22:27:48.776242 98700 network_create.go:115] attempt to create docker network minikube 192.168.49.0/24 with gateway 192.168.49.1 and MTU of 1500 ... I1028 22:27:48.776326 98700 cli_runner.go:164] Run: docker network create --driver=bridge --subnet=192.168.49.0/24 --gateway=192.168.49.1 -o --ip-masq -o --icc -o com.docker.network.driver.mtu=1500 --label=created_by.minikube.sigs.k8s.io=true --label=name.minikube.sigs.k8s.io=minikube minikube I1028 22:27:48.923563 98700 network_create.go:99] docker network minikube 192.168.49.0/24 created I1028 22:27:48.923591 98700 kic.go:106] calculated static IP "192.168.49.2" for the "minikube" container I1028 22:27:48.923808 98700 cli_runner.go:164] Run: docker ps -a --format {{.Names}} I1028 22:27:48.949835 98700 cli_runner.go:164] Run: docker volume create minikube --label name.minikube.sigs.k8s.io=minikube --label created_by.minikube.sigs.k8s.io=true I1028 22:27:48.970462 98700 oci.go:103] Successfully created a docker volume minikube I1028 22:27:48.970554 98700 cli_runner.go:164] Run: docker run --rm --name minikube-preload-sidecar --label created_by.minikube.sigs.k8s.io=true --label name.minikube.sigs.k8s.io=minikube --entrypoint /usr/bin/test -v minikube:/var gcr.io/k8s-minikube/kicbase:v0.0.35@sha256:e6f9b2700841634f3b94907f9cfa6785ca4409ef8e428a0322c1781e809d311b -d /var/lib I1028 22:27:49.491915 98700 oci.go:107] Successfully prepared a docker volume minikube I1028 22:27:49.491964 98700 preload.go:132] Checking if preload exists for k8s version v1.25.2 and runtime docker I1028 22:27:49.492008 98700 kic.go:179] Starting extracting preloaded images to volume ... I1028 22:27:49.492218 98700 cli_runner.go:164] Run: docker run --rm --entrypoint /usr/bin/tar -v /home/spirt/.minikube/cache/preloaded-tarball/preloaded-images-k8s-v18-v1.25.2-docker-overlay2-amd64.tar.lz4:/preloaded.tar:ro -v minikube:/extractDir gcr.io/k8s-minikube/kicbase:v0.0.35@sha256:e6f9b2700841634f3b94907f9cfa6785ca4409ef8e428a0322c1781e809d311b -I lz4 -xf /preloaded.tar -C /extractDir I1028 22:27:52.166569 98700 cli_runner.go:217] Completed: docker run --rm --entrypoint /usr/bin/tar -v /home/spirt/.minikube/cache/preloaded-tarball/preloaded-images-k8s-v18-v1.25.2-docker-overlay2-amd64.tar.lz4:/preloaded.tar:ro -v minikube:/extractDir gcr.io/k8s-minikube/kicbase:v0.0.35@sha256:e6f9b2700841634f3b94907f9cfa6785ca4409ef8e428a0322c1781e809d311b -I lz4 -xf /preloaded.tar -C /extractDir: (2.674304408s) I1028 22:27:52.166603 98700 kic.go:188] duration metric: took 2.674589 seconds to extract preloaded images to volume W1028 22:27:52.166797 98700 cgroups_linux.go:77] Your kernel does not support swap limit capabilities or the cgroup is not mounted. W1028 22:27:52.166839 98700 oci.go:240] Your kernel does not support CPU cfs period/quota or the cgroup is not mounted. I1028 22:27:52.166936 98700 cli_runner.go:164] Run: docker info --format "'{{json .SecurityOptions}}'" I1028 22:27:52.237895 98700 cli_runner.go:164] Run: docker run -d -t --privileged --security-opt seccomp=unconfined --tmpfs /tmp --tmpfs /run -v /lib/modules:/lib/modules:ro --hostname minikube --name minikube --label created_by.minikube.sigs.k8s.io=true --label name.minikube.sigs.k8s.io=minikube --label role.minikube.sigs.k8s.io= --label mode.minikube.sigs.k8s.io=minikube --network minikube --ip 192.168.49.2 --volume minikube:/var --security-opt apparmor=unconfined --memory=9800mb -e container=docker --expose 8443 --publish=127.0.0.1::8443 --publish=127.0.0.1::22 --publish=127.0.0.1::2376 --publish=127.0.0.1::5000 --publish=127.0.0.1::32443 gcr.io/k8s-minikube/kicbase:v0.0.35@sha256:e6f9b2700841634f3b94907f9cfa6785ca4409ef8e428a0322c1781e809d311b I1028 22:27:52.584552 98700 cli_runner.go:164] Run: docker container inspect minikube --format={{.State.Running}} I1028 22:27:52.603776 98700 cli_runner.go:164] Run: docker container inspect minikube --format={{.State.Status}} I1028 22:27:52.622054 98700 cli_runner.go:164] Run: docker exec minikube stat /var/lib/dpkg/alternatives/iptables I1028 22:27:52.669965 98700 oci.go:144] the created container "minikube" has a running status. I1028 22:27:52.669991 98700 kic.go:210] Creating ssh key for kic: /home/spirt/.minikube/machines/minikube/id_rsa... I1028 22:27:52.728523 98700 kic_runner.go:191] docker (temp): /home/spirt/.minikube/machines/minikube/id_rsa.pub --> /home/docker/.ssh/authorized_keys (381 bytes) I1028 22:27:52.781033 98700 cli_runner.go:164] Run: docker container inspect minikube --format={{.State.Status}} I1028 22:27:52.800687 98700 kic_runner.go:93] Run: chown docker:docker /home/docker/.ssh/authorized_keys I1028 22:27:52.800699 98700 kic_runner.go:114] Args: [docker exec --privileged minikube chown docker:docker /home/docker/.ssh/authorized_keys] I1028 22:27:52.852428 98700 cli_runner.go:164] Run: docker container inspect minikube --format={{.State.Status}} I1028 22:27:52.869506 98700 machine.go:88] provisioning docker machine ... I1028 22:27:52.869551 98700 ubuntu.go:169] provisioning hostname "minikube" I1028 22:27:52.869610 98700 cli_runner.go:164] Run: docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube I1028 22:27:52.886439 98700 main.go:134] libmachine: Using SSH client type: native I1028 22:27:52.886573 98700 main.go:134] libmachine: &{{{ 0 [] [] []} docker [0x7ecce0] 0x7efe60 [] 0s} 127.0.0.1 49187 } I1028 22:27:52.886582 98700 main.go:134] libmachine: About to run SSH command: sudo hostname minikube && echo "minikube" | sudo tee /etc/hostname I1028 22:27:52.887598 98700 main.go:134] libmachine: Error dialing TCP: ssh: handshake failed: read tcp 127.0.0.1:37088->127.0.0.1:49187: read: connection reset by peer I1028 22:27:55.918516 98700 main.go:134] libmachine: Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain I1028 22:27:58.949649 98700 main.go:134] libmachine: Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain I1028 22:28:01.979017 98700 main.go:134] libmachine: Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain I1028 22:28:05.009620 98700 main.go:134] libmachine: Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain I1028 22:28:08.040451 98700 main.go:134] libmachine: Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain I1028 22:28:11.071149 98700 main.go:134] libmachine: Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain I1028 22:28:14.101364 98700 main.go:134] libmachine: Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain I1028 22:28:17.130960 98700 main.go:134] libmachine: Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain I1028 22:28:20.161369 98700 main.go:134] libmachine: Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain I1028 22:28:23.189534 98700 main.go:134] libmachine: Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain I1028 22:28:26.220967 98700 main.go:134] libmachine: Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain I1028 22:28:29.251384 98700 main.go:134] libmachine: Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain I1028 22:28:32.280845 98700 main.go:134] libmachine: Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain I1028 22:28:35.312672 98700 main.go:134] libmachine: Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain I1028 22:28:38.341810 98700 main.go:134] libmachine: Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain I1028 22:28:41.371131 98700 main.go:134] libmachine: Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain I1028 22:28:44.401627 98700 main.go:134] libmachine: Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain I1028 22:28:47.431585 98700 main.go:134] libmachine: Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain I1028 22:28:50.460437 98700 main.go:134] libmachine: Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain I1028 22:28:53.489920 98700 main.go:134] libmachine: Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain I1028 22:28:56.519991 98700 main.go:134] libmachine: Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain I1028 22:28:59.550233 98700 main.go:134] libmachine: Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain I1028 22:29:02.580455 98700 main.go:134] libmachine: Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain I1028 22:29:05.610216 98700 main.go:134] libmachine: Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

Operating System

Redhat/Fedora

Driver

Docker

dzyanis commented 1 year ago

I've got the same with Amazon Linux 2. We are trying to run minikube on AWS Workspaces. @ingeb0rga how did you fix the issue?

ingeb0rga commented 1 year ago

Didn't fix this issue yet. Just switched to local kind cluster or minikube with virtualbox/qemu2 driver.

qile3897 commented 10 months ago

I've got the same with Debian 12