JanneSa
(Janne Saare)
May 12, 2021, 4:59am
21
Hi
The documentation on the Recorder has been updated.
Working connection string. It is formatted just like an URL. (no semicolons or curly brackets)
mssql+pyodbc://username:password@SERVER_IP:1433/DB_NAME?charset=utf8mb4&driver=FreeTDS
I was forced to recreate database due to date conversion as mentioned above.
2 Likes
I tried this but it didnāt help me.
2021-05-13 12:02:31 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup to mssql+pyodbc://username:password@serverip:1433/homeassistant?charset=utf8mb4;driver=FreeTDS: (pyodbc.InterfaceError) ('IM002', '[IM002] [unixODBC][Driver Manager]Data source name not found and no default driver specified (0) (SQLDriverConnect)')
Re-creating the database you lose your history right ;o? hmmm Iāll wait for another solution than.
Hey guys, Is there an open issue on GitHub for this one?
encor50
(Encor50)
May 17, 2021, 7:52am
25
i change the DB link now i get a migration fail ā¦ i dont know how to do the steps from burken
can anyone help please ?
MSSQL not working once again. It seems to be not working more often than it works.
1 Like
This worked for me. Thank you!
encor50
(Encor50)
June 3, 2021, 6:23am
28
again with the 2021.6 what changed this time ?
henri1
(Henri)
June 3, 2021, 10:08am
29
Does someone know how the database should look like so it works? If I just try to manually do the required changes. Schema_changes table and all.
rhodges
(Randell)
June 3, 2021, 11:49am
30
Yup, brokenā¦
2021-06-02 22:01:13 WARNING (Recorder) [homeassistant.components.recorder.migration] Database is about to upgrade. Schema version: 14
2021-06-02 22:01:13 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: 'options'
2021-06-02 22:01:13 ERROR (Recorder) [homeassistant.components.recorder] Error during schema migration
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/recorder/__init__.py", line 683, in _migrate_schema_and_setup_run
migration.migrate_schema(self, current_version)
File "/usr/src/homeassistant/homeassistant/components/recorder/migration.py", line 64, in migrate_schema
_apply_update(instance.engine, session, new_version, current_version)
File "/usr/src/homeassistant/homeassistant/components/recorder/migration.py", line 452, in _apply_update
_drop_foreign_key_constraints(
File "/usr/src/homeassistant/homeassistant/components/recorder/migration.py", line 322, in _drop_foreign_key_constraints
and foreign_key["options"].get("ondelete")
KeyError: 'options'
henri1
(Henri)
June 3, 2021, 8:15pm
31
Seems to be because of this Oracle DB support which requires schema version change to 16.
Works for me after I commented out this part of the code:
encor50
(Encor50)
June 4, 2021, 5:18am
32
Well thanks for the info but i dont know how to do that
bdraco
(J. Nick Koston)
June 5, 2021, 5:22am
33