-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CGROUPS not found on Raspberry Pi #8890
Comments
Do you really have Also it looks like your node is set up to use cgroup v2; if fixing that kernel arg doesn't change anything, you might need to check the Pi OS docs on how to enable cgroups under this configuration. |
The '%' is an artifact of using cat to print out a file that doesn't have a carriage return at the end. If you edit the file there's no %. I have 6 other machines set up exactly the same way. This has always been the way you enable cgroups on Raspberry Pis. The error message says that cgroups aren't enabled, yet they clearly are. |
If they are properly enabled and running under the same controller then it would find them. They're either not enabled, or still managed by the v1 controller on a v2 system - which is known as a hybrid setup and doesn't work well. What is the output of sysadm@pi02:~$ uname -a
Linux pi02.lan.khaus 6.5.0-1006-raspi #8-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 23 12:57:46 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
sysadm@pi02:~$ grep cgroup /proc/mounts
cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot 0 0
sysadm@pi02:~$ cat /proc/cgroups
#subsys_name hierarchy num_cgroups enabled
cpuset 0 223 1
cpu 0 223 1
cpuacct 0 223 1
blkio 0 223 1
memory 0 223 1
devices 0 223 1
freezer 0 223 1
net_cls 0 223 1
perf_event 0 223 1
net_prio 0 223 1
hugetlb 0 223 1
pids 0 223 1
rdma 0 223 1
misc 0 223 1 |
Hmm, memory not enabled, apparently. |
Indeed. Is this perhaps no longer enabled in the default pios kernels? That would be unfortunate, but also out of our control as it is required by Kubernetes. |
Thanks for your help. Closing this as it appears to be Raspberry Pi OS issue. I'll add a comment later if I find a solution. |
Solved it, the It turns out that the contents of |
Thank you. Really appreciate the follow up. |
Hi @teq0 - Maybe I'm facing the same issue here:
Did you add the PS: Just for context I ended up here following/researching this cilium/cilium#20735 |
See my comment above. It wasn't anything to do K3s, it was that |
Yes I saw, but I don't think I get that straight. Specially the part with the SD card. |
Environmental Info:
K3s Version: v1.27.3+k3s1
Node(s) CPU architecture, OS, and Version:
Linux k8s-pi-w08 6.1.0-rpi6-rpi-2712 #1 SMP PREEMPT Debian 1:6.1.58-1+rpt2 (2023-10-27) aarch64 GNU/Linux
Raspberry Pi 5
Raspberry Pi OS Lite 64 bit, latest version (Bookworm)
Cluster Configuration:
Existing RPi cluster, 1 master 5 nodes
Describe the bug:
Installing a new agent on RPi 5, it fails with
Failed to find memory cgroup, you may need to add "cgroup_memory=1 cgroup_enable=memory" to your linux cmdline (/boot/cmdline.txt on a Raspberry Pi)
However cmdline already has the right settings, and cgroups2 exists (see output below).
Steps To Reproduce:
curl -sfL http://get.k3s.io | K3S_URL=https://<masterip>:6443 INSTALL_K3S_VERSION=v1.27.3+k3s1 K3S_TOKEN=<join-token> sh -
Expected behavior:
K3s agent added to cluster. Using exactly the same install process as the rest of the machines in the cluster, the only thing that's different is that it's a Raspberry Pi 5 and the lastest version of Raspberry Pi OS.
Actual behavior:
And from journalctl
level=fatal msg="failed to find memory cgroup (v2)"
The text was updated successfully, but these errors were encountered: