When HASS hangs a restart is not working I have to reboot the host, almost, all the time

Hi,

I have 2 big issues with my HASS 0.95.4, on a NUC.

  1. HASS hangs, from time to time, simply hangs, nothing specific in home-assistant.log
  2. In order to restart, most of the time (not always) if I do
    sudo docker restart homeassistant
    it does restart but it hangs (never starts totally) , the LOG is populated with around 20-30 lines and it stays there for hours/indefinetely

My only choice is to do
sudo reboot

and then, ALWAYS, it starts properly.

How to trouibleshoot?

This start with 95.4?
You use 95.3 or 95?

Do you have other docker running?
Issues?

Post that.

Thanks for answering. I have many HASSIO addon, as far as I know, have no problem … but for sure there is something, below docker ps …

I noticed I had a database of 4GB, so I just deleted that, and lets see if that’s causing the issue


me@ubuntu:~$ sudo docker ps
[sudo] password for me:
CONTAINER ID        IMAGE                                    COMMAND                                                                                                               CREATED             STATUS              PORTS                                                                                                                                                             NAMES
678cbc771493        hassioaddons/vscode-amd64                "/init"                                                                                                               About an hour ago   Up About an hour                                                                                                                                                                      addon_a0d7b954_vscode
a1c55999b635        esphome/esphome-hassio-amd64             "/init"                                                                                                               16 hours ago        Up 16 hours                                                                                                                                                                           addon_15ef4d2f_esphome
174cc82c1dc8        hassioaddons/nginxproxymanager-amd64     "/init"                                                                                                               16 hours ago        Up 16 hours         0.0.0.0:80-81->80-81/tcp, 0.0.0.0:                                                                                             443->443/tcp                       addon_a0d7b954_nginxproxymanager
ad43ad3cc336        hassioaddons/appdaemon3-amd64            "/init"                                                                                                               16 hours ago        Up 16 hours         0.0.0.0:5000->5000/tcp, 0.0.0.0:56                                                                                             65->5050/tcp                       addon_a0d7b954_appdaemon3
a4d205b69312        hassioaddons/tor-amd64                   "/init"                                                                                                               16 hours ago        Up 16 hours         0.0.0.0:9050->9050/tcp                                                                                                                                            addon_a0d7b954_tor
9a92179bc54a        hassioaddons/glances-amd64               "/init"                                                                                                               16 hours ago        Up 16 hours                                                                                                                                                                           addon_a0d7b954_glances
1c02a9521a40        homeassistant/amd64-addon-ssh            "/run.sh"                                                                                                             16 hours ago        Up 16 hours         0.0.0.0:23->22/tcp                                                                                                                                                addon_core_ssh
1e776a2d60bc        homeassistant/amd64-addon-samba          "/run.sh"                                                                                                             16 hours ago        Up 16 hours                                                                                                                                                                           addon_core_samba
6010dc53d9e8        homeassistant/amd64-addon-rpc_shutdown   "/run.sh"                                                                                                             16 hours ago        Up 16 hours                                                                                                                                                                           addon_core_rpc_shutdown
526079e6314e        hassioaddons/traccar-amd64               "/init"                                                                                                               16 hours ago        Up 16 hours                                                                                                                                                                           addon_a0d7b954_traccar
9806a0d4f65d        samccauley/amd64-googlebackup            "/run.sh"                                                                                                             16 hours ago        Up 16 hours         0.0.0.0:8055->8000/tcp                                                                                                                                            addon_3833edd4_googlebackup
b40606c99365        hassioaddons/zerotier-amd64              "/init"                                                                                                               16 hours ago        Up 16 hours                                                                                                                                                                           addon_a0d7b954_zerotier
ae6b67913e77        hassioaddons/influxdb-amd64              "/init"                                                                                                               16 hours ago        Up 16 hours         0.0.0.0:8086->8086/tcp                                                                                                                                            addon_a0d7b954_influxdb
b5488b633903        homeassistant/amd64-addon-duckdns        "/run.sh"                                                                                                             16 hours ago        Up 16 hours                                                                                                                                                                           addon_core_duckdns
98e6b68304c8        homeassistant/amd64-addon-mosquitto      "/run.sh"                                                                                                             16 hours ago        Up 16 hours         0.0.0.0:1883-1884->1883-1884/tcp,                                                                                              0.0.0.0:8883-8884->8883-8884/tcp   addon_core_mosquitto
94d0c393e1d0        bestlibre/amd64-syncthing                "/run.sh"                                                                                                             16 hours ago        Up 16 hours         0.0.0.0:8384->8384/tcp, 0.0.0.0:21                                                                                             027->21027/udp                     addon_53caca22_syncthing
b80f20002f3b        homeassistant/amd64-addon-dhcp_server    "/run.sh"                                                                                                             16 hours ago        Up 16 hours                                                                                                                                                                           addon_core_dhcp_server
6002c1548f2d        hassioaddons/sonweb-amd64                "/init"                                                                                                               16 hours ago        Up 16 hours         0.0.0.0:9541->9541/tcp                                                                                                                                            addon_a0d7b954_sonweb
c1d218568f9e        hassioaddons/chrony-amd64                "/init"                                                                                                               16 hours ago        Up 16 hours         0.0.0.0:123->123/udp                                                                                                                                              addon_a0d7b954_chrony
2c8bf7a44473        hassioaddons/pi-hole-amd64               "/init"                                                                                                               16 hours ago        Up 16 hours                                                                                                                                                                           addon_a0d7b954_pi-hole
2b9a53dede3a        homeassistant/amd64-hassio-supervisor    "/bin/entry.sh pyth                                                                                             o…"   44 hours ago        Up 16 hours                                                                                                                                                                           hassio_supervisor
68413b27a656        homeassistant/qemux86-64-homeassistant   "/bin/entry.sh pyth                                                                                             o…"   11 days ago         Up 16 hours                                                                                                                                                                           homeassistant
5081766211e7        philhawthorne/ha-dockermon               "/bin/sh -c 'npm st                                                                                             a…"   7 weeks ago         Up 16 hours         0.0.0.0:8126->8126/tcp                                                                                                                                            ha-dockermon

I keep getting this huge database, not sure why, below my config of recorder, I have many devices, but 4GB is waaayy too big


recorder:
 # db_url: /backup
  purge_interval: 2
  purge_keep_days: 3
  include:
    domains:
      - sensor
      - switch
      - light
      - binary_sensor
    entities:
      - lock.home_door
      - lock.office_door
  exclude:
    domains:
      - automation
      - weblink
      - updater
      - input_boolean
      - input_number
    entities:
      - sensor.date
      - sensor.time
      - sensor.last_boot
      - sun.sun
    event_types:
      - service_removed
      - service_executed
      - platform_discovered
      - homeassistant_start
      - feedreader
      - service_registered
      - call_service
      - component_loaded
      - logbook_entry
      - system_log_event
      - automation_triggered
      - script_started
      - timer_out_of_sync

95 is a lot more critical of config errors.

  1. Can you run previous version (<95.0) without error?
  2. Verify cause of any error from previous versions and clean that up. Double check for any config errors manually (not using config checker in UI)

Well, I deleted the 4Gb .db file, and now it ran 24 hours without hanging. Maybe is that