Closed
Description
It seems in a cgroup v2 host OS, graphD won't boot up due to it's calling sysfs of cgroup v1 by MemoryUtils.cpp
, in production most OS now are cgroup v1 now but we should consider cgroupv2 ASAP :).
Log file created at: 2021/11/05 08:45:43
Running on machine: graphd1
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
E1105 08:45:43.579129 1 GraphDaemon.cpp:158] Could not open the file: /sys/fs/cgroup/memory/memory.limit_in_bytes
Minimal reproduce:
in a ubuntu 21.10 VM with cgroupv2 to docker-compose up nebula
root@lima-default:/tmp/lima/nebula-docker-compose# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 21.10
Release: 21.10
Codename: impish
root@lima-default:/tmp/lima/nebula-docker-compose# file /sys/fs/cgroup/cgroup.controllers
/sys/fs/cgroup/cgroup.controllers: empty