kubernetes / minikube

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

Exiting due to RUNTIME_ENABLE: sudo systemctl enable cri-docker.socket: exit status 1 #14537

Closed ganesshi closed 2 years ago

ganesshi commented 2 years ago

What Happened?

[root@k8s-machine ~]# minikube start --vm-driver=none 😄 minikube v1.26.0 on Centos 7.9.2009 ✨ Using the none driver based on existing profile 👍 Starting control plane node minikube in cluster minikube 🔄 Restarting existing none bare metal machine for "minikube" ... ℹī¸ OS release is CentOS Linux 7 (Core)

❌ Exiting due to RUNTIME_ENABLE: sudo systemctl enable cri-docker.socket: exit status 1 stdout:

stderr: Failed to execute operation: No such file or directory

╭───────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ đŸ˜ŋ If the above advice does not help, please let us know: │ │ 👉 https://github.com/kubernetes/minikube/issues/new/choose │ │ │ │ Please run minikube logs --file=logs.txt and attach logs.txt to the GitHub issue. │ │ │ ╰───────────────────────────────────────────────────────────────────────────────────────────╯

[root@k8s-machine ~]#

Attach the log file

[root@k8s-machine ~]# cat logs.txt *

stderr: I0709 09:56:15.457750 19991 exec_runner.go:51] Run: sudo systemctl is-active --quiet service kubelet I0709 09:56:15.480471 19991 fix.go:103] recreateIfNeeded on minikube: state=Stopped err= W0709 09:56:15.480487 19991 fix.go:129] unexpected machine state, will restart: I0709 09:56:15.484948 19991 out.go:177] 🔄 Restarting existing none bare metal machine for "minikube" ... I0709 09:56:15.500920 19991 profile.go:148] Saving config to /root/.minikube/profiles/minikube/config.json ... I0709 09:56:15.501114 19991 start.go:306] post-start starting for "minikube" (driver="none") I0709 09:56:15.501121 19991 start.go:316] creating required directories: [/etc/kubernetes/addons /etc/kubernetes/manifests /var/tmp/minikube /var/lib/minikube /var/lib/minikube/certs /var/lib/minikube/images /var/lib/minikube/binaries /tmp/gvisor /usr/share/ca-certificates /etc/ssl/certs] I0709 09:56:15.501165 19991 exec_runner.go:51] Run: sudo mkdir -p /etc/kubernetes/addons /etc/kubernetes/manifests /var/tmp/minikube /var/lib/minikube /var/lib/minikube/certs /var/lib/minikube/images /var/lib/minikube/binaries /tmp/gvisor /usr/share/ca-certificates /etc/ssl/certs I0709 09:56:15.516399 19991 main.go:134] libmachine: Couldn't set key CPE_NAME, no corresponding struct field found I0709 09:56:15.516421 19991 main.go:134] libmachine: Couldn't set key , no corresponding struct field found I0709 09:56:15.516431 19991 main.go:134] libmachine: Couldn't set key CENTOS_MANTISBT_PROJECT, no corresponding struct field found I0709 09:56:15.516440 19991 main.go:134] libmachine: Couldn't set key CENTOS_MANTISBT_PROJECT_VERSION, no corresponding struct field found I0709 09:56:15.516449 19991 main.go:134] libmachine: Couldn't set key REDHAT_SUPPORT_PRODUCT, no corresponding struct field found I0709 09:56:15.516457 19991 main.go:134] libmachine: Couldn't set key REDHAT_SUPPORT_PRODUCT_VERSION, no corresponding struct field found I0709 09:56:15.516465 19991 main.go:134] libmachine: Couldn't set key , no corresponding struct field found I0709 09:56:15.523391 19991 out.go:177] ℹī¸ OS release is CentOS Linux 7 (Core) I0709 09:56:15.534890 19991 filesync.go:126] Scanning /root/.minikube/addons for local assets ... I0709 09:56:15.534935 19991 filesync.go:126] Scanning /root/.minikube/files for local assets ... I0709 09:56:15.534950 19991 start.go:309] post-start completed in 33.827888ms I0709 09:56:15.534958 19991 fix.go:57] fixHost completed within 123.356578ms I0709 09:56:15.534962 19991 start.go:81] releasing machines lock for "minikube", held for 123.380315ms I0709 09:56:15.535532 19991 exec_runner.go:51] Run: /bin/bash -c "sudo mkdir -p /etc && printf %!s(MISSING) "runtime-endpoint: unix:///var/run/cri-dockerd.sock image-endpoint: unix:///var/run/cri-dockerd.sock " | sudo tee /etc/crictl.yaml" I0709 09:56:15.535552 19991 exec_runner.go:51] Run: curl -sS -m 2 https://k8s.gcr.io/ I0709 09:56:15.566583 19991 exec_runner.go:51] Run: sudo systemctl unmask docker.service I0709 09:56:15.651534 19991 exec_runner.go:51] Run: sudo systemctl enable docker.socket I0709 09:56:15.720639 19991 exec_runner.go:51] Run: sudo systemctl daemon-reload I0709 09:56:15.786833 19991 exec_runner.go:51] Run: sudo systemctl restart docker I0709 09:56:16.729051 19991 exec_runner.go:51] Run: sudo systemctl enable cri-docker.socket I0709 09:56:16.761023 19991 out.go:177] W0709 09:56:16.767933 19991 out.go:239] ❌ Exiting due to RUNTIME_ENABLE: sudo systemctl enable cri-docker.socket: exit status 1 stdout:

stderr: Failed to execute operation: No such file or directory

W0709 09:56:16.767965 19991 out.go:239] W0709 09:56:16.768860 19991 out.go:239] ╭───────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ đŸ˜ŋ If the above advice does not help, please let us know: │ │ 👉 https://github.com/kubernetes/minikube/issues/new/choose │ │ │ │ Please run minikube logs --file=logs.txt and attach logs.txt to the GitHub issue. │ │ │ ╰───────────────────────────────────────────────────────────────────────────────────────────╯ I0709 09:56:16.811092 19991 out.go:177]

* [root@k8s-machine ~]#

Operating System

Other

Driver

No response

klaases commented 2 years ago

Hi @ganesshi, have you tried installing cri-dockerd as shown below:

❌ Exiting due to RUNTIME_ENABLE: sudo systemctl enable cri-docker.socket: exit status 1

afbjorklund commented 2 years ago

Same issue as:

klaases commented 2 years ago

Hi @ganesshi, you're going to want to install cri-dockerd, please take a look at this comment:

https://github.com/kubernetes/minikube/issues/14410#issuecomment-1193323463

For more information.

Thank you for sharing your experience!

/triage needs-information /kind support