Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-02-2020, 08:51 AM   #1
asv
Junior Member
asv began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2020
Device: iPad
Exclamation Calibre has deleted the whole library

Greetings,

As "Issues" section at GitHub is disabled, this seems to be the best place to post this.

Preface:
I have been using Calibre for years on various Linux(es) and currently on Windows 10 system. Today, the application has greeted me with an empty window. Slightly surprised, I have checked the library folder which turned out to be entirely empty, both books and DB are gone. No error message was shown.

Interlude
I see some logs here, but content isn't alarming:
Code:
..\AppData\Local\calibre-ebook.com\calibre\QtWebEngine\viewer-lookup\Platform Notifications\
Next,
Code:
..\AppData\Local\calibre-cache\
Code:
\AppData\Roaming\calibre\
and
Code:
\AppData\Roaming\calibre\
all look intact.

While the
Code:
\AppData\Local\Calibre_library\
is empty.

Foreword
It was a fun ride and I am grateful to the Kovid G. and contributors for their work.
Hope my humble donations have helped at least a tiny bit.

I have archived the following folders in case developer(s) is/are reading this forum and interested in some files:
Code:
Calibre_library
calibre-cache
calibre-ebook.com
calibre-parallel
asv is offline   Reply With Quote
Old 09-02-2020, 09:02 AM   #2
asv
Junior Member
asv began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2020
Device: iPad
Important bits:

Versions that has caused the data loss: v4.22
OS: Windows 10.0.18363.0 (FDE/HVCI/CG enabled)
Installed plugins: "Find duplicates" v1.6.3
asv is offline   Reply With Quote
Advert
Old 09-02-2020, 09:10 AM   #3
asv
Junior Member
asv began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2020
Device: iPad
Lightbulb

UPDATE
As it turns out, library content was moved to "Recycle bin", not deleted permanently.

However, these files were zeroed (0 bytes):
Code:
metadata.db
metadata_db_prefs_backup.json
Restoring metadata from a backup...
asv is offline   Reply With Quote
Old 09-02-2020, 09:18 AM   #4
asv
Junior Member
asv began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2020
Device: iPad
Peculiar fact:
Restoring metadata.db and moving the books back doesn't bring the database to life. Main Calibre window is empty after the application restart.
asv is offline   Reply With Quote
Old 09-02-2020, 09:56 AM   #5
stumped
Wizard
stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.
 
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
i would blame that out of date looking windows 10 you are running and/or its associated windows defender AV, not calibre.

assuming its not user error, it looks like an over zealous AV or reg. cleaner or some such has removed what it thought was junk / malware.

NB if you are expecting to find your library books in \AppData\Local\Calibre_library.. you are looking in the wrong place, unless you have a very strange non standard install. your books sh\uld be in documents/calibre library. NB If you have allowed microsoft One drive to sync that folder, which it now tries to do by default, you have a new leading suspect...

Create an empty new library then use " add books" to add all the books back again from a backup folder, that should give you a working library

Last edited by stumped; 09-02-2020 at 10:03 AM.
stumped is offline   Reply With Quote
Advert
Old 09-02-2020, 10:18 AM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,740
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by stumped View Post
i would blame that out of date looking windows 10 you are running and/or its associated windows defender AV, not calibre.

assuming its not user error, it looks like an over zealous AV or reg. cleaner or some such has removed what it thought was junk / malware.

NB if you are expecting to find your library books in \AppData\Local\Calibre_library.. you are looking in the wrong place, unless you have a very strange non standard install. your books sh\uld be in documents/calibre library. NB If you have allowed microsoft One drive to sync that folder, which it now tries to do by default, you have a new leading suspect...

Create an empty new library then use " add books" to add all the books back again from a backup folder, that should give you a working library
It's not Windows 10 (even though it's not the current version) or Windows Security. I cannot say what it is, just what it isn't.
JSWolf is offline   Reply With Quote
Old 09-02-2020, 10:19 AM   #7
asv
Junior Member
asv began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2020
Device: iPad
Quote:
Originally Posted by stumped View Post
i would blame that out of date looking windows 10 you are running and/or its associated windows defender AV, not calibre.
1909 is supported until May 2021 for Home/Pro/WS/IoT editions.

Quote:
Originally Posted by stumped View Post
assuming its not user error, it looks like an over zealous AV or reg. cleaner or some such has removed what it thought was junk / malware.
Not using any kind of "reg. cleaners" and Windows Defender log has nothing related to the library:
Code:
> Get-MpThreatDetection | Select-Object -Property Resources | grep -i lib
>
Quote:
Originally Posted by stumped View Post
NB if you are expecting to find your library books in \AppData\Local\Calibre_library.. you are looking in the wrong place, unless you have a very strange non standard install.
This is indeed where I store my books.


Quote:
Originally Posted by stumped View Post
NB If you have allowed microsoft One drive to sync that folder, which it now tries to do by default, you have a new leading suspect...
Fortunately, uninstalling OneDrive was amongst the first steps I have taken after installing the OS

Quote:
Originally Posted by stumped View Post
Create an empty new library then use " add books" to add all the books back again from a backup folder, that should give you a working library
I have managed to restore metadata.db from a backup, is there a "community-approved" way to merge it back? I'd like to have proper meta for PDFs, etc.
asv is offline   Reply With Quote
Old 09-02-2020, 10:30 AM   #8
stumped
Wizard
stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.
 
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
Quote:
Originally Posted by JSWolf View Post
It's not Windows 10 (even though it's not the current version) or Windows Security. I cannot say what it is, just what it isn't.
if the library books really were deliberately kept in.. appdata/local/calibre_library
then many utilities / security suites will monitor/clean that if allowed. Because Its a prime location for ransomware to download to & launch from. Perhaps OP can elaborate on where/why his library was set up to be?

( out of curioslty, I inspected my appdata/local for a possible calibre_library folder, I have no such entry )
stumped is offline   Reply With Quote
Old 09-02-2020, 11:21 AM   #9
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
And using Windows recovery tools, will clean %appdata%
IMHO a very 'Not Safe' location
(I just used the tool to 'Reset' recently. Programs/drivers that have been running under W10 for years, are not even allowed to install. Appdata was wiped (moved to a 'old') of all non-windows entries )
theducks is offline   Reply With Quote
Old 09-02-2020, 01:17 PM   #10
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,586
Karma: 14328510
Join Date: Nov 2019
Device: none
Windows also has a thing where it periodically runs and removes what it considers junk/dead files. I was stupidly storing stuff in my windows temp folder and one day found them gone after they'd been there awhile untouched.
hobnail is offline   Reply With Quote
Old 09-02-2020, 01:39 PM   #11
stumped
Wizard
stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.
 
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
Quote:
Originally Posted by asv View Post
1909 is supported until May 2021 for Home/Pro/WS/IoT editions.
..
.... It was not clear from #5 that you have 1909. The number therein began with 18....

I have managed to restore metadata.db from a backup, is there a "community-approved" way to merge it back? I'd like to have proper meta for PDFs, etc.
Metadata for each book is backed up in opf files stored alongside the books, if you still have those.

I think one of the library management repair tools will use those to rebuild what is in metadata.db, but it's not something I have ever tried to do

Last edited by stumped; 09-02-2020 at 01:41 PM.
stumped is offline   Reply With Quote
Old 09-02-2020, 06:16 PM   #12
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,718
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by stumped View Post
NB if you are expecting to find your library books in \AppData\Local\Calibre_library.. you are looking in the wrong place, unless you have a very strange non standard install. your books sh\uld be in documents/calibre library.
FTR: Following MS's introduction of Controlled Folder Access (CFA) as an anti-ransomware measure in 2017 the default location for Calibre's default library was changed from %USERHOME%\Documents to %USERHOME% (e.g. C:/Users/BetterRed/Calibre Library).

See ==>> Prevent ransomware and threats from encrypting and changing files - Windows security | Microsoft Docs.

If 'CFA' is enabled the %USERHOME%\Documents folder gets "Controlled" by default.

BR

Last edited by BetterRed; 09-02-2020 at 06:19 PM.
BetterRed is online now   Reply With Quote
Old 09-02-2020, 10:29 PM   #13
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,343
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre has no code to delete entire libraries, in fact even when you actually ask it to remove a library it does not delete it, simply removes the listing from inside calibre.
kovidgoyal is offline   Reply With Quote
Old 09-02-2020, 10:43 PM   #14
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,969
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I seem to recall that certain updates for Windows 10 had problems with losing user data. I wonder if that might've happened here. Or some antivirus getting angry.
ownedbycats is online now   Reply With Quote
Reply

Tags
calibre, data loss


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre Library deleted 7xct1a cybmole Calibre 3 09-11-2014 01:55 PM
Calibre library getting deleted on linux server Zeros Calibre 3 09-10-2014 06:13 AM
Calibre stores automatically deleted files in the library sup Library Management 13 11-13-2013 11:56 PM
Accidentally deleted my entire Calibre Library Japes Library Management 3 06-19-2013 12:21 AM
Accidently Deleted my Calibre Library! Dang it! willmize Calibre 13 10-10-2010 05:03 AM


All times are GMT -4. The time now is 12:39 AM.


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