Open mackowskim opened 1 month ago
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (recorder
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
recorder documentation recorder source (message by IssueLinks)
Today I've dropped all the constraints, restarted HA and it's creating them again. At least will not have 30 of them in the end of the day.
I'm also fighting with the same problem since days ๐
@mackowskim if dropping the constraints will work, can you please describe how you did it? Thx ๐
No it did not work. Last night I gave up and downgraded HA to 2024.8.1
It works fine after the downgrade and I need to purge the database to make it bearable.
No it did not work. Last night I gave up and downgraded HA to 2024.8.1
It works fine after the downgrade and I need to purge the database to make it bearable.
Did the same. Downgrade to 2024.8.1 and everything is working fine ๐
Correct me if I'm wrong but it seems 2024.9 beta is fixing this issue?
Correct me if I'm wrong but it seems 2024.9 beta is fixing this issue?
Do you mean #123645 ?
Short update: With 2024.9.3 the database migration script run through without any problems. It took around 24h for a 23GB database ๐
The problem
New DB upgrade brought new issues on the database level.
Home Assistant upgrade process creates the same constraints repetively on the 'states' and 'events' tables, therefore the upgrade process never finishes.
My database is already 70GB of size and indexes itself takes over 40GB.
Steps to reproduce on a large database:
(old_state_id and attributes_id takes over 10h to finish for each one)
Is there any check if the FK already exits? Is there any timeout set when the prosess tries to recreate the same FK again?
I'm fighting with this upgrade process for 2 days already and no luck.
What version of Home Assistant Core has the issue?
core-2024.8.2
What was the last working version of Home Assistant Core?
core-2024.8.1
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Recorder
Link to integration documentation on our website
https://www.home-assistant.io/integrations/recorder/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response