Forum archive › Kubernetes & Helm Charts
ArchiveErr: 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
Attachment: commands.txt
We do this for a living.
Kubernetes, DevOps and platform engineering, delivered in days — not another weekend lost to a stack trace.
Start a project →