Kodi Community Forum
XBMCbuntu - mysql issue - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: XBMCbuntu - mysql issue (/showthread.php?tid=208154)



XBMCbuntu - mysql issue - scott0_1 - 2014-11-06

Hello all,

I just installed XBMCbuntu and put my advancedsettings.xml file into /home/scott/.xbmc/userdata. If I go to the XBMCbuntu desktop and open from the menu, all of my files are found. If I try to start directly in XBMC, my files are not found. I only have one user on this system... Does XBMC start from another user I don't know about? Should my advancedsettings.xml be in another directory? Should I quit and put Windows on? Just kidding.

Thanks for any help you can give!

Scott


RE: XBMCbuntu - mysql issue - sveni_lee - 2014-11-06

Please check your kodi.log if the databases are up... or post a log here...
Maybe you xbmc starts to fast an your network is not conected.
If it is so you can try to change you network settings from dhcp to statc ip...


RE: XBMCbuntu - mysql issue - nickr - 2014-11-06

debug log (wiki)


RE: XBMCbuntu - mysql issue - scott0_1 - 2014-11-07

http://pastebin.com/4Lpj7R8T

This is booting directly into XBMC.

Again, when I go to the desktop in XBMCbuntu, it can find the sql database no problem. I will try to change my network settings so I have a static IP. Worth a try!


RE: XBMCbuntu - mysql issue - nickr - 2014-11-07

Or delay your xbmc startup until networking is up.


RE: XBMCbuntu - mysql issue - scott0_1 - 2014-11-07

http://forum.kodi.tv/showthread.php?tid=124428&pid=1034757#pid1034757

Edited /etc/network/interfaces and added:

auto eth0
iface eth0 inet dhcp

Did this and it worked like a charm. Thanks for the help!


RE: XBMCbuntu - mysql issue - fritsch - 2014-11-07

That won't really help as it is a race condition between xbmc starting and network being up.

There are two real solutions:
a) Let the upstart script really wait until network is up
b) http://kodi.wiki/view/Wake_on_lan <- use this as a workaround, that will wait until it can detect the network server (ignore the wake on lan)


RE: XBMCbuntu - mysql issue - happymellon - 2014-11-11

(2014-11-07, 09:13)fritsch Wrote: That won't really help as it is a race condition between xbmc starting and network being up.

There are two real solutions:
a) Let the upstart script really wait until network is up
b) http://kodi.wiki/view/Wake_on_lan <- use this as a workaround, that will wait until it can detect the network server (ignore the wake on lan)

I think the correct way is for Kodi to wait for the LAN to come up, or at least retry. Is there a bug raised for this since it is easily replicatable in XBMCbuntu?


RE: XBMCbuntu - mysql issue - fritsch - 2014-11-11

No, that's not the correct way.

Not every user has a network cable attached. This way it would wait forever. Even on a laptop, when you are sitting on the airport without network ... kodi would stop starting at all. It's really not kodi's job to wait for your network environment when not explicitely told.


RE: XBMCbuntu - mysql issue - happymellon - 2014-11-11

I didn't say that kodi should not run until a network exists, just that it should not try and access it until the network is up. I understand that not every user will have a network, but on the other hand if everyone who has an ssd and uses the network could end up with issues then surely this should be something to be looked at? Even if it is simply a case that if kodi has enabled the advanced settings, then it enables netinittimeout and netsettletime from the WOL stuff.