merbridge icon indicating copy to clipboard operation
merbridge copied to clipboard

Issue running on amazon eks

Open zakariais opened this issue 2 years ago • 7 comments

2023-02-28T13:10:43.064809Z warn OS CA Cert could not be found for agent [ -f bpf/mb_connect.c ] && make -C bpf load || make -C bpf load-from-obj make[1]: Entering directory '/app/bpf' Makefile:69: *** It looks like your system does not have cgroupv2 enabled, or the automatic recognition fails. Please enable cgroupv2, or specify the path of cgroupv2 manually via CGROUP2_PATH parameter.. Stop. make[1]: Leaving directory '/app/bpf' make[1]: Entering directory '/app/bpf' Makefile:69: *** It looks like your system does not have cgroupv2 enabled, or the automatic recognition fails. Please enable cgroupv2, or specify the path of cgroupv2 manually via CGROUP2_PATH parameter.. Stop. make[1]: Leaving directory '/app/bpf' make: *** [Makefile:3: load] Error 2 Error: failed to load ebpf programs: unexpected exit code: 2, err: exit status 2

zakariais avatar Feb 28 '23 13:02 zakariais

The default cgroup on my machines is cgroup1 but there is also cgroup2 installed How can i point it to use that cgroup? The machines are amazon linux

zakariais avatar Feb 28 '23 13:02 zakariais

What is your os and kernel version, you may need to change the kernel boot parameters to enable cgroup2.

kebe7jun avatar Mar 01 '23 01:03 kebe7jun

Amazon Linux 2 and 5.10 What are the steps to enable it? Any doc link?

zakariais avatar Mar 01 '23 09:03 zakariais

maybe this https://stackoverflow.com/questions/68127462/how-to-enable-cgroups-v2-on-amazon-linux-2 ?

kebe7jun avatar Mar 01 '23 09:03 kebe7jun

This will require rebooting all of our machines, doesn't look good for current prod instances Is there any way to get it into existing without rebooting or changing anything except some configs?

zakariais avatar Mar 01 '23 09:03 zakariais

Also we use eks optimized ami, they currently using cgroup1

zakariais avatar Mar 01 '23 09:03 zakariais

So far it's not working, maybe I can go find a solution...

kebe7jun avatar Mar 10 '23 01:03 kebe7jun