2021-02-26, 13:07
I use an SQL DB for storing kodi data for multiple clients.
After upgrade from 18.9 to 19.0 kodi starts the DB upgrade:
This runs fine up to this query which takes forever (at least several hours):
One MariaDB thread on the server sticks at 100% CPU forever.
When I stop the query and restart kodi it continues withe the video DB but can't access the new music DB.
After deleting the new DBs and restarting kodi it gets to the same point. DB upgrade seems impossible.
Any idea?
After upgrade from 18.9 to 19.0 kodi starts the DB upgrade:
Code:
2021-02-26 10:57:39.202 T:925092 ERROR <general>: Unable to open database: MyMusic73 [1049](Unknown database 'MyMusic73')
2021-02-26 10:57:39.231 T:925092 INFO <general>: Old database found - updating from version 72 to 82
2021-02-26 11:13:44.868 T:925092 INFO <general>: Attempting to update the database MyMusic82 from version 72 to 82
2021-02-26 11:15:47.594 T:925092 INFO <general>: UpdateTables - updating tables
Code:
UPDATE album SET iDisctotal = (SELECT COUNT(DISTINCT (iTrack >> 16)) FROM song WHERE song.idAlbum = album.idAlbum GROUP BY idAlbum ) WHERE EXISTS (SELECT 1 FROM song WHERE song.idAlbum = album.idAlbum)
When I stop the query and restart kodi it continues withe the video DB but can't access the new music DB.
After deleting the new DBs and restarting kodi it gets to the same point. DB upgrade seems impossible.
Any idea?