Plex not showing files

avalon60

Guru
Joined
Jan 15, 2014
Messages
597
I have Plex plugin 1.21.1.3830 installed and recently after setting the mount points for my media, when I go to add the media files in the plex gui, only the folders are showing. After I add the media folders, there are no files showing up.
I posted the same question on the plex forum a few weeks ago, and I was told to install plex on my desktop and add the media files from there. I mounted the media folders onto my linux desktop and checked that the files were showing, then ran plex and all my media files are showing up in plex

So is it the plex plugin or freenas which has caused this to happen.

Thanks
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,478
If I am remembering correctly, you have to manually enter the path. for example I had to manually enter "/media/movies" in the box when adding a library in plex. My mountpoint in TrueNAS is defined as:

Source - /mnt/axio/Media/completed/movies
Destination - /mnt/axio/iocage/jails/plex/root/media/movies
 

avalon60

Guru
Joined
Jan 15, 2014
Messages
597
Ok, this is my path:

Source: /mnt/WinShare/Media/Media
Destination: /mnt/WinShare/iocage/jails/plex/root/media/Media

The Media folder contains sub folders for all my media, ie music, films and tv programs etc.
The folders are showing in Plex, but there are no files.

Thanks
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,478
Did you try manually putting the path into the plex as "/media/Media/tv" for example?
 

avalon60

Guru
Joined
Jan 15, 2014
Messages
597
Yes, in the Plex gui I went add media, then selected the / root folder, then the media folder, then manually typed in Films. So the path was /media/Films.

In the destination folder for the plex plugin when I added the Films to the /media folder, there were no files showing, but there are in the source.
It's like the files are not mounted in the destination folder.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Yes, in the Plex gui I went add media, then selected the / root folder, then the media folder, then manually typed in Films. So the path was /media/Films.

In the destination folder for the plex plugin when I added the Films to the /media folder, there were no files showing, but there are in the source.
It's like the files are not mounted in the destination folder.
ACL / permissions issues can cause this. If you enter shell in the plugin can you "cd" into the path and list the files via "ls"? If so, post output of "getfacl /path/to/the/thing"
 

avalon60

Guru
Joined
Jan 15, 2014
Messages
597
Copy and paste is not allowed in my version of Freenas, so it's a manual job.

root@freenas getfacl /mnt/WinShare/Media/films
#file /mnt/WinShare/Media/Films
#owner: root
#group: nobody

owner@: rwxpDdaAcCos:fd ----I allow
group@: rwxpDdaAcCos:fd ----I allow
everyone@: ------------------:fd --- I allow
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Copy and paste is not allowed in my version of Freenas, so it's a manual job.

root@freenas getfacl /mnt/WinShare/Media/films
#file /mnt/WinShare/Media/Films
#owner: root
#group: nobody

owner@: rwxpDdaAcCos:fd ----I allow
group@: rwxpDdaAcCos:fd ----I allow
everyone@: ------------------:fd --- I allow
Okay. Looks like problem is that plex user can't read the files. Let's see how far back this goes.
getfacl /mnt/WinShare/Media
getfacl /mnt/WinShare
 

avalon60

Guru
Joined
Jan 15, 2014
Messages
597
getfacl /mnt/WinShare/Media
#file /mnt/WinShare/Media
#owner: root
#group: nobody

owner@: rwxpDdaAcCos:fd ----: allow
group@: rwxpDdaAcCos:fd ----: allow
everyone@: rwxpDdaAc -- s:fd ---: allow
everyone@: ----------------------:fd --- : allow

getfacl /mnt/WinShare
#file /mnt/WinShare/
#owner: root
#group: nobody

owner@: rwxpDdaAcCos:fd ----: allow
group@: rwxpDdaAcCos:fd ----: allow
everyone@: ------------------:fd --- : allow
 

avalon60

Guru
Joined
Jan 15, 2014
Messages
597
Ok, thanks for pointing me in the right direction and I have now solved this problem.
It was indeed a permission problem, and after I edited the acl for the Media folder to recursive, that sorted the problem. Now I can add Films etc to Plex .

Thanks
 

avalon60

Guru
Joined
Jan 15, 2014
Messages
597
Update:
Although I could add films to plex after changing the permissions on the folder, I now have a similar problem with another media folder.
This folder is TV Shows, and I have the exact same permissions for this as I do for my other Media folder.

I already had a few TV shows in the said folder, and Plex added them; folders and episodes. Now when I added a new TV show with several episodes, the folder was added, but only 1 episode. This also happened with another TV show I added to the folder.
Other media players can see all the new episodes but not plex

Again, is it plex or FreeNAS

Thanks
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Here are permissions on my plex media dataset when viewed from host OS
Code:
# file: /mnt/dozer/media/
# owner: root
# group: wheel
    group:SMBGROUP:rwxpDdaARWc--s:fd-----:allow:1002
         user:plex:rwxpDdaARWcCos:fd-----:allow:972
            owner@:rwxpDdaARWcCos:fd-----:allow
            group@:rwxpDdaARWcCos:fd-----:allow
         everyone@:--------------:fd-----:allow

/mnt/dozer permissions are 0755.

Using ACLs like this ensures that permissions for plex user and SMBGROUP are always inherited on newly created files (whether they come in via scp, SMB, etc).
 

avalon60

Guru
Joined
Jan 15, 2014
Messages
597
Thanks but how did you find out that your permissions are 0755.
I have changed the group for TV Shows to plex and this the permission

root@freenas: /mnt/WinShare/Media ls -l

drwxrwxrwx+ 26 plex nobody 27 Jan 21 16:59 TV Shows.

As I say, plex adds the folder but only 1 episode, and I don't understand why.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Thanks but how did you find out that your permissions are 0755.
I have changed the group for TV Shows to plex and this the permission

root@freenas: /mnt/WinShare/Media ls -l

drwxrwxrwx+ 26 plex nobody 27 Jan 21 16:59 TV Shows.

As I say, plex adds the folder but only 1 episode, and I don't understand why.
I'm talking about zpool mountpoint `ls -l /mnt`.
 

avalon60

Guru
Joined
Jan 15, 2014
Messages
597
All my pools are zfs pools.

After a brief read of SMB permisssions, it says that a + sign shows that the ACL is trivial. All my media folders have a + sign so TV Shows is the same as the others.
Do I need to change anything, like permissions so that plex can add all the episodes of a TV Show /series.
If not,then I may well dump plex and use another media player.
Thanks
 
Last edited:

avalon60

Guru
Joined
Jan 15, 2014
Messages
597
update:
I found what the problem was. and it took me a while to find out.
Plex requires specific naming of tv episodes, so once I had changed from tvepisode Pt1.mkv to tvepisode s01e1.mkv, all was good.
 
Top