I encountered the following problematic scenario, and would like to make a suggestion for a solution:
Upgrade CE to version 9.0.1
Make sure that directory /storage/.kodi/addons/repository.coreelec doesn’t exist and directory /storage/.kodi/addons/packages is empty
Make sure that coreelect repository addon is up to date (version 9.0.2)
Try to update some of the addons - for example, pvr.iptvarchive, which in 9.0.1 was updated to 3.5.7.2
Result: even though an update to the plugin is detected by CE, when I try to update the addon manually I get the following error message in the log, and the update fails:
2019-03-07 13:37:49.696 T:3928982384 ERROR: Requested path (404) The page you were looking for doesn't exist. not found in known repository directories
2019-03-07 13:37:49.696 T:3928982384 ERROR: AddonInstallJob[pvr.iptvarchive]: failed to resolve addon install source path
Looking at coreelec configuration I saw that the path to the download location was correct:
Eventually, I traced the problem to a file /storage/.kodi/userdata/Database/Addons27.db: a ‘path’ attribute in a ‘metadata’ column of a table ‘addons’ contained wrong address (with ‘9.0’ in the path instead of ‘9.0.1’). After I manually removed the file (and then it was automatically rebuilt properly), the update began to work.
It seems upon update CE should remove/rebuild this database automatically.
After you removed the file, how it was automatically rebuilt? I delete file Addons27.db and reboot and CE enter in safe mode, reboot again and same results
Before that I try this because I can not install anything from CE add-ons repo , always installation failed
@dmdfpv: I suppose that the rebuild was caused either by reboot or by choosing ‘check for updates’ - I did both those things after removing the files.
P.S.: at the same times I removed Addons27.db, I also removed a file Textures13.db from the same directory, since it also contained links to old locations. I didn’t mention it previously since the main problem seemed to be related to Addons27.db, but maybe it is necessary to remove both of them.
is there any way to patch my CE instalation to replace CE addons repo to the correct version ? Im usin 9.0.2 but all instalation of anything from this repo fails. If I want to upgrade anything I have to download from nightly repository , I think my install of CE is using a wrong target to acces repository, I have no acces to 9.0.1, I think it was 9.0.0 instead. Need to fix this
Ignore the 9.0.2 it’s totally irrelevant and doesn’t mean anything, it’s been at this version since our 8.95.x versions.
Delete any user installed copy of the repository because this is where the problems start to happen, once you have done this restart Kodi and then you should be okay.
yes, but I dont have any user installed copy of the repository, I dont have this folder and I restart kodi but problem persist:
/storage/.kodi/addons/repository.coreelec
Also I found this folder but is read only and I cant change permision
/usr/share/kodi/addons/repository.coreelec
After update to 9.0.1 my kodi is trying to get addons from 9.0.0 I think… and I dont know how to change this , when I need an addon, I get via website of nightly repo