Installing Home Assistant Supervised on a Raspberry Pi using Debian 12

Are you using Debian, or Raspberry Pi OS?

I want to use Debian:
2021.08.23 11 (Bullseye) 4 4 (4GB) xz-compressed image

After the flash operation I mount the CM4‘s EMMC again and only see two partitions:
RASPIFIRM, where some dbt files and also a config.txt are located. No firmware folder

RASPIROOT, where the filesystem is located and also a /boot/firmware folder, no config.txt in it.
I created the config.txt with the content but this also did not work

It seems that I have the same issue as @michaelcowell and @proctavius. Home Assitant is not loading. I rebooted it, but didnt help. (I followed the instructions precisely.)

This is what I can see in the kernel log:

systemd[1]: hassio-supervisor.service: Main process exited, code=exited, status=125/n/a
systemd[1]: hassio-supervisor.service: Failed with result 'exit-code'.
systemd[1]: hassio-supervisor.service: Consumed 2.529s CPU time.
systemd[1]: hassio-supervisor.service: Scheduled restart job, restart counter is at 1733.
systemd[1]: Stopped Hass.io supervisor.
systemd[1]: hassio-supervisor.service: Consumed 2.529s CPU time.
systemd[1]: Starting Hass.io supervisor...
systemd[139170]: hassio-supervisor.service: Failed to connect stdout to the journal socket, ignoring: Conn                                                         ection refused
systemd[1]: Started Hass.io supervisor.
systemd[139177]: hassio-supervisor.service: Failed to connect stdout to the journal socket, ignoring: Conn                                                         ection refused

I’m using an RPi3B with Debian 2022.01.21:
image

I selected raspberrypi3 64 bit at section 3.2. It seems the older builds are not available anymore.

Do you have any suggestions?

2 Likes

Hi,
i am having the same problem as @davidov with debian version 11, 2022.01.21 for raspberry pi 4 8gb.

Hi,
Same here with debian version 11, 2022.01.21 for raspberry pi 4 4gb

Got it working with

apt-get update
apt-get upgrade -y
apt-get install sudo
adduser username
usermod -aG sudo username

# From a SSH Console with username
sudo apt-get install jq wget curl avahi-daemon apparmor-utils udisks2 libglib2.0-bin network-manager dbus -y
sudo reboot
sudo curl -fsSL get.docker.com | sh
wget https://github.com/home-assistant/os-agent/releases/download/1.2.2/os-agent_1.2.2_linux_aarch64.deb
sudo dpkg -i os-agent_1.2.2_linux_aarch64.deb
wget https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb
sudo dpkg -i homeassistant-supervised.deb
2 Likes

So you followed the instructions, good stuff :+1:

1 Like

I restarted the guide from scratch and made it work with the same Debian version. I wish I knew what the difference was.
So far everything runs great. :crossed_fingers:
Thank you for putting these instructions together!

1 Like

Has anyone else noticed how slowwwww things are in Debian 11 with Docker and HA installed ? When I launch terminal in a VNC session it takes forever to respond. Also, in the Web browser HA takes forever to do anything…

Not really.

Although there is not much of a difference between Debian 10 and Debian 11 when it comes to snappiness.

First thing I would check is the actual load on your RPI:
sudo top b n 1

I.e. here it actually looks like:

Now check top processes for RAM/CPU usage:
sudo ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head

I.e. here it actually looks like:

If the above checks on your RPI are within the normal range, you should check your SD/SSD for file system errors.

1 Like

I found the problem. In /etc/dhcpcd.conf there was and entry “inform 192.168.0.8”. I took it out and added “static ip_address=192.168.0.8/24”. As soon as I rebooted following this change, no more problems. It’s strange though that this became a problem as soon as I added anything to docker. My guess is that the queries were overwhelming the system

Thanks for the help… Much appreciated

How did dhcpcd.conf end up on your RPI in the first place? It is part of the dhcpcd5 package and does not get installed by default and is not needed: DHCP = ( Dynamic Host Configuration Protocol ) Server to assign IP addresses to client hosts in local network.

Your Home Assistant Supervised on a Raspberry Pi with Debian 11 is a client host and typically not a DHCP server. As per default the RPI gets its public facing IP address either through your router or you can assign it statically on the RPI itself.

dhcpcd.conf is installed by default on 2022-01-28-raspios-bullseye-arm64. When you change the IP settings in the Wireless & Wired Network settings GUI, dhcpcd.conf gets populated with the following below

interface eth0
inform 192.168.0.8
static routers=192.168.0.1
static domain_name_servers=8.8.8.8 8.8.4.4
static domain_search=dns.google

