Same problem here, same error in log. If I keep hitting restart, after a few errors it picks up and restarts. But it takes a very long time before I can call the UI again.
Also get this in the log after restart: 2018-12-23 15:03:28 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=4 from 2018-12-22 17:30:55.496863)
Don’t know if it’s related.
I believe I’m seeing the same thing in my HA in Docker on Synology. I basically have to start/stop the container for reboots. My db is in MySQL, so I don’t think the db size is my issue.
I finally ended up deleting my database to solve this as has been suggested, but it seems like a crappy non-solution.
I was never able to find anywhere it has been acknowledged. My recollection is that somewhere further up this thread someone filed a bug and the bug was closed telling them to delete their DB, which isn’t a fix.
Based on my experience the issue is that the DB gets too large. This is especially so if you are running HASSIO on a SD card.
your immediate solution is to delete the DB and restart. Long term solution is to keep the DB to a much smaller size. See https://www.home-assistant.io/components/recorder/
I personally run these settings which keep my DB at around 250MB. Although I have since also moved my HASSIO from my Pi3 to an old laptop with SSD.
#cleanup DB
recorder:
purge_keep_days: 5
purge_interval: 1
exclude:
domains:
- automation
- weblink
- updater
- zwave
entities:
- sun.sun # Don't record sun data
- sensor.last_boot # Comes from 'systemmonitor' sensor platform
- sensor.date
I have the same problem. I can not restart HA. I am on 0.100.02 vesrion
How can I delete the DB history?
I don’t even know where it is.
Can someone help please?
Also, where do I place the below code? In automation yaml?
#cleanup DB
recorder:
purge_keep_days: 5
purge_interval: 1
exclude:
domains:
- automation
- weblink
- updater
- zwave
entities:
- sun.sun # Don't record sun data
- sensor.last_boot # Comes from 'systemmonitor' sensor platform
- sensor.date