I noticed yesterday that for the past few days new content was not being picked up by Plex. I did the Plex dance. I did just about everything. Then I stumbled upon @ChuckPa github about the DBRepair script to correct the issue. Well just my luck it failed with this error code
Runtime error near line 3528125: UNIQUE constraint failed: fts4_metadata_titles_icu_docsize.docid (19)
Error 1 from Plex SQLite while importing from ‘./dbtmp/library.plexapp.sql-2024-09-13_18.17.12’
Also after trying to manually trying #6(reindex) I get this error code:
Backing up of databases
Backup current databases with ‘-BACKUP-2024-09-13_18.49.20’ timestamp.
Reindexing main database
Error: stepping, database disk image is malformed (11)
Reindexing main database failed. Error code 11 from Plex SQLite
Reindexing blobs database
Reindexing blobs database successful.
Reindex complete.
Not sure what to do at this point. For a little back story, I was running my Plex server on my Synology via the Plex package from the package center. I built a new Unraid server, and migrated everything into the new Docker container. I did have trouble when zipping the database on the Synology, certain files would fail to zip, but none the less I migrated everything over and spun up the container on Unraid (linuxserver.io). Plex has been working fine for months on the new server up until yesterday. Someone please help me lol