Unclear why subdir placement wont work

Server Version#: 1.32.4.7195
Player Version#: –

I’m trying to import and organise my movies into subdir’s. However, I’m thrown off by why Plex recognises a few movies from their subdir, but others (most) are not recognised. Stranger still: when I place the unrecognised movies in the root of the library path, they are recognised perfectly, but when I place them in a subdir with the same file-name (copy-pasted) they are not. I did add the IMDB id into the filename to help, but this doesn’t make a difference.

Can anyone tell me what I’m missing?

Examples:

Works:
./Iron Man (2008) {imdb-tt0371746}.mp4
./Iron Man (2008) {imdb-tt0371746}.srt

Doesn’t work:
./Iron Man (2008) {imdb-tt0371746}/Iron Man (2008) {imdb-tt0371746}.srt
./Iron Man (2008) {imdb-tt0371746}/Iron Man (2008) {imdb-tt0371746}.mp4

Works:
./Dungeons and Dragons Honor Among Thieves (2023)/Dungeons and Dragons Honor Among Thieves (2023).mkv
./Hidden Figures/Hidden Figures.mkv
./Beyond.the.Brick.A.LEGO.Brickumentary.2014.720p.BluRay.x264.AAC.MVGroup.org/Beyond.the.Brick.A.LEGO.Brickumentary.2014.720p.BluRay.x264.AAC.MVGroup.org.srt
./Beyond.the.Brick.A.LEGO.Brickumentary.2014.720p.BluRay.x264.AAC.MVGroup.org/Beyond.the.Brick.A.LEGO.Brickumentary.2014.720p.BluRay.x264.AAC.MVGroup.org.mp4

Doesn’t work:
./Contagion (2011)/Contagion (2011).srt
./Contagion (2011)/Contagion (2011).mp4

I know nothing about TrueNAS, but this sounds like wrong access permissions of the newly created subdirs.
Maybe you need to enable inheritance of perms for subfolders.

Looking at the permissions that might very well be the case. I can see specifically the dirs that have no issues differ from the ones that do. Thanks

Well, BOOM… here we go. Everything is now added. Here’s what I’ve done:

  • The Plex server (a Jail or container in TrueNAS) was running under user root
  • I create a user plex with id 972 (as that seems to be the default uid)
  • I then stopped the Plex server, configured it to run under user plex and restarted it
  • Then using a shell in TrueNAS, I recursively changed all file-permissions in the share to be owned by user Plex
  • In Plex, started a new Library / Media Scan et voila.

Now I only have to filter out a lot of media (comic books, that need to go into another share) and make sure all movies are matched correctly. Then I can start making collections with viewing orders controlled by custom sort-id’s. (yeah, Star Wars and Marvel have their quircks)