Plex plugin installation fails

    • OMV 3.x
    • Resolved

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

    • tekkb wrote:

      Do this and then try to install the plugin again:
      apt-get purge openmediavault-plexmediaserver
      apt-get purge plexmediaserver
      userdel plex

      Then delete the plexmediaserver folder on your data drive, which ever one you put it on.

      Then reinstall the plugin from the plugin section in OMV's Web GUI. Do not do it from command line.
      Did it the way you told me... no success...

      Still the same error 'Failed to execute XPath query '//services/plexmediaserver'' (detail):

      Fehler #0:
      exception 'OMV\Config\DatabaseException' with message 'Failed to execute XPath query '//services/plexmediaserver'.' in /usr/share/php/openmediavault/config/database.inc:78
      Stack trace:
      #0 /usr/share/openmediavault/engined/rpc/plexmediaserver.inc(54): OMV\Config\Database->get('conf.service.pl...')
      #1 [internal function]: OMVRpcServicePlexMediaServer->setSettings(Array, Array)
      #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      #3 /usr/share/php/openmediavault/rpc/rpc.inc(84): OMV\Rpc\ServiceAbstract->callMethod('setSettings', Array, Array)
      #4 /usr/sbin/omv-engined(538): OMV\Rpc\Rpc::call('PlexMediaServer', 'setSettings', Array, Array, 1)
      #5 {main}


      I don't know if it is related to this error... but I can't specify any folder for the Plex-database. I can choose the drive (raid or usb-stick) but that is it. No access to the folder field...

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

    • Re-installing doesn't erase your array. You are supposed to disconnect all other drives except system when installing anyway.
      omv 4.0.6 arrakis | 64 bit | 4.12 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • ryecoaaron wrote:

      Re-installing doesn't erase your array. You are supposed to disconnect all other drives except system when installing anyway.
      This means
      1) disconnection of every hdd (system is installed at a usb-stick SLC nand flash)
      2) installation of OMV
      3) re-connection of the six hdd with the raid-6-array
      4) raid-6-array is shown at 'filesystems' at settings so it can be mounted and accessed

      I'm a little bit worried as I read that there are several commands needed such as 'mdadm --assemble --scan' after installation? This is said to not have the raid-6 accessible...
      Do you know of a howto to guide me through this process?
    • Has this issue with Plex been solved yet? The same thing is happening to me with the latest version of Erasmus. When I install the plexmediaserver plugin it never completes. I have to close the web page and re-enter the web gui. when I do that I get:


      Failed to execute XPath query '//services/plexmediaserver'.


      Error #0:
      exception 'OMV\Config\DatabaseException' with message 'Failed to execute XPath query '//services/plexmediaserver'.' in /usr/share/php/openmediavault/config/database.inc:78
      Stack trace:
      #0 /usr/share/openmediavault/engined/module/plexmediaserver.inc(58): OMV\Config\Database->get('conf.service.pl...')
      #1 /usr/share/openmediavault/engined/rpc/services.inc(56): OMVModulePlexMediaServer->getStatus()
      #2 [internal function]: OMVRpcServiceServices->getStatus(Array, Array)
      #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      #4 /usr/share/php/openmediavault/rpc/rpc.inc(84): OMV\Rpc\ServiceAbstract->callMethod('getStatus', Array, Array)
      #5 /usr/sbin/omv-engined(516): OMV\Rpc\Rpc::call('Services', 'getStatus', Array, Array, 1)
      #6 {main}

      Any help would be appreciated, thanks.
      -Zach
    • Having the same problem reinstalling.

      Error from Install :

      Source Code

      1. Reading package lists...
      2. Building dependency tree...
      3. Reading state information...
      4. The following extra packages will be installed:
      5. avahi-utils git git-core git-man liberror-perl plexmediaserver
      6. Suggested packages:
      7. git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk
      8. gitweb git-arch git-cvs git-mediawiki git-svn
      9. Recommended packages:
      10. patch
      11. The following NEW packages will be installed:
      12. avahi-utils git git-core git-man liberror-perl
      13. openmediavault-plexmediaserver plexmediaserver
      14. 0 upgraded, 7 newly installed, 0 to remove and 9 not upgraded.
      15. Need to get 0 B/99.6 MB of archives.
      16. After this operation, 217 MB of additional disk space will be used.
      17. Selecting previously unselected package avahi-utils.
      18. (Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 43108 files and directories currently installed.)
      19. Preparing to unpack .../avahi-utils_0.6.31-5_i386.deb ...
      20. Unpacking avahi-utils (0.6.31-5) ...
      21. Selecting previously unselected package liberror-perl.
      22. Preparing to unpack .../liberror-perl_0.17-1.1_all.deb ...
      23. Unpacking liberror-perl (0.17-1.1) ...
      24. Selecting previously unselected package git-man.
      25. Preparing to unpack .../git-man_1%3a2.1.4-2.1+deb8u2_all.deb ...
      26. Unpacking git-man (1:2.1.4-2.1+deb8u2) ...
      27. Selecting previously unselected package git.
      28. Preparing to unpack .../git_1%3a2.1.4-2.1+deb8u2_i386.deb ...
      29. Unpacking git (1:2.1.4-2.1+deb8u2) ...
      30. Selecting previously unselected package git-core.
      31. Preparing to unpack .../git-core_1%3a2.1.4-2.1+deb8u2_all.deb ...
      32. Unpacking git-core (1:2.1.4-2.1+deb8u2) ...
      33. Selecting previously unselected package plexmediaserver.
      34. Preparing to unpack .../plexmediaserver_1.4.4.3495-edef59192_i386.deb ...
      35. Unpacking plexmediaserver (1.4.4.3495-edef59192) ...
      36. Selecting previously unselected package openmediavault-plexmediaserver.
      37. Preparing to unpack .../openmediavault-plexmediaserver_3.8.1_all.deb ...
      38. Unpacking openmediavault-plexmediaserver (3.8.1) ...
      39. Processing triggers for man-db (2.7.0.2-5) ...
      40. Processing triggers for systemd (215-17+deb8u6) ...
      41. Processing triggers for desktop-file-utils (0.22-1) ...
      42. Processing triggers for mime-support (3.58) ...
      43. Processing triggers for openmediavault (3.0.67) ...
      44. Restarting engine daemon ...
      45. Setting up avahi-utils (0.6.31-5) ...
      46. Setting up liberror-perl (0.17-1.1) ...
      47. Setting up git-man (1:2.1.4-2.1+deb8u2) ...
      48. Setting up git (1:2.1.4-2.1+deb8u2) ...
      49. Setting up git-core (1:2.1.4-2.1+deb8u2) ...
      50. Setting up plexmediaserver (1.4.4.3495-edef59192) ...
      51. OK
      52. Created symlink from /etc/systemd/system/multi-user.target.wants/plexmediaserver.service to /lib/systemd/system/plexmediaserver.service.
      53. Setting up openmediavault-plexmediaserver (3.8.1) ...
      54. stat: cannot stat '/media/52B80C48B80C2D53/plexmediaserver/Library': No such file or directory
      55. dpkg: error processing package openmediavault-plexmediaserver (--configure):
      56. subprocess installed post-installation script returned error exit status 1
      57. Processing triggers for openmediavault (3.0.67) ...
      58. Restarting engine daemon ...
      59. Errors were encountered while processing:
      60. openmediavault-plexmediaserver
      61. >>> *************** Error ***************
      62. <<< *************************************
      Display All
      Then the dreaded popup menu which states every 30sec - Failed to execute XPath query '//services/plexmediaserver'.


      Source Code

      1. Failed to execute XPath query '//services/plexmediaserver'.
      2. Error #0: exception 'OMV\Config\DatabaseException' with message 'Failed to execute XPath query '//services/plexmediaserver'.' in /usr/share/php/openmediavault/config/database.inc:78 Stack trace: #0 /usr/share/openmediavault/engined/module/plexmediaserver.inc(58): OMV\Config\Database->get('conf.service.pl...') #1 /usr/share/openmediavault/engined/rpc/services.inc(56): OMVModulePlexMediaServer->getStatus() #2 [internal function]: OMVRpcServiceServices->getStatus(Array, Array) #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array) #4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getStatus', Array, Array) #5 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Services', 'getStatus', Array, Array, 1) #6 {main}
      Plex worked well before - but had to swap out drives - sure would like to get it up and running again.


      Thanks.
    • kylelmartin wrote:

      Having the same problem reinstalling.
      I know you probably got an error when posting but don't keep trying. It is the same filter causing your post to need to accepted.
      omv 4.0.6 arrakis | 64 bit | 4.12 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • majorpayne wrote:

      I tried the previous statements by @ryecoaaron and it still having the same issue. I did a fresh install and i can't get plex to install. Causes the same errors as above.
      Not sure what previous statements you are referring to or what system you are installing on. It does seem that people who are using libraries from previous installs have a lot of issues (probably permissions or ownership).
      omv 4.0.6 arrakis | 64 bit | 4.12 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • After having tried plexmediaserver in docker I wanted to return to standard plugin installation in OMV 3.

      There is an issue already during the re-installation process resulting in a.m. error. As it seems, only re-installation is affected
      (i had removed plexmediaserver before my docker try via UI). Perhaps there is an issue in the de-installation that prevents a proper
      re-installation?
      HP Microserver Gen8 - 16GB RAM - 1x Kingston 30 GB SSD - 4x 3TB WD Red / Raid 5 with BTRFS - OMV 3.0.xx bare metal - Synology DS214 with 1x 4TB WD Red for rsync backup
    • majorpayne wrote:

      mine was a fresh install of OMV after wiping the drive.
      sorry - didn't get that correctly.

      Then I should wait with a fresh install ...

      or alternatively I should go back to use docker.
      HP Microserver Gen8 - 16GB RAM - 1x Kingston 30 GB SSD - 4x 3TB WD Red / Raid 5 with BTRFS - OMV 3.0.xx bare metal - Synology DS214 with 1x 4TB WD Red for rsync backup

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

    • Hi I'd like to also report that I'm getting the same error

      Failed to execute XPath query '//services/plexmediaserver''

      I'm running OMV 3.0.74

      Plex installed fine the first time but the web interface wasn't working so I uninstalled and reinstalled, and ever since then it has 'failed' the reinstall. It installs ending in an error, but then the services page will not load in OMV until plex is uninstalled. Activating and unactivating the plex service doesn't do anything. If I uninstall and reinstall I get the error every time.

      Thanks,
      -Alex
    • The shared folder can not be uppercase and has no special characters.


      Der freigegebene Ordner darf nicht groß geschrieben sein und keine Sonderzeichen haben.
      forum-bpi.de Visit on and help us, The Germany Forum :thumbsup:
      github.com/Wolf2000Pi
      Banana Pi /Armbian 3.4.109 / Openmediavault 2.x
      Banana Pi /Armbian 4.11.5-sunxi / Openmediavault 3.0.xx (Test)
      Dell Inspiron One 2205 | Openmediavault 3.0.xx / Kernel 4.7 (Test)
    • First off all: openmediavault-plexmediaserver 3.8.1 plugin is running very well. No issues, only a question out of curiosity:

      when I do a "apt-get update" in the CLI I get an info as follows:

      "W: Konflikt bei Distribution: downloads.plex.tv public InRelease (public erwartet, aber bekommen)"

      @ryecoaaron could you please explain what happens?

      Thank you very much in advance.
      HP Microserver Gen8 - 16GB RAM - 1x Kingston 30 GB SSD - 4x 3TB WD Red / Raid 5 with BTRFS - OMV 3.0.xx bare metal - Synology DS214 with 1x 4TB WD Red for rsync backup

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

    • tekkb wrote:

      Do this and then try to install the plugin again:
      apt-get purge openmediavault-plexmediaserver
      apt-get purge plexmediaserver
      userdel plex

      Then delete the plexmediaserver folder on your data drive, which ever one you put it on.

      Then reinstall the plugin from the plugin section in OMV's Web GUI. Do not do it from command line.
      Hi did this but it did not solve my problem. This is my error at the install:

      Source Code

      1. Reading package lists...
      2. Building dependency tree...
      3. Reading state information...
      4. The following extra packages will be installed:
      5. avahi-utils git git-core git-man liberror-perl plexmediaserver
      6. Suggested packages:
      7. git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk
      8. gitweb git-arch git-cvs git-mediawiki git-svn
      9. Recommended packages:
      10. patch
      11. The following NEW packages will be installed:
      12. avahi-utils git git-core git-man liberror-perl
      13. openmediavault-plexmediaserver plexmediaserver
      14. 0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
      15. Need to get 0 B/110 MB of archives.
      16. After this operation, 253 MB of additional disk space will be used.
      17. Selecting previously unselected package avahi-utils.
      18. (Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 43869 files and directories currently installed.)
      19. Preparing to unpack .../avahi-utils_0.6.31-5_amd64.deb ...
      20. Unpacking avahi-utils (0.6.31-5) ...
      21. Selecting previously unselected package liberror-perl.
      22. Preparing to unpack .../liberror-perl_0.17-1.1_all.deb ...
      23. Unpacking liberror-perl (0.17-1.1) ...
      24. Selecting previously unselected package git-man.
      25. Preparing to unpack .../git-man_1%3a2.1.4-2.1+deb8u3_all.deb ...
      26. Unpacking git-man (1:2.1.4-2.1+deb8u3) ...
      27. Selecting previously unselected package git.
      28. Preparing to unpack .../git_1%3a2.1.4-2.1+deb8u3_amd64.deb ...
      29. Unpacking git (1:2.1.4-2.1+deb8u3) ...
      30. Selecting previously unselected package git-core.
      31. Preparing to unpack .../git-core_1%3a2.1.4-2.1+deb8u3_all.deb ...
      32. Unpacking git-core (1:2.1.4-2.1+deb8u3) ...
      33. Selecting previously unselected package plexmediaserver.
      34. Preparing to unpack .../plexmediaserver_1.5.6.3790-4613ce077_amd64.deb ...
      35. Unpacking plexmediaserver (1.5.6.3790-4613ce077) ...
      36. Selecting previously unselected package openmediavault-plexmediaserver.
      37. Preparing to unpack .../openmediavault-plexmediaserver_3.8.1_all.deb ...
      38. Unpacking openmediavault-plexmediaserver (3.8.1) ...
      39. Processing triggers for man-db (2.7.0.2-5) ...
      40. Processing triggers for systemd (215-17+deb8u7) ...
      41. Processing triggers for mime-support (3.58) ...
      42. Processing triggers for openmediavault (3.0.76) ...
      43. Restarting engine daemon ...
      44. Setting up avahi-utils (0.6.31-5) ...
      45. Setting up liberror-perl (0.17-1.1) ...
      46. Setting up git-man (1:2.1.4-2.1+deb8u3) ...
      47. Setting up git (1:2.1.4-2.1+deb8u3) ...
      48. Setting up git-core (1:2.1.4-2.1+deb8u3) ...
      49. Setting up plexmediaserver (1.5.6.3790-4613ce077) ...
      50. OK
      51. Created symlink from /etc/systemd/system/multi-user.target.wants/plexmediaserver.service to /lib/systemd/system/plexmediaserver.service.
      52. Job for plexmediaserver.service failed. See 'systemctl status plexmediaserver.service' and 'journalctl -xn' for details.
      53. dpkg: error processing package plexmediaserver (--configure):
      54. subprocess installed post-installation script returned error exit status 1
      55. dpkg: dependency problems prevent configuration of openmediavault-plexmediaserver:
      56. openmediavault-plexmediaserver depends on plexmediaserver | plexmediaserver-installer; however:
      57. Package plexmediaserver is not configured yet.
      58. Package plexmediaserver-installer is not installed.
      59. dpkg: error processing package openmediavault-plexmediaserver (--configure):
      60. dependency problems - leaving unconfigured
      61. Errors were encountered while processing:
      62. plexmediaserver
      63. openmediavault-plexmediaserver
      64. >>> *************** Error ***************
      65. <<< *************************************
      Display All
      This is the error after I hit close on the install window:

      Source Code

      1. Error #0:
      2. exception 'OMV\Config\DatabaseException' with message 'Failed to execute XPath query '//services/plexmediaserver'.' in /usr/share/php/openmediavault/config/database.inc:78
      3. Stack trace:
      4. #0 /usr/share/openmediavault/engined/module/plexmediaserver.inc(58): OMV\Config\Database->get('conf.service.pl...')
      5. #1 /usr/share/openmediavault/engined/rpc/services.inc(56): OMVModulePlexMediaServer->getStatus()
      6. #2 [internal function]: OMVRpcServiceServices->getStatus(Array, Array)
      7. #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      8. #4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getStatus', Array, Array)
      9. #5 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Services', 'getStatus', Array, Array, 1)
      10. #6 {main}
      Is there some sort of services file that needs to be purged of plex?
    • belierzz wrote:

      "W: Konflikt bei Distribution: downloads.plex.tv public InRelease (public erwartet, aber bekommen)"

      @ryecoaaron could you please explain what happens?
      It has to do with how plex has their repo setup. It is just a warning and shouldn't hurt anything though. Nothing I can do to fix it.
      omv 4.0.6 arrakis | 64 bit | 4.12 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!