As soon as I add Docker and a Docker container, everything slows down to the point it takes for ever to do anything on the PI. When I add “static ip_address=192.168.0.8” to dhcpcd.conf, everything responds fast.

That can be.

This community guide is for installing HA Supervised on a RPI with Debian 11, 20220121_raspi_x_bullseye (bare metal) though and not for installing HA Supervised on Raspberry Pi OS (which is based on Debian). You are posting into the wrong thread.

1 Like

I have a problem to get Raspbee 2 running.
I think its not recognized. I disabled bt in config.txt
Anyone using a Raspbee with a Pi 4b and Debian 11?

Welcome to the forum, @Er1c.

Unfortunately you also posted into the wrong thread. The OP has nothing to do with installing and configuring Raspbee 2 on a RPI but it is about installing Debian 11 and HA Supervised on RPI’s.
Straight and plain.

A little search through the forum about your Rasbee 2-problem would have brought you i.e. here and here.

2 Likes

I’m currently running a supervised install still on Debian 10 with Raspberry Pi 4 booting from an attached SSD with USB3 adapter (no MicroSD).

There is a safe way to upgrade to Debian 11 without reinstalling and restoring a snapshot?

Some months ago me and other faced an issue with some 5.9 vs 5.10 files in RASPIFIRM partition that made system unbootable, and we had to reconfig booting to use old 5.9 version. This is stille the case for me.

There is, if you are running Home Assistant Supervised on a Raspberry Pi with Debian 10 (but not for RaspberryOS !).

Look upwards at post 387.

1 Like

Thanks for reply. I made the steps in that post and Pi booted.

However all docker containers failed to start: hassio_supervisor was trying to start every few second without success.

This was the output of docker events

