PMS: Phantom duplicates

Last 5 added files are all showing duplicates, but there are no actual duplicates on file for any of them. Get info shows that each file is absolutely identical, which shouldn’t be possible in the same folder.

Version 1.6.1.3722

To start the debugging process.

Hover over the media, click the ellipsis, click ‘Get Info’ and see the pathnames.

@ChuckPA said:
To start the debugging process.

Hover over the media, click the ellipsis, click ‘Get Info’ and see the pathnames.

Pathnames are identical.

@trumpy81 said:
Make sure you have Empty trash automatically after every scan enabled in Plex settings->server->library, don’t forget to ‘Save Changes’ if needed.

With that set, then perform the following in order:

  1. Optimise Database
  2. Empty Trash
  3. Clean Bundles

Wait for each step to complete before moving to the next step.

Fingers crossed, that should remove the phantom entries. You may need to repeat once or twice and/or refresh the browser page before it cleans up.

If the above does not help at all, then please provide your Plex logs. Go to Plex settings->server->help and click on the download logs button and attach the .zip file to your next post, thanks.

No change, have attached log.

One other thing I noticed today. A new movie showed as duplicate, so I went to its page and then looked at get info. which showed only one file. Then when I went back to main page it wasn’t showing duplicate anymore. A tv show added today is showing duplicate with the usual identical path and filenames, this doesn’t disappear.

Might have to do that. Will deleting and rebuilding the libraries erase watched status?

Ok as the duplicate issue was never fixed, I decided to nuke the library and start again. And it’s now back. As usual, Plex believes a piece of media that was just added exists in two identical places.

If the ‘duplicate’ problem is ‘back’, either a) your media or b) you have a symlink / hardlink causing a duplicate resolution path. Duplicate paths is the most common error

Ok put some more time into this and found others with similar issues like:


Problem is that neither of the solutions apply here. I do use Sonarr and Sabnzbd. Issue happens when Sonarr is turned off anyway, but also not got it tied into Plex like one poster there.

Sab downloads onto system drive, but then moves the completed file into the library Plex scans which is on another hdd(s). Had it setup in a similar manner for years.

EDIT: Ok noticed that if I disable automatic library updates the duplicate doesn’t happen. But of course this is a bad solution. Last two added files have however been automatically added but assume this is because Library is so new and I noticed it fetching metadata for another series? Presumably when it settles down without the auto switch the Lib will have to be updated manually.

I did look into Filebot but discovered it was commercial software. I’m not going to buy software to fix this unless it was definitely related to renaming. This happens to new library files and not existing ones, which do not have any problems being added to library whatever their name is.

Why would this be working for years and then suddenly Plex doesn’t like the name format?

Just to clear the naming point up though, I will change SAB naming to Plex compliance and see how that goes.

Well I didn’t bother with the renaming because it seemed highly unlikely to be at issue and didn’t make any sense. I have now just run that test with adding a file to the Library with the Plex naming scheme and the issue is still present, so yes we can now discount that idea.

Well it seems your guess was wrong as well, so unless you have a better one it might be a good idea to stop posting about an idea you had from some outdated log, which doesn’t have as much relevance now.

Ok think I finally solved this.

Noticed in logs that hardware acceleration was having trouble, which lead me to documentation about NSSM (non sucking service manager) causing problems with this due to the way it ran the session. So I went with Plex as a service (https://github.com/cjmurph/PmsService/releases) which I have actually used before, and now I get no duplicates at all.

So it seems the NSSM session also caused duplicates to be created, and as such is a bad solution for running Plex as a service.