#Dagger engine fails to start due to read-only /sys/fs/cgroup/init

1 messages ยท Page 1 of 1 (latest)

severe sorrel
#

When I try to run Dagger on a particular host, it fails as such:

mkdir: can't create directory '/sys/fs/cgroup/init': Read-only file system

One other question in here mentions a problem with cgroup permission. It's specific to Rancher, but I thought I'd try the suggested solution anyways (add rc_cgroup_mode="unified" to /etc/rc.conf) - no dice (yes, I rebooted).

Other containers run fine.

mystic bramble
#

๐Ÿ‘‹ can you provide more info about the host?

severe sorrel
#

Alma Linux. Kernel is 5.14.0-362.8.1.el9_3.x86_64

Running with --privileged gets past the error. I had forgotten that was necessary.

lost brook
#

I had the same error. I've already checked that I set the --privileged flag, when I start the container. The /sys folder is owned by user nobody

mystic bramble
undone marsh
#

@lost brook what kernel version are you on? is cgroupsv2 enabled? grep cgroup /proc/filesystems

mystic bramble