# Home Assistant no longer starts after DietPi + Home Assistant update (exec: hass: not found)

**URL:** <https://dietpi.com/forum/t/home-assistant-no-longer-starts-after-dietpi-home-assistant-update-exec-hass-not-found/23606>\
**Category:** Troubleshooting\
**Created:** [8 June 2025 17:28 UTC](https://dietpi.com/forum/t/home-assistant-no-longer-starts-after-dietpi-home-assistant-update-exec-hass-not-found/23606 "2025-06-08T17:28:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![inquiringFeline](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/i/e56c9b/32.png) [@inquiringFeline](https://dietpi.com/forum/u/inquiringFeline)\
**Post date:** [8 June 2025 17:28 UTC](https://dietpi.com/forum/t/home-assistant-no-longer-starts-after-dietpi-home-assistant-update-exec-hass-not-found/23606/1 "2025-06-08T17:28:40Z")

</div>

### Creating a bug report/issue

I have searched the existing open and closed issues

#### Required Information

- DietPi version

```auto
G_DIETPI_VERSION_CORE=9
G_DIETPI_VERSION_SUB=13
G_DIETPI_VERSION_RC=2
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
G_LIVE_PATCH_STATUS[0]='not applicable'
G_LIVE_PATCH_STATUS[1]='applied'
G_LIVE_PATCH_STATUS[2]='not applicable'
G_LIVE_PATCH_STATUS[3]='applied'

```

- Distro version

```auto
bookworm 0

```

- Kernel version

```auto
6.12.25+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.12.25-1+rpt1 (2025-04-30) aarch64 GNU/Linux

```

- Architecture

```auto
arm64

```

- SBC model |  
`RPi 5 Model B (aarch64)`
- Power supply used |

```auto
Official Raspberry Pi 5 power supply

```

- SD card used |

```auto
128GB SSD

```

#### Additional Information (if applicable)

- Software title | Home Assistant
- Was the software title installed freshly or updated/migrated? → Yes

#### Steps to reproduce

1. Update DietPi to version 9.13.2
2. Update Home Assistant via `dietpi-software reinstall 157`
3. 

#### Expected behaviour

- Home Assistant starts regularly

#### Actual behaviour

Home-Assistant service shows:

```auto
× home-assistant.service - Home Assistant (DietPi)
     Loaded: loaded (/etc/systemd/system/home-assistant.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Sun 2025-06-08 19:13:04 CEST; 6min ago
   Duration: 421ms
    Process: 7812 ExecStart=/home/homeassistant/homeassistant-start.sh (code=exited, status=127)
   Main PID: 7812 (code=exited, status=127)
        CPU: 158ms

giu 08 19:13:04 hostname systemd[1]: Started home-assistant.service - Home Assistant (DietPi).
giu 08 19:13:04 hostname Home Assistant[7812]: /home/homeassistant/homeassistant-start.sh: 3: exec: hass: not found
giu 08 19:13:04 hostname systemd[1]: home-assistant.service: Main process exited, code=exited, status=127/n/a
giu 08 19:13:04 hostname systemd[1]: home-assistant.service: Failed with result 'exit-code'.

```

#### Extra details

After updating my existing installation, Home Assistant no longer starts.  
All files related to Home Assistant appear to still be in their correction location, including `hass`.  
My hypothesis is the problem is due to the `/home/homeassistant/.local/bin` no longer being on $PATH, as it seems as if the dietpi launch script cannot find the file anymore.  
I have tried adding it to $PATH and rebooting multiple times with no success. Same error appears when restarting the service.  
For all users, including root and homeassistant, `echo $PATH` now shows:  
`/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/homeassistant/.local/bin`

Any thoughts as to how I could resolve this?

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [8 June 2025 19:15 UTC](https://dietpi.com/forum/t/home-assistant-no-longer-starts-after-dietpi-home-assistant-update-exec-hass-not-found/23606/2 "2025-06-08T19:15:30Z")

</div>

Keep in mind home assistant has an own user with own path and pyenv environment.

Best trying to reinstall again

```auto
dietpi-software reinstall 157

```

---

<div class="post-metadata">

**Author:** ![inquiringFeline](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/i/e56c9b/32.png) [@inquiringFeline](https://dietpi.com/forum/u/inquiringFeline)\
**Post date:** [8 June 2025 20:00 UTC](https://dietpi.com/forum/t/home-assistant-no-longer-starts-after-dietpi-home-assistant-update-exec-hass-not-found/23606/3 "2025-06-08T20:00:59Z")

</div>

Thank you for the reply.  
I’ve already tried that two times. I’ve also tried adding the $PATH `/home/homeassistant/.local/bin` folder for the homeassistant user. The problem keeps occurring.  
I’ve tried that one more time, including restarting the service for the python module building. Same result: `/home/homeassistant/homeassistant-start.sh: 3: exec: hass: not found` Here’s the log from the installation, in case it’s useful:

```auto
 DietPi-Software
─────────────────────────────────────────────────────
 Step: Installing Home Assistant: Open source home automation platform

[INFO] DietPi-Software | Home Assistant user: homeassistant
[INFO] DietPi-Software | Home Assistant home: /home/homeassistant
[INFO] DietPi-Software | pyenv activation: ". /home/homeassistant/pyenv-activate.sh"
[INFO] DietPi-Software | pyenv Python version: 3.13.3
[OK] DietPi-Software | usermod -aG dialout,gpio,i2c -d /home/homeassistant -s /usr/sbin/nologin homeassistant
[OK] DietPi-Software | mkdir -p /home/homeassistant
[OK] DietPi-Software | chown homeassistant:homeassistant /home/homeassistant
[OK] DietPi-Software | cd /tmp/DietPi-Software
[OK] DietPi-Software | Checking URL: https://github.com/pyenv/pyenv/archive/master.tar.gz
[INFO] DietPi-Software | G_THREAD_START_0 | curl -sSfL https://github.com/pyenv/pyenv/archive/master.tar.gz -o master.tar.gz
[INFO] DietPi-Software | APT install g++ make libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev liblzma-dev libffi-dev, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
g++ is already the newest version (4:12.2.0-3).
make is already the newest version (4.3-4.1).
libssl-dev is already the newest version (3.0.16-1~deb12u1+rpt1).
zlib1g-dev is already the newest version (1:1.2.13.dfsg-1+rpt1).
libbz2-dev is already the newest version (1.0.8-5+b1).
libreadline-dev is already the newest version (8.2-1.3).
libsqlite3-dev is already the newest version (3.40.1-2+deb12u1).
liblzma-dev is already the newest version (5.4.1-1).
libffi-dev is already the newest version (3.4.4-1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
[OK] DietPi-Software | APT install g++ make libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev liblzma-dev libffi-dev
[OK] DietPi-Software | G_THREAD: All threads finished
[OK] DietPi-Software | tar xf master.tar.gz
[OK] DietPi-Software | rm master.tar.gz
[OK] DietPi-Software | chown -R homeassistant:homeassistant pyenv-master
[OK] DietPi-Software | rm -R /home/homeassistant/.pyenv
[OK] DietPi-Software | mv pyenv-master /home/homeassistant/.pyenv
[OK] DietPi-Software | rm -R /home/homeassistant/.homeassistant
[OK] DietPi-Software | ln -sf /mnt/dietpi_userdata/homeassistant /home/homeassistant/.homeassistant
[OK] DietPi-Software | ln -sf /home/homeassistant/.pyenv/versions/3.13.3/lib/python3.13/site-packages /mnt/dietpi_userdata/homeassistant/deps
[OK] DietPi-Software | mkdir -p /home/homeassistant/.pip
[OK] DietPi-Software | eval echo -e '[global]\nno-cache-dir=true' > '/home/homeassistant/.pip/pip.conf'
[INFO] DietPi-Software | Compiling and installing Python 3.13.3 into pyenv, which will take a while ..., please wait...
Downloading Python-3.13.3.tar.gz...
-> https://www.python.org/ftp/python/3.13.3/Python-3.13.3.tgz
Installing Python-3.13.3...
Installed Python-3.13.3 to /home/homeassistant/.pyenv/versions/3.13.3
[OK] DietPi-Software | Compiling and installing Python 3.13.3 into pyenv, which will take a while ...
[INFO] DietPi-Software | Set Python . /home/homeassistant/pyenv-activate.sh as global version for this pyenv instance, please wait...
[OK] DietPi-Software | Set Python . /home/homeassistant/pyenv-activate.sh as global version for this pyenv instance
[INFO] DietPi-Software | Upgrading base modules: pip setuptools wheel, please wait...
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pip in ./.local/lib/python3.11/site-packages (25.1.1)
Requirement already satisfied: setuptools in ./.local/lib/python3.11/site-packages (80.9.0)
Requirement already satisfied: wheel in ./.local/lib/python3.11/site-packages (0.45.1)
[OK] DietPi-Software | Upgrading base modules: pip setuptools wheel
[INFO] DietPi-Software | Installing additional dependencies: isal , please wait...
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: isal in ./.local/lib/python3.11/site-packages (1.7.2)
[OK] DietPi-Software | Installing additional dependencies: isal
[INFO] DietPi-Software | Installing Home Assistant core module, please wait...
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: homeassistant in ./.local/lib/python3.11/site-packages (2024.3.3)
Requirement already satisfied: aiohttp==3.9.3 in ./.local/lib/python3.11/site-packages (from homeassistant) (3.9.3)
Requirement already satisfied: aiohttp-cors==0.7.0 in ./.local/lib/python3.11/site-packages (from homeassistant) (0.7.0)
Requirement already satisfied: aiohttp-fast-url-dispatcher==0.3.0 in ./.local/lib/python3.11/site-packages (from homeassistant) (0.3.0)
Requirement already satisfied: aiohttp-zlib-ng==0.3.1 in ./.local/lib/python3.11/site-packages (from homeassistant) (0.3.1)
Requirement already satisfied: astral==2.2 in ./.local/lib/python3.11/site-packages (from homeassistant) (2.2)
Requirement already satisfied: async-interrupt==1.1.1 in ./.local/lib/python3.11/site-packages (from homeassistant) (1.1.1)
Requirement already satisfied: attrs==23.2.0 in /usr/local/lib/python3.11/dist-packages (from homeassistant) (23.2.0)
Requirement already satisfied: atomicwrites-homeassistant==1.4.1 in ./.local/lib/python3.11/site-packages (from homeassistant) (1.4.1)
Requirement already satisfied: awesomeversion==24.2.0 in ./.local/lib/python3.11/site-packages (from homeassistant) (24.2.0)
Requirement already satisfied: bcrypt==4.1.2 in ./.local/lib/python3.11/site-packages (from homeassistant) (4.1.2)
Requirement already satisfied: certifi>=2021.5.30 in /usr/lib/python3/dist-packages (from homeassistant) (2022.9.24)
Requirement already satisfied: ciso8601==2.3.1 in ./.local/lib/python3.11/site-packages (from homeassistant) (2.3.1)
Requirement already satisfied: hass-nabucasa==0.78.0 in ./.local/lib/python3.11/site-packages (from homeassistant) (0.78.0)
Requirement already satisfied: httpx==0.27.0 in ./.local/lib/python3.11/site-packages (from homeassistant) (0.27.0)
Requirement already satisfied: home-assistant-bluetooth==1.12.0 in ./.local/lib/python3.11/site-packages (from homeassistant) (1.12.0)
Requirement already satisfied: ifaddr==0.2.0 in ./.local/lib/python3.11/site-packages (from homeassistant) (0.2.0)
Requirement already satisfied: Jinja2==3.1.3 in ./.local/lib/python3.11/site-packages (from homeassistant) (3.1.3)
Requirement already satisfied: lru-dict==1.3.0 in ./.local/lib/python3.11/site-packages (from homeassistant) (1.3.0)
Requirement already satisfied: PyJWT==2.8.0 in ./.local/lib/python3.11/site-packages (from homeassistant) (2.8.0)
Requirement already satisfied: cryptography==42.0.5 in ./.local/lib/python3.11/site-packages (from homeassistant) (42.0.5)
Requirement already satisfied: pyOpenSSL==24.0.0 in ./.local/lib/python3.11/site-packages (from homeassistant) (24.0.0)
Requirement already satisfied: orjson==3.9.15 in ./.local/lib/python3.11/site-packages (from homeassistant) (3.9.15)
Requirement already satisfied: packaging>=23.1 in /usr/local/lib/python3.11/dist-packages (from homeassistant) (24.0)
Requirement already satisfied: pip>=21.3.1 in ./.local/lib/python3.11/site-packages (from homeassistant) (25.1.1)
Requirement already satisfied: python-slugify==8.0.4 in ./.local/lib/python3.11/site-packages (from homeassistant) (8.0.4)
Requirement already satisfied: PyYAML==6.0.1 in ./.local/lib/python3.11/site-packages (from homeassistant) (6.0.1)
Requirement already satisfied: requests==2.31.0 in ./.local/lib/python3.11/site-packages (from homeassistant) (2.31.0)
Requirement already satisfied: typing-extensions<5.0,>=4.10.0 in /usr/local/lib/python3.11/dist-packages (from homeassistant) (4.11.0)
Requirement already satisfied: ulid-transform==0.9.0 in ./.local/lib/python3.11/site-packages (from homeassistant) (0.9.0)
Requirement already satisfied: urllib3<2,>=1.26.5 in /usr/lib/python3/dist-packages (from homeassistant) (1.26.12)
Requirement already satisfied: voluptuous==0.13.1 in ./.local/lib/python3.11/site-packages (from homeassistant) (0.13.1)
Requirement already satisfied: voluptuous-serialize==2.6.0 in ./.local/lib/python3.11/site-packages (from homeassistant) (2.6.0)
Requirement already satisfied: yarl==1.9.4 in ./.local/lib/python3.11/site-packages (from homeassistant) (1.9.4)
Requirement already satisfied: aiosignal>=1.1.2 in ./.local/lib/python3.11/site-packages (from aiohttp==3.9.3->homeassistant) (1.3.2)
Requirement already satisfied: frozenlist>=1.1.1 in ./.local/lib/python3.11/site-packages (from aiohttp==3.9.3->homeassistant) (1.6.2)
Requirement already satisfied: multidict<7.0,>=4.5 in ./.local/lib/python3.11/site-packages (from aiohttp==3.9.3->homeassistant) (6.4.4)
Requirement already satisfied: idna>=2.0 in /usr/lib/python3/dist-packages (from yarl==1.9.4->homeassistant) (3.3)
Requirement already satisfied: zlib-ng>=0.3.0 in ./.local/lib/python3.11/site-packages (from aiohttp-zlib-ng==0.3.1->homeassistant) (0.5.1)
Requirement already satisfied: pytz in /usr/lib/python3/dist-packages (from astral==2.2->homeassistant) (2022.7.1)
Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.11/dist-packages (from cryptography==42.0.5->homeassistant) (1.16.0)
Requirement already satisfied: pycognito==2023.5.0 in ./.local/lib/python3.11/site-packages (from hass-nabucasa==0.78.0->homeassistant) (2023.5.0)
Requirement already satisfied: snitun==0.36.2 in ./.local/lib/python3.11/site-packages (from hass-nabucasa==0.78.0->homeassistant) (0.36.2)
Requirement already satisfied: acme==2.8.0 in ./.local/lib/python3.11/site-packages (from hass-nabucasa==0.78.0->homeassistant) (2.8.0)
Requirement already satisfied: josepy>=1.13.0 in /usr/lib/python3/dist-packages (from acme==2.8.0->hass-nabucasa==0.78.0->homeassistant) (1.13.0)
Requirement already satisfied: pyrfc3339 in /usr/lib/python3/dist-packages (from acme==2.8.0->hass-nabucasa==0.78.0->homeassistant) (1.1)
Requirement already satisfied: setuptools>=41.6.0 in ./.local/lib/python3.11/site-packages (from acme==2.8.0->hass-nabucasa==0.78.0->homeassistant) (80.9.0)
Requirement already satisfied: habluetooth>=0.11.0 in ./.local/lib/python3.11/site-packages (from home-assistant-bluetooth==1.12.0->homeassistant) (3.49.0)
Requirement already satisfied: anyio in ./.local/lib/python3.11/site-packages (from httpx==0.27.0->homeassistant) (4.9.0)
Requirement already satisfied: httpcore==1.* in ./.local/lib/python3.11/site-packages (from httpx==0.27.0->homeassistant) (1.0.9)
Requirement already satisfied: sniffio in ./.local/lib/python3.11/site-packages (from httpx==0.27.0->homeassistant) (1.3.1)
Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.11/dist-packages (from Jinja2==3.1.3->homeassistant) (2.1.5)
Requirement already satisfied: boto3>=1.10.49 in ./.local/lib/python3.11/site-packages (from pycognito==2023.5.0->hass-nabucasa==0.78.0->homeassistant) (1.38.32)
Requirement already satisfied: envs>=1.3 in ./.local/lib/python3.11/site-packages (from pycognito==2023.5.0->hass-nabucasa==0.78.0->homeassistant) (1.4)
Requirement already satisfied: python-jose>=3.2.0 in ./.local/lib/python3.11/site-packages (from python-jose[cryptography]>=3.2.0->pycognito==2023.5.0->hass-nabucasa==0.78.0->homeassistant) (3.5.0)
Requirement already satisfied: text-unidecode>=1.3 in ./.local/lib/python3.11/site-packages (from python-slugify==8.0.4->homeassistant) (1.3)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/lib/python3/dist-packages (from requests==2.31.0->homeassistant) (3.0.1)
Requirement already satisfied: async-timeout>=3.0.1 in ./.local/lib/python3.11/site-packages (from snitun==0.36.2->hass-nabucasa==0.78.0->homeassistant) (5.0.1)
Requirement already satisfied: h11>=0.16 in ./.local/lib/python3.11/site-packages (from httpcore==1.*->httpx==0.27.0->homeassistant) (0.16.0)
Requirement already satisfied: botocore<1.39.0,>=1.38.32 in ./.local/lib/python3.11/site-packages (from boto3>=1.10.49->pycognito==2023.5.0->hass-nabucasa==0.78.0->homeassistant) (1.38.32)
Requirement already satisfied: jmespath<2.0.0,>=0.7.1 in ./.local/lib/python3.11/site-packages (from boto3>=1.10.49->pycognito==2023.5.0->hass-nabucasa==0.78.0->homeassistant) (1.0.1)
Requirement already satisfied: s3transfer<0.14.0,>=0.13.0 in ./.local/lib/python3.11/site-packages (from boto3>=1.10.49->pycognito==2023.5.0->hass-nabucasa==0.78.0->homeassistant) (0.13.0)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in ./.local/lib/python3.11/site-packages (from botocore<1.39.0,>=1.38.32->boto3>=1.10.49->pycognito==2023.5.0->hass-nabucasa==0.78.0->homeassistant) (2.9.0.post0)
Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil<3.0.0,>=2.1->botocore<1.39.0,>=1.38.32->boto3>=1.10.49->pycognito==2023.5.0->hass-nabucasa==0.78.0->homeassistant) (1.16.0)
Requirement already satisfied: pycparser in /usr/local/lib/python3.11/dist-packages (from cffi>=1.12->cryptography==42.0.5->homeassistant) (2.22)
Requirement already satisfied: bleak>=0.21.1 in ./.local/lib/python3.11/site-packages (from habluetooth>=0.11.0->home-assistant-bluetooth==1.12.0->homeassistant) (0.22.3)
Requirement already satisfied: bleak-retry-connector>=3.9.0 in ./.local/lib/python3.11/site-packages (from habluetooth>=0.11.0->home-assistant-bluetooth==1.12.0->homeassistant) (3.10.0)
Requirement already satisfied: bluetooth-adapters>=0.16.1 in ./.local/lib/python3.11/site-packages (from habluetooth>=0.11.0->home-assistant-bluetooth==1.12.0->homeassistant) (0.21.4)
Requirement already satisfied: bluetooth-auto-recovery>=1.5.1 in ./.local/lib/python3.11/site-packages (from habluetooth>=0.11.0->home-assistant-bluetooth==1.12.0->homeassistant) (1.5.2)
Requirement already satisfied: bluetooth-data-tools>=1.28.0 in ./.local/lib/python3.11/site-packages (from habluetooth>=0.11.0->home-assistant-bluetooth==1.12.0->homeassistant) (1.28.1)
Requirement already satisfied: dbus-fast>=2.30.2 in ./.local/lib/python3.11/site-packages (from habluetooth>=0.11.0->home-assistant-bluetooth==1.12.0->homeassistant) (2.44.1)
Requirement already satisfied: aiooui>=0.1.1 in ./.local/lib/python3.11/site-packages (from bluetooth-adapters>=0.16.1->habluetooth>=0.11.0->home-assistant-bluetooth==1.12.0->homeassistant) (0.1.9)
Requirement already satisfied: uart-devices>=0.1.0 in ./.local/lib/python3.11/site-packages (from bluetooth-adapters>=0.16.1->habluetooth>=0.11.0->home-assistant-bluetooth==1.12.0->homeassistant) (0.1.1)
Requirement already satisfied: usb-devices>=0.4.5 in ./.local/lib/python3.11/site-packages (from bluetooth-adapters>=0.16.1->habluetooth>=0.11.0->home-assistant-bluetooth==1.12.0->homeassistant) (0.4.5)
Requirement already satisfied: PyRIC>=0.1.6.3 in ./.local/lib/python3.11/site-packages (from bluetooth-auto-recovery>=1.5.1->habluetooth>=0.11.0->home-assistant-bluetooth==1.12.0->homeassistant) (0.1.6.3)
Requirement already satisfied: btsocket>=0.2.0 in ./.local/lib/python3.11/site-packages (from bluetooth-auto-recovery>=1.5.1->habluetooth>=0.11.0->home-assistant-bluetooth==1.12.0->homeassistant) (0.3.0)
Requirement already satisfied: ecdsa!=0.15 in ./.local/lib/python3.11/site-packages (from python-jose>=3.2.0->python-jose[cryptography]>=3.2.0->pycognito==2023.5.0->hass-nabucasa==0.78.0->homeassistant) (0.19.1)
Requirement already satisfied: rsa!=4.1.1,!=4.4,<5.0,>=4.0 in ./.local/lib/python3.11/site-packages (from python-jose>=3.2.0->python-jose[cryptography]>=3.2.0->pycognito==2023.5.0->hass-nabucasa==0.78.0->homeassistant) (4.9.1)
Requirement already satisfied: pyasn1>=0.5.0 in /usr/local/lib/python3.11/dist-packages (from python-jose>=3.2.0->python-jose[cryptography]>=3.2.0->pycognito==2023.5.0->hass-nabucasa==0.78.0->homeassistant) (0.6.0)
[OK] DietPi-Software | Installing Home Assistant core module
[OK] DietPi-Software | chmod +x /home/homeassistant/homeassistant-start.sh
[OK] DietPi-Software | chmod +x /home/homeassistant/homeassistant-update.sh
[OK] DietPi-Software | cd /tmp/DietPi-Software
[OK] DietPi-Software | curl -sSfL https://github.com/hacs/integration/releases/latest/download/hacs.zip -o hacs.zip
[OK] DietPi-Software | unzip -o hacs.zip -dhacs
[OK] DietPi-Software | rm hacs.zip
[OK] DietPi-Software | rm -R /mnt/dietpi_userdata/homeassistant/custom_components/hacs
[OK] DietPi-Software | mkdir -p /mnt/dietpi_userdata/homeassistant/custom_components
[OK] DietPi-Software | mv hacs /mnt/dietpi_userdata/homeassistant/custom_components/
[OK] DietPi-Software | chown -R homeassistant:homeassistant /mnt/dietpi_userdata/homeassistant
[INFO] DietPi-Software | Home Assistant Community Store (HACS) has been installed in addition. To activate it, follow this guide: https://hacs.xyz/docs/configuration/basic/

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Finalising install

[INFO] DietPi-Software | Enabling installed services
[OK] DietPi-Software | systemctl --no-reload enable home-assistant
[OK] DietPi-Software | systemctl daemon-reload
2025-06-08 21:30:18 [INFO] DietPi-RAMlog | Storing /var/log to /var/tmp/dietpi/logs/dietpi-ramlog_store...
2025-06-08 21:30:18 [OK] DietPi-RAMlog | Stored /var/log to /var/tmp/dietpi/logs/dietpi-ramlog_store.

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Install completed

```

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [8 June 2025 20:08 UTC](https://dietpi.com/forum/t/home-assistant-no-longer-starts-after-dietpi-home-assistant-update-exec-hass-not-found/23606/4 "2025-06-08T20:08:45Z")

</div>

Did you tried to switch to HA user

```auto
sudo -u homeassistant bash
. /home/homeassistant/pyenv-activate.sh

```

And run `hass` command manually?

---

<div class="post-metadata">

**Author:** ![inquiringFeline](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/i/e56c9b/32.png) [@inquiringFeline](https://dietpi.com/forum/u/inquiringFeline)\
**Post date:** [8 June 2025 21:01 UTC](https://dietpi.com/forum/t/home-assistant-no-longer-starts-after-dietpi-home-assistant-update-exec-hass-not-found/23606/5 "2025-06-08T21:01:16Z")

</div>

That seems to have done something - thanks again.  
The program started and built the python dependencies. I restarted it twice once it was done compiling as per the usual instructions. If I keep the hass command running, I can also access the instance.  
However, the home-assistant systemd service still is not able to restart. Same error as before (` exec: hass: not found`). Rebooting did not fix this.

Unrelated to the issue at hand, but the installation is also now full of errors. My automations have all been disabled for “extra keys not allowed”, and Home Assistant’s logs are complaining that I need to upgrade to Python 3.12 despite the pyenv being updated to 3.13… I’m seriously regretting not doing a full system backup. I have the local HASS backups in tar format but I’m worried that they will not work with this system state.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [8 June 2025 21:11 UTC](https://dietpi.com/forum/t/home-assistant-no-longer-starts-after-dietpi-home-assistant-update-exec-hass-not-found/23606/6 "2025-06-08T21:11:36Z")

</div>

Maybe @MichaIng has an idea why `hass` command is not found during service execution but working manually

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [8 June 2025 21:31 UTC](https://dietpi.com/forum/t/home-assistant-no-longer-starts-after-dietpi-home-assistant-update-exec-hass-not-found/23606/7 "2025-06-08T21:31:32Z")

</div>

See: [dietpi-software: Home Assistant: remove "pyenv local" info · MichaIng/DietPi@38f7c98 · GitHub](https://github.com/MichaIng/DietPi/commit/38f7c98)

```sh
sudo rm /home/homeassistant/.python-version
sudo systemctl restart home-assistant

```

---

<div class="post-metadata">

**Author:** ![inquiringFeline](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/i/e56c9b/32.png) [@inquiringFeline](https://dietpi.com/forum/u/inquiringFeline)\
**Post date:** [9 June 2025 04:59 UTC](https://dietpi.com/forum/t/home-assistant-no-longer-starts-after-dietpi-home-assistant-update-exec-hass-not-found/23606/8 "2025-06-09T04:59:10Z")

</div>

That and another reinstallation fixed everything, including the broken automations and a lot of the errors! Thank you so much!

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [7 September 2025 05:00 UTC](https://dietpi.com/forum/t/home-assistant-no-longer-starts-after-dietpi-home-assistant-update-exec-hass-not-found/23606/9 "2025-09-07T05:00:03Z")

</div>

Closed on 7 September 2025 05:00 UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
