XBMC on ATV2 crashes on start due to DB corruption issue?
#31
Now I have my ATV2's set up with MySQL and shared fanart and still have yet to see a crash or bomb I don't think. I have them both set up for direct boot into XBMC so any crash to frontrow would end up back in XBMC anyway. I'm VERY impressed so far with the latest.
Reply
#32
Hello,

I've come up with a script to restore the databases (and exit XBMC, by killing AppleTV process) when it gets corrupted:

Code:
#!/bin/bash

killall AppleTV
sleep 4;
for f in ~/Library/Preferences/XBMC/userdata/Database/*.db;
do
    mv $f $f.orig;
    sqlite3 $f.orig .dump | sqlite3 $f;
    rm $f.orig;
done;

echo Done!

I known this is not a solution. But I hope it will help everyone while developers are getting into the issue.
Reply
#33
ecsousa Wrote:Hello,

I've come up with a script to restore the databases (and exit XBMC, by killing AppleTV process) when it gets corrupted:

Code:
#!/bin/bash

killall AppleTV
sleep 4;
for f in ~/Library/Preferences/XBMC/userdata/Database/*.db;
do
    mv $f $f.orig;
    sqlite3 $f.orig .dump | sqlite3 $f;
    rm $f.orig;
done;

echo Done!

I known this is not a solution. But I hope it will help everyone while developers are getting into the issue.

Mhhh nice - i think you should add that you need to install sqlite3 before (apt-get install sqlite or apt-get install sqlite3 or so?!?)
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#34
Sorry,

Indeed, you will need to install sqlite3 in order to the script to work.

Code:
apt-get install sqlite3
Reply
#35
ecsousa Wrote:Sorry,

Indeed, you will need to install sqlite3 in order to the script to work.

Code:
apt-get install sqlite3

you can edit your post and add it ...
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply

Logout Mark Read Team Forum Stats Members Help
XBMC on ATV2 crashes on start due to DB corruption issue?0