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-03-2021, 03:10 AM   #1
alumoi
Enthusiast
alumoi began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Jan 2012
Device: kindle
Problem with recovery

After a power surge I got a corrupted metadata.db.
Trying the recovery got me the following error:

Traceback (most recent call last):
File "calibre\db\restore.py", line 281, in replace_db
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'E:\\recovery\\metadata.db' -> 'E:\\recovery\\metadata_pre_restore.db'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre\db\restore.py", line 129, in run
File "calibre\db\restore.py", line 285, in replace_db
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'E:\\recovery\\metadata.db'

OS is Windows 10. No other operations in progress on the library folder. Any ideas?
alumoi is offline   Reply With Quote
Old 05-03-2021, 03:59 AM   #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: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Try running the recovery using the command line calibredb tool

calibredb restore_database -r
kovidgoyal is offline   Reply With Quote
Advert
Old 05-03-2021, 08:33 AM   #3
alumoi
Enthusiast
alumoi began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Jan 2012
Device: kindle
Thank you, I will try and report it in a couple of weeks. I'm talking about 370K books here.
The gui recovery took only 10 ten days and failed
BTW: under linux it seems to work just fine, I tried it with only 1K books.
alumoi is offline   Reply With Quote
Old 05-03-2021, 09:16 AM   #4
alumoi
Enthusiast
alumoi began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Jan 2012
Device: kindle
Working like a charm, thank you very much!
Now to some serious disk trashing
alumoi is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-T1 1.04 sd recovery uboot Sony Reader Dev Corner 82 03-08-2020 07:17 PM
PRS-T2 Help needed with Recovery piotr20000 Sony Reader Dev Corner 2 03-21-2013 05:21 AM
Screwed recovery vicinc enTourage eDGe 3 07-14-2011 10:34 AM
ClockworkMod Recovery zartemis Nook Developer's Corner 19 05-10-2011 08:39 PM
Recovery from Library ExEmGe Sony Reader 6 05-03-2011 06:45 PM


All times are GMT -4. The time now is 01:24 PM.


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