Movie Extra's Duplicating, Failing to Play, or Not Populating after Media Path Rename

Server Version#: Linux 1.21.1.3876
Player Version#: Web Player 4.50.1
Linux OS: Ubuntu 20.04.1 LTS
Media: NFS Mounted

I recently adjusted my existing movie library’s folders to follow the new media scanner standard of including the match source and id in the folder and main feature filename. I have noticed since then that I have 3 situations relating to the extras for my films:

  • Movies with id included from the start
    • Extra’s show up fine, no problems noted
  • Films originally added under just name and year
    • Some to all extra’s are duplicated, selecting either copy plays correctly
    • Extras are not duplicated, play errors “Please check that the file exists and the necessary drive is mounted.” (confirmed to work previously)

No clear pattern noticed between items that duplicate vs error, but have noticed all errors appear to also have Plex included extras. In both cases the films will play. The extras are organized using the sub-folders method per the Plex documentation and had been working previously (and with newer items) as expected.

I can confirm that the files are all visible, at a standardized depth, and in the same movie library folder. Example titles specifically to reference for future discussion, ‘Tenet’ was added under id number scheme and is working fine, ‘Once Upon a Time… in Hollywood’ was migrated and is duplicating some, and ‘Law Abiding Citizen’ was migrated and is erroring on all.

If the media has been moved, check permissions.

You can confirm the files are visible – to you.
Can you confirm user plex, which is in its own group, can read them?

Plex’s permissions, on Linux, is in the “other” triplet (the last 3 of the rwx r-x r-x set)

Safest way to asset this:
find /directory -type d -exec chmod 755 {} \;
find /directoryr -type f -exec chmod 644 {} \;

You get full R/W, everything else gets read only.

I have been having the same issue every time that I update to the new plex agent. I have gone as far to make a test server to see if the issue is just effecting my main server, but had the same issue when I hit the upgrade agent from the scan media library tab from what I can figure that there is a issue with there agent that causes a disconnection from the media for some reason. I have seem to find that if you leave it in one of the older agents it will not have any issue. Hope there is a fix to this issue soon.

I should clarify that the media hasn’t actually ‘moved’, the folders and main movie files were renamed to add the imdb values so their paths are updated (e.g. “Law Abiding Citizen (2009)” became “Law Abiding Citizen (2009) {imdb-tt1197624}”). I have adjusted the title of the post to more accurately reflect this.

Due to how the NFS is mounted (via Synology) the permissions are 777, so definitely not a permissions issue. (Note: ‘extras’ is a personal use directory excluded via ‘.plexignore’)

ls -la Law\ Abiding\ Citizen\ \(2009\)\ \{imdb-tt1197624\}/
drwxrwxrwx 1 1026 users        234 Jan 16 08:30  .
drwxrwxrwx 1 1026 users      43630 Jan 16 08:24  ..
-rwxrwxrwx 1 1026 users       6148 Jan 16 08:35  .DS_Store
drwxrwxrwx 1 root users        180 Jan 16 08:30  @eaDir
drwxrwxrwx 1 1026 users        322 Nov 14 19:33 'Behind the Scenes'
drwxrwxrwx 1 1026 users        128 Nov 14 19:43  Featurettes
-rwxrwxrwx 1 1026 users 4401755199 Nov 14 19:08 'Law Abiding Citizen (2009) {imdb-tt1197624} - 1080p.mkv'
drwxrwxrwx 1 1026 users        112 Jan 16 08:30  Other
drwxrwxrwx 1 1026 users         64 Nov 14 19:46  Trailers
drwxrwxrwx 1 1026 users        104 Jan 10 07:10  extras
ls -la Law\ Abiding\ Citizen\ \(2009\)\ \{imdb-tt1197624\}/Featurettes/
drwxrwxrwx 1 1026 users       128 Nov 14 19:43  .
drwxrwxrwx 1 1026 users       234 Jan 16 08:30  ..
-rwxrwxrwx 1 1026 users 854439457 Nov 14 19:06 'Law In Black And White.mkv'
-rwxrwxrwx 1 1026 users 354427110 Nov 14 19:06 'The Justice Of Law Abiding Citizen.mkv'

As I noted initially some are duplicating the extras in the Plex interface (both play the same file) while others are just erroring. Looking more into it I think there might be a pattern where anything that’s erroring has Plex originated trailers or special features. For the items with 2 copies of the features listed both play the same file (as there is only 1 file on the disk). If it duplicates it works if one errors they all error. The duplicates have slightly different preview pictures which makes me think it is related to the new scanner.


