kubernetes / minikube

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

miniqube stooped #14396

Closed satya8574 closed 2 years ago

satya8574 commented 2 years ago

What Happened?

root@ip-172-31-8-53:/home/ubuntu# minikube status minikube type: Control Plane host: Stopped kubelet: Stopped apiserver: Stopped kubeconfig: Stopped

Attach the log file

root@ip-172-31-8-53:/home/ubuntu# minikube status minikube type: Control Plane host: Stopped kubelet: Stopped apiserver: Stopped kubeconfig: Stopped

Operating System

No response

Driver

No response

spowelljr commented 2 years ago

Thank you for sharing your experience!

Could you please run minikube logs --file=logs.txt and drag and drop the file into this issue.

This will help us isolate the problem further, thank you!

satya8574 commented 2 years ago

Thanks & Regard

SATYA PRAKASH 8574121213

On Thu, Jun 23, 2022 at 11:16 PM Steven Powell @.***> wrote:

Thank you for sharing your experience!

Could you please run minikube logs --file=logs.txt and drag and drop the file into this issue.

This will help us isolate the problem further, thank you!

— Reply to this email directly, view it on GitHub https://github.com/kubernetes/minikube/issues/14396#issuecomment-1164697761, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXCTFOYNX5A3PYQGPGROIJTVQSPGPANCNFSM5ZTGAHFA . You are receiving this because you authored the thread.Message ID: @.***>

stderr: Failed to enable unit: Unit file cri-docker.socket does not exist.

W0627 07:27:27.768083 4349 out.go:239] W0627 07:27:27.769041 4349 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. │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────╯ I0627 07:27:27.772365 4349 out.go:177]

spowelljr commented 2 years ago

Hi @satya8574, thanks for providing your logs.

Kubernetes v1.24 dropped support for Dockershim, so if you want to use the combination of the none driver, Kubernetes v1.24+, and the Docker container runtime you'll need to install cri-dockerd on your system, as listed in our requirements page.

Other options include using a different driver, using an older version of Kubernetes --kubernetes-version, or using a different container runtime --container-runtime.

Please try one of those solution and let me know if it resolves your issue, thanks

satya8574 commented 2 years ago

No !

Please Provide me required command in file for ubuntu 18.04 Like- PFA

Thanks & Regard

SATYA PRAKASH 8574121213

On Mon, Jun 27, 2022 at 10:48 PM Steven Powell @.***> wrote:

Hi @satya8574 https://github.com/satya8574, thanks for providing your logs.

Kubernetes v1.24 dropped support for Dockershim, so if you want to use the combination of the none driver, Kubernetes v1.24+, and the Docker container runtime you'll need to install cri-dockerd on your system, as listed in our requirements page https://minikube.sigs.k8s.io/docs/drivers/none/#requirements.

Other options include using a different driver https://minikube.sigs.k8s.io/docs/drivers/, using an older version of Kubernetes --kubernetes-version, or using a different container runtime --container-runtime.

Please try one of those solution and let me know if it resolves your issue, thanks

— Reply to this email directly, view it on GitHub https://github.com/kubernetes/minikube/issues/14396#issuecomment-1167634997, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXCTFO2NNSTA46KBLVXOOTLVRHO7XANCNFSM5ZTGAHFA . You are receiving this because you were mentioned.Message ID: @.***>

sudo apt update && apt -y install docker.io

install Kubectl now with the given link

curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && chmod +x ./kubectl && sudo mv ./kubectl /usr/local/bin/kubectl

install Minikube with the given link

curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/

apt install conntrack

minikube start --vm-driver=none minikube status kubectl version kubectl get nodes

spowelljr commented 2 years ago

The link to the cri-dockerd install instructions are linked on the page I previously linked to you, here is the direct link to the documentation.

https://github.com/Mirantis/cri-dockerd#build-and-install

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.

satya8574 commented 2 years ago

Not Get Resolve still Same issue

Thanks & Regard

SATYA PRAKASH 8574121213

On Fri, Jul 1, 2022 at 4:14 AM Steven Powell @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/kubernetes/minikube/issues/14396#issuecomment-1171745742, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXCTFO3JVPZYYMM5EZVGUTLVRYPOVANCNFSM5ZTGAHFA . You are receiving this because you were mentioned.Message ID: @.***>

spowelljr commented 2 years ago

Did you install cri-docker?

satya8574 commented 2 years ago

Yes, I did.

Thanks & Regard

SATYA PRAKASH 8574121213

On Fri, Jul 1, 2022 at 9:38 PM Steven Powell @.***> wrote:

Did you install cri-docker?

— Reply to this email directly, view it on GitHub https://github.com/kubernetes/minikube/issues/14396#issuecomment-1172496482, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXCTFO2SBS52X65YWIH4T6LVR4JXFANCNFSM5ZTGAHFA . You are receiving this because you were mentioned.Message ID: @.***>

