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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-02-2012, 09:06 PM   #1
mwerth1
Junior Member
mwerth1 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2012
Device: Kindle, Motorola Xoom
Database corrupt

I have searched the forum, tried all the tricks, un-installed Calibre and re-installed it. It's funny that on a clean install it still remembers where the database was located with the previous install. This implies that it doesn't un-install completely.

Regardless, when I start Calibre I get this in the Show Details:

Traceback (most recent call last):
File "site-packages\calibre\gui2\main.py", line 190, in initialize_db
File "site-packages\calibre\library\database2.py", line 228, in __init__
File "site-packages\calibre\library\database2.py", line 331, in initialize_dynamic
File "site-packages\calibre\library\database2.py", line 548, in refresh_format_cache
File "site-packages\calibre\library\sqlite.py", line 314, in run
DatabaseException: database disk image is malformed
RemoteTraceback (most recent call last):
File "site-packages\calibre\library\sqlite.py", line 271, in run
File "site-packages\calibre\library\sqlite.py", line 172, in get
DatabaseError: database disk image is malformed

If I try to create the database in a new location by clicking on the "No" button, I still get an error:
Traceback (most recent call last):
File "site-packages\calibre\gui2\main.py", line 177, in initialize_db_stage2
File "site-packages\calibre\library\database2.py", line 228, in __init__
File "site-packages\calibre\library\database2.py", line 331, in initialize_dynamic
File "site-packages\calibre\library\database2.py", line 548, in refresh_format_cache
File "site-packages\calibre\library\sqlite.py", line 314, in run
DatabaseException: database disk image is malformed
RemoteTraceback (most recent call last):
File "site-packages\calibre\library\sqlite.py", line 271, in run
File "site-packages\calibre\library\sqlite.py", line 172, in get
DatabaseError: database disk image is malformed

The database and library are located on a network drive. Attempts to move the database to a local drive have also failed.

Any suggestions?
mwerth1 is offline   Reply With Quote
Old 08-02-2012, 10:46 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,803
Karma: 4998511
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
delete the metadata.db file in your calibre library and then follow the instructions here: http://manual.calibre-ebook.com/faq....n-app-is-blank


And dont put the calibre library on a network drive, that is just asking for trouble.
kovidgoyal is offline   Reply With Quote
 
Enthusiast
Old 08-07-2012, 06:34 PM   #3
mwerth1
Junior Member
mwerth1 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2012
Device: Kindle, Motorola Xoom
Removed the metadata.db.old file from the network drive. Started Calibre and when presented with the corrupt dayabase dialog, I selected "No" and chose a new location on a local drive. I was given a bad database location error this time. Here is the details:
calibre, version 0.8.58
ERROR: Bad database location: Bad database location u'I:\\Calibre'. calibre will now quit.

Traceback (most recent call last):
File "site-packages\calibre\gui2\main.py", line 177, in initialize_db_stage2
File "site-packages\calibre\library\database2.py", line 228, in __init__
File "site-packages\calibre\library\database2.py", line 331, in initialize_dynamic
File "site-packages\calibre\library\database2.py", line 548, in refresh_format_cache
File "site-packages\calibre\library\sqlite.py", line 314, in run
DatabaseException: database disk image is malformed
RemoteTraceback (most recent call last):
File "site-packages\calibre\library\sqlite.py", line 271, in run
File "site-packages\calibre\library\sqlite.py", line 172, in get
DatabaseError: database disk image is malformed
mwerth1 is offline   Reply With Quote
Old 08-07-2012, 06:59 PM   #4
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,503
Karma: 5567067
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by mwerth1 View Post
Removed the metadata.db.old file from the network drive. Started Calibre and when presented with the corrupt dayabase dialog, I selected "No" and chose a new location on a local drive. I was given a bad database location error this time. Here is the details:
calibre, version 0.8.58
ERROR: Bad database location: Bad database location u'I:\\Calibre'. calibre will now quit.

Traceback (most recent call last):
File "site-packages\calibre\gui2\main.py", line 177, in initialize_db_stage2
File "site-packages\calibre\library\database2.py", line 228, in __init__
File "site-packages\calibre\library\database2.py", line 331, in initialize_dynamic
File "site-packages\calibre\library\database2.py", line 548, in refresh_format_cache
File "site-packages\calibre\library\sqlite.py", line 314, in run
DatabaseException: database disk image is malformed
RemoteTraceback (most recent call last):
File "site-packages\calibre\library\sqlite.py", line 271, in run
File "site-packages\calibre\library\sqlite.py", line 172, in get
DatabaseError: database disk image is malformed
Double slashes after a colon?
theducks is offline   Reply With Quote
Old 08-07-2012, 07:31 PM   #5
mwerth1
Junior Member
mwerth1 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2012
Device: Kindle, Motorola Xoom
I finally got the re-install to work.
I un-installed Calibre. I cleaned every entry referencing Calibre from the registry (quite a few). I found a Calibre folder at c:\Users\<myusername>\appdata\Roaming\Calibre and deleted it.
This time when I re-installed I accepted the default location for the library in My Documents and was presented with an empty library. I then re-added all my books and all was well.
mwerth1 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
Corrupt database tonyjbird Introduce Yourself 5 04-03-2012 06:26 AM
Corrupt database jjansen Calibre 4 10-26-2011 11:51 PM
Corrupt database message error: Disk is Full? Debby Calibre 3 03-09-2011 03:23 PM
corrupt database, (powercut), possible solution Perkin Calibre 7 09-19-2010 11:01 PM
Sony PRS 505 Database Corrupt the_callant Calibre 3 04-08-2009 09:41 PM


All times are GMT -4. The time now is 06:55 AM.


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