Hi together,
i know it from openelec, there it was a known problem. Now, 3 Versions and 1,5 years later after setting up openelec i recognized Libreelec still got the same problem.
on a fast connection kodi boots before a successful connection to the shared mysql database could be established. using a wlan or powerline adapter slows down the connection so far that it works. but that's not a solution if you want to watch full-hd-content.
even there could be found some solutions on the net, none of them helped me.
tried the autostart.sh solution with:
"
#!/bin/sh
# Wait for network to come online....
# The option in OpenELEC to wait for network doesn't work yet.
while true ; do
if ifconfig eth0 | grep -q "inet addr:" ; then
echo "Network is up!"
break
else
sleep 1
fi
done
"
and enabled the "wait for network"-option on libreelec.
Nothing helps. Still have to reboot the raspberry(2) sometimes up to 3-4 times till it can connect the database on bootup. It drives me crazy.
my network is a 10gbit fibrechannel network and the raspberry is connected to a gbit switchport and i'm using LE 7.0.3.
my advancedsettings.xml is:
<advancedsettings>
<videodatabase>
<type>mysql</type>
<host>10.10.10.250</host>
<port>3306</port>
<user>kodi</user>
<pass>kodi</pass>
</videodatabase>
<musicdatabase>
<type>mysql</type>
<host>10.10.10.250</host>
<port>3306</port>
<user>kodi</user>
<pass>kodi</pass>
</musicdatabase>
<videolibrary>
<importwatchedstate>true</importwatchedstate>
<importresumepoint>true</importresumepoint>
</videolibrary>
</advancedsettings>
i would really appreciate, if someone got a final solution!