-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
"Developer tools > Statistics > Delete selected statistics" not working #133721
Comments
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) recorder documentation |
Hey there @ThomDietrich, @gjohansson-ST, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) statistics documentation |
Hi @gjohansson-ST , don't mean to be rude or anything alike, but are you sure the issue is not in the statistics part? Merry xmas! |
Hi. Non taken. Merry Christmas 🎄 |
Thanks for clarifying that, I was not aware LTS were on the recorder side, apologies for the confusion. |
The problem
Selecting statistics for deletion appears to be working, i.e. no errors are shown on the UI, no errors logged in the core logs, but nothing happens, statistic ids stay in the list and refuse to go away.
And no, it's not a matter of waiting, I've waited over one day long and they are still there.
What version of Home Assistant Core has the issue?
2024-12-5
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
core
Link to integration documentation on our website
No response
Diagnostics information
I've noticed a growing list of statistics with issues on my setup, now at 180.
When I tried to select all with issues and pressed delete, nothing happened.
Assuming it would be too much to ask for, I then selected only one problematic statistic, and again, nothing happened.
Here's a sample of some of them showing up on the UI (please note I ran this several times during 2 days, always with the same result):
And here are the entries in the core log (debug mode) when that call for deletion is done:
Some short time afterwards, the log indicated there was nothing more pending for the database, or so it seems:
2024-12-21 11:14:37.037 DEBUG (MainThread) [homeassistant.components.recorder.core] Recorder queue size is: 0
Since the statistics were still showing up, I did in sequence, with no practical results:
I then proceeded to check the database side and to my surprise those statistics ids don't even exist:
I then asked myself, could it be that there is no foreign key constraint and there are child rows on the stats?
But apparently no:
Could there be some sort of database corruption?
Apparently no, since all these SQL commands returned OK:
I've run out of resources, I don't have a clue where those stats on dev tools are coming from, but apparently they're saved on some sort of cache on HASS (???), since they don't exist on database side, and they are pesky little fellows that refuse to just die off.
All seems to indicate we have a bug in this module, but please, if I'm the one missing something or doing something wrong, do let me know.
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: