Hello everyone,
I’m running Plex Media Server version 1.41.9.9961 on an iMac, and today I discovered that my music library is no longer recognizing new files. Any newly added music files are not being detected or added to the library during a scan.
I ran a database integrity check on com.plexapp.plugins.library.db using PRAGMA integrity_check; and encountered some errors. I then tried to repair the database, but during the repair process, I ran into the following errors:
Runtime error near line 4129468: UNIQUE constraint failed: fts4_metadata_titles_icu_segdir.level, fts4_metadata_titles_icu_segdir.idx (19)
Runtime error near line 4129469: UNIQUE constraint failed: fts4_metadata_titles_icu_segdir.level, fts4_metadata_titles_icu_segdir.idx (19)
Runtime error near line 4129470: UNIQUE constraint failed: fts4_metadata_titles_icu_segdir.level, fts4_metadata_titles_icu_segdir.idx (19)
Despite these errors, the repair seemed to complete successfully. After the repair, both com.plexapp.plugins.library.db and com.plexapp.plugins.library.blobs.db now return ok for PRAGMA integrity_check;.
However, new files are still not being added. Existing files that have already been added to the library can be accessed and played normally, but none of the new files are being recognized. It seems like all libraries are unable to detect new files.
For directories that already exist in the library, the Alerts page sometimes shows that new items were created, but these new items never appear in the library. Newly added directories are not recognized during scanning—Plex seems to think that certain directories or files do not exist.
I tried restoring a previous backup, but it also seems to have issues—using the backup directly prevents Plex from starting. Right now, my Plex library cannot add new files at all, and I’m concerned about losing my existing metadata.
Has anyone encountered this issue? How can I fix this without losing my current library metadata?
Note: I want to emphasize that this is not a file naming or folder structure issue. All my files and directories strictly follow Plex’s official guidelines. Please rule out this as a cause—I am certain that the problem is caused by the database.
Another issue is that I am currently unable to search my own media library in Plex. The search results only show content from other libraries I have access to or content provided by Plex, but none of my own media appears. This might be related to the previously reported database index errors.