2022-03-11T15:40:23.179487749+01:00 container create a3a47903e3879dc4cd2e0433ab254136bf9e312b0e7cc223a9f983655f68b827 (image=homeassistant/aarch64-hassio-supervisor, io.hass.arch=aarch64, io.hass.base.arch=aarch64, io.hass.base.image=homeassistant/aarch64-base:3.14, io.hass.base.name=python, io.hass.base.version=2022.02.0, io.hass.type=supervisor, io.hass.version=2022.03.3, name=hassio_supervisor, org.opencontainers.image.authors=The Home Assistant Authors, org.opencontainers.image.created=2022-03-10 12:24:42+00:00, org.opencontainers.image.description=Container-based system for managing Home Assistant Core installation, org.opencontainers.image.documentation=https://www.home-assistant.io/docs/, org.opencontainers.image.licenses=Apache License 2.0, org.opencontainers.image.source=https://github.com/home-assistant/supervisor, org.opencontainers.image.title=Home Assistant Supervisor, org.opencontainers.image.url=https://www.home-assistant.io/, org.opencontainers.image.version=2022.03.3)
2022-03-11T15:40:23.182858877+01:00 container attach a3a47903e3879dc4cd2e0433ab254136bf9e312b0e7cc223a9f983655f68b827 (image=homeassistant/aarch64-hassio-supervisor, io.hass.arch=aarch64, io.hass.base.arch=aarch64, io.hass.base.image=homeassistant/aarch64-base:3.14, io.hass.base.name=python, io.hass.base.version=2022.02.0, io.hass.type=supervisor, io.hass.version=2022.03.3, name=hassio_supervisor, org.opencontainers.image.authors=The Home Assistant Authors, org.opencontainers.image.created=2022-03-10 12:24:42+00:00, org.opencontainers.image.description=Container-based system for managing Home Assistant Core installation, org.opencontainers.image.documentation=https://www.home-assistant.io/docs/, org.opencontainers.image.licenses=Apache License 2.0, org.opencontainers.image.source=https://github.com/home-assistant/supervisor, org.opencontainers.image.title=Home Assistant Supervisor, org.opencontainers.image.url=https://www.home-assistant.io/, org.opencontainers.image.version=2022.03.3)
2022-03-11T15:40:23.226870461+01:00 network connect caf4ec5ffcf6e30ae7ce4433a4e1000935c8f2173388a05693f1a58083d81e2c (container=a3a47903e3879dc4cd2e0433ab254136bf9e312b0e7cc223a9f983655f68b827, name=bridge, type=bridge)
2022-03-11T15:40:23.861375470+01:00 network disconnect caf4ec5ffcf6e30ae7ce4433a4e1000935c8f2173388a05693f1a58083d81e2c (container=a3a47903e3879dc4cd2e0433ab254136bf9e312b0e7cc223a9f983655f68b827, name=bridge, type=bridge)
2022-03-11T15:40:29.820824826+01:00 container attach a3a47903e3879dc4cd2e0433ab254136bf9e312b0e7cc223a9f983655f68b827 (image=homeassistant/aarch64-hassio-supervisor, io.hass.arch=aarch64, io.hass.base.arch=aarch64, io.hass.base.image=homeassistant/aarch64-base:3.14, io.hass.base.name=python, io.hass.base.version=2022.02.0, io.hass.type=supervisor, io.hass.version=2022.03.3, name=hassio_supervisor, org.opencontainers.image.authors=The Home Assistant Authors, org.opencontainers.image.created=2022-03-10 12:24:42+00:00, org.opencontainers.image.description=Container-based system for managing Home Assistant Core installation, org.opencontainers.image.documentation=https://www.home-assistant.io/docs/, org.opencontainers.image.licenses=Apache License 2.0, org.opencontainers.image.source=https://github.com/home-assistant/supervisor, org.opencontainers.image.title=Home Assistant Supervisor, org.opencontainers.image.url=https://www.home-assistant.io/, org.opencontainers.image.version=2022.03.3)
2022-03-11T15:40:29.876597305+01:00 network connect caf4ec5ffcf6e30ae7ce4433a4e1000935c8f2173388a05693f1a58083d81e2c (container=a3a47903e3879dc4cd2e0433ab254136bf9e312b0e7cc223a9f983655f68b827, name=bridge, type=bridge)
2022-03-11T15:40:30.065898273+01:00 network disconnect caf4ec5ffcf6e30ae7ce4433a4e1000935c8f2173388a05693f1a58083d81e2c (container=a3a47903e3879dc4cd2e0433ab254136bf9e312b0e7cc223a9f983655f68b827, name=bridge, type=bridge)
2022-03-11T15:40:30.223447089+01:00 container destroy a3a47903e3879dc4cd2e0433ab254136bf9e312b0e7cc223a9f983655f68b827 (image=homeassistant/aarch64-hassio-supervisor, io.hass.arch=aarch64, io.hass.base.arch=aarch64, io.hass.base.image=homeassistant/aarch64-base:3.14, io.hass.base.name=python, io.hass.base.version=2022.02.0, io.hass.type=supervisor, io.hass.version=2022.03.3, name=hassio_supervisor, org.opencontainers.image.authors=The Home Assistant Authors, org.opencontainers.image.created=2022-03-10 12:24:42+00:00, org.opencontainers.image.description=Container-based system for managing Home Assistant Core installation, org.opencontainers.image.documentation=https://www.home-assistant.io/docs/, org.opencontainers.image.licenses=Apache License 2.0, org.opencontainers.image.source=https://github.com/home-assistant/supervisor, org.opencontainers.image.title=Home Assistant Supervisor, org.opencontainers.image.url=https://www.home-assistant.io/, org.opencontainers.image.version=2022.03.3)
2022-03-11T15:40:30.389909659+01:00 container create a6ed97dee7da931940bbad88e6d92385adba2b54225d8280fa564b269243402c (image=homeassistant/aarch64-hassio-supervisor, io.hass.arch=aarch64, io.hass.base.arch=aarch64, io.hass.base.image=homeassistant/aarch64-base:3.14, io.hass.base.name=python, io.hass.base.version=2022.02.0, io.hass.type=supervisor, io.hass.version=2022.03.3, name=hassio_supervisor, org.opencontainers.image.authors=The Home Assistant Authors, org.opencontainers.image.created=2022-03-10 12:24:42+00:00, org.opencontainers.image.description=Container-based system for managing Home Assistant Core installation, org.opencontainers.image.documentation=https://www.home-assistant.io/docs/, org.opencontainers.image.licenses=Apache License 2.0, org.opencontainers.image.source=https://github.com/home-assistant/supervisor, org.opencontainers.image.title=Home Assistant Supervisor, org.opencontainers.image.url=https://www.home-assistant.io/, org.opencontainers.image.version=2022.03.3)

It’s likely I had problems in the past with docker because…

root@homeassistant:~# apt-mark showhold
containerd.io
docker-ce
docker-ce-cli

After unholding these and upgrading, containers now start again.

Unfortunately there are other problems. Home Assistant become unresponsive (http or even SSH) some time after every reboot. It seems it’s busy in something. Maybe MariaDB addon?

It’s this related to the upgrade? How to further diagnose and solve?

If you do a full upgrade between major versions of the OS all packages which were put on hold before have to be set to unhold before initiating the full upgrade to avoid problems with packages for older versions which wont get replaced by newer versions coming with the new OS.

You are running the RPI4 from SSD with an USB3 adapter. There is a known problem about cases where HA is getting very slow or even unresponsive especially when accessing the logs, Logbook and History.

What helped me to overcome this issue effectively you can find here and here.