kubernetes / minikube

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

unable to start minikube on ubuntu 18.04 on aws instance #14453

Closed ramvish52 closed 2 years ago

ramvish52 commented 2 years ago

What Happened?

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

stderr: Failed to enable unit: File cri-docker.socket: Invalid argument

Attach the log file

stderr: I0628 11:53:40.174661 9659 exec_runner.go:51] Run: sudo systemctl is-active --quiet service kubelet I0628 11:53:40.183622 9659 fix.go:103] recreateIfNeeded on minikube: state=Stopped err= W0628 11:53:40.183636 9659 fix.go:129] unexpected machine state, will restart: I0628 11:53:40.186439 9659 out.go:177] Restarting existing none bare metal machine for "minikube" ... I0628 11:53:40.190626 9659 profile.go:148] Saving config to /root/.minikube/profiles/minikube/config.json ... I0628 11:53:40.190759 9659 start.go:306] post-start starting for "minikube" (driver="none") I0628 11:53:40.190768 9659 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] I0628 11:53:40.190802 9659 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 I0628 11:53:40.196691 9659 main.go:134] libmachine: Couldn't set key PRIVACY_POLICY_URL, no corresponding struct field found I0628 11:53:40.196709 9659 main.go:134] libmachine: Couldn't set key VERSION_CODENAME, no corresponding struct field found I0628 11:53:40.196719 9659 main.go:134] libmachine: Couldn't set key UBUNTU_CODENAME, no corresponding struct field found I0628 11:53:40.199022 9659 out.go:177] OS release is Ubuntu 18.04.6 LTS I0628 11:53:40.200625 9659 filesync.go:126] Scanning /root/.minikube/addons for local assets ... I0628 11:53:40.200661 9659 filesync.go:126] Scanning /root/.minikube/files for local assets ... I0628 11:53:40.200679 9659 start.go:309] post-start completed in 9.910622ms I0628 11:53:40.200687 9659 fix.go:57] fixHost completed within 45.874189ms I0628 11:53:40.200693 9659 start.go:81] releasing machines lock for "minikube", held for 45.895294ms I0628 11:53:40.201060 9659 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" I0628 11:53:40.201087 9659 exec_runner.go:51] Run: curl -sS -m 2 https://k8s.gcr.io/ I0628 11:53:40.217419 9659 exec_runner.go:51] Run: sudo systemctl unmask docker.service I0628 11:53:40.369857 9659 exec_runner.go:51] Run: sudo systemctl enable docker.socket I0628 11:53:40.525802 9659 exec_runner.go:51] Run: sudo systemctl daemon-reload I0628 11:53:40.706160 9659 exec_runner.go:51] Run: sudo systemctl restart docker I0628 11:53:41.001722 9659 exec_runner.go:51] Run: sudo systemctl enable cri-docker.socket I0628 11:53:41.014538 9659 out.go:177] W0628 11:53:41.016405 9659 out.go:239] X Exiting due to RUNTIME_ENABLE: sudo systemctl enable cri-docker.socket: exit status 1 stdout:

stderr: Failed to enable unit: File cri-docker.socket: Invalid argument

Operating System

Ubuntu

Driver

No response

afbjorklund commented 2 years ago

Same as:

spowelljr commented 2 years ago

Going to close this issue to centralize these duplicated cri-docker issues in https://github.com/kubernetes/minikube/issues/14410. If you have any further questions or comments please leave them in https://github.com/kubernetes/minikube/issues/14410, thank you.