View Single Post
Old 09-20-2015, 10:35 AM   #3
Josieb1
Grand Sorcerer
Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.
 
Posts: 5,090
Karma: 18051062
Join Date: Nov 2009
Location: UK
Device: Kindle Scribe, Coloursoft, PW SE, Kindle 6, Kobo Libra 2, Clara BW
Quote:
Originally Posted by eschwartz View Post
YOU CANNOT DO THAT!!!!

realtime syncing of calibre is subject to race conditions -- calibre and dropbox fighting over who gets to modify the database and which copy is the real copy.
Especially if you run calibre at the same time on both computers! calibre keeps the database in-memory, and it won't pick up on outside changes until it restarts -- by which time you will either have an irreparably damaged database or a bad copy from the aforementioned fight.


Run calibre on one computer, with Dropbox paused. Close calibre. Sync Dropbox.
Switch to other computer. Sync Dropbox fully. Pause Dropbox. Run calibre. Close calibre. Sync Dropbox.

Repeat ad nauseam.

...

What you saw, files on disk that calibre doesn't know about, is the classic, canonical example of not following the above directions, and as a result, corrupting the database.

To fix:
Run Library Maintenance ==> Restore database.
Then run Check library. Verify that you don't have loose files floating around -- if you do, move them out of the library and re-add them.
Thanks for the advice. I never have two PCs on at the same time but I will check what you have posted. I think my problem was a Dropbox issue after all as the version on my Surface failed to sync. I updated it with a beta version (the same version on my W7 laptop) and it synced all the files. I then just deleted any convicted metadata copies, so far it now looks okay.
Josieb1 is offline   Reply With Quote