jtarjanyi
(Janos Tarjanyi)
June 28, 2025, 9:20am
1
I have docker based HA system installed on Raspberry Pi 4 Model B Rev 1.5. It was installed 2-3 years ago, but not sure what time but ‘homeassistant’ container started to crash time-to-time. Rest of the others are still running as the base OS also. RasPi runs on SSD, so no SD card involved.
I have tried to check the container logs, but it seems it has data from the latest restart. I’ve seen couple of errors which was related to unused integration, so I’ve removed those.
Other interesting notice, when HA GUI not available I dont see homeassistant container in the stoped container list docker ps -a
, so I was not able to collect logs by docker logs homeassistant
Any idea how to find root cause of the crashing ?
francisp
(Francis)
June 28, 2025, 9:23am
2
There should be a home-assistant.log.1 file in your folder, containing the log from before the crash
jtarjanyi
(Janos Tarjanyi)
July 20, 2025, 8:59am
3
Thanks, I’ve found it.
This is the last 3 line from the log:
2025-07-08 22:58:15.024 ERROR (MainThread) [homeassistant.core] Unable to remove unknown job listener (<Job onetime listen homeassistant_stop <function DataUpdateCoordinator.async_register_shutdown.<locals>._on_hass_stop at 0xd6e87d98> HassJobType.Callback <_OneTimeListener homeassistant.helpers.update_coordinator:<function DataUpdateCoordinator.async_register_shutdown.<locals>._on_hass_stop at 0xd6e87d98>>>, None)
> Traceback (most recent call last):
> File "/usr/src/homeassistant/homeassistant/core.py", line 1731, in _async_remove_listener
> self._listeners[event_type].remove(filterable_job)
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
> ValueError: list.remove(x): x not in list
> 2025-07-08 22:58:15.888 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: float got invalid input 'unavailable' when rendering template '{% set import_teljesítmény = states('sensor.pillanatnyi_import_teljesitmeny_a_2') |float %} {% set export_teljesítmény = states('sensor.pillanatnyi_export_teljesitmeny_a_2') |float %} {{((export_teljesítmény) - (import_teljesítmény)) | round (2)}}' but no default was specified') while processing template 'Template<template=({% set import_teljesítmény = states('sensor.pillanatnyi_import_teljesitmeny_a_2') |float %} {% set export_teljesítmény = states('sensor.pillanatnyi_export_teljesitmeny_a_2') |float %} {{((export_teljesítmény) - (import_teljesítmény)) | round (2)}}) renders=238848>' for attribute '_attr_native_value' in entity 'sensor.free_electric_capacity'
> 2025-07-08 22:58:15.892 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: float got invalid input 'unavailable' when rendering template '{% set import_total_teljesítmény = states('sensor.hatasos_import_energia_a_2') |float %} {% set export__total_teljesítmény = states('sensor.hatasos_export_energia_a_2') |float %} {{((import_total_teljesítmény) - (export__total_teljesítmény)) | round (2)}}' but no default was specified') while processing template 'Template<template=({% set import_total_teljesítmény = states('sensor.hatasos_import_energia_a_2') |float %} {% set export__total_teljesítmény = states('sensor.hatasos_export_energia_a_2') |float %} {{((import_total_teljesítmény) - (export__total_teljesítmény)) | round (2)}}) renders=200634>' for attribute '_attr_native_value' in entity 'sensor.electric_balance'
Template error were multiple times, but homeassistant_stop just onece. What is this?