2022-03-15, 19:46
I have been running Kodi using a centralized database on a MariaDB docker on Unraid with 3 PC "clients" and 4 Fire TV Cubes running Kodi. This setup has been running flawlessly for over 5 years. Late last year, I let MariaDB on the Unraid server update to 10.5.13. Immediately, the Fire TV Kodi installs would crash with database errors. I have tried various remedies suggested on this forum and some fixed it for a while, but each time, Kodi would run once and then after any change in the database (such as marking a movie "watched") they would start crashing again.
So, I have given up trying to fix my current DBMS and database and I just want to start over.
However, I have some questions about the official method (https://kodi.wiki/view/MySQL/Setting_up_Kodi) and my particular setup.
Here are the steps as listed in the wiki.
1. Make files accessible over the network
This is already done. My media files are on SMB shares on the Unraid server.
2. Exporting
Since this assumes that you are moving from a computer-hosted library to a MySQL server, if I export the library now, I assume that the "Library" that it is "exporting" is actually in the MySQL database. Is this correct? If not, is there some way to import the database back into a local Library?
This method works by creating .nfo files in the media directories. This could be a problem. I store movies as full DVD/Bluray rips, in folders named Movie_Name(date). But, I have also manually created many .nfo files for special purposes (e.g. creating a "set" of a 2-DVD set, making fake "TV episodes" for my Youtube dowloads, etc.) Will the "Export Library" command write over these .nfo files? If so, is there any way to save the ones that I already have?
I would then delete (or actually save and move) the current MariaDB database files so that I can allow Kodi to create a new database.
3. MySQL and advancedsettings.xml
I would set this up as if I were doing it for the first time. Actually, I guess it is already set up properly.
4. Importing
If I understand how this works, it would read all the .nfo files created during the library export and then create the MySQL tables needed to form the database from them.
I assume that it would read all my manually-created .nfo files, as well?
5. Adding new Kodi devices to the MySQL setup
I think I don't have to do anything here since the PCs and Fire TVs are already set up?
One question though, it says
"Copy from the same userdata root folder the files, such as "favourites.xml", "sources.xml", "mediasources.xml", "passwords.xml" (if present)."
I actually never did this before. What use are the "sources.xml" and "mediasource.xml" files to the clients? Isn't all this information in the database itself?
Anyway, I have never copied these files to the clients and they still worked perfectly.
So that's my plan. Any help would be greatly appreciated.
Thanks.
So, I have given up trying to fix my current DBMS and database and I just want to start over.
However, I have some questions about the official method (https://kodi.wiki/view/MySQL/Setting_up_Kodi) and my particular setup.
Here are the steps as listed in the wiki.
1. Make files accessible over the network
This is already done. My media files are on SMB shares on the Unraid server.
2. Exporting
Since this assumes that you are moving from a computer-hosted library to a MySQL server, if I export the library now, I assume that the "Library" that it is "exporting" is actually in the MySQL database. Is this correct? If not, is there some way to import the database back into a local Library?
This method works by creating .nfo files in the media directories. This could be a problem. I store movies as full DVD/Bluray rips, in folders named Movie_Name(date). But, I have also manually created many .nfo files for special purposes (e.g. creating a "set" of a 2-DVD set, making fake "TV episodes" for my Youtube dowloads, etc.) Will the "Export Library" command write over these .nfo files? If so, is there any way to save the ones that I already have?
I would then delete (or actually save and move) the current MariaDB database files so that I can allow Kodi to create a new database.
3. MySQL and advancedsettings.xml
I would set this up as if I were doing it for the first time. Actually, I guess it is already set up properly.
4. Importing
If I understand how this works, it would read all the .nfo files created during the library export and then create the MySQL tables needed to form the database from them.
I assume that it would read all my manually-created .nfo files, as well?
5. Adding new Kodi devices to the MySQL setup
I think I don't have to do anything here since the PCs and Fire TVs are already set up?
One question though, it says
"Copy from the same userdata root folder the files, such as "favourites.xml", "sources.xml", "mediasources.xml", "passwords.xml" (if present)."
I actually never did this before. What use are the "sources.xml" and "mediasource.xml" files to the clients? Isn't all this information in the database itself?
Anyway, I have never copied these files to the clients and they still worked perfectly.
So that's my plan. Any help would be greatly appreciated.
Thanks.