03-10-2011, 08:16 AM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2011
Device: Coby Kyros
|
Calibre won't read metadata.db
I've been getting an error message when I try to change preferences or load a book into the program.
Using it on Linux, Ubuntu 9.10, with the latest version (I think) of Calibre. I've tried changing the permissions (initially they were root) and that hasn't worked. The errors are: A Tree Rustling over a Gravesite by Dennis Kiingati.pdf Traceback (most recent call last): File "/usr/lib/calibre/calibre/gui2/add.py", line 83, in run title = self.add(id, opf, cover, name) File "/usr/lib/calibre/calibre/gui2/add.py", line 128, in add id = self.db.create_book_entry(mi, cover=cover, add_duplicates=False) File "/usr/lib/calibre/calibre/library/database2.py", line 1371, in create_book_entry (title, series_index, aus)) File "/usr/lib/calibre/calibre/library/sqlite.py", line 170, in run raise DatabaseException(*res) DatabaseException: attempt to write a readonly database RemoteTraceback (most recent call last): File "/usr/lib/calibre/calibre/library/sqlite.py", line 141, in run ok, res = True, func(*args, **kwargs) OperationalError: attempt to write a readonly database Can someone advise how to fix the problems? Thanks, Mark |
03-10-2011, 09:08 AM | #2 |
Sigil & calibre developer
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
You need to have the metadata.db owned and writable by your user. You also need the entre calibre library folder that is with the metadata.db file owned and writable by your user.
Something like this will work: Code:
$ sudo chown -R your_user library_folder $ sudo chmod -R 744 library_folder |
03-10-2011, 12:04 PM | #3 |
Wizard
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Moderator Notice
Moved to appropriate subforum. |
03-12-2011, 03:36 AM | #4 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2011
Device: Coby Kyros
|
thanks user_none. That did resolve it. I had already changed most of the files ownership, but to mostly 644. With 744 everything now works.
Mark |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem editing metadata of books from Mobile Read | Alison C | Calibre | 14 | 01-13-2011 03:42 AM |
Calibre metadata.calibre not allowing updates | Chuckels550 | Calibre | 10 | 08-09-2010 05:12 PM |
Calibre Metadata | JayLaFunk | Calibre | 2 | 06-17-2010 10:04 AM |
Failed to read metadata | seagull | Calibre | 1 | 02-24-2010 01:29 PM |
0.6.40 Failed to read metadata | lisa.m | Calibre | 2 | 02-14-2010 12:50 PM |