Plexmediaserver on Openmediavault

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

    • Plexmediaserver on Openmediavault

      Hey Guys,

      did anyone get plexmediaserver to work?
      I tried to do it the easy way, so I installed it via ssh with

      Source Code

      1. apt-get install plexmediaserver


      but there i get an error at the end of the installation

      Source Code

      1. /var/lib/dpkg/info/plexmediaserver.postinst: 34: start: not found
      .

      I think that happens, because the .deb package is prepared for a host that uses upstart, but openmediavault doesn't use that until now.
      Because the Link that lies under

      Source Code

      1. /etc/init.d/plexmediaserver

      points to

      Source Code

      1. /lib/init/upstart-job

      which isn't present.

      I could try to

      Source Code

      1. apt-get install upstart

      but I don't want to mess up my system.

      Any ideas? Help would be appreciated. :ugeek:
    • Re: Plexmediaserver on Openmediavault

      but I don't want to mess up my system.


      I highly suggest you install the virtualbox plugin and make a virtual OMV machine (set it to bridged network adapter) I'm finding it helpful to keep my freshly redone system from getting trashed.
      As for the results, I got the exact same as you. I'm really interested in this to hopefully have a headless server for XBMC. I would really love it to handle the shared MySQL database set for XBMC.
    • Re: Plexmediaserver on Openmediavault

      Mod, I can't edit my post so please merge the following into my post once it's approved

      Found out how to install Plex Media Server on Debian Squeeze. Only issue now the web GUI page is blank.
      To install go according to the instructions of this post: forums.plexapp.com/index.php/t…view__findpost__p__290304
      Quoting here for those that don't want to open a new tab/window

      Updated with the new version 0.9.6.8.228-e6ae65a

      Do the usual

      First Time install

      Source Code

      1. sudo echo "deb http://shell.ninthgate.se/packages/debian squeeze main" >> /etc/apt/sources.list
      2. sudo curl http://shell.ninthgate.se/packages/shell-ninthgate-se-keyring.key | sudo apt-key add -
      3. sudo apt-get update
      4. sudo apt-get install plexmediaserver


      Upgrading

      Source Code

      1. sudo apt-get update
      2. sudo apt-get upgrade
    • Re: Plexmediaserver on Openmediavault

      The important thing to do is:

      - make a new script in /etc/init.d with the name "plexmediaserver" and paste the whole code below into it.
      - make a chmod +x /etc/init.d/plexmediaserver
      - make a "update-rc.d plexmediaserver enable"

      Source Code

      1. ### BEGIN INIT INFO
      2. # Provides: plexmediaserver
      3. # Required-Start: $remote_fs $syslog $all
      4. # Required-Stop:
      5. # Default-Start: 2 3 4 5
      6. # Default-Stop: 0 1 6
      7. # Short-Description: Plex Media Server
      8. # Description: Plex Media Server for Linux,
      9. # More information at http://www.plexapp.com
      10. # Many thanks to the great PlexApp team for his wonderfull job !
      11. # Author: Cedric Quillevere / origin@killy.net
      12. # Version: 1.0a
      13. ### END INIT INFO
      14. test -f "/usr/lib/plexmediaserver/Plex Media Server" || exit 0
      15. export PMS_RUN_USER="plex"
      16. plex_running=`ps ax | grep "\./Plex Media Server" | awk '{ print $1 }' | wc -l`
      17. case "$1" in
      18. start)
      19. if [ "$plex_running" -gt 1 ]; then
      20. echo "Plex already running..."
      21. exit 0
      22. fi
      23. echo -n "Starting Plex Media Server: "
      24. su -l $PMS_RUN_USER -c "/usr/sbin/start_pms &" >/dev/null 2>&1
      25. sleep 1
      26. echo "done"
      27. ;;
      28. stop)
      29. if [ "$plex_running" -eq 1 ]; then
      30. echo "Plex Media Server is not running (no process found)..."
      31. exit 0
      32. fi
      33. # Trying to kill the Plex Media Server itself but also the Plug-ins
      34. echo -n "Killing Plex Media Server: "
      35. ps ax | grep "Plex Media Server" | awk '{ print $1 }' | xargs kill -9 >/dev/null 2>&1
      36. sleep 1
      37. echo "done"
      38. ;;
      39. restart)
      40. sh $0 stop
      41. sh $0 start
      42. ;;
      43. status)
      44. if [ "$plex_running" -gt 1 ]; then
      45. echo "Plex Media Server process running."
      46. else
      47. echo "It seems that Plex Media Server isn't running (no process found)."
      48. fi
      49. ;;
      50. *)
      51. echo "Usage: $0 {start|stop|restart|status}"
      52. exit 1
      53. ;;
      54. esac
      55. exit 0
      Display All
    • Re: Plexmediaserver on Openmediavault

      Meanwhile there came in an upgrade .deb that destroyed a lot.

      I recognized during the upgrade that the debconf spit out this:

      Source Code

      1. adduser: Warnung: Das Home-Verzeichnis »/var/lib/plexmediaserver« gehört nicht dem Benutzer, den Sie gerade anlegen.
      2. update-rc.d: using dependency based boot sequencing
      3. Plex Media Server is not running (no process found)...
      4. Starting Plex Media Server: done

      as you can see the process marks up that the "home-folder" /var/lib/plexmediaserver soesn't belong to the just added user.
      Even if it says "Starting Plex Media Server: done" it isn't running:

      Source Code

      1. root@omv:/# /etc/init.d/plexmediaserver status
      2. It seems that Plex Media Server isn't running (no process found).


      and trying to start it hangs:

      Source Code

      1. root@omv:/# su -l plex /etc/init.d/plexmediaserver start
      2. Starting Plex Media Server:

      which I must cancel with ctrl+c
      I will poke around there, but I am happy if someone has a hint for that one.
      (I'm not sure how the packager test his packages, that these things happen?!?) :roll:
    • Re: Plexmediaserver on Openmediavault

      ok - as root it works - so there is a problem in the installation script... :(

      ====EDIT====

      no - only partly.
      the webinterface comes up - but the scrapers are missing and so on. i think the release is defect fpr debian...

      sadly i dont have the .deb of the last version not saved... :x
    • Re: Plexmediaserver on Openmediavault

      Hi.
      I just upgraded my brothers openmedia vault with the latest plex from my repo and I had no problems what so ever with the upgrade or with the start of the new version. With that said I need to point out that he is on an amd64 system. I haven't checked the i386 package yet.

      I did a google translate on the error msg you got during the upgrade.

      adduser: Warnung: Das Home-Verzeichnis »/var/lib/plexmediaserver« gehört nicht dem Benutzer, den Sie gerade anlegen.
      translates to
      adduser: Warning: The home directory "/var/lib/plexmediaserver" does not belong to the user that you are creating.

      So my question to you is what system are you running amd64 or i386 and who is the owner of /var/lib/plexmediaserver

      Source Code

      1. ls -la /var/lib/
      2. drwxr-xr-x 3 plex nogroup 4096 Aug 21 19:12 plexmediaserver


      Edit.
      Just tried the i386 package on my virtual i386 debian machine and it did install nice and clean and started up without any trouble.
    • Re: Plexmediaserver on Openmediavault

      FWIW, the plex update installed fine, the web ui came up fine (and it even recognized new videos), but it would not serve media. Devices running Plex would say that the server is unavailable, and MyPlex said that the server is up, but plex isnt running.

      After uninstalling and reinstalling, Plex is working perfectly.
    • Re: Plexmediaserver on Openmediavault

      "mr.gosh" wrote:

      Meanwhile there came in an upgrade .deb that destroyed a lot.

      I recognized during the upgrade that the debconf spit out this:

      Source Code

      1. adduser: Warnung: Das Home-Verzeichnis »/var/lib/plexmediaserver« gehört nicht dem Benutzer, den Sie gerade anlegen.
      2. update-rc.d: using dependency based boot sequencing
      3. Plex Media Server is not running (no process found)...
      4. Starting Plex Media Server: done

      as you can see the process marks up that the "home-folder" /var/lib/plexmediaserver soesn't belong to the just added user.
      Even if it says "Starting Plex Media Server: done" it isn't running:

      Source Code

      1. root@omv:/# /etc/init.d/plexmediaserver status
      2. It seems that Plex Media Server isn't running (no process found).


      and trying to start it hangs:

      Source Code

      1. root@omv:/# su -l plex /etc/init.d/plexmediaserver start
      2. Starting Plex Media Server:

      which I must cancel with ctrl+c
      I will poke around there, but I am happy if someone has a hint for that one.
      (I'm not sure how the packager test his packages, that these things happen?!?) :roll:



      I have exactly the same problem. Who ever cope?
    • Re: Plexmediaserver on Openmediavault

      This is how I solved the problem...everything done as root

      1. first install plex from here
      forums.plexapp.com/index.php/t…server-debian-repository/

      1.5: for openemediavault I think we need to add more debian repo, I have stable, unstable and even experimental,, if installation failed then try adding each one at a time and try again

      2 .run command

      Source Code

      1. export LD_LIBRARY_PATH=/usr/lib/plexmediaserver


      3. change user plex to root

      Source Code

      1. nano /etc/init.d/plexmediaserver

      goto line 18 change "plex" to "root"

      again

      Source Code

      1. nano /etc/default/plexmediaserver

      line 19
      change plex to root

      3. now
      run command

      Source Code

      1. /etc/init.d/plexmediaserver restart


      4. goto browser

      Source Code

      1. [omv ip]:32400/web


      if everything went well it should work properly..

      #after this (its optional, my openmediavault partition is small so I had to move my Plex library to other partition so I created symbolic link folder)

      copy all the files from /root/Library to /media/[partition name]/Library

      Source Code

      1. cp -avr /root/Library /media/[partition name]/Library


      (just in case | backup)

      Source Code

      1. mv /root/Library /root/Library.bak


      Source Code

      1. ln -s /media/[partition name]/Library /root/Library


      done..
    • Re: Plexmediaserver on Openmediavault

      There's also a way to get a headless XBMC compiled on OMV. Works fairly well. At least for the alphas where it would allow library updates from sickbeard and couchpotato. The newer UPnP is proving to be a pain to me. But there are work-arounds for the old MySQL database shares.

      Once I get more kinks on how I set it up worked out, I'll post a clear "how to" in a new thread here. I'm still appreciative to all the guys on the XBMC forums for guiding me on how to do it.