Scroll up in this thread. The CGroup issue has been discussed more than once and is easy to fix.
Also note about HA’s information on CGroup Version.
Scroll up in this thread. The CGroup issue has been discussed more than once and is easy to fix.
Also note about HA’s information on CGroup Version.
Hi,
I installed Homeassistant supervised on Debain 12 running on Raspberrypi 4 8gb.
I followed each step very carefully.
Initially the system was showing “supported” but after two or three restarts now it’s showing “unsupported”.
Will the above command fix the “Unsupported” issue on Debian 12?
Why not just give it a try?
I am new to Linux… so always a little scared while trying commands at terminal …
Just entered the command now… It’s showing supported now.
Thanks
Is there a way to stop the cgroup version reverting to systemd/cgroup ver 2 all the time?
This is possibly some quirk with my setup.
Whenever I update docker or linux security updates (eg. linux-image-6.1.0-12-arm64 or linux-image-arm64).
My cgroup reverts to systemd and ver 2 from cgroupfs an ver 1.
It also seems
systemd.unified_cgroup_hierarchy=0
is being removed from
/boot/firmware/cmdline.txt
Is this just me or does it happen to everyone?
Is there a solution to avoid having to re add this line after most linux updates?
I just stopped playing those games (trying to fix the cgroup version problem manually as quite a while ago that didn’t fix my issue) and just run the below commands one at a time - will only take you a few minutes - (you won’t lose anything):
sudo -i
apt update && sudo apt upgrade -y && sudo apt autoremove -y
apt --fix-broken install
cd /usr/local/src
Check the above thread - or this URL to see if the OS-Agent I use below is the latest one first - (currently 1.6.0) -
At this point I check on the contents of the directory and clean the old .deb files out if I am getting newer ones, then (make sure you are still in there a “sudo -i” first):
wget https://github.com/home-assistant/os-agent/releases/download/1.6.0/os-agent_1.6.0_linux_aarch64.deb
dpkg -i os-agent_1.6.0_linux_aarch64.deb
wget https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb
dpkg -i homeassistant-supervised.deb
Best to reboot at this point -
This happens from time to time, sometimes after you update the underlying OS… with a variation of:
sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y
So, the above steps allow you to ensure you have the latest and greatest and yet, not have to worry about cgroup version issues (and you do not lose your configuration either) - but always back everything up!
Overly complicated work around to be fair.
I usually just Nano systemd.unified_cgroup_hierarchy=0 back into the cmdline file. Then reboot.
Just seems like that should be unnecessary though.
Agreed, to each his own - actually, that reminds me - I’ve made alot of changes time to do a full backup of the whole disk image
…and additionally not without certain risks.
To make this even more simple just type the following command through CLI:
sudo sed -i.bak 's/$/ systemd.unified_cgroup_hierarchy=0/' /boot/firmware/cmdline.txt
and reboot.
The above command will take care of writing a backup of the original file (/boot/firmware/cmdline.txt.bak
) to be prepared just in case something goes wrong.
Sure that workaround also works.
The work around doesn’t address my question though.
Is there a way to stop a work around being required…
sounds like no at this point.
Seemingly No at this point. This did never happen with Debian 11 (at least here). I am still investigating the latter on a dev RPI4 with HA Supervised on Debian 12.
It occurred in deb 11 also for me. I was hoping deb 12 would cease the behaviour.
Was also hoping deb 12 might have made the systemd ver2 to cgroupfs ver1 change unnecessary.
Oh well. It’s only a minor inconvenience in the scheme of things.
If in future v1.6.x is released, do we have to manually update it or homeassistant update will automatically update to latest OS-Agent?
Yes, you have to take care by yourself to keep OS Agent updated.
Ok thanks…
I just have 2 sensors, so I can spot an update immediately
This os really nice, how have you implemented this ? Kindly share
Left one is a Github integration
Right one is a Supervisor host sensor
The images are just standard badges
Thank you