kubernetes / minikube

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

Failed to start #19909

Open TBlindaruk opened 1 week ago

TBlindaruk commented 1 week ago

What Happened?

Ubuntu under renchar desctopdesktop. Failed to start

tetiana@DESKTOP-CKUQ2UJ:~/Projects/Ucu-DWH-Cources/1.DevOps/homework/3/kuber$ minikube start πŸ˜„ minikube v1.34.0 on Ubuntu 22.04 (amd64) ✨ Using the docker driver based on existing profile πŸ‘ Starting "minikube" primary control-plane node in "minikube" cluster 🚜 Pulling base image v0.0.45 ... πŸ”„ Restarting existing docker container for "minikube" ... 🀦 StartHost failed, but will try again: driver start: start: docker start minikube: exit status 1

❌ Exiting due to GUEST_SSH_CERT_NOT_FOUND: Failed to start host: provision: Error getting config for native Go SSH: open /home/tetiana/.minikube/machines/minikube/id_rsa: no such file or directory πŸ’‘ Suggestion: minikube is missing files relating to your guest environment. This can be fixed by running 'minikube delete' 🍿 Related issue: https://github.com/kubernetes/minikube/issues/9130

tetiana@DESKTOP-CKUQ2UJ:~/Projects/Ucu-DWH-Cources/1.DevOps/homework/3/kuber$ tetiana@DESKTOP-CKUQ2UJ:~/Projects/Ucu-DWH-Cources/1.DevOps/homework/3/kuber$ tetiana@DESKTOP-CKUQ2UJ:~/Projects/Ucu-DWH-Cources/1.DevOps/homework/3/kuber$ kubectl get po E1103 23:27:53.511305 48396 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp 127.0.0.1:8080: connect: connection refused" E1103 23:27:53.512864 48396 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp 127.0.0.1:8080: connect: connection refused" E1103 23:27:53.514262 48396 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp 127.0.0.1:8080: connect: connection refused" E1103 23:27:53.515722 48396 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp 127.0.0.1:8080: connect: connection refused" E1103 23:27:53.517128 48396 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp 127.0.0.1:8080: connect: connection refused" The connection to the server localhost:8080 was refused - did you specify the right host or port? tetiana@DESKTOP-CKUQ2UJ:~/Projects/Ucu-DWH-Cources/1.DevOps/homework/3/kuber$ tetiana@DESKTOP-CKUQ2UJ:~/Projects/Ucu-DWH-Cources/1.DevOps/homework/3/kuber$ minikube start πŸ˜„ minikube v1.34.0 on Ubuntu 22.04 (amd64) ✨ Using the docker driver based on existing profile πŸ‘ Starting "minikube" primary control-plane node in "minikube" cluster 🚜 Pulling base image v0.0.45 ... πŸƒ Updating the running docker "minikube" container ... 🀦 StartHost failed, but will try again: provision: Error getting config for native Go SSH: open /home/tetiana/.minikube/machines/minikube/id_rsa: no such file or directory πŸƒ Updating the running docker "minikube" container ... 😿 Failed to start docker container. Running "minikube delete" may fix it: provision: Error getting config for native Go SSH: open /home/tetiana/.minikube/machines/minikube/id_rsa: no such file or directory

❌ Exiting due to GUEST_SSH_CERT_NOT_FOUND: Failed to start host: provision: Error getting config for native Go SSH: open /home/tetiana/.minikube/machines/minikube/id_rsa: no such file or directory πŸ’‘ Suggestion: minikube is missing files relating to your guest environment. This can be fixed by running 'minikube delete' 🍿 Related issue: https://github.com/kubernetes/minikube/issues/9130

