Issues with Plex not seeing Media

mcb14

Dabbler
Joined
May 8, 2019
Messages
11
Been digging for a while, trying different things, but I can't get over thus hump. Tried to get help on thee Plex Forum, but no luck so far, so wanting to try here. I feel this issue is a config issue, just can't nail it down.

System Info (let me know if you need more info):
OS Version:
FreeNAS-11.2-U4
(Build Date: May 7, 2019 0:46)
ProLiant ML10 Gen9
On-Board Intel NIC and SATA controllers
Processor:

Intel(R) Xeon(R) CPU E3-1225 v5 @ 3.30GHz (4 cores)
Memory:
36 GiB
HDD:
4 x HGST 4TB NAS drives
HostName:
MCBCasa-freenas.local
Uptime:
8:48PM up 11:01, 0 users
Plex Server version:
1.15.4.993-bb4a2cb6c
The issue is as follows. i have placed test data into a couple of Plex Media Libraries (Music and Photos). The Plex Media server will not find any media copied to the Source. The Plex Jail seems to be setup properly according to documentation. The storage is mounted as such:
Source:
Code:
/mnt/pool1/Media

Destination:
Code:
/mnt/pool1/iocage/jails/plex/root/mnt/Media


I have tried several destination landings, but no luck.

Permissions are setup as such currently. i have tried several combinations of user:group, but no luck here as well. Last was guest:guest, guest:media now root:media
Source:
Code:
root@MCBCasa-freenas[/mnt/pool1]# ls -l
total 24
drwxr-xr-x  9 root  wheel  10 May  8 13:56 iocage
drwxrwxr-x+ 7 root  media   8 May  7 14:34 Media
root@MCBCasa-freenas[/mnt/pool1]#

Code:
root@MCBCasa-freenas[/mnt/pool1]# ls -l Media/
total 15
-rwxrwxr-x+ 1 root  media   0 May  7 07:56 .windows
drwxrwxr-x+ 2 root  media   2 May  6 16:46 Movies
drwxrwxr-x+ 4 root  media   5 May  8 15:42 Music
drwxrwxr-x+ 3 root  media  17 May  8 13:35 Pictures
drwxrwxr-x+ 2 root  media   2 May  7 07:52 TV
drwxrwxr-x+ 2 root  media   2 May  7 07:52 Videos
root@MCBCasa-freenas[/mnt/pool1]#


Destination:
Code:
root@plex:~ # ls -l /mnt/Media
total 3
-rwxrwxr-x+ 1 root  media  0 May  7 07:56 .windows
drwxrwxrwx  2 root  media  2 May  6 16:46 Movies
drwxrwxr-x+ 2 root  media  2 May  7 14:34 Music
drwxrwxrwx  2 root  media  2 May  6 16:46 Pictures
drwxrwxrwx  2 root  media  2 May  7 07:52 TV
drwxrwxrwx  2 root  media  2 May  7 07:52 Videos
root@plex:~ #


I've tried using guest:guest and media:media and changing the user for plexmediaserver to those user:group, but could not get the server to boot after, so I went back to root:media as the plexmediaserver user:group.

In the SOURCE for Music, I have the following directory structure:
Code:
root@MCBCasa-freenas[.../Music/April Wine/Nature of the Beast]# ls
01 All over Town.mp3
02 Tellin' Me Lies.mp3
03 Sign of the Gypsy Queen.mp3
04 Just Between You and Me.mp3
05 Wanna Rock.mp3
06 Caught in the Crossfire.mp3
07 Future Tense.mp3
08 Big City Girls.mp3
09 Crash and Burn.mp3
10 Bad Boys.mp3
11 One More Time.mp3
AlbumArt_{6DDB41F8-BFFE-401D-B892-CD6BBEEA8BD8}_Large.jpg
AlbumArt_{6DDB41F8-BFFE-401D-B892-CD6BBEEA8BD8}_Small.jpg
AlbumArtSmall.jpg
desktop.ini
Folder.jpg
Thumbs.db
root@MCBCasa-freenas[.../Music/April Wine/Nature of the Beast]# 


For the Destination, the directory Music is empty. Not sure if this is correct or not.
Code:
root@plex:/mnt/Media/Music # ls -l
total 0
root@plex:/mnt/Media/Music #


I'll try to clean up the misc data I now see in the source directory, but is there anything else I am missing to get Plex to discover my test music?

TIA!
 

mcb14

Dabbler
Joined
May 8, 2019
Messages
11
Were you able to resolve this?
NO. I have done everything I can think of. I removed and reinstalled the jail and Plex, even did it via CLI as from here: https://www.ixsystems.com/community...side-iocage-jail-in-freenas-11-2-beta3.70617/

None of that worked. I then blew away the whole Freenas server and reinstalled using 11.2 U4, using these videos:
Freenas setup
https://youtu.be/4WmCxriHEjE

Plex setup
https://youtu.be/Pl6d7f0S2Xo
I then did the SSH setup via: https://www.ixsystems.com/community/threads/plex-cannot-find-a-server.58954/page-2

