2013-03-20, 19:42
For those of you having similar issues..
I had a couple boxes one had an SSD and it appears that the xbmc may have been starting to quickly.
And when xbmc started my menus would disappear - but i would still be able to go through the directory structure and be able to watch movies...
After a lot of reading, It thought this was related only to my SSD drive, but after new install I found that a regular 5400 rpm was going the same thing.
The fix is pretty simple we need to create a script to check that your MySQL server can be reached before xbmc continues.
.
first find your mysql server's ip address:
Next we need to change to the following directory:
Then create a file (i use vim (if you want to use it 'sudo apt-get install vim')):
the contents of your file should be as follows (the ip=1.1.1.1 should be changed to the ip address you found in your advancedsettings.xml file above :
then reboot and it should be working:
If this helps you let me know by Clicking Here and giving me a Positive Rating
I had a couple boxes one had an SSD and it appears that the xbmc may have been starting to quickly.
And when xbmc started my menus would disappear - but i would still be able to go through the directory structure and be able to watch movies...
After a lot of reading, It thought this was related only to my SSD drive, but after new install I found that a regular 5400 rpm was going the same thing.
The fix is pretty simple we need to create a script to check that your MySQL server can be reached before xbmc continues.
.
first find your mysql server's ip address:
Code:
cat /home/<your xbmc username>/.xbmc/userdata/advancedsettings.xml |grep '<videodatabase>' -A6
Next we need to change to the following directory:
Code:
cd ~/.config
Then create a file (i use vim (if you want to use it 'sudo apt-get install vim')):
Code:
vim autostart.sh
the contents of your file should be as follows (the ip=1.1.1.1 should be changed to the ip address you found in your advancedsettings.xml file above :
Code:
#!/bin/bash
## Set max tries for PING
count=15
## Set IP to Ping
ip=1.1.1.1
## Run some code
while [[ $count -ne 0 ]];do
/bin/ping -c 1 $ip &> /dev/null
rc=$?
sleep 1
if [[ $rc -eq 0 ]];then
count=1
fi
((count=$count-1))
done
then reboot and it should be working:
Code:
sudo reboot
If this helps you let me know by Clicking Here and giving me a Positive Rating