[ERROR CRI]: container runtime is not running: / msg="unable to determine runtime API version"

Quote from moshe on 12/07/2022, 7:08 pmProblem
User gets the following error when trying to start / restart kubernetes
[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR CRI]: container runtime is not running: output: time=”2022-07-12T14:04:08+03:00″ level=fatal msg=”unable to determine runtime API version: rpc error: code = Unavailable desc = connection error: desc = \”transport: Error while dialing dial unix /var/run/containerd/containerd.sock: connect: no such file or directory\””
, error: exit status 1
Solution
Run the following commands to fix the issu
rm /etc/containerd/config.toml
systemctl restart containerdInitialize Kubernetes
kubeadm init
Problem
User gets the following error when trying to start / restart kubernetes
[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR CRI]: container runtime is not running: output: time=”2022-07-12T14:04:08+03:00″ level=fatal msg=”unable to determine runtime API version: rpc error: code = Unavailable desc = connection error: desc = \”transport: Error while dialing dial unix /var/run/containerd/containerd.sock: connect: no such file or directory\””
, error: exit status 1
Solution
Run the following commands to fix the issu
rm /etc/containerd/config.toml
systemctl restart containerd
Initialize Kubernetes
kubeadm init

Quote from moshe on 12/07/2022, 9:35 pmIf this solution doesnt helps change the docker version from docker to docker-ce
rpm -e docker-common-1.13.1-209.git7d71120.el7.centos.x86_64 docker-1.13.1-209.git7d71120.el7.centos.x86_64 docker-client-1.13.1-209.git7d71120.el7.centos.x86_64
sudo yum-config-manager –add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-cesystemctl start docker
If this solution doesnt helps change the docker version from docker to docker-ce
rpm -e docker-common-1.13.1-209.git7d71120.el7.centos.x86_64 docker-1.13.1-209.git7d71120.el7.centos.x86_64 docker-client-1.13.1-209.git7d71120.el7.centos.x86_64
sudo yum-config-manager –add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-cesystemctl start docker