Posts: 7
Joined: Feb 2017
Reputation:
0
My Kodi Database is on a NFS - NAS system, and works very well. However when I take a laptop or Android phone away from home, and try to start Kodi (for streaming Radio/IPTV) Kodi hangs while looking for the database.
This can take at least 10 minutes to clear.
Is there any switch/option/workaround that will force Kodi to give up looking for the database after say 30 seconds?
Posts: 785
Joined: Feb 2015
Reputation:
38
Rechi
Team-Kodi Member
Posts: 785
No, Kodi needs those databases.
Posts: 9
Joined: Mar 2012
Reputation:
0
Try turning off WiFi until Kodi starts. Once going you can turn it on again.
I've had the same issue with my Tablets. With the WiFi off start times are about normal
Good Luck
Posts: 943
Joined: Oct 2011
Reputation:
64
gibxxi
Posting Freak
Posts: 943
I have an advancedsettings.xml file with my NAS (Maria SQL) databases defined within, but I also have local SQLite databases as backups. When I want to switch between MariaDB and local, I simply comment out the database lines in the advancedsettings.xml file (<!-- -->) and fire up Kodi, it then uses the local db's rather than the Maria DB ones. There's probably some way you could have two advancedsettings.xmls, one with remote databases defined, and one without, then switch between them by way of a batch script or autohotkey script, but I wouldn't be able to advise you on that in terms of actual code.
Posts: 7
Joined: Feb 2017
Reputation:
0
>> You could set up two profiles, one with and one without linkage to the NAS databases.
Thanks Klojum ... That would be a neat way of doing it, if it worked... BUT it would appear that Kodi looks for the NAS resources BEFORE it brings up the Profile menu.. It still hangs with no NAS, but when you rename/comment out the advancedsettings.xml file, it then starts up and shows the Profile menu..
However Terryjs suggestion to turn off the WiFi, is even simpler, and also works on a PC, and allows the Profile menu to come up, and the required profile to be selected.. Then re-enable the WiFi...
Thanks all for your suggestions..
>> Is it worth putting in a change-request, for the Profile menu to be launched ASAP in Kodi's startup?
Andrew
Posts: 12,483
Joined: Oct 2014
Reputation:
607
It depends how you set it up.
Currently the master profile is loaded before the selection screen, so if that has the mySQL or other remote database in it then it won't work. But if you leave the master profile blank and use two other profiles with local and remote then it works.
Posts: 7
Joined: Feb 2017
Reputation:
0
Thanks Darren, That works.
Andrew