Duplicate files in database

Server Version#: 1.20.3.3437

Somehow a second server process spawned, which scanned in duplicate file paths for the same items, making Plex behave as though 2 versions existed of every scanned file. Obviously it’s easy to close the 2nd process, but the carnage it created in the library is substantial and that is baffling since it’s extremely basic logic - if a path exists already, don’t add it a second time.

The ‘optimize database’ function does not clear out these duplicates, which would solve issues related to that problem. Can Plex please have logic added to the scanner which prevents duplicate file paths from being added? There is no situation in which an IDENTICAL path should be added twice to the same media item.

To reiterate: a check to the media scanner to prevent a duplicate path being scanned into an item would prevent any issues like this from occurring, and an adjustment to the ‘optimize database’ function to add this (check and remove duplicate paths) would help clean up libraries which are already affected.

1 Like

Same issue, have not found a solution yet, I delete the library (in Settings > Manage Libraries), then re-added it and over time (hours) it recreated doubles or triples of everything

I checked my actual files and there’s no duplicates, my id3 tags are clean, it’s just frustrating and I can’t find a solution

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.