New sub-folder is not visible in Player

Server Version#: Version 1.13.9.5456-ecd600442
Player Version#: Version 3.73.2

I’m encountering a strange problem in that a newly added sub-folder nor its contents are appearing in any of my players. I renamed several of the various folders in the parent folder, and those all appear just fine, however the newly created folder called “Behind the Scenes” doesn’t appear. I’ve checked, and re-checked the permissions not only for the newly added folder but for the parent, as well as the Media folder, and they’re all correct (Owner=Admin, Plex=R/W, Group=Users).

In an attempt to resolve the issue, I’m bounced the service, carefully re-read “Synology FAQ’s … Read This First!” and confirmed everything there, scanned the library files, deleted the folder & emptied the trash on the PMS, copied it back and reconfirmed the permissions, but still no joy.

The folder in question is “/Media/How-To Videos/FStoppers/PtW4/Behind the Scenes”, with a media type of “other”

Thanks for your assistance!

Plex Media Server Logs_2018-11-10_10-49-10.zip (4.5 MB)

I can say this first before anything else: PLEX does not like sub-subfolders. the recursion algorithm seems to just give up after a few subfolders in and goes “nope, not going any deeper into THIS rabbit hole”.
By your folders there, I’d stop at the fstoppers, or maybe the PtW4 folder.

I have mine separated at root level on the drive, and just individually added them into the library, since you can add multiple folders.

That’s all I have on this for now, is move it up a level until it finds it, and just see if that works.

you COULD just put the BTS in the same folder as the original movie/show like:

\movies\
   \thismoviehere\
      \thismovie (2018).mkv
      \thismovie (2018) BTS.mkv

it’ll grab it as the same movie initially, but you can then split them, and they’d be separate… It’s a hacky workaround, but it works.

Hey Liestenn,

Very interesting about PLEX not liking sub-directories/folders. What’s weird about this situation is that I have:

/Media/How-To Videos/FStoppers/PtW4/
\Folder 1\Subfolder\movie1.mp4
\Folder 2\subfolder\movie2.mp4
\Folder 3\subfolder\movie3.mp4

\Behind the Scenes\movie1.mp4
\Behind the Scenes\movie2.mp4
\Behind the Scenes\movie3.mp4

All of the movies are visible and play just fine in all of the various folders, except the /Media/How-To Videos/FStoppers/PtW4/Behind the Scenes\ folder. That just doesn’t make a bit of sense to me. I can’t even see the “Behind the Scenes” folder, let alone its contents.

Please scroll down to Local Trailers and Extras for information on Plex’s naming method.

https://support.plex.tv/articles/200220677-local-media-assets-movies/

Hi ChuckPA,

Thanks for the link. So I’m very curious as to what’s going on. My folder was named, “Behind the Scenes”, and when I changed it to “BTS”, I was able to see it and the contents. But, when I look at the link, I see that it explicitly shows a folder structure with a named, “Behind the Scenes” in it.

Please help me understand the difference, as I’m missing something.

Thanks!

In this example, you have 15 BehindTheScenes video clips.

Using Your titles,

Movie (year)/
  Movie (year).ext
  01 - Mesa Arch Sunrise-behindthescenes.mp4
  02 - Monument Valley-behindthescenes.mp4
  03 - Thors Hammer-behindthescenes.mp4
  ... etc ...

You give the extra whatever name you wish it to show as. The -type appendix before the extension tells PMS what type of extra it is and where to group them in the UI for you.

The required step is to to Settings - Server - Agents and enable the Local Media Assets agents so these are detected.

But in this instance, they’re not really associated with any particular movie. They’re just random behind the scenes movies. Why would they be treated any differently? Is it because the folder name “Behind the Scenes” is a keyword of some sort for PMS?

If each behind the scenes movie was in the folder with the actually movie itself, I could see the need to add the -type, but this isn’t that situation.

Yes, the subfolder is causing the problem.
Extras need to be placed in the same folder as the movie they are associated with. This is why PMS has us create the folder for the movie. All items in it are associated with it.

If you have a subfolder named “Extras”, it will attempt to find a movie named “Extras” which, as you’ve probably seen, drives it nuts.

So what do you do when the “extras” like in this instance, aren’t really associated with any particular movie?

But if that were the case, then wouldn’t it apply across the board? I

/Media/How-To Videos/FStoppers/PtW4/
\01 - Mesa Arch Sunrise\Lesson 01 - Mesa Arch Sunrise.mp4
\02 - Monument Valley\Lesson 02 - Monument Valley.mp4
etc.

Which works just fine, but
/Media/How-To Videos/FStoppers/PtW4/
\Behind the Scenes\Behind the Scenes 1.mp4
\Behind the Scenes\Behind the Scenes 2.mp4
\Behind the Scenes\Behind the Scenes 3.mp4

Doesn’t work, at all. I’m SO confused. :stuck_out_tongue_closed_eyes:

Ok. Thanks man. I appreciate your help.

Nope, I have SSH disabled, but I can enable it and double check the permissions. I’ll do that, and report back. Thanks for the suggestion.

Really!? That’s unusual that the permissions would show as set, but would/could be actually incorrect. But, it’s no big deal to reset them.

If I may augment Trumpy’s post,

The root cause here is because Synology stores permissions in their database.
These are lost from time to time. Synology knows this but apparently it’s not a big priority for them.

It is easy to see how their mechanism works:

  1. SSH into the unit
  2. Go to the share in question /volume1/sharename
  3. Notice it has no Linux permissions assigned.
  4. This is ok because, as root (the username which provides network services) no permission is required. It ignores them
  5. User plex, not having this privilege, must minimally obey Linux permissions on the files. User plex could be configured to ignore all permissions but this is a dangerous position to take. It would mean user plex could access as well as delete anything. When I rewrote the installer and configuration mechanisms, It felt too dangerous to give it such power.
  6. Therefore, if the Syno in question routinely is troubled with dropping permissions, hard setting them at the Linux level circumvents (works around) the Synology database issue.

Thanks ChuckPA. I wasn’t aware that Synology stored the permissions in a database! That makes no sense to me in the *NIX world. At least not for me in UNIX world.

I’m in the throes of updating the permissions right now.

It makes no sense to me either.

What I do on *nix systems is leverage the native setuid and setgid bits in the filesystem.
This tells ext4 what it needs to know when creating new subdirectories and files.
Once set at the top level, and propagated down one time, it is self maintaining.

Exactly! That’s how I’ve always done it for more than 30 years.

@kappabear

I’ve been doing it since 1982 (?) somewhere around there and the early Sun systems :smiley:

has heard rumors @trumpy81 is older

Yeah, some of the courses that I’ve bought come with .pdfs, photos (jpeg, tiff, psd, etc.), Lightroom catalogs, and various other things.

I’ll make sure that Plex ignores them, as I wasn’t aware that Plex would attempt to read or process them.

Thanks for that!