New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
History component #18035
Comments
What settings are you using for recorder? If you're using the default settings/SQLite DB, how big is your homeassistant_v2.db file? |
Im using default setting sqlite DB. I deleted the homeassistant_v2.db file yesterday so the file is not big at all. It worked before when the file was much bigger. And it always loaded eventually. Now it freezes. It tries toload but after a while it shows few identities and it freezes i cant scroll or anything. I got lately lot of these errors too Log Details (ERROR) Its from the components/recorder/util.py |
I'm seeing something similar on both 81.1/2. I've not seen any errors crop up but I may have to adjust my logging level. However brand new mysql database and all I see is cpu/memory spikes and history never loads. Saw the same thing before I switch from sqlite back end with a much larger database. Plays h*** on the rest of the system. Interestingly enough history graphs do seem to work. I'll adjust my logging and see if I can't get more details. Follow up: Let me know if I can provide more data. |
Same here. |
Same problem here on 0.81.5. Unusable slow History page. My database was around 450MB (with 4-5 weeks of data). I added into config:
then I manually purged database from service menu (called recorder.purge). The size of the database was the same, but the data was available for the last 5 days. The History page still loaded very slowly, if loaded at all. Then I executed {"keep_days":"5", "repack":"true"}, database size was shrinked to 100MB, but History page still was unusable slow. At this moment I have an unusable History page. |
Possibly related to home-assistant/frontend#2051 |
I have the same screens as @adrianmihalko. I have some entities if i click on them and i open them it should show you history. But since it some change a lot (every 10 seconds) it doesn't have enough time to load the data. |
Yes, I had some entities which are changing a lot (movement sensors) and if I disable them, history&logbook are fast again. Some how it would be good to fix this, because disabling history&recorder on these entities is not a great solution. |
I'm fairly sure this is the same issue as home-assistant/frontend#2051. One or the other should be closed as duplicate. I have a bit more information to add however. Whenever this situation is happening, I can reproduce the same behavior across multiple browsers on different machines. Currently I can reproduce on the following browser/OS combinations.
Here are the recorder logs at the moment I click on the history link in the UI. https://hastebin.com/nedalazebe.css I have also deleted my DB like others and for the hours after the DB is up, the history appears to be working fine but that is before the number of states and number of items is fully populated. Very quickly for me (1-2 day) the behavior degrades to the point that it locks up the browsers and they are unusable and must be force closed. And again, that happens across all of the browsers on all platforms that i've tested. Hope this helps and would very much like to see this fixed. |
The same here. |
These are SQL look-ups. They always spike the best hardware to 100% CPU usage, even for a small second. I had all these issues when I was on a PI with a running a small constricted database. Since then, I've moved to a much better hardware platform, I'm logging all devices, and I have zero slow down. Have you guys tried running home assistant on something other than a PI? I've seen these complaints on the forums many times, and the root cause has always been poor hardware. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Since last update 0.81.2 the history component freezes all the time. I cant load history anymore. The page always freezes. If a new day just start i can load it. But after few hours its impossible to load the history. I cleaned and delete the file . With restart everything works but after few hours its the same. Its too slow. Before it was slow too but it always loaded eventually after waiting a bit.
The text was updated successfully, but these errors were encountered: