Server Version#: 1.41.3.9314
I’ve just discovered that searches of my server are not working at all.
All content still exists, and it’s manually accessible - via selecting from Recommended, Recently Added, the alphabetical list in Library, referencing within Collections, etc. etc. etc.
But, searches don’t result in any matches for titles from my server at all. Yes, I have my server selected in “Sources to Search”, and all libraries (Movies, TV Shows, etc.) are set to “Include in Home Screen and global search” (Settings → Manage: Libraries → select the library → Edit Library → Advanced)
Searches of other Plex servers which are accessible to me, work fine - so the issue appears to be limited to my server. I believe this is a fairly new development, but don’t know of any changes which would have caused it.
I’ve gone down the rabbit hole of several investigations, including the details indicated on forum posts such as https://www.reddit.com/r/PleX/comments/12b5szt/search_not_finding_any_local_media/
…but nothing seems to help. Toggling visibility, re-scanning library files, restarting the server, restarting the host, etc. - none seems to have any effect.
Again, the server is working just fine - the titles appear in the various lists, playback works flawlessly, etc. It’s just the search for titles (which I can see “right there”), doesn’t match anything.
I then went ahead and pursued the “corrupted database” route, and followed the instructions on https://support.plex.tv/articles/repair-a-corrupted-database/. The Plex SQLite execution of a PRAGMA integrity_check; did result in several issues being reported: Perhaps a few dozen “On tree page {foo}, Rowid {bar} out of order”; “row {foo} missing from index index_media_parts_on_deleted_at” indications. I then did a VACUUM; then a REINDEX; and reduced the size of the com.plexapp.plugins.library.db file by a few MB. But, a subsequent recovery effort failed: I can generate a recovery file, and then move the original file aside, but when trying to read back the recovered version, I get thousands of “Runtime error near line {foo}: UNIQUE constraint failed: activities.id (19)” indications - but even if not, trying to startup the Plex Server again, crashes hard.
So … maybe my database is corrupt? But again: Restoring a prior db version (before the SQLite manipulations) works just fine, and allows for visually selecting a title for flawless playback. It’s only searches which are non-functional.
Any insights? Yes, I guess I could just wipe things out entirely, and start over - but I’d rather not lose my collections, ratings, custom artwork selections, etc. - which it’s my understanding would happen, if I start fresh (uh, correct?).