Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cgroup missing /sys/fs/cgroup/unified/openrc.cronie': No suc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
brockp
n00b
n00b


Joined: 22 Dec 2024
Posts: 2

PostPosted: Sun Dec 22, 2024 2:19 am    Post subject: cgroup missing /sys/fs/cgroup/unified/openrc.cronie': No suc Reply with quote

I updated my gentoo server, which I use docker, after this update though cgroups appear borked and I don't know why.

Specifically during boot almost all services show, though they still start, but ofcourse contained and docker are very unhappy. So while postfix still works, docker is broken.

Code:
mkdir: cannot create directory '/sys/fs/cgroup/unified/openrc.postfix': No such file or directory



Now /sys/fs/cgroup/ exists, it's just empty, I do have hybrid set in rc.conf
What's interesting is /proc/mounts shows they are mounted, they just are not there,

Code:

ip-10-0-0-5 ~ # ls /sys/fs/cgroup/
ip-10-0-0-5 ~ # cat /proc/mounts | grep cgroup
cgroup_root /sys/fs/cgroup tmpfs rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755,inode64 0 0
openrc /sys/fs/cgroup/openrc cgroup rw,nosuid,nodev,noexec,relatime,release_agent=/lib/rc/sh/cgroup-release-agent.sh,name=openrc 0 0
none /sys/fs/cgroup/unified cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate 0 0
cpuset /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
cpu /sys/fs/cgroup/cpu cgroup rw,nosuid,nodev,noexec,relatime,cpu 0 0
cpuacct /sys/fs/cgroup/cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpuacct 0 0
blkio /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
memory /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0
devices /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0
freezer /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
net_cls /sys/fs/cgroup/net_cls cgroup rw,nosuid,nodev,noexec,relatime,net_cls 0 0
perf_event /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0
net_prio /sys/fs/cgroup/net_prio cgroup rw,nosuid,nodev,noexec,relatime,net_prio 0 0
hugetlb /sys/fs/cgroup/hugetlb cgroup rw,nosuid,nodev,noexec,relatime,hugetlb 0 0
pids /sys/fs/cgroup/pids cgroup rw,nosuid,nodev,noexec,relatime,pids 0 0
rdma /sys/fs/cgroup/rdma cgroup rw,nosuid,nodev,noexec,relatime,rdma 0 0
misc /sys/fs/cgroup/misc cgroup rw,nosuid,nodev,noexec,relatime,misc 0 0


It's very odd, I have been using docker on this system for about 2 years now without issue before now.

I'm not finding much online to help sort this out.
Back to top
View user's profile Send private message
brockp
n00b
n00b


Joined: 22 Dec 2024
Posts: 2

PostPosted: Sun Dec 22, 2024 8:53 pm    Post subject: Reply with quote

Some updates, I'm able to manually get things running.

I switched to

Code:
rc_cgroup_mode="unified"


Same behavior just without the 'unified' path in all the rcstartups.

If I then restart cgroup init twice:

Code:

rc-service cgroups restart
rc-service cgroups restart

# kill random contained processes because can't stop with rc but it's there but not healthy
kill <contained pid>

rc-service docker restart


Then everything will work, but this is obviously a headscratcher, something is tromping on the init setup of groups causing them to be empty. At the end of this everything is populated as one would expect with cgroup2 (losing cgroup1 is no loss that was from when docker ecosystem was behind and didn't support v2 yet but now does)

So I can get it to work but want to figure out why I have to do this and make it so systems can boot cleanly without issue.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum