SQL: Attempt to write a readonly database
#1
Question 
I noticed this problem when the watched status of my series stopped changing. When I try to change an episode to watched manually, nothing happens.
I am using a live install (made with unetbootin) for a year now without any problems. I don't know why or when the problem exactly started. I run the live install from a USB drive. The last thing that could be the cause is the fact that I copied this usb drive from another one because it was getting too small. But everything still works and I think the problem was already there before the copy.

Pastebin: http://pastebin.com/nxpsUtcu

File listing (maybe it's a permission problem)
Code:
xbmc@Mediacenter:~/.xbmc$ ls -l
total 24
drwxrwxrwx 20 root root 4096 2011-02-08 14:01 addons
drwxrwxrwx  2 root root 4096 2010-12-19 11:58 media
drwxrwxrwx  2 root root 4096 2010-12-19 11:58 sounds
drwxrwxrwx  2 root root 4096 2010-12-19 11:58 system
drwxrwxrwx  5 root root 4096 2011-02-13 09:29 temp
drwxrwxrwx  7 root root 4096 2011-02-13 09:29 userdata
xbmc@Mediacenter:~/.xbmc$

I tried to do a chown on the .xbmc folder but that does not work (probably because it's stored on a FAT32 USB drive). But the rwx rights are 777 so that does not seem to be a problem.

Another thing I tried is to disable the webinterface, and disallow acces from all other programs to be sure te DB is not locked or something.
Reply
#2
I have a similar issue.
When I watch an episode to the end the watch flag is not set anymore. But when I set it manually it does work.
Reply
#3
croontje Wrote:When I try to change an episode to watched manually, nothing happens.

Yep Smile

I tried doing a fsck at boottime but it didn't help. The log after the filecheck and reboot:

http://pastebin.com/WXR3rnXJ

My wife watched an episode or 2 and at the end of the log you can see the write errors. It also seems to have problems with accessing other files.
Reply
#4
I discovered that the userdata folder suddenly is read only Confused
I checked out dmesg and saw a lot of this: Sad

Code:
[23341.763850] FAT: Filesystem error (dev sdc1)
[23341.763853]     fat_get_cluster: invalid cluster chain (i_pos 213063296)
[23341.763861] FAT: Filesystem error (dev sdc1)
[23341.763865]     fat_get_cluster: invalid cluster chain (i_pos 213063296)
[23341.763873] FAT: Filesystem error (dev sdc1)
[23341.763876]     fat_get_cluster: invalid cluster chain (i_pos 213063296)
[23341.763884] FAT: Filesystem error (dev sdc1)
[23341.763888]     fat_get_cluster: invalid cluster chain (i_pos 213063296)
[23341.763896] FAT: Filesystem error (dev sdc1)
[23341.763899]     fat_get_cluster: invalid cluster chain (i_pos 213063296)
[23341.763908] FAT: Filesystem error (dev sdc1)
[23341.763911]     fat_get_cluster: invalid cluster chain (i_pos 213063296)

My linux experience is not advanced to solve this atm. Googling on :p
Reply

Logout Mark Read Team Forum Stats Members Help
SQL: Attempt to write a readonly database0