0
Under review

Deleting books from database

Zedd Epstein 8 years ago updated 8 years ago 2

This morning shortly after completing scanning my library, Ubooquity seems to have removed all of the books it had added. I have 5 40kb zips of logs containing:

20160114 08:23:06 [Scanner thread] INFO com.ubooquity.data.database.a - Deleting book with id 65081 from database

What did I configure incorrectly, and is there any way to prevent it from deleting books from the db without confirmation?

Under review

When scanning files, Ubooquity iterates over the folders you defined in your preferences. For each file it finds, it adds it to the database (or updates it if the files is already in the database but has changed since the last scan).

Then it removes from the database all the files that it was not able to find during the scan.


There is no point in adding a deletion confirmation as the deleted files are only the ones which in fact do not exists anymore at the place they used to be (for Ubooquity, as for the rest of your computer, the "identity" of a file is its full path).


This means your files were removed from the database because Ubooquity was not able to find them during the scan. This could happen (from the top of my head):

  • if you changed the location of your library (If Ubooquity still scans the old location, it won't find anything)
  • if your preferences file ("preferences.xml") has been modified of corrupt one way or another. That's where Ubooquity stores the folders it has to scan
  • if your library was on a network drive that was unavailable at the time of the scan

For the last case (network drive), a workaround would be to disable autoscan in Ubooquity options and do only manual scans when the network drive is available.

It looks like my raid fell over after I started a scan. Thanks!