Err: connection error: desc = “transport: Error while dialing dial unix /var/run/containerd/containerd.sock: connect: no such file or directory”
Quote from moshe on 14/08/2022, 2:19 pmProblem
Kubelet service is not running after centos reboot and the log contains the following error
failed to connect to {/var/run/containerd/containerd.sock /var/run/containerd/containerd.sock <nil> 0 <nil>}. Err: connection error: desc = “transport: Error while dialing dial unix /var/run/containerd/containerd.sock: connect: no such file or directory”. Reconnecting…
Solution
The problem is due to service containerd didnt restart properly. And needs to enable SystemdCgroup in the config file
containerd config default | tee /etc/containerd/config.toml sed -i ‘s/SystemdCgroup = false/SystemdCgroup = true/g’ /etc/containerd/config.toml service containerd restart service kubelet restart
Problem
Kubelet service is not running after centos reboot and the log contains the following error
failed to connect to {/var/run/containerd/containerd.sock /var/run/containerd/containerd.sock <nil> 0 <nil>}. Err: connection error: desc = “transport: Error while dialing dial unix /var/run/containerd/containerd.sock: connect: no such file or directory”. Reconnecting…
Solution
The problem is due to service containerd didnt restart properly. And needs to enable SystemdCgroup in the config file
Uploaded files:containerd config default | tee /etc/containerd/config.toml sed -i ‘s/SystemdCgroup = false/SystemdCgroup = true/g’ /etc/containerd/config.toml service containerd restart service kubelet restart