Forum Navigation
You need to log in to create posts and topics.

Err: connection error: desc = “transport: Error while dialing dial unix /var/run/containerd/containerd.sock: connect: no such file or directory”

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

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
Uploaded files:
If you have found my website, guides, articles or videos useful, please buy me a coffee