tetiana@DESKTOP-CKUQ2UJ:~/Projects/Ucu-DWH-Cources/1.DevOps/homework/3/kuber$ minikube delete --all πŸ”₯ Deleting "minikube" in docker ... πŸ”₯ Removing /home/tetiana/.minikube/machines/minikube ... πŸ’€ Removed all traces of the "minikube" cluster. πŸ”₯ Successfully deleted all profiles tetiana@DESKTOP-CKUQ2UJ:~/Projects/Ucu-DWH-Cources/1.DevOps/homework/3/kuber$ minikube start πŸ˜„ minikube v1.34.0 on Ubuntu 22.04 (amd64) ✨ Automatically selected the docker driver πŸ“Œ Using Docker driver with root privileges πŸ‘ Starting "minikube" primary control-plane node in "minikube" cluster 🚜 Pulling base image v0.0.45 ... πŸ”₯ Creating docker container (CPUs=2, Memory=2200MB) ... βœ‹ Stopping node "minikube" ... πŸ›‘ Powering off "minikube" via SSH ... πŸ”₯ Deleting "minikube" in docker ... 🀦 StartHost failed, but will try again: creating host: create: creating: create kic node: create container: 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 --i p 192.168.49.2 --volume minikube:/var --security-opt apparmor=unconfined --memory=2200mb --cpus=2 -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.45@sha256:81df288595202a317b1a4dc2506ca2e4ed5f22373c19a441b88cfbf4b9867c85: exit status 125 stdout: 2aca2d62a308426ac4c2ae21901d98c777927ad49a20eb372ff09da1f992f4e5

stderr: docker: request returned Bad Gateway for API route and version http://%2Fvar%2Frun%2Fdocker.sock/v1.45/containers/2aca2d62a308426ac4c2ae21901d98c777927ad49a20eb372ff09da1f992f4e5/start, check if the server supports the requested API version.

πŸ”₯ Creating docker container (CPUs=2, Memory=2200MB) ... 😿 Failed to start docker container. Running "minikube delete" may fix it: creating host: create: creating: create kic node: create container: 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.58.2 --volume minikube:/var --security-opt apparmor=unconfined --memory=2200mb --cpus=2 -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.45@sha256:81df288595202a317b1a4dc2506ca2e4ed5f22373c19a441b88cfbf4b9867c85: exit status 125 stdout: bb96776e9842764200d7085304f4ffc7499f828ade7ca30cc4db4891e6a15fe9

stderr: docker: request returned Bad Gateway for API route and version http://%2Fvar%2Frun%2Fdocker.sock/v1.45/containers/bb96776e9842764200d7085304f4ffc7499f828ade7ca30cc4db4891e6a15fe9/start, check if the server supports the requested API version.

❌ Exiting due to GUEST_PROVISION: error provisioning guest: Failed to start host: creating host: create: creating: create kic node: create container: docker run -d -t --privileged --security-opt seccomp=unconfined --tmpfs /tmpp --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.s igs.k8s.io=minikube --network minikube --ip 192.168.58.2 --volume minikube:/var --security-opt apparmor=unconfined --memory=2200mb --cpus=2 -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.45@sha256:81df288595202a317b1a4dc2506ca2e4ed5f22373c19a441b88cfbf4b9867c85: exit status 125 stdout: bb96776e9842764200d7085304f4ffc7499f828ade7ca30cc4db4891e6a15fe9

stderr: docker: request returned Bad Gateway for API route and version http://%2Fvar%2Frun%2Fdocker.sock/v1.45/containers/bb96776e9842764200d7085304f4ffc7499f828ade7ca30cc4db4891e6a15fe9/start, check if the server supports the requested API version.

Attach the log file

logs.txt

Operating System

Ubuntu

Driver

Docker

AmarNathChary commented 1 week ago

You can try to remove all traces of the existing Minikube configuration and start fresh using minikube delete --all

AmarNathChary commented 1 week ago

After deletion try to start minikube. Also try to restart docker as well

AmarNathChary commented 1 week ago

Try these command minikube start --driver=docker

AmarNathChary commented 1 week ago

/kind support