Home Assistant causing dietpi to hung

Since I have latest PietPi why I still have this warning tha t zlib or isal is not available. Why isal is not active in my installation?

Thanks I will follow up after next update and see is happening. Thanks, guys, for amazing support. You should guys make some merch to support you, donations are good but merch is cool for geek to have :wink:

A DietPi update won’t mess with your HA installation. But a reinstall of HA, which includes fresh Python and dependency builds, will add isal automatically. As said, you can add it manually:

sudo -u homeassistant bash
source /home/homeassistant/pyenv-activate.sh
pip3 install isal
exit

Run/paste those commands separately, since the two in the middle run in a subshell.

We ship some out for Patrons tiers, but I get it would be good to not bind such to one particular funding platform, and not for regular donation memberships only.

merch shop incoming :smiley:

1 Like

Thanks, so I tried to do reinstall as on documntation to update everything in HA and there it started to be interesting:

root@DietPi:~# dietpi-software reinstall 157
[  OK  ] DietPi-Software | Initialised database
[  OK  ] DietPi-Software | Reading database

 DietPi-Software
─────────────────────────────────────────────────────
 Mode: Automated reinstall

[ INFO ] DietPi-Software | 157: Home Assistant is not currently installed
[ INFO ] DietPi-Software | Use "dietpi-software install 157" to install Home Assistant.
[  OK  ] DietPi-Software | No changes applied for: Home Assistant
root@DietPi:~# 

I HAVE HA and it is running so wtf is going on ;-0?

M

How did you install HA in first place?

DietPi Dashboard, as all my other software, everything is working for like a year or so, but only HA is giving a problems, and now it is running like a ghost, invisible :wink:

I did isal install as suggested and error:

Installing collected packages: isal
Successfully installed isal-1.7.2
homeassistant@DietPi:/root$ exit
exit
[FAILED] This pyenv must be activated as user "homeassistant". Aborting...

root@DietPi:~# 

You have misunderstood how dietpi-software recognizes installed software. We simply read the status from the file /boot/dietpi/.installed. There is no check if there is an active running app.

Still weird that /boot/dietpi/.installed does not contain the correct status for HA.

Just to verify it is setup as expected:

ls -l /home/homeassistant
ls -l /mnt/dietpi_userdata/homeassistant

I guess you copy&pasted the first two commands at once? The module was installed as expected in the subshell as homeassistant user, so that should be fine. source /home/homeassistant/pyenv-activate.sh was however still in the command pipeline of the parent root user shell, where it is expected to fail, but not relevant anymore.

No I did as you said, one line it activated pip, and next line and exit.

Anyway after ls commands:

root@DietPi:~# ls -l /home/homeassistant
total 12
-rwxr-xr-x 1 root root 102 Nov 15  2024 homeassistant-start.sh
-rwxr-xr-x 1 root root 125 Nov 15  2024 homeassistant-update.sh
-rw-r--r-- 1 root root 393 Nov 15  2024 pyenv-activate.sh
root@DietPi:~# ls -l /mnt/dietpi_userdata/homeassistant
total 30656
-rw-r--r--+ 1 homeassistant homeassistant      291 Jun 23 22:05 automations.yaml
drwxrwxr--+ 1 homeassistant homeassistant       48 Jul  1 16:34 backups
drwxrwxr--+ 1 homeassistant homeassistant       32 Nov 15  2024 blueprints
-rw-rw-r--+ 1 homeassistant homeassistant      347 Dec  9  2024 configuration.yaml
drwxrwxr--+ 1 homeassistant homeassistant        8 May  7 12:27 custom_components
lrwxrwxrwx  1 homeassistant homeassistant       71 Nov 15  2024 deps -> /home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages
-rw-rw-r--+ 1 homeassistant homeassistant     9115 Jul  5 10:11 home-assistant.log
-rw-rw-r--+ 1 homeassistant homeassistant     4702 Jul  2 19:06 home-assistant.log.1
-rw-rw-r--+ 1 homeassistant homeassistant        0 Jul  2 19:07 home-assistant.log.fault
-rw-r--r--+ 1 homeassistant homeassistant 27115520 Jul  5 15:52 home-assistant_v2.db
-rw-r--r--+ 1 homeassistant homeassistant    32768 Jul  5 15:53 home-assistant_v2.db-shm
-rw-r--r--+ 1 homeassistant homeassistant  4206552 Jul  5 15:53 home-assistant_v2.db-wal
-rw-rw-r--+ 1 homeassistant homeassistant        0 Nov 15  2024 scenes.yaml
-rw-rw-r--+ 1 homeassistant homeassistant        0 Nov 15  2024 scripts.yaml
-rw-rw-r--+ 1 homeassistant homeassistant      161 Nov 15  2024 secrets.yaml
drwxrwxr--+ 1 homeassistant homeassistant       12 Jul  1 17:05 themes
drwxrwxr--+ 1 homeassistant homeassistant        0 Nov 15  2024 tts
root@DietPi:~# 