Regarding permissions:

  1. If the mount is done with sec=sys and shared folder permissions allow it
  2. Then you can be guaranteed there aren’t permission problems.

Emphasis here is on what the shared folder still allows.

I prefer to use sec=sys on the Syno NFS and open the shared folder permissions completely. This makes the Syno a ‘big hard drive’ for the workstation.

I then set the linux permissions as i want which disables the Synology ACLs.

Regarding the OP’s error, Please recreate the error and capture the logs ZIP.
I would like to see exactly what PMS is complaining about before guessing any further.

I would have to look into how the mounts done again, but I doubt its a permissions issue since it worked previously and some are working and others aren’t. I will see about checking how its configured later. For the immediate request:

  • Turned on debug (not verbose) logging
  • Attempted to play the ‘Law in black and white’ (law abiding citizen extra) and received error
  • Hit retry
  • Played Law Abiding Citizen for a moment
  • Played the left beer commercial from ‘Once Upon a Time’ extras
  • Played the right beer commercial from ‘Once Upon a Time’ extras
  • Exported logs
  • Toggled debug back off

Re the permissions portion, on the linux side its mounting at boot with fstab:

<nas ip>:/volume1/PlexLibrary /mnt/Plex nfs defaults 0 0

and the Synology NFS side settings are:

Where the Plex host is statically referenced. There is nothing checked off in advanced permissions on the Synology share. As I recall I did the all to admin mapping due to issues with getting the user auth to work on boot for the Plex so mapping the share to admins and restricting the access to the specific ip’s was the workaround I never got back to cleaning up

On an unrelated note, your FAQ link in your profile is out of date. I attempted to PM you but got an alert that your not accepting messages.

A working link to the index of the FAQ for your reference and convenience:

thanks, updated

Small update, I just finished processing a new UHD edition of a film already on my server without existing extra’s on disc (Ghost in the Shell - 1995). I noted that this film did have a Plex provided extra (single trailer).

I placed the new extra’s and overwrote the existing movie file. Rescan picked up the changed movie and is showing the new audio and subtitles but none of the local extra’s are showing up post scan, still just the Plex matched trailer. Seems to further support possibly an issue relating to Plex having special features overriding it.

@ChuckPa have you had a chance to glance at the logs above? I had looked at them myself but not seen anything that caught my eye.

Had a filter on that was partially causing me view issues in the log viewer, cleared that up now. The only thing the logs seem to say is

Jan 17, 2021 18:30:57.812 [0x7f920ffff700] ERROR - Error opening file '"/mnt/Plex/Movies/Law Abiding Citizen (2009)/Featurettes/Law In Black And White.mkv"' - No such file or directory (2)

However, the extra features are not trash can’d like you would see if they were missing. And again it can see the main film and directory and is equivalent to the other working directories in depth and they both have the same permissions.

I attempted to su into the plex user just to run an ls there for confirmation they could see it, however I get an error the account is currently not available.

I tried moving the beer commercial to a non-indexed area out of the once upon a time folder and this kicked it into clearing up the duplicates on that specific entry, however now that I have put the file back its not re-detecting it.

Okay here we go, I was a bit blind there looking through the logs. The broken ones are still pointing to the non-imdb id’d folders. Finally identified it when I ran across another entry where some of the duplicated items played and some didn’t. So yes this appears to be due to the renaming of the folders. The media is not where Plex is thinking it is, so it cannot play it which does make sense.

It appears the root issue probably relates to the scanning then, because it has found all the movies (or at least I have no trash cans in the library) and every movie I have tested plays, even for those with broken extras.

As noted in my previous post as well, the feature I moved our from once upon a time in hollywood immediately dropped and even though I have put it back to the same spot its not appearing again at this point.

Found the answer! Poking around the forum once I hit the issue of local extras not populating ran across this old post:

Local extras analysis and detection are handled as part of the metadata refresh not the rescan refresh. The reason every other movie is borked for them then is that I had rescanned the files multiple times, but not refreshed their metadata. Some of the items did which is why they partially worked, and anything added new more recently did as part of its being added to the library.

Given this is impacting nearly every entry I am going to bite the bullet and do a complete library metadata refresh. I have tweaked the title of the post slightly to hopefully be found more in the future for anyone having similar issues.

TL;DR Solution: Refresh metadata to refresh local extras (which also only show up if local media assets are enabled under the Agents as well)

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