It seems that my problems were not related to Debian upgrade but to Home Assistant core upgrade and the database schema change. An index creation on statistics table was failing because of duplicates. It turned out that I had around 50million records for 2021-10-31. Wasn’t easy, but I managed to remove those records (losing 2021-10-31 statistics I suppose) and the database schema change seems now successful.
Likely there was a bug handling DST change that caused the problem I didn’t noticed until upgrading HA core. Likely the database schema changing was repsonsible of making at some point my system unresponsive.
grep: /etc/default/grub: No such file or directory
[info] Switching to cgroup v1
cp: cannot stat '/etc/default/grub': No such file or directory
dpkg: error processing package homeassistant-supervised (--install):
installed homeassistant-supervised package post-installation script subprocess returned error exit status 1
fcastilloec’s recommendation helped me!
But as stated before: Installing the HA supervisor on Raspberry Pi OS is not supported. Doing so has the following consequence:
[...]
1 not fully installed or removed. <--
And each invocation of apt install / remove/ ... leads to these few lines repeated over and over:
[info] Switching to cgroup v1
cp: cannot stat '/etc/default/grub': No such file or directory
dpkg: error processing package homeassistant-supervised (--configure):
installed homeassistant-supervised package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
homeassistant-supervised
E: Sub-process /usr/bin/dpkg returned an error code (1)
To solve this issue comment the lines concerning grub + cgroup in /var/lib/dpkg/info/homeassistant-supervised.postinst.
Then just run apt autoremove and the installation will successfully conclude and stop nagging.
I like your solution. But to be clear I’ve installed on a clean debian bullseye system, not on raspberry os. Looking for grub shouldn’t be something this package does on an arm system. There is no grub on any arm based system I’m aware of. Seems a few lines of code in the package could fix this. My kernel parameters are in /boot/extlinux/extlinux.conf, which I believe is standard on most debian arm installs. When the package see it’s an arm install, or grub file isn’t present, it could just post a message about the need to fix. Thanks for the response.
This site has scripts that builds for a few different boards. I’m using the N2+ builld.
https://github.com/pyavitz/debian-image-builder
You have to build the image on a debian bullseye system and it’ll cross compile anything special required for the specific image you’re building. The guy that runs the site is very responsive and its only a couple commands to get a full image. He has an image build for PI4, but I haven’t used it.
The images I’ve posted are 100% Debian with minimal items installed. Ideally I’d want a bullseye image from the raspberry pi people. I did tried the straight bullseye image for PI4 but it ended up crashing. It seemed to have some issues when I tried it. Anyway the guy that runs that site I mentioned seems pretty committed to getting clean images that work. As you’ve indicated you can’t really find a good image for odroid N2+. There is one available on the hardkernel forum but it had reboot issues. Since HA had a specific release with odroid it would be nice if the HA team has made their debian release available for people that need to do a little more than the basic HA stuff.
While I can understand you frustration you are clogging up a forum thread (Community Guide) for installing and running HA Supervised on the Rasspberry Pi and probably confusing people who don’t read thoughtfully.
I would open a new thread specially about installing HA Supervised on Odroid N2(+). That way you might get more focused support and things here are not getting mixed up.
You guys should read the thread. Someone posted an issue. I gave a solution. Someone gave an alternative solution. I said that was a good solution, but I also pointed out that the issue was arm specific, as arm boards don’t use grub. Then I was asked about the distro I used and pointed to it and pointed out it was N2+, and also indicate the guy that made the N2+ distro also makes distros for the PI. No question just information that could be useful for someone trying to install the latest release on an arm board, which includes all of the PIs. Along with an alternative distro build for PIs that could also be useful for people using PIs. Sorry I’ll make sure not to post a solution next time.
Anyway this is a public forum and you should keep on helping others. I’m sorry if I offended you. But that is not my intentions. Its just this is already a very long thread and the informations might lost in the tangle.