Im about to just give up and find an alternate method than Freenas....
 

mcb14

Dabbler
Joined
May 8, 2019
Messages
11
BTW, just tried this with Emby and same problem . Emby can't find any data in the library shares. This has to be a FreeNas issue at this point.
 

garm

Wizard
Joined
Aug 19, 2017
Messages
1,556
No it’s not a FreeNAS issue.. it’s a permission issue and your failing to understand basic Unix functions. You say Plex is running using root:media. Please elaborate how you achieved that
 

mcb14

Dabbler
Joined
May 8, 2019
Messages
11
No it’s not a FreeNAS issue.. it’s a permission issue and your failing to understand basic Unix functions. You say Plex is running using root:media. Please elaborate how you achieved that

Actually I moved off that permission trail and did a fresh install of both freenas and plex. See post just a few up. I created a user to use during the install. Plex is running as Plex at the moment:
Code:
root@plex:~ # ps aux
USER   PID %CPU %MEM    VSZ   RSS TT  STAT STARTED    TIME COMMAND
root 84651  2.4  0.0   7412  3656  4  SJ   14:17   0:00.01 -csh (csh)
root 84650  2.3  0.0   6952  2900  4  SJ   14:17   0:00.00 login [pam] (login)
root 18997  0.0  0.0   6412  2420  -  SsJ  16:06   0:00.14 /usr/sbin/syslogd -c
plex 19048  0.0  0.2 164160 93396  -  IsJ  16:06   0:45.26 /usr/local/share/ple
root 19055  0.0  0.0   6464  2392  -  IsJ  16:06   0:00.25 /usr/sbin/cron -J 15
plex 19086  0.0  0.1  93120 48812  -  IJ   16:06   0:22.48 /usr/local/share/ple
plex 19087  0.0  0.1  32280 21400  -  IJ   16:06   0:02.45 /usr/local/share/ple
root 19839  0.0  0.0  12848  7444  -  IsJ  16:11   0:00.00 /usr/sbin/sshd
plex 21394  0.0  0.2  95172 58056  -  INJ  16:28   1:35.36 Plex Plug-in [com.pl
plex 58554  0.0  0.0  10728  6636  -  SJ   07:05   0:00.34 /usr/local/share/ple
root 84654  0.0  0.0   6912  2676  4  R+J  14:17   0:00.00 ps aux
root@plex:~ #


Current Plex mount points
Code:
Source
/mnt/ShareDrive/plexmedia
Destination
/mnt/ShareDrive/iocage/jails/plex/root/media


I've tried probably a dozen different user/permissions and mount points up until now. Current share permissions for mount points on this fresh install are:

Code:
root@freenas[/mnt/ShareDrive]# ls -l
total 13
drwxr-xr-x  9 root       wheel  10 May 15 08:47 iocage
drwxr-xr-x  6 mbradburn  media   6 May 14 16:38 plexmedia
root@freenas[/mnt/ShareDrive]#


Code:
root@freenas[/mnt/ShareDrive/plexmedia]# ls -l
total 2
drwxr-xr-x  2 mbradburn  media  2 May 14 16:38 movies
drwxr-xr-x  3 mbradburn  media  3 May 14 17:00 music
drwxr-xr-x  3 mbradburn  media  3 May 14 17:02 photos
drwxr-xr-x  2 mbradburn  media  2 May 14 16:38 videos
root@freenas[/mnt/ShareDrive/plexmedia]# 


Current Plex mount points
Code:
Source
/mnt/ShareDrive/plexmedia
Destination
/mnt/ShareDrive/iocage/jails/plex/root/media


Plex user groups:
Code:
root@plex:~ # id -G plex
972 8675309
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
I created a user to use during the install.

Why are you doing that? Installing plex in a standard jail takes a whole 3 commands. pkg install plexmediaserver sysrc "plexmediaserver_enable=YES" service plexmediaserver start . No need to make this any harder than it needs to be. The install will create the proper plex user and group. Add your mount points and that's it.
 

mcb14

Dabbler
Joined
May 8, 2019
Messages
11
Why are you doing that? Installing plex in a standard jail takes a whole 3 commands. pkg install plexmediaserver sysrc "plexmediaserver_enable=YES" service plexmediaserver start . No need to make this any harder than it needs to be. The install will create the proper plex user and group. Add your mount points and that's it.
been there, done that. does not work. This is like the 900th thing I have tried to get this going based all the reference material above and a shit load I have decided not to include.
 

silverback

Contributor
Joined
Jun 26, 2016
Messages
134
  1. Manually create a generic jail (jails tab in the top bar, then the add jail button), named PlexPass-Server (or whatever you want, really)
  2. Create/link storage for that jail (still in the jails tab, switch to the storage tab, then the add storage button). Make sure you select your recently created Plex jail, and then add your datasets as source.
  3. Once you’ve linked all your storages, go back to the main jails tab and select your Plex jail, then enter the console (you should also learn how to SSH into your jails from a different computer, it will make future updates much quicker, plus if you SSH’ed into your jail, you could copy-paste all of the commands below)
  4. Type ‘pkg upgrade’ (this will update your “install tools” to the most recent version (follow along, pressing y when appropriate)
  5. Type ‘pkg install plexmediaserver-plexpass’ (follow along, pressing y when appropriate)
  6. Then ‘sysrc plexmediaserver_plexpass_enable=YES’
  7. Once that’s done, type ‘service plexmediaserver_plexpass start’
  8. Type ‘service -R’
  9. Type ‘exit’
  10. Run ‘chown -R plex:plex /media’ on a command line to set ownership of the files (/media might be different depending on the mount points)
Upgrade:
  1. SSH into your Plex jail (or click the console button in the FreeNAS GUI after selecting the plex jail into the jails tab)
  2. Type ‘pkg update’ (following along and typing y when necessary)
  3. Type ‘pkg upgrade’ (again typing y when necessary)
  4. Type ‘service -R’, then exit, and you’ll always be up to date!!!
From the Plex forum a few years ago, still works.
'chown -R plex:plex /media', not sure how that emoji ended up in there.
 
Last edited:

garm

Wizard
Joined
Aug 19, 2017
Messages
1,556
create a media group in the jail with the same GID as in FreeNAS and then make the plex user a member of that group, and plex will see all the data in the folder give that it’s actually owned by the media group.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Are movies, pictures, tv, music and videos all datasets? You have to mount each dataset individually. All your permissions from your first post look correct. Permissions are not usually an issue with Plex because it just needs read.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Are movies, pictures, tv, music and videos all datasets?
Quoted for emphasis, and the problem was pretty obvious with the OP. OP, if you have datasets of plexmedia/music, plexmedia/movies, and plexmedia/photos, you need to create mountpoints for each of them in the jail. Otherwise you'll see exactly what you're seeing.
 

mcb14

Dabbler
Joined
May 8, 2019
Messages
11
create a media group in the jail with the same GID as in FreeNAS and then make the plex user a member of that group, and plex will see all the data in the folder give that it’s actually owned by the media group.
I have that now. Media group is 8675309 for both Plex Jail and FreeNas. Plex is a member of Plex and Media in the Plex Jail.
Code:
root@plex:/etc # cat group | grep media
media:*:8675309:plex
root@plex:/etc #


Mount points as as follows:
Code:
Source
/mnt/ShareDrive/plexmedia
Destination
/mnt/ShareDrive/iocage/jails/plex/root/media


Rights are as follows:
Code:
root@plex:/ # ls -l media
total 2
drwxr-xr-x  2 plex  media  2 May 14 16:38 movies
drwxr-xr-x  2 plex  media  2 May 14 16:38 music
drwxr-xr-x  2 plex  media  2 May 14 16:38 photos
drwxr-xr-x  2 plex  media  2 May 14 16:38 videos
root@plex:/ #
 

mcb14

Dabbler
Joined
May 8, 2019
Messages
11
Are movies, pictures, tv, music and videos all datasets? You have to mount each dataset individually. All your permissions from your first post look correct. Permissions are not usually an issue with Plex because it just needs read.
Like this?

Screen Shot 2019-05-17 at 3.10.10 PM.png
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421

mcb14

Dabbler
Joined
May 8, 2019
Messages
11
Quoted for emphasis, and the problem was pretty obvious with the OP. OP, if you have datasets of plexmedia/music, plexmedia/movies, and plexmedia/photos, you need to create mountpoints for each of them in the jail. Otherwise you'll see exactly what you're seeing.
Is that not what this is showing? Maybe I am missing a step?

Code:
root@plex:/ # ls -l media
total 2
drwxr-xr-x  2 plex  media  2 May 14 16:38 movies
drwxr-xr-x  2 plex  media  2 May 14 16:38 music
drwxr-xr-x  2 plex  media  2 May 14 16:38 photos
drwxr-xr-x  2 plex  media  2 May 14 16:38 videos
root@plex:/ #
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Is that not what this is showing? Maybe I am missing a step?

Code:
root@plex:/ # ls -l media
total 2
drwxr-xr-x  2 plex  media  2 May 14 16:38 movies
drwxr-xr-x  2 plex  media  2 May 14 16:38 music
drwxr-xr-x  2 plex  media  2 May 14 16:38 photos
drwxr-xr-x  2 plex  media  2 May 14 16:38 videos
root@plex:/ #
I don't know those are just folders. Did you create a mount for each dataset in the jail settings
 

mcb14

Dabbler
Joined
May 8, 2019
Messages
11
I don't know those are just folders. Did you create a mount for each dataset in the jail settings
BINGO! I figured it was something ultra simple. Didn't realize it needed separate mount points for each media. Thanks a million!
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Didn't realize it needed separate mount points for each media.
It doesn't. It needs separate mount points for each dataset.
 
Top