![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 35
Karma: 2135976
Join Date: Sep 2011
Location: Eastern Canada
Device: Samsung Galaxy Tab S2
|
I Broke my database
I'm the only one using this laptop so I blame me for braking Calibre.
I've had for a while undeletable entries with nothing in the folders but the new one is I cannot drag and drop files in to add anymore. I get this error . . . [calibre, version 7.24.0 ERROR: Errors while adding: Failed to add any books, click "Show details" for more information ---------------------------------------------------------------------- Failed to add the book: File name here With error: Traceback (most recent call last): File "calibre\gui2\add.py", line 457, in add_book File "calibre\db\legacy.py", line 337, in create_book_entry File "calibre\db\cache.py", line 85, in call_func_with_lock File "calibre\db\cache.py", line 2147, in create_book_entry File "calibre\db\backend.py", line 1147, in execute File "C:\t\t\apsw-42s16m2x\src\cursor.c", line 240, in resetcursor apsw.CorruptError: CorruptError: database disk image is malformed] I tried to recup from a backup but to nojoy I stopped there to not brake it any further. I'm not afraid to work but this is way beyond my paygrade. I'm more like a hammer . . . |
![]() |
![]() |
![]() |
#2 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 35
Karma: 2135976
Join Date: Sep 2011
Location: Eastern Canada
Device: Samsung Galaxy Tab S2
|
I forgot to add that I did all the standard stuff, upgraded everything, rebooted Calibre and the winX machine several time. I hope I can get help
|
![]() |
![]() |
![]() |
#3 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
|
I believe you will be able to restore the library via Library Maintenance, but I would wait for the developers input on that log before doing anything
|
![]() |
![]() |
![]() |
#4 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#5 | ||
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Also see ==>> https://manual.calibre-ebook.com/faq.html#id47 Quote:
|
||
![]() |
![]() |
![]() |
#6 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
|
Yep maybe not restorable to the original state, given also that the OP had noticed undeletable entries before.
As for the drag and drop not working issue, I've experienced that a few times in the past but I can't remember what worked to solve it. |
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 35
Karma: 2135976
Join Date: Sep 2011
Location: Eastern Canada
Device: Samsung Galaxy Tab S2
|
right now, I'm running the plugin to embed metadata in case I have to restart from scratch
|
![]() |
![]() |
![]() |
#8 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#9 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 35
Karma: 2135976
Join Date: Sep 2011
Location: Eastern Canada
Device: Samsung Galaxy Tab S2
|
well, okay got lucky a little, it crashed at 14% while having diner
|
![]() |
![]() |
![]() |
#10 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 35
Karma: 2135976
Join Date: Sep 2011
Location: Eastern Canada
Device: Samsung Galaxy Tab S2
|
ok stopped. And to add to the problem, here is the error message for the undeletable items
[ calibre, version 7.24.0 ERROR: Unhandled exception: <b>CorruptError</b>:CorruptError: database disk image is malformed calibre 7.24 embedded-python: True Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.19045') Python 3.11.5 Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free') Interface language: None EXE path: C:\Program Files\Calibre2\calibre.exe Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 19, 0) && DeDRM (7, 2, 1) && Package KFX (from KFX Input) (2, 19, 0) && Access Aide (0, 1, 15) && Audio M3U (1, 0, 0) && Author Book Count (2, 2, 3) && Author Book Count Hierarchy (1, 2, 5) && Barnes & Noble (1, 5, 6) && BookFusion Plugin (0, 8, 1) && CalibreSpy (1, 0, 92) && Check Books (0, 1, 8) && Clean Comments (0, 2, 1) && Clean Metadata (0, 0, 6) && Comicvine (0, 14, 2) && Comments Cleaner (1, 15, 0) && Count Pages (1, 13, 6) && DOC Input (1, 0, 1) && Ebook Translator (2, 3, 5) && Editor Chains (1, 1, 9) && Embed Comic Metadata (1, 6, 6) && EpubCheck (0, 2, 5) && EpubMerge (3, 2, 0) && EpubSplit (3, 10, 0) && Extract ISBN (1, 6, 5) && FanFicFare (4, 41, 0) && Fantastic Fiction (1, 7, 1) && Favourites Menu (1, 3, 1) && FictionDB (1, 4, 2) && Find Duplicates (1, 10, 9) && GetFileName (0, 2, 0) && Goodreads (1, 8, 2) && Goodreads More Tags (1, 2, 1, 2) && ISFDB3 (1, 4, 1) && Import List (1, 9, 4) && Job Spy (1, 0, 239) && KFX metadata reader (from KFX Input) (2, 19, 0) && From KFX (2, 19, 0) && KFX Input (2, 19, 0) && Kindle Collections (1, 7, 29) && Kindle hi-res covers (0, 5, 1) && KindleUnpack - The Plugin (0, 83, 1) && Kobo Metadata (1, 10, 0) && Kobo Utilities (2, 17, 2) && Last Modified (0, 8, 5) && Manage Series (1, 5, 2) && Mass Search-Replace (1, 8, 2) && Media File Importer (1, 0, 27) && Modify ePub (1, 8, 5) && Obok DeDRM (7, 2, 1) && Quality Check (1, 13, 16) && QuarantineAndScrub (3, 6, 122) && Reading List (1, 15, 4) && Reformat plugin (2, 4, 0) && Save Virtual Libraries To Column GUI (2, 3, 0) && Standard Ebooks (1, 0, 0) && TTS to MP3 (0, 6, 0) && View Manager (1, 10, 3) && Wikidata (2, 0, 0) && Wikidata gui (2, 0, 0) && ePub Extended Metadata {Writer} (0, 11, 4) && ePub Extended Metadata {Reader} (0, 11, 4) && ePub Extended Metadata (0, 11, 4) Traceback (most recent call last): File "calibre\gui2\actions\delete.py", line 462, in delete_books File "calibre\gui2\actions\delete.py", line 439, in do_library_delete File "calibre\gui2\library\models.py", line 477, in delete_books_by_id File "calibre\db\cache.py", line 85, in call_func_with_lock File "calibre\db\cache.py", line 2225, in remove_books File "calibre\db\backend.py", line 2324, in remove_books File "calibre\db\backend.py", line 1159, in executemany File "C:\t\t\apsw-42s16m2x\src\cursor.c", line 240, in resetcursor apsw.CorruptError: CorruptError: database disk image is malformed ] |
![]() |
![]() |
![]() |
#11 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 35
Karma: 2135976
Join Date: Sep 2011
Location: Eastern Canada
Device: Samsung Galaxy Tab S2
|
and yes got to do a major cleanup, just fibured I'd fix the library before stirin it up even more.
|
![]() |
![]() |
![]() |
#12 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
In calibre with the defective library selected, in the toolbar, right click the icon that shows the name of the library and select Library maintenance. Then select Restore Database. That will go through the library and read all the information in the metdata.opf files and recreate the database. |
|
![]() |
![]() |
![]() |
#13 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,611
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Is it my imagination that there are regular reports of broken databases?
|
![]() |
![]() |
![]() |
#14 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#15 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,475
Karma: 239219543
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I restore the database to backup? - database disk image is malformed | lumping-sugar66 | Kobo Reader | 7 | 09-10-2024 11:57 AM |
I think I broke my database | gvantass | Calibre | 2 | 06-15-2019 06:37 PM |
Aura I can't believe I broke it.... | booklover6 | Kobo Reader | 20 | 03-13-2015 04:58 PM |
Calibre Database cp Kindle Database | mitch13 | Library Management | 1 | 05-22-2011 07:33 PM |
Opus Help! I think I broke it | Crusader | Bookeen | 19 | 12-07-2009 06:43 PM |