And my boot installed file contains:

SOFTWARE_INSTALL_STATE[3]=2
aSOFTWARE_INSTALL_STATE[5]=2
aSOFTWARE_INSTALL_STATE[7]=2
aSOFTWARE_INSTALL_STATE[17]=2
aSOFTWARE_INSTALL_STATE[42]=2
aSOFTWARE_INSTALL_STATE[87]=2
aSOFTWARE_INSTALL_STATE[96]=2
aSOFTWARE_INSTALL_STATE[103]=2
aSOFTWARE_INSTALL_STATE[104]=2
aSOFTWARE_INSTALL_STATE[106]=2
aSOFTWARE_INSTALL_STATE[123]=2
aSOFTWARE_INSTALL_STATE[130]=2
aSOFTWARE_INSTALL_STATE[139]=2
aSOFTWARE_INSTALL_STATE[144]=2
aSOFTWARE_INSTALL_STATE[145]=2
aSOFTWARE_INSTALL_STATE[150]=2
aSOFTWARE_INSTALL_STATE[170]=2
aSOFTWARE_INSTALL_STATE[180]=2
aSOFTWARE_INSTALL_STATE[200]=2
aSOFTWARE_INSTALL_STATE[203]=2
INDEX_LOGGING=-1

So indeed no 157?

Theoretically you could add it manually and try to reinstall afterwards. Do a backup beforehand, if you go that way

Looks good. No need to add the install state manually. Just β€œinstall” HA then. There is no difference internally, configs/data are kept in any case:

dietpi-software install 157
1 Like

Yeah no, HA is already installed, I am not getting what is going on guys?

The idea is to get HA back into the list of installed software. Hence the recommendation to make a HA install. Settings and configurations should be kept. However, make a backup beforehand to be on the safe side.

An install and a reinstall is exactly what you would would need to do anyway to update HA to latest version, which requires Python v3.13.2 minimum, while your instance uses Python 3.12.7. reinstall and install run exactly the same code, the difference is only a formal one, a check whether the software is noted as installed or not, so we can do reinstalls during DietPi update, if required for some reason, and those software titles not marked as installed will be skipped. The mark is obviously wrong in your case, no idea why. It is set at the very end on an install process, so theoretically a failure near the end could have lead to that, when HA was installed already, but install states not synced yet.

I have installed and here it is:

