[solved] Cannot Add Folders to Plex Media Server Sections

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • [solved] Cannot Add Folders to Plex Media Server Sections

      Hello,

      I have a working installation of Open Media Vault 0.5.48.
      I thought i would install plex media server. It all went well, installed properly, I can use the web management and all that.
      But I cannot add any sections in the Library. I select the name, the type and the folder, I click Save and nothing happens. Just a progress wheel starts appearing for only a fraction of a second then it comes back to the add section and thats that.
      I started modifying permissions and such, I gave the plex user read write permissions to the folder where I have my movies.
      If there is any information you might need just tell me, I'll try to get it here (My knowledge of Linux is somewhat limited, but there's always Google).
      What should I do to make it work? I cannot change the owner of the folder, since transmission will probably stop working.

      Here is a screenshot of what I was talking about.
      Files
      • 2.png

        (248.26 kB, downloaded 1,610 times, last: )

      The post was edited 1 time, last by PaulRym ().

    • Re: Cannot Add Folders to Plex Media Server Sections

      Those are torrents downloads??? They do not have the correct permissions. You should create another shared folder and share it via SMB/CIFS. Move the files there and then change into the directory. Then:

      chown -R root:users *

      The files downloaded via Transmission are chown debian-transmission:debian-transmission
    • Re: Cannot Add Folders to Plex Media Server Sections

      Change directory to one level up from the shared folder where your media is and do this:

      cmod -R 775 nameofmediafolder


      You don't need to use acl. Also, plex only needs read permissions on the folder and this is what the 5 does in the chmod command. Don't even mess with ACL. You don't need it to run plexmediaserver.
    • Re: Cannot Add Folders to Plex Media Server Sections

      I tried that, it still doesn't work. I used putty so I can show you a bit of the file structure.
      I was just saying about ACL. I did not change anything in ACL on these folders.
      The folder I just edited is plexfiles.
      Files
      • Untitled.png

        (64.69 kB, downloaded 1,159 times, last: )
    • Re: Cannot Add Folders to Plex Media Server Sections

      Before I was trying to do add the downloads folder in plex library. I understaood that cant be done because of transmission. So I made a new folder, plexfiles so I cna put files in there from where I can add to the library.
      The plexmediaserver folder was made by the plugin installation with those permissions, I did not change anything on it since I saw there are certain files that might be needed by the server itself.
      I changed the plexmediaserver permissions too. Still the same problem.
      I got to the log files from plex:

      Source Code

      1. Jun 09, 2014 18:39:21 [0x7f83367f4700] DEBUG - We found auth token (UHViceJBiqyze1M99nHD), enabling token-based authentication.
      2. Jun 09, 2014 18:39:21 [0x7f83367f4700] DEBUG - Came in with a super-token, authorization succeeded.
      3. Jun 09, 2014 18:39:21 [0x7f83367f4700] VERBOSE - Completed request: POST /library/sections?type=show&agent=&scanner=&language=&location=%2Fmedia%2F97cacdff-6570-4453-a00d-8c552818f33c%2Fplexfiles&name=TV+Shows: 400
      4. Jun 09, 2014 18:39:21 [0x7f834311e700] VERBOSE - Saving 0 bytes of expected 0 for a POST.
      5. Jun 09, 2014 18:39:21 [0x7f832aff5700] DEBUG - Request: [192.168.0.103:58211] POST /library/sections?type=show&agent=&scanner=&language=&location=%2Fmedia%2F97cacdff-6570-4453-a00d-8c552818f33c%2Fplexfiles&name=TV+Shows (11 live)
      6. Jun 09, 2014 18:39:21 [0x7f832aff5700] DEBUG - * type => show
      7. Jun 09, 2014 18:39:21 [0x7f832aff5700] DEBUG - * agent =>
      8. Jun 09, 2014 18:39:21 [0x7f832aff5700] DEBUG - * scanner =>
      9. Jun 09, 2014 18:39:21 [0x7f832aff5700] DEBUG - * language =>
      10. Jun 09, 2014 18:39:21 [0x7f832aff5700] DEBUG - * location => /media/97cacdff-6570-4453-a00d-8c552818f33c/plexfiles
      11. Jun 09, 2014 18:39:21 [0x7f832aff5700] DEBUG - * name => TV Shows
      12. Jun 09, 2014 18:39:21 [0x7f832aff5700] DEBUG - We found auth token (UHViceJBiqyze1M99nHD), enabling token-based authentication.
      13. Jun 09, 2014 18:39:21 [0x7f832aff5700] DEBUG - Came in with a super-token, authorization succeeded.
      14. Jun 09, 2014 18:39:21 [0x7f832aff5700] VERBOSE - Completed request: POST /library/sections?type=show&agent=&scanner=&language=&location=%2Fmedia%2F97cacdff-6570-4453-a00d-8c552818f33c%2Fplexfiles&name=TV+Shows: 400
      15. Jun 09, 2014 18:39:21 [0x7f834291d700] VERBOSE - Saving 0 bytes of expected 0 for a POST.
      16. Jun 09, 2014 18:39:21 [0x7f832bff7700] DEBUG - Request: [192.168.0.103:58212] POST /library/sections?type=show&agent=&scanner=&language=&location=%2Fmedia%2F97cacdff-6570-4453-a00d-8c552818f33c%2Fplexfiles&name=TV+Shows (11 live)
      17. Jun 09, 2014 18:39:21 [0x7f832bff7700] DEBUG - * type => show
      18. Jun 09, 2014 18:39:21 [0x7f832bff7700] DEBUG - * agent =>
      19. Jun 09, 2014 18:39:21 [0x7f832bff7700] DEBUG - * scanner =>
      20. Jun 09, 2014 18:39:21 [0x7f832bff7700] DEBUG - * language =>
      21. Jun 09, 2014 18:39:21 [0x7f832bff7700] DEBUG - * location => /media/97cacdff-6570-4453-a00d-8c552818f33c/plexfiles
      22. Jun 09, 2014 18:39:21 [0x7f832bff7700] DEBUG - * name => TV Shows
      23. Jun 09, 2014 18:39:21 [0x7f832bff7700] DEBUG - We found auth token (UHViceJBiqyze1M99nHD), enabling token-based authentication.
      24. Jun 09, 2014 18:39:21 [0x7f832bff7700] DEBUG - Came in with a super-token, authorization succeeded.
      25. Jun 09, 2014 18:39:21 [0x7f832bff7700] VERBOSE - Completed request: POST /library/sections?type=show&agent=&scanner=&language=&location=%2Fmedia%2F97cacdff-6570-4453-a00d-8c552818f33c%2Fplexfiles&name=TV+Shows: 400
      Display All


      It seems like it finds no files or folders there, even if there are. But even so, ok, it sees there are no files or anything, why not just let me add the folder. It is supposed to add the folder and monitor if there are any changes in it.
      Please correct me if my reasoning is bad. Th permissions on the config file of the plug in may be broken or something? If that was the case, why does it save any other settings, except the folders I'm trying to get it to monitor?
    • Re: Cannot Add Folders to Plex Media Server Sections

      Here it is:

      Source Code

      1. root@prymnas:/media/97cacdff-6570-4453-a00d-8c552818f33c# stat plexfiles/
      2. File: `plexfiles/'
      3. Size: 52 Blocks: 0 IO Block: 4096 directory
      4. Device: 801h/2049d Inode: 9419400 Links: 2
      5. Access: (2775/drwxrwsr-x) Uid: ( 0/ root) Gid: ( 100/ users)
      6. Access: 2014-06-09 17:59:36.792522684 +0300
      7. Modify: 2014-06-09 17:14:56.343479697 +0300
      8. Change: 2014-06-09 17:59:35.719531860 +0300
      9. root@prymnas:/media/97cacdff-6570-4453-a00d-8c552818f33c# cd plexfiles/
      10. root@prymnas:/media/97cacdff-6570-4453-a00d-8c552818f33c/plexfiles# ls -la
      11. total 199208
      12. drwxrwsr-x 2 root users 52 Jun 9 17:14 .
      13. drwxr-xr-x 6 root root 69 Jun 9 17:06 ..
      14. -rwxrwxr-x 1 paulrym users 203987337 Jun 6 09:46 silicon.valley.s01e06.hdtv.x264-2hd.mp4
      Display All
    • Re: Cannot Add Folders to Plex Media Server Sections

      That's a problem I'm not even getting to. In the first screenshot I posted, you could see the dialog box from Plex Media Server with which you add new sections. That dialog box never closes unless I click Cancel or the X to close it. It never saves.
      I'm sorry for bothering you guys with this, but I don't wanna make too many changes that might alter the system all together.
      It's not urgent or anything, and if it cannot work, I can accept that. I couldn't find any topic or post relevant to this problem.
    • Re: Cannot Add Folders to Plex Media Server Sections

      I noticed some stuff. I am starting to think that ACL may break normal perm (chmod). After reinstall I would remove your shared plex files folder from SMB/CIFS and the delete it in share folders. Then create again. Don't use ACL on it. People are using ACL to much and don't understand it. You don't need ACL for a good shared media folder and plex media server. You just need privileges (chmod) on the shared folder for the users you want to use with it.


      BTW- you messed with acl and other stuff on every folder I saw, and other things like chown. If you are messing that much with PMS you are doing something wrong.

      PS- I don't use ACL at all. And I run way more things here then 95 percent of people on forum.
    • Re: Cannot Add Folders to Plex Media Server Sections

      "tekkbebe" wrote:

      PS- I don't use ACL at all. And I run way more things here then 95 percent of people on forum.

      I never use them either and I have a *lot* running on my server at work.
      omv 4.1.8.2 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.9
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please read this before posting a question.
      Please don't PM for support... Too many PMs!
    • Re: Cannot Add Folders to Plex Media Server Sections

      Yes I did experiment a little with ACL at some point. I could not get the result I wanted so I let it be and undid most of the changes I did.
      Anyway, the problem is solved.
      Before posting here I tried reinstalling the plugin but I did not do it from the shell.
      After running the commands you told me to, a message amongst the command line that I did not see before appeared. It was telling me that some additional plug ins can be removed with autoremove. I did not do that before. After removing those too and reinstalling everything, it worked. And now I can add any folder I want, even those mde by transmission.
      So thank you for your help and have a nice day!
    • Re: Cannot Add Folders to Plex Media Server Sections

      "tekkbebe" wrote:

      I noticed some stuff. I am starting to think that ACL may break normal perm (chmod). [...]


      ACLs are additions to the normal filesystem permission and therefore should not break any permissions, except a faulty ACLs configuration which may deny rights for some users. But then it is caused by due to a misconfiguration and not the ACLs itself.

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.