![]() |
#1 |
Junior Member
![]() 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? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,143
Karma: 27110892
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. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
#4 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,874
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() 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. |
![]() |
![]() |
Advert | |
|
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
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 |