Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 05-21-2025, 03:31 PM   #1
richorlin
Enthusiast
richorlin began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Oct 2007
Device: Kindle
Database corruption: fix?

Somehow both the original and my external backup metadata files got corrupted and I can't open Calibre from original directory or the backup.
When I try, I get the error that there is no Calibre library.
Is there a workaround to force Calibre to open a library an reindex?
The only option I can think of is to create a new library and import all the books. That's 20K of books. Then they will not be in any date order, but all one date.
Than you for any help.
richorlin is offline   Reply With Quote
Old 05-21-2025, 03:47 PM   #2
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,726
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Try Library > Library Maintenace >Restore Database. If not work, re-importing to new library. Make sure to add custom columns back first.
ownedbycats is online now   Reply With Quote
Advert
Old 05-21-2025, 04:02 PM   #3
richorlin
Enthusiast
richorlin began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Oct 2007
Device: Kindle
Thanks, but I can’t open the library. It says there is no library in that folder, although there are 20k books there and the index files.
richorlin is offline   Reply With Quote
Old 05-21-2025, 04:25 PM   #4
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 45,051
Karma: 168808721
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
You could try running calibredb from the command line with calibre closed. See restore_database for some help. If you don't specify the library path, it will default to the one stored in your settings.

Code:
calibredb restore_database -r --library-path=<path to your library>
You might want to first try to create a new library. Switch to the new library and Add books from folders and subfolders pointing to your old library as the source.
DNSB is online now   Reply With Quote
Old 05-21-2025, 04:45 PM   #5
richorlin
Enthusiast
richorlin began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Oct 2007
Device: Kindle
I’ll try your suggestion for using the command line. From past experience, adding the books doesn’t preserve the original date. So all ten years of books have the same date.
richorlin is offline   Reply With Quote
Advert
Old 05-21-2025, 04:51 PM   #6
richorlin
Enthusiast
richorlin began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Oct 2007
Device: Kindle
How do I run calibredb from terminal (macos). Comes back command not found.
richorlin is offline   Reply With Quote
Old 05-21-2025, 06:01 PM   #7
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,644
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
First para ==>> calibre User Manual: Command Line Interface

BR
BetterRed is offline   Reply With Quote
Old 05-21-2025, 10:44 PM   #8
richorlin
Enthusiast
richorlin began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Oct 2007
Device: Kindle
Ran the terminal command and 50 mins later Calibre was up and running. Thanks all. A great community of users!
richorlin is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Clara HD Is occasional database corruption to be expected? Desertway Kobo Reader 25 05-23-2022 07:53 PM
Database Corruption / FW 3.5.0 PeterT Kobo Reader 7 08-26-2014 04:10 PM
Database Corruption during Installation aronan Calibre 3 09-10-2010 01:17 AM
Problems after database corruption ficbot Calibre 2 09-25-2009 02:11 PM
Database Corruption!! Alexander Turcic Announcements 0 07-22-2003 10:08 AM


All times are GMT -4. The time now is 12:47 PM.


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