2022-12-04, 22:05
Not sure if there are any SQLite expert around but my problem is exactly the same as in https://forum.kodi.tv/showthread.php?tid=345011, only difference is my client is Android / Shield Pro.
In short, Kodi / SQLite fails to initialize Addons33.db when it is located in mounted SMB share, in my case Shield Pro mount.
1. I'm using Android -specific xbmc_env.properties which points to Shield mounted SMB share on Linux server
2. Kodi is able to create directories (.kodi and all default folders for example) and files (temp/kodi.log for example) in the mount so it is not a write permission issue
3. If Addons33.db does not exist in Database/ Kodi tries to initialize it but fails mysteriously
2022-12-04 18:08:23.544 T:11828 DEBUG <general>: Initialize, updating databases...
2022-12-04 18:08:23.577 T:11828 ERROR <general>: SQL: [Addons33.db] SQLite error SQLITE_ERROR (no such table: version)
Query: SELECT idVersion FROM version
2022-12-04 18:08:23.581 T:11828 ERROR <general>: Process error processing job
2022-12-04 18:08:53.583 T:11828 DEBUG <general>: Thread JobWorker 155871622384 terminating (autodelete)
I understand that SQLite is not especially designed to run on network shares, however it would be nice to know what the actual issue here is.
I took look at the source code and cannot figure out why there is no logging about creating tables etc. before version -table is queried causing an error, or if SQLite fails somehow why there are no errors related to that.
In short, Kodi / SQLite fails to initialize Addons33.db when it is located in mounted SMB share, in my case Shield Pro mount.
1. I'm using Android -specific xbmc_env.properties which points to Shield mounted SMB share on Linux server
2. Kodi is able to create directories (.kodi and all default folders for example) and files (temp/kodi.log for example) in the mount so it is not a write permission issue
3. If Addons33.db does not exist in Database/ Kodi tries to initialize it but fails mysteriously
2022-12-04 18:08:23.544 T:11828 DEBUG <general>: Initialize, updating databases...
2022-12-04 18:08:23.577 T:11828 ERROR <general>: SQL: [Addons33.db] SQLite error SQLITE_ERROR (no such table: version)
Query: SELECT idVersion FROM version
2022-12-04 18:08:23.581 T:11828 ERROR <general>: Process error processing job
2022-12-04 18:08:53.583 T:11828 DEBUG <general>: Thread JobWorker 155871622384 terminating (autodelete)
I understand that SQLite is not especially designed to run on network shares, however it would be nice to know what the actual issue here is.
I took look at the source code and cannot figure out why there is no logging about creating tables etc. before version -table is queried causing an error, or if SQLite fails somehow why there are no errors related to that.