![]() |
#1 |
Addict
![]() Posts: 203
Karma: 10
Join Date: Jul 2008
Location: Queensland, Australia
Device: Appraising the market
|
Library Maintenance Problem
Hi,
I have a very large database which is split over several libraries. I have run the Library check at odd times over many years and have had no problems on the initial run, a few on the second phase but nothing major. I have checked all my separate libraries and it is only the main Calibre library (naturally the largest!). I show an error report here: ************************************************** *****8 calibre, version 3.35.0 ERROR: Failed: Database integrity check failed, click Show details for details. Traceback (most recent call last): File "site-packages\calibre\gui2\dialogs\check_library.py", line 51, in vacuum File "site-packages\calibre\db\cache.py", line 63, in call_func_with_lock File "site-packages\calibre\db\cache.py", line 2053, in vacuum File "site-packages\calibre\db\backend.py", line 1116, in vacuum File "site-packages\calibre\db\backend.py", line 845, in execute File "c:\t\t\apsw-bdov6u\apsw-3.23.1-r1\src\cursor.c", line 236, in resetcursor CorruptError: CorruptError: database disk image is malformed ************************************************** ****** Can someone help with this hopefully telling me that there are fixes possible without any major heart attacks involved! Thanks mitch13 |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,354
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
disable your antivirus while you run the check
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Addict
![]() Posts: 203
Karma: 10
Join Date: Jul 2008
Location: Queensland, Australia
Device: Appraising the market
|
Hi Kovid,
Closed down virus apps. Same Result. Thought it might be as my other 6 libraries checked out OK Cheers mitch13 |
![]() |
![]() |
![]() |
#4 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Try opening the database with something like DB Browser for SQLite, and see what happens when you browse around. If it throws an error then its highly probable the db is genuinely corrupt.
Do you have any library backups? If so might be an idea to restore the latest one. You could try rebuilding the database with via Library maintenance->Restore database and do the Check Library again. Corruption of SQLite databases is very, very rare, almost always due to hardware faults. So aftre rebuilding the database I suggest you backup your data and run some diagnostic tests on your hard drive, it maybe on the point of catastrophic failure. BR |
![]() |
![]() |
![]() |
#5 |
Addict
![]() Posts: 203
Karma: 10
Join Date: Jul 2008
Location: Queensland, Australia
Device: Appraising the market
|
Thanks Better Red.
Will try those suggestions. mitch13 |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Addict
![]() Posts: 203
Karma: 10
Join Date: Jul 2008
Location: Queensland, Australia
Device: Appraising the market
|
Better Red,
Loaded Calibre library into DB Browser for SQLite without a problem. How can I tell if there is a problem through this proram? Would it not load if it was corrupted? If it OK in SQLite what now? Thanks mitch13 |
![]() |
![]() |
![]() |
#7 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
But the solution will be to use the Library maintenance->Database restore tool. That will build a new database from the metadata.opf files in the book folders. Then run Library maintenance->Check library tool and resolve any anomalies. BR |
|
![]() |
![]() |
![]() |
#8 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Code:
PRAGMA integrity_check |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Maintenance large library | tomcooke | General Discussions | 11 | 06-11-2018 03:23 PM |
Calibre Library Maintenance | mitch13 | Library Management | 1 | 02-08-2018 10:15 AM |
Problem with template functions and library maintenance | Terisa de morgan | Library Management | 12 | 03-11-2017 09:43 PM |
Missing Library/Library Maintenance button | babyshelley | Library Management | 2 | 06-20-2015 01:05 PM |
Library maintenance -> Check library | mlevin77 | Library Management | 9 | 07-22-2014 08:03 PM |