satya8574 commented 2 years ago

Dear steven , Can You please share me all the command to me on NotePad

Thanks & Regard

SATYA PRAKASH 8574121213

On Fri, Jul 1, 2022 at 10:08 PM Satya Sahani @.***> wrote:

Yes, I did.

Thanks & Regard

SATYA PRAKASH 8574121213

On Fri, Jul 1, 2022 at 9:38 PM Steven Powell @.***> wrote:

Did you install cri-docker?

— Reply to this email directly, view it on GitHub https://github.com/kubernetes/minikube/issues/14396#issuecomment-1172496482, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXCTFO2SBS52X65YWIH4T6LVR4JXFANCNFSM5ZTGAHFA . You are receiving this because you were mentioned.Message ID: @.***>

spowelljr commented 2 years ago
ls /usr/local/bin/cri-dockerd
ls /etc/systemd/system/cri-docker.service
ls /etc/systemd/systemcri-docker.socket
minikube delete
sudo -E minikube start --driver=none
satya8574 commented 2 years ago

Thanks, I'll check it out. Not Resoloved

Thanks & Regard

SATYA PRAKASH 8574121213

On Fri, Jul 1, 2022 at 11:28 PM Steven Powell @.***> wrote:

ls /usr/local/bin/cri-dockerd ls /etc/systemd/system/cri-docker.service ls /etc/systemd/systemcri-docker.socket minikube delete sudo -E minikube start --driver=none

— Reply to this email directly, view it on GitHub https://github.com/kubernetes/minikube/issues/14396#issuecomment-1172585583, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXCTFO36LS54ET3OEFDL5IDVR4WUXANCNFSM5ZTGAHFA . You are receiving this because you were mentioned.Message ID: @.***>

stderr: I0702 15:55:18.855200 2212 exec_runner.go:51] Run: sudo systemctl is-active --quiet service kubelet I0702 15:55:18.864664 2212 fix.go:103] recreateIfNeeded on minikube: state=Stopped err= W0702 15:55:18.864678 2212 fix.go:129] unexpected machine state, will restart: I0702 15:55:18.867511 2212 out.go:177] Restarting existing none bare metal machine for "minikube" ... I0702 15:55:18.870370 2212 profile.go:148] Saving config to /root/.minikube/profiles/minikube/config.json ... I0702 15:55:18.870516 2212 start.go:306] post-start starting for "minikube" (driver="none") I0702 15:55:18.870525 2212 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] I0702 15:55:18.870564 2212 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 I0702 15:55:18.877204 2212 main.go:134] libmachine: Couldn't set key PRIVACY_POLICY_URL, no corresponding struct field found I0702 15:55:18.877225 2212 main.go:134] libmachine: Couldn't set key VERSION_CODENAME, no corresponding struct field found I0702 15:55:18.877236 2212 main.go:134] libmachine: Couldn't set key UBUNTU_CODENAME, no corresponding struct field found I0702 15:55:18.879390 2212 out.go:177] OS release is Ubuntu 18.04.6 LTS I0702 15:55:18.881018 2212 filesync.go:126] Scanning /root/.minikube/addons for local assets ... I0702 15:55:18.881083 2212 filesync.go:126] Scanning /root/.minikube/files for local assets ... I0702 15:55:18.881105 2212 start.go:309] post-start completed in 10.578438ms I0702 15:55:18.881114 2212 fix.go:57] fixHost completed within 35.672506ms I0702 15:55:18.881120 2212 start.go:81] releasing machines lock for "minikube", held for 35.690568ms I0702 15:55:18.881574 2212 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" I0702 15:55:18.881587 2212 exec_runner.go:51] Run: curl -sS -m 2 https://k8s.gcr.io/ I0702 15:55:18.899436 2212 exec_runner.go:51] Run: sudo systemctl unmask docker.service I0702 15:55:19.071391 2212 exec_runner.go:51] Run: sudo systemctl enable docker.socket I0702 15:55:19.230111 2212 exec_runner.go:51] Run: sudo systemctl daemon-reload I0702 15:55:19.408899 2212 exec_runner.go:51] Run: sudo systemctl restart docker I0702 15:55:19.691128 2212 exec_runner.go:51] Run: sudo systemctl enable cri-docker.socket I0702 15:55:19.704602 2212 out.go:177] W0702 15:55:19.706874 2212 out.go:239] X Exiting due to RUNTIME_ENABLE: sudo systemctl enable cri-docker.socket: exit status 1 stdout:

stderr: Failed to enable unit: Unit file cri-docker.socket does not exist.

W0702 15:55:19.706897 2212 out.go:239] W0702 15:55:19.707919 2212 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. │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────╯ I0702 15:55:19.709703 2212 out.go:177]

spowelljr commented 2 years ago

If you run sudo systemctl status cri-docker.service what do you get?