-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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
MariaDB - Illegal mix of collations for operation 'UNION' - Logbook won't load #73235
Comments
recorder documentation |
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration ( |
Hi, I'm not experiencing this while running the recorder with The MariaDB add-on as well. So this combination by itself can work. |
Its likely the collations in your local database somehow differs between tables. When your tables were originally created they were likely created with the wrong character set and or collation. The recorder docs used to be quite unclear on what was needed. At some point in the past schema
The
|
Take a backup, check both the events, statistics_meta, and states tables to see if they need their collation changed (you can see this in phpmyadmin) then you can fix them manually by running the following: events: states: statistics_meta |
I don't think it would be a good idea to force everyone to through another table collation change in a patch release so I'm dropping the milestone on this one |
You are absolutely right! After altering the collation, everything was fixed instantly! My issue is fixed, but I don't know if there should maybe be a more robust and automatic check for this. |
Glad you got it sorted out! |
The problem
Hey there!
The errorlog below appears since updating to
2022.6
in general. I have waited with creating this issue till #73191 was merged and released in2022.6.4
, but the issue sadly still appears.I'm using the MariaDB-addon connected to the recorder, exactly like it's shown in the docs.
Since
2022.6
I can't access the logbook at all. The animation spins forever. Doesn't matter it's a singular entity logbook, or the logbook of all entities in the sidebar.The history graph works without a problem though.
Illegal mix of collations for operation 'UNION'
is the error, but I couldn't figure out why exactly.Anybody have an idea what might be the problem here?
What version of Home Assistant Core has the issue?
core-2022.6.4
What was the last working version of Home Assistant Core?
core-2022.5.5
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
The text was updated successfully, but these errors were encountered: