Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 03-10-2011, 08:16 AM   #1
phantom21
Junior Member
phantom21 began at the beginning.
 
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
phantom21 is offline   Reply With Quote
Old 03-10-2011, 09:08 AM   #2
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,433
Karma: 950001
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
user_none is offline   Reply With Quote
 
Enthusiast
Old 03-10-2011, 12:04 PM   #3
Manichean
Wizard
Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!
 
Manichean's Avatar
 
Posts: 3,130
Karma: 80446
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
Moderator Notice
Moved to appropriate subforum.
Manichean is offline   Reply With Quote
Old 03-12-2011, 03:36 AM   #4
phantom21
Junior Member
phantom21 began at the beginning.
 
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
phantom21 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 02:23 AM.


MobileRead.com is a privately owned, operated and funded community.