Replies: 1 comment 12 replies
-
The problem is not that the socket path is wrong. If it was the wrong path you wouldn't be able to connect to it to get that "unknown service" RPC error from the server. Note that many of the paths reported by rootless K3s will appear to not exist when you're poking at it from outside. These paths only exist within the k3s service's filesystem namespace. The problem is that containerd is running, but the CRI service is not enabled for some reason. Check containerd.log to see why. Usually it has something to do with a bad snapshotter causing the service setup to fail. Why are you having so much trouble with rootless K3s? Running it as a systemd user service, as described in the docs, should work fine. |
Beta Was this translation helpful? Give feedback.
-
I (finally) managed to get a rootless k3s to start, but it continuously prints the same two lines in the log and makes no progress:
It seems containerd's socket path is wrongly set, because earlier in the log, there is:
and there is nothing in
/run/k3s/containerd/
, instead the socket is/run/user/1000/k3s/containerd/containerd.sock
.Setting
kubelet-arg: - "container-runtime-endpoint=unix:///run/user/1000/k3s/containerd/containerd.sock"
in myconfig.yaml
doesn't fix the issue. k3s still uses a hardcoded path/run/k3s/containerd/containerd.sock
which doesn't exist.Any idea how to fix this?
Beta Was this translation helpful? Give feedback.
All reactions