Bonjour à tous,
Depuis quelques mois, je note que HA redémarre tout seul quand j’essaie d’effectuer des tâches dessus. Par exemple, j’ai une mise à jour qui est programmée tous les jours et cela fait redémarrer HA sans que la mise à jour soit complète.
De plus, je n’arrive pas à faire la mise à jour mensuelle depuis octobre alors que j’arrive à faire toutes les autres mises à jour.
Je voulais faire une sauvegarde complète de Ha pour refaire une install mais impossible de réaliser cette sauvegarde.
Est ce que quelqu’un aurait des pistes de résolution s’il vous plait ?
Salut
D’après ta configuration, t’as un raspberry pi, mais quelle version ? T’as une carte SD ou disque dur ? Alimentation officielle ?
Partage tes logs, il y a surement des erreurs.
Oui, je suis sur un Pi 4 avec un SSD et une alimentation officielle.
Dans les logs, je retrouve souvent cette erreur
Citation
2024-01-03 14:55:18.733 ERROR (SyncWorker_7) [homeassistant.components.influxdb] Cannot connect to InfluxDB due to ‹ HTTPConnectionPool(host=‹ a0d7b954-influxdb ›, port=8086): Max retries exceeded with url: /write?db=homeassistantDB (Caused by NewConnectionError( ›<urllib3.connection.HTTPConnection object at 0x7f800c96d0>: Failed to establish a new connection: [Errno -5] Name has no usable address’))'. Please check that the provided connection details (host, port, etc.) are correct and that your InfluxDB server is running and accessible. Retrying in 60 seconds.
2024-01-03 16:18:17.936 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
2024-01-03 16:18:17.940 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration alexa_media 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
2024-01-03 16:18:17.944 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration smartthinq_sensors 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
2024-01-03 16:18:17.949 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration rpi_gpio 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
2024-01-03 16:18:17.954 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration smartthinq 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
2024-01-03 16:18:17.957 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration unifigateway 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
2024-01-03 16:18:28.663 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
2024-01-03 16:18:28.814 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=192 from 2024-01-03 14:13:31.237116)
2024-01-03 16:18:50.080 WARNING (SyncWorker_3) [py.warnings] /usr/local/lib/python3.11/site-packages/urllib3/connectionpool.py:1056: InsecureRequestWarning: Unverified HTTPS request is being made to host '192.168.1.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
2024-01-03 16:18:50.087 ERROR (SyncWorker_3) [custom_components.unifigateway.sensor] Failed to connect to Unifi Security Gateway: Login failed - status code: 401
2024-01-03 16:19:00.089 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform rest is taking over 10 seconds.
2024-01-03 16:19:00.089 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform rest is taking over 10 seconds.
2024-01-03 16:19:00.689 WARNING (MainThread) [homeassistant.setup] Setup of input_button is taking over 10 seconds.
2024-01-03 16:19:00.758 WARNING (MainThread) [homeassistant.setup] Setup of counter is taking over 10 seconds.
2024-01-03 16:19:00.758 WARNING (MainThread) [homeassistant.setup] Setup of zone is taking over 10 seconds.
2024-01-03 16:19:01.221 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform command_line is taking over 10 seconds.
2024-01-03 16:19:05.135 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.schoolholiday }}'
2024-01-03 16:19:05.147 WARNING (MainThread) [homeassistant.components.rest.util] REST result could not be parsed as JSON
2024-01-03 16:19:05.148 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.holiday }}'
2024-01-03 16:19:05.270 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Lexmark MB2236adw' for ipp integration not ready yet: Invalid response from API: Error occurred while communicating with IPP server.; Retrying in background
2024-01-03 16:19:24.578 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Clé TV Mi' for androidtv_remote integration not ready yet; Retrying in background
2024-01-03 16:19:24.593 WARNING (MainThread) [motioneye_client.client] Connection failed to motionEye: Cannot connect to host 192.168.1.215:80 ssl:default [Connect call failed ('192.168.1.215', 80)]
2024-01-03 16:19:24.594 WARNING (MainThread) [homeassistant.config_entries] Config entry 'http://192.168.1.215/' for motioneye integration not ready yet: Cannot connect to host 192.168.1.215:80 ssl:default [Connect call failed ('192.168.1.215', 80)]; Retrying in background
2024-01-03 16:19:24.654 ERROR (MainThread) [homeassistant.components.notify] Failed to initialize notification service discord
2024-01-03 16:19:27.331 WARNING (MainThread) [homeassistant.config_entries] Config entry 'shelly_Chambre Parents' for shelly integration not ready yet: DeviceConnectionError(TimeoutError()); Retrying in background
2024-01-03 16:19:31.991 WARNING (MainThread) [homeassistant.components.mqtt.mixins] Erroneous JSON: online
2024-01-03 16:19:31.996 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.state }}'
2024-01-03 16:19:31.997 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: online, template: {{ value_json.state }})
2024-01-03 16:19:35.720 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Piper' for wyoming integration not ready yet: Unable to connect; Retrying in background
2024-01-03 16:19:35.725 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Whisper' for wyoming integration not ready yet: Unable to connect; Retrying in background
2024-01-03 16:19:39.439 WARNING (Recorder) [homeassistant.components.recorder.db_schema] State attributes for select.zigbee2mqtt_bridge_log_level exceed maximum size of 16384 bytes. This can cause database performance issues; Attributes will not be stored
2024-01-03 16:19:39.440 WARNING (Recorder) [homeassistant.components.recorder.db_schema] State attributes for sensor.zigbee2mqtt_bridge_permit_join_timeout exceed maximum size of 16384 bytes. This can cause database performance issues; Attributes will not be stored
2024-01-03 16:19:39.441 WARNING (Recorder) [homeassistant.components.recorder.db_schema] State attributes for sensor.zigbee2mqtt_bridge_version exceed maximum size of 16384 bytes. This can cause database performance issues; Attributes will not be stored
2024-01-03 16:19:39.446 WARNING (Recorder) [homeassistant.components.recorder.db_schema] State attributes for switch.zigbee2mqtt_bridge_permit_join exceed maximum size of 16384 bytes. This can cause database performance issues; Attributes will not be stored
2024-01-03 16:19:47.817 WARNING (MainThread) [motioneye_client.client] Connection failed to motionEye: Cannot connect to host 192.168.1.215:80 ssl:default [Connect call failed ('192.168.1.215', 80)]
2024-01-03 16:19:48.846 WARNING (Recorder) [homeassistant.components.recorder.db_schema] State attributes for select.zigbee2mqtt_bridge_log_level exceed maximum size of 16384 bytes. This can cause database performance issues; Attributes will not be stored
2024-01-03 16:19:48.847 WARNING (Recorder) [homeassistant.components.recorder.db_schema] State attributes for sensor.zigbee2mqtt_bridge_permit_join_timeout exceed maximum size of 16384 bytes. This can cause database performance issues; Attributes will not be stored
2024-01-03 16:19:48.848 WARNING (Recorder) [homeassistant.components.recorder.db_schema] State attributes for sensor.zigbee2mqtt_bridge_version exceed maximum size of 16384 bytes. This can cause database performance issues; Attributes will not be stored
2024-01-03 16:19:48.850 WARNING (Recorder) [homeassistant.components.recorder.db_schema] State attributes for switch.zigbee2mqtt_bridge_permit_join exceed maximum size of 16384 bytes. This can cause database performance issues; Attributes will not be stored
2024-01-03 16:20:02.835 WARNING (MainThread) [motioneye_client.client] Connection failed to motionEye: Cannot connect to host 192.168.1.215:80 ssl:default [Connect call failed ('192.168.1.215', 80)]
2024-01-03 16:20:26.224 WARNING (MainThread) [motioneye_client.client] Connection failed to motionEye: Cannot connect to host 192.168.1.215:80 ssl:default [Connect call failed ('192.168.1.215', 80)]
2024-01-03 16:21:09.678 WARNING (MainThread) [motioneye_client.client] Connection failed to motionEye: Cannot connect to host 192.168.1.215:80 ssl:default [Connect call failed ('192.168.1.215', 80)]
2024-01-03 16:21:58.582 ERROR (MainThread) [homeassistant.components.shelly] Error fetching shelly1-E8DB84D7C0DE data: Error fetching data: DeviceConnectionError()
2024-01-03 16:22:15.735 WARNING (MainThread) [homeassistant.components.tts] Setup of tts platform wyoming is taking over 10 seconds.
2024-01-03 16:22:16.601 WARNING (MainThread) [homeassistant.components.command_line] Updating Command Line Sensor CPU Temperature took longer than the scheduled update interval 0:00:10
2024-01-03 16:22:22.161 ERROR (MainThread) [dbus_fast.message_bus] "org.bluez.AdvertisementMonitor1.DeviceFound" with signature "o" could not be found
2024-01-03 16:22:25.439 ERROR (SyncWorker_5) [homeassistant.components.command_line.utils] Timeout for command: cat /sys/class/thermal/thermal_zone0/temp
2024-01-03 16:22:48.604 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /backups request
2024-01-03 16:22:48.605 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /backups -
2024-01-03 16:22:48.607 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /host/info request
2024-01-03 16:22:48.608 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /host/info -
2024-01-03 16:22:48.711 ERROR (MainThread) [homeassistant.components.shelly] Error fetching shellyswitch25-483FDA8233CE data: Error fetching data: DeviceConnectionError()
2024-01-03 16:22:48.745 ERROR (MainThread) [homeassistant.components.shelly] Error fetching shellyswitch25-E8DB84D233DC data: Error fetching data: DeviceConnectionError()
2024-01-03 16:22:48.748 ERROR (MainThread) [homeassistant.components.shelly] Error fetching shelly1-E8DB84D773F4 data: Error fetching data: DeviceConnectionError()
2024-01-03 16:22:48.753 ERROR (MainThread) [homeassistant.components.shelly] Error fetching shelly1-8CAAB57439A9 data: Error fetching data: DeviceConnectionError()
2024-01-03 16:22:48.797 ERROR (MainThread) [homeassistant.components.shelly] Error fetching shelly1-E8DB84D2D84F data: Error fetching data: DeviceConnectionError()
2024-01-03 16:22:48.803 ERROR (MainThread) [homeassistant.components.shelly] Error fetching shelly1-E8DB84D73534 data: Error fetching data: DeviceConnectionError()
2024-01-03 16:22:48.806 ERROR (MainThread) [homeassistant.components.shelly] Error fetching shelly1-E8DB84D638D4 data: Error fetching data: DeviceConnectionError()
2024-01-03 16:22:48.812 ERROR (MainThread) [homeassistant.components.shelly] Error fetching shelly1-8CAAB574CAD9 data: Error fetching data: DeviceConnectionError()
2024-01-03 16:22:48.815 ERROR (MainThread) [homeassistant.components.shelly] Error fetching shellyswitch25-E8DB84D3114C data: Error fetching data: DeviceConnectionError()
2024-01-03 16:22:48.820 ERROR (MainThread) [homeassistant.components.shelly] Error fetching shelly1-E8DB84D7C76B data: Error fetching data: DeviceConnectionError()
2024-01-03 16:22:48.823 ERROR (MainThread) [homeassistant.components.shelly] Error fetching shelly1-E8DB84D334FA data: Error fetching data: DeviceConnectionError()
2024-01-03 16:22:48.824 ERROR (MainThread) [homeassistant.components.shelly] Error fetching shelly1-E8DB84D46941 data: Error fetching data: DeviceConnectionError()
2024-01-03 16:22:48.826 ERROR (MainThread) [homeassistant.components.shelly] Error fetching shelly1-E8DB84D744BC data: Error fetching data: DeviceConnectionError()
2024-01-03 16:22:48.829 ERROR (MainThread) [homeassistant.components.shelly] Error fetching shelly1-E8DB84D632EF data: Error fetching data: DeviceConnectionError()
2024-01-03 16:22:48.874 ERROR (MainThread) [homeassistant.components.hassio.http] Client error on api supervisor/logs request Connection timeout to host http://172.30.32.2/supervisor/logs
2024-01-03 16:22:48.883 ERROR (MainThread) [homeassistant.components.hassio.http] Client error on api supervisor/logs request Connection timeout to host http://172.30.32.2/supervisor/logs
2024-01-03 16:22:48.888 ERROR (MainThread) [homeassistant.components.hassio.http] Client error on api addons/a0d7b954_unifi/icon request Connection timeout to host http://172.30.32.2/addons/a0d7b954_unifi/icon
2024-01-03 16:22:55.936 WARNING (MainThread) [motioneye_client.client] Connection failed to motionEye: Cannot connect to host 192.168.1.215:80 ssl:default [Connect call failed ('192.168.1.215', 80)]
2024-01-03 16:22:59.340 WARNING (MainThread) [homeassistant.components.mqtt.mixins] Erroneous JSON: online
2024-01-03 16:22:59.342 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.state }}'
2024-01-03 16:22:59.343 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: online, template: {{ value_json.state }})
2024-01-03 16:23:01.929 WARNING (MainThread) [homeassistant.components.mqtt.mixins] Erroneous JSON: online
2024-01-03 16:23:01.930 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.state }}'
2024-01-03 16:23:01.930 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: online, template: {{ value_json.state }})
2024-01-03 16:23:55.406 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /core/stats request
2024-01-03 16:23:55.410 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /supervisor/stats request
2024-01-03 16:23:55.413 ERROR (MainThread) [homeassistant.components.hassio] Error fetching hassio data: Error on Supervisor API:
2024-01-03 16:24:19.086 WARNING (MainThread) [motioneye_client.client] Connection failed to motionEye: Cannot connect to host 192.168.1.215:80 ssl:default [Connect call failed ('192.168.1.215', 80)]
Par contre tout ça c’est pas en lien avec la mise à jour, il se passe quoi dans les logs quand tu la lances ? Pas de message d’erreur comme quoi le système est en mauvaise santé ?
Motion eye, c’est parce que la caméra n’est pas allumé.
Shelly ça me fait toujours ça au démarrage mais ça fonctionne sans problème.
Template, je ne sais pas, j’ai bien essayé des trucs mais je n’utilise pas
Influx DB, pareil. J’ai mis en commentaire tout ce que je trouvais dans la page config. Le seul changement que ça a apporté, c’est que ça a mis plus longtemps avant de me dire que la sauvegarde n’était pas possible.
Quand j’essaie de faire la mise à jour, je finis par avoir cette info (cf capture d’écran) et HA redémarre.
Je n’ai pas de problème pour les autres mises à jour et ce message n’arrive qu’après avoir débuter la démarche de mise à jour. S’il n’avait pas internet, il ne verrait pas les MaJ dispo si ?
Dans les erreurs, je toruve celle ci The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
Ca pourrait venir de là ?
oui… et c’est pas forcement bon signe.
Tu risque d’avoir du mal à ne pas perdre les données (2 mois mini si tu as un backup de cette époque)
Carte SD ?
Alors l’historique des données m’importe peu. Ce que je cherche, c’est un moyen de retrouver ne situation stable sans réappairer tous les devices, réécrire les automatisations, refaire le lien avec Alexa, duckdns etc. Mais l’historique des données, je m’en moque.