Plex can't see folders

    • OMV 2.x
    • Resolved
    • Plex can't see folders

      I've just starting using OMV a couple of days ago. I'm learning a lot using VirtualBox while I wait for the hardware to arrive and I assemble the machine. I've gotten just about everything I need figured out except for Plex.

      Originally tried to use minidlna, and it looked like it was going to work, but my Samsung TV said that it was unable to play when I tried to play an mp4 home movie. Looking through the forums most recommendations were to use Plex, so I switched over to try to get that to work.

      I've gotten through most of my issues looking through old forum posts, except I seem to be stuck with Plex not seeing the folders I've created. I know this is the topic of several threads before and I swear I've tried everything they've tried several times. I've recreated the shared directories with the proper permissions, I've reset the shared directory permissions, I've re-created the SMB shares, reinstalled Plex, restarted the server.

      The permission look okay from what I can tell below (read permissions for others):

      Source Code

      1. root@openmediavault:/media/d8d177bb-9add-4024-88c3-b1d3a95206c5# ls -l
      2. total 16
      3. drwxrwsr-x 2 root users 4096 Dec 13 22:04 Movies
      4. drwxrwsr-x 2 root users 4096 Dec 13 22:08 Music
      5. drwxr-sr-x 3 plex plex 4096 Dec 13 20:02 plexmediaserver
      6. drwxrws--- 4 root users 4096 Dec 13 19:00 Torrent
      7. root@openmediavault:/media/d8d177bb-9add-4024-88c3-b1d3a95206c5# stat Movies
      8. File: `Movies'
      9. Size: 4096 Blocks: 8 IO Block: 4096 directory
      10. Device: 811h/2065d Inode: 11 Links: 2
      11. Access: (2775/drwxrwsr-x) Uid: ( 0/ root) Gid: ( 100/ users)
      12. Access: 2015-12-13 22:04:19.412462103 -0800
      13. Modify: 2015-12-13 22:04:19.412462103 -0800
      14. Change: 2015-12-13 22:04:19.412462103 -0800
      15. Birth: -
      16. root@openmediavault:/media/d8d177bb-9add-4024-88c3-b1d3a95206c5# stat Music/
      17. File: `Music/'
      18. Size: 4096 Blocks: 8 IO Block: 4096 directory
      19. Device: 811h/2065d Inode: 13 Links: 2
      20. Access: (2775/drwxrwsr-x) Uid: ( 0/ root) Gid: ( 100/ users)
      21. Access: 2015-12-13 22:07:43.657892637 -0800
      22. Modify: 2015-12-13 22:08:03.265661574 -0800
      23. Change: 2015-12-13 22:08:03.265661574 -0800
      24. Birth: -
      Display All


      Any ideas on why when I go into Plex to create a Library I don't see the folders show up when I get to the "Add folders" step? It just shows blank when I get to '/media/d8d177bb-9add-4024-88c3-b1d3a95206c5'.

      Thanks in advance.
    • How do you have your movies organized?

      Movies --> A, B, C or just all Movies in this one folder? What is the file system Extention? What File permissions do the movies have?

      I sometimes have problems reading files when plex is not in the "users" group. It should work without, but I have less problems since that:
      usermod -a -G users plex and a service plexmediaserver restart after that.
      OMV stoneburner | HP Microserver | 256GB Samsung 830 SSD for system | 4x 2TB in a RAID5
      OMV erasmus| Odroid XU4 | 5TB Data drive | 500GB Backup drive

    • I sometimes have problems reading files when plex is not in the "users"
      group. It should work without, but I have less problems since that:
      usermod -a -G users plex and a service plexmediaserver restart after that.

      This worked! So apparently Plex can't see the directories with the 'other' permissions it needed to get access through being part of the user group. I'm glad it worked, but this seems odd considering what I've seen in the other threads.




      How do you have your movies organized? Movies --> A, B, C or just all Movies in this one folder?

      I have a single movie in the Movie directory right now for the purpose of testing it out. I have a single mp3 in the Music directory.


      What is the file system Extention?

      .mp4 for the movie and .mp3 for the Music file.


      What File permissions do the movies have?

      They inherited the correct permissions:

      Source Code

      1. root@openmediavault:/media/d8d177bb-9add-4024-88c3-b1d3a95206c5/Movies# ls -l
      2. total 9104
      3. -rwxrw-r-- 1 Reed users 9322157 Sep 22 00:48 IMG_1181.mp4
    • Is strange you should be able to add folders to plex in 755 or 775 mode without adding plex to users group. When you posted your folder listing you did 'ls -l', if you've used 'ls -la' we could've see the current dir permissions and the one above.
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • Bingo!

      I think you nailed it. In Linux you must have permissions all the way up through the parents. 'd8d177bb-9add-4024-88c3-b1d3a95206c5' doesn't have the correct permissions.

      Any idea at what point in the process 'd8d177bb-9add-4024-88c3-b1d3a95206c5' was created?

      Source Code

      1. root@openmediavault:/media# ls -la
      2. total 16
      3. drwxr-xr-x 4 root root 4096 Dec 13 08:32 .
      4. drwxr-xr-x 24 root root 4096 Dec 12 12:15 ..
      5. lrwxrwxrwx 1 root root 6 Dec 12 09:52 cdrom -> cdrom0
      6. drwxr-xr-x 2 root root 4096 Dec 12 09:52 cdrom0
      7. drwxrws--- 6 root users 4096 Dec 13 22:18 d8d177bb-9add-4024-88c3-b1d3a95206c5
    • You can create a shared folder that involves the whole mounted disk by just filling a slash / in path when you create them. Some people do that to share the whole drive.
      Or you brought the disk from another system or you applied wrongly a chmod commans
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server