Plex unmatches movies randomly

Server version: Version 1.5.5.3634
OS: MacOS 10.12.4

Some (132 that i saw, maybe more) of the 1400+ movies were no longer matched to a movie. The video was there and you could play it. but all movie information was missing. If you update the library, it will rematch the movies, but issue will happen again

Matched: http://imgur.com/QzC30T8
Un-Matched: http://imgur.com/9voqvGZ

  1. how is the file of this particular movie named?

  2. Where are your movie files actually stored? Locally on your server device or on an external device or even a network share?

  3. Settings - Server - Library - ‘Empty trash automatically after every scan’ should be disabled

  1. The Big Green (1995).avi
  2. They are on a network share (Drobo)
  3. I had this on, Just turned it off

@aporzio1 said:

  1. The Big Green (1995).avi

That is fine.

  1. They are on a network share (Drobo)
  2. I had this on, Just turned it off

This might have been the issue.
Sometimes Plex rescans a library, either manually or automatically triggered. Or by schedule.
If it cannot access a particular movie’s file during this, the movie is marked with a trash can icon.
If 3) is set however, it makes Plex immediately erase this movie - including all customized metadata.

At next library update, the movie then gets added again to the library, this time with all default settings. Why it doesn’t immediately fetch fresh metadata for the movie remains to be investigated. It should do it, as long as the Plex server has working internet access.

@OttoKerner Not sure if this is new or If I just never noticed, But there are a couple hundred movies at the bottom of the list that only show the movie name and no other info. I have the option to unmatch them though, so I would assume that plex believes they are matched to a movie.

They all look similar to this one - http://imgur.com/9voqvGZ

@aporzio1 said:
@OttoKerner Not sure if this is new or If I just never noticed, But there are a couple hundred movies at the bottom of the list that only show the movie name and no other info. I have the option to unmatch them though, so I would assume that plex believes they are matched to a movie.

Please post the Plex XML info of such a movie.

@OttoKerner

<Video ratingKey="259557" key="/library/metadata/259557" guid="com.plexapp.agents.imdb://tt1392190?lang=en" librarySectionID="20" librarySectionKey="/library/sections/20" type="movie" title="Mad Max: Fury Road" summary="" thumb="/library/metadata/259557/thumb/1494812417" art="/library/metadata/259557/art/1494812417" duration="7221184" addedAt="1435010393" updatedAt="1494812417" chapterSource="media">
<Media videoResolution="1080" id="485981" duration="7221184" bitrate="4831" width="1912" height="792" aspectRatio="2.35" audioChannels="6" audioCodec="ac3" videoCodec="h264" container="mkv" videoFrameRate="24p" videoProfile="high">
<Part accessible="1" exists="1" id="521335" key="/library/parts/521335/1435010393/file.mkv" duration="7221184" file="/Volumes/Drobo/Movies/Mad Max - Fury Road (2015)/Mad Max - Fury Road (2015) 1080p.mkv" size="4360689063" container="mkv" hasThumbnail="1" indexes="sd" videoProfile="high">
<Stream id="1097472" streamType="1" default="1" codec="h264" index="0" bitrate="4447" language="English" languageCode="eng" bitDepth="8" chromaSubsampling="4:2:0" colorRange="tv" colorSpace="bt709" frameRate="23.976" hasScalingMatrix="0" height="792" level="40" profile="high" refFrames="5" scanType="progressive" title="Mad.Max.Fury.Road.2015.1080p.WEB-DL.DD5.1.H264-RARBG" width="1912"/>
<Stream id="1097473" streamType="2" selected="1" default="1" codec="ac3" index="1" channels="6" bitrate="384" language="English" languageCode="eng" audioChannelLayout="5.1(side)" samplingRate="48000" title="Mad.Max.Fury.Road.2015.1080p.WEB-DL.DD5.1.H264-RARBG"/>
<Stream id="1097474" streamType="3" default="1" codec="srt" index="2" language="English" languageCode="eng"/>
</Part>
</Media>
<Extras size="0"></Extras>
</Video>
</MediaContainer>

Ah yes, I see the problem:
These are indeed matched with Plex Movie.
But: these are mp4 files. (or they were at least at one time previously. Perhaps you did a quality upgrade? Or did you simply rename an mp4 into mkv?!!!)

This tells the story:
title="Mad.Max.Fury.Road.2015.1080p.WEB-DL.DD5.1.H264-RARBG"
This was read from embedded metadata and then used.

You need to reorder your agents.
Go to Settings - Server - Agents - Shows - TheTVDB
In there, grab the line ‘Local Media Assets’ with your mouse and drag it downwards, so it ends up being at the bottom of the stack of active agents.
Repeat the same under
Settings - Server - Agents - Shows - TheMovieDatabase
+
Settings - Server - Agents - Movies - Plex Movie
+
Settings - Server - Agents - Movies - TheMovieDatabase

Then, refresh one of the affected movies.
Let’s see how that goes.

So i did that and now none of my movies have any info. I even unchecked everthing but. Same thing if I try “The Movie Database” instead of “Plex Movie”




Here is the XML

<Video ratingKey="263683" key="/library/metadata/263683" guid="com.plexapp.agents.imdb://tt1392190?lang=en" librarySectionID="21" librarySectionKey="/library/sections/21" type="movie" title="Mad Max: Fury Road" summary="" thumb="/library/metadata/263683/thumb/1494964577" art="/library/metadata/263683/art/1494964577" duration="7221184" addedAt="1435010393" updatedAt="1494964577" chapterSource="media">
<Media videoResolution="1080" id="495091" duration="7221184" bitrate="4831" width="1912" height="792" aspectRatio="2.35" audioChannels="6" audioCodec="ac3" videoCodec="h264" container="mkv" videoFrameRate="24p" videoProfile="high">
<Part accessible="1" exists="1" id="530561" key="/library/parts/530561/1435010393/file.mkv" duration="7221184" file="/Volumes/Drobo/Movies/Mad Max - Fury Road (2015)/Mad Max - Fury Road (2015) 1080p.mkv" size="4360689063" container="mkv" hasThumbnail="1" indexes="sd" videoProfile="high">
<Stream id="1118526" streamType="1" default="1" codec="h264" index="0" bitrate="4447" language="English" languageCode="eng" bitDepth="8" chromaSubsampling="4:2:0" colorRange="tv" colorSpace="bt709" frameRate="23.976" hasScalingMatrix="0" height="792" level="40" profile="high" refFrames="5" scanType="progressive" title="Mad.Max.Fury.Road.2015.1080p.WEB-DL.DD5.1.H264-RARBG" width="1912"/>
<Stream id="1118527" streamType="2" selected="1" default="1" codec="ac3" index="1" channels="6" bitrate="384" language="English" languageCode="eng" audioChannelLayout="5.1(side)" samplingRate="48000" title="Mad.Max.Fury.Road.2015.1080p.WEB-DL.DD5.1.H264-RARBG"/>
<Stream id="1118528" streamType="3" default="1" codec="srt" index="2" language="English" languageCode="eng"/>
</Part>
</Media>
<Extras size="0"></Extras>
</Video>
</MediaContainer>```

@aporzio1 said:
I even unchecked everthing but.

This wouldn’t have been necessary.
The point of the reordering is that you can keep them active.
And I recommended you to only try this with one movie.

I think we have established now that the Plex Movie agent doesn’t work for you.
For further investigation, we need log files.

  1. activate debug logging (not ‘verbose’!)
  2. quit Plex Server
  3. wait 1 minute
  4. start Plex Server
  5. wait 2 minutes
  6. either refresh one movie or add one movie into your library
  7. wait 3 minutes
  8. fetch log files and attach them here