root@DietPi:~# ls -l /home/homeassistant
total 12
-rwxr-xr-x 1 root root 102 Nov 15  2024 homeassistant-start.sh
-rwxr-xr-x 1 root root 125 Nov 15  2024 homeassistant-update.sh
-rw-r--r-- 1 root root 393 Nov 15  2024 pyenv-activate.sh
root@DietPi:~# ls -l /mnt/dietpi_userdata/homeassistant
total 30604
-rw-r--r--+ 1 homeassistant homeassistant      291 Jun 23 22:05 automations.yaml
drwxrwxr--+ 1 homeassistant homeassistant       48 Jul  1 16:34 backups
drwxrwxr--+ 1 homeassistant homeassistant       32 Nov 15  2024 blueprints
-rw-rw-r--+ 1 homeassistant homeassistant      347 Dec  9  2024 configuration.yaml
drwxrwxr--+ 1 homeassistant homeassistant        8 May  7 12:27 custom_components
lrwxrwxrwx  1 homeassistant homeassistant       71 Nov 15  2024 deps -> /home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages
-rw-rw-r--+ 1 homeassistant homeassistant     1012 Jul  7 16:32 home-assistant.log
-rw-rw-r--+ 1 homeassistant homeassistant     1205 Jul  7 09:29 home-assistant.log.1
-rw-rw-r--+ 1 homeassistant homeassistant        0 Jul  7 10:00 home-assistant.log.fault
-rw-r--r--+ 1 homeassistant homeassistant 27115520 Jul  7 16:41 home-assistant_v2.db
-rw-r--r--+ 1 homeassistant homeassistant    32768 Jul  7 16:51 home-assistant_v2.db-shm
-rw-r--r--+ 1 homeassistant homeassistant  4165352 Jul  7 16:51 home-assistant_v2.db-wal
-rw-rw-r--+ 1 homeassistant homeassistant        0 Nov 15  2024 scenes.yaml
-rw-rw-r--+ 1 homeassistant homeassistant        0 Nov 15  2024 scripts.yaml
-rw-rw-r--+ 1 homeassistant homeassistant      161 Nov 15  2024 secrets.yaml
drwxrwxr--+ 1 homeassistant homeassistant       12 Jul  1 17:05 themes
drwxrwxr--+ 1 homeassistant homeassistant        0 Nov 15  2024 tts
root@DietPi:~# journalctl -u home-assistant
-- Journal begins at Mon 2025-07-07 09:59:00 AEST, ends at Mon 2025-07-07 16:49:31 AEST. --
Jul 07 09:59:09 DietPi systemd[1]: Started Home Assistant (DietPi).
Jul 07 10:00:25 DietPi Home Assistant[1669]: 2025-07-07 10:00:25.462 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
Jul 07 10:00:39 DietPi Home Assistant[1669]: 2025-07-07 10:00:39.514 WARNING (MainThread) [aiohttp_fast_zlib] zlib_ng and isal are not available, falling back to zlib, performance will be degraded.
Jul 07 10:00:40 DietPi Home Assistant[1669]: 2025-07-07 10:00:40.549 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //mnt/dietpi_userdata/homeassistant/home-assistant_v2.db was shutdown cleanly
Jul 07 16:32:15 DietPi Home Assistant[1669]: 2025-07-07 16:32:15.784 ERROR (MainThread) [homeassistant.components.ring.coordinator] Error fetching devices data: Error communicating with API for device Front Door: HTTP error with status code 401 during query of url https://api.ring.com/clients_api/doorbots/165569820/health: 401, message='Unauthorized', url='https://api.ring.com/clients_api/doorbots/165569820/health'
root@DietPi:~# 

And dietpi installed:

aSOFTWARE_INSTALL_STATE[3]=2
aSOFTWARE_INSTALL_STATE[5]=2
aSOFTWARE_INSTALL_STATE[7]=2
aSOFTWARE_INSTALL_STATE[17]=2
aSOFTWARE_INSTALL_STATE[42]=2
aSOFTWARE_INSTALL_STATE[87]=2
aSOFTWARE_INSTALL_STATE[96]=2
aSOFTWARE_INSTALL_STATE[103]=2
aSOFTWARE_INSTALL_STATE[104]=2
aSOFTWARE_INSTALL_STATE[106]=2
aSOFTWARE_INSTALL_STATE[123]=2
aSOFTWARE_INSTALL_STATE[130]=2
aSOFTWARE_INSTALL_STATE[139]=2
aSOFTWARE_INSTALL_STATE[144]=2
aSOFTWARE_INSTALL_STATE[145]=2
aSOFTWARE_INSTALL_STATE[150]=2
aSOFTWARE_INSTALL_STATE[170]=2
aSOFTWARE_INSTALL_STATE[180]=2
aSOFTWARE_INSTALL_STATE[200]=2
aSOFTWARE_INSTALL_STATE[203]=2
INDEX_LOGGING=-1

No HA again, interesting even after command line execution to install.

Ring door bel is working so error was temporary, there is HACS dashboard installed and that warning is standard.

And seems standard for me isal or z-lib not available, just great. I reckon pip enviroment is not set right or HA should be installed in docker with supervisor.

You are on the latest DietPi version right? Please show the full output of the dietpi-software execution. Since the Python version of your instance is still 3.12.7, it is either outdated DietPi, or nothing was installed at all, i.e. it aborted early.

What do you mean full output of that command? I got pop out screen with a few menus to choose action what action do you need?

The whole output for the dietpi-software install 157 or dietpi-software reinstall 157 command