You may not know your Classic CC catalog is corrupt!!
If you regularly tick "test integrity before backing up" when backing up your catalog upon LR exit, you may be in for a nasty surprise.
Short version: If the integrity test fails, LR backs up the catalog anyway, but it doesn't inform you that your backup is corrupted. At least, that's what's happening to me.
For the last few days, I've been struggling to recover from Lightroom declaring that my catalog is corrupt. I did the usual - replaced the catalog with a recent backup in order to start from there. That's always worked for me, but not this time! That backup was also corrupted, as were all of my recent backups. All LR attempts at repair fail.
There are two ways to test catalog integrity: (A) If you have LR set to prompt you for a catalog when starting (Preferences->General), you can tick "Test integrity of this catalog" at the lower right of the catalog-selection pop-up. (B) The other way is to tick "test integrity before backing up" in the LR exit dialog that results when LR is set to back up every time LR exits (Catalog Settings->General).
Here's the rub: If test integrity fails on startup (method A), a pop-up tells you so, LR exits, and it remembers that the catalog is corrupt. But if the integrity test fails on backup (method B), you never know it - no pop-up, no email, no nothing. What you do have is a backed-up catalog that won't pass the integrity test when restored! This problem might might be a local hardware/software issue, but I do know that others have encountered it. (See Lightroom Classic CC Backup Catalog Corrupted - I'm in that thread, but when I realized the underlying problem, I thought it best to start a new thread).
The obvious question is how could you be backing up a corrupt catalog if LR was working properly on it before exit? Unfortunately, just because LR is running on a catalog doesn't mean that the catalog is clean. Apparently, there are forms of corruption that are benign until certain operations trip up LR. I know this from experience. With some of my backups, LR will start OK with them (when restored), but sooner-or-later it crashes with words to the effect "LR can't read something in the catalog and has to exit." It doesn't seem to be predictable when or how the crash happens - just like some software bugs.
Hmm, maybe this is a Classic CC bug - wouldn't that be nice!.
So what likely happened to me is that, at some point in the past, my catalog became corrupted in a way that didn't result in a crash until the just the other day. In the meantime, I've been backing up that corrupted catalog, feeling completely safe since I always tick "test integrity before backing up". I haven't yet had time to see how far back I have to go to find a clean catalog, but I already know it's months.
I hope this isn't a universal problem (well, in a way I do, since then Adobe would jump on it!), but I would appreciate any advice and also knowing if there are others dealing with this.
As an aside:
It's too bad you can't completely regenerate a catalog by exporting everything and importing to a new, clean catalog. That works, of course, for image folders, but I don't know of any reasonably easy way to export/import collections and published collections. You can export a collection as a folder and import it to the new catalog, but this is very laborious if you use collections extensively. Regardless, I don't think LR facilitates moving published collections from one catalog to another (you can treat them as regular collections, but no publishing info is carried over). I don't understand why Adobe can't provide a tool for complete export/import.
Thanks.
js
