Home Assistant plugin on CORE - Failed to start HA 2022.2.0

tprelog

Patron
Joined
Mar 2, 2016
Messages
297
They've added an OS compatibility check in Home Assistant 2022.2.0 which obviously fais on TrueNAS CORE

Code:
Home Assistant only supports Linux, OSX and Windows using WSL


Fortunately there is also an --ignore-os-check command option that can be added to the rc script.

If your using the community plugin, you can get the updated rc script by running Plugin UPDATE from the TrueNAS UI.



Optionally, you can update the rc script manually

Code:
iocage console $jail_name
# Press 0 to exit menu

ee /usr/local/etc/rc.d/homeassistant


Edit line 116 (assuming your plugin is other wise up to date) of the script to add --ignore-os-check as shown below

Code:
HA_ARGS="--ignore-os-check --config ${homeassistant_config_dir}"


Press esc then enter twice to save and exit
 

uneekwahn

Cadet
Joined
Jun 5, 2018
Messages
4
Thank you for this. Just did the update and freaked out when I got that message.

Cheers for posting a fix so fast.
 

tprelog

Patron
Joined
Mar 2, 2016
Messages
297
With the 2022.2 update, people are also reporting that Home Assistant is failing to restart from it's UI.

I pushed a second plugin update yesterday to hopefully workaround this.

The rc script already runs Home Assistant using the FreeBSD daemon. This workaround simply adds the -R restart_delay_seconds to the rc-flags for the daemon. The default delay is set for 1 second.

Code:
 -R  restart_delay_seconds
         Supervise and restart the program after the specified delay if it
         has been terminated.


If needed, the delay can be adjusted by setting the rcvar homeassistant_restart_delay

For example, the following would set a 3 second delay
Code:
sysrc homeassistant_restart_delay=3



If you're using the community plugin, you can get the updated rc script by again running Plugin UPDATE from the TrueNAS UI.

Optionally, you can update the rc script manually by applying these chances to /usr/local/etc/rc.d/homeassistant
 
Top