Error configuring plex plug-in

    • OMV 1.0
    • Resolved
    • Error configuring plex plug-in

      Hi,

      I installed the Plex plugin and now tried to configure it. But I get the following error message:

      Source Code

      1. Error #4000:
      2. exception 'OMVException' with message 'Failed to execute command 'omv-mkconf plexmediaserver 2>&1': chown: cannot access `/var/lib/plexmediaserver': No such file or directory' in /usr/share/openmediavault/engined/module/plexmediaserver.inc:44
      3. Stack trace:
      4. #0 /usr/share/openmediavault/engined/rpc/config.inc(180): OMVModulePlexMediaServer->applyConfig()
      5. #1 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
      6. #2 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      7. #3 /usr/share/php/openmediavault/rpcservice.inc(158): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
      8. #4 /usr/share/openmediavault/engined/rpc/config.inc(224): OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)
      9. #5 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
      10. #6 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      11. #7 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
      12. #8 /usr/sbin/omv-engined(500): OMVRpc::exec('Config', 'applyChangesBg', Array, Array, 1)
      13. #9 {main}
      Display All


      For some reason it cannot access the location where I would like to put the plex database. I should add that I added a new ssd that should hold the database. So maybe I messed up there. This is what I did with the drive:

      1) wiped it
      2) Under logical volume management I added the ssd as physical volume, then as a volume group and finally as a logical volume
      3) Formated the ssd under file system as ext4

      Any ideas what went wrong?

      Cheers
      TiredHornet
      Supermicro X9SCM-F, Intel Pentium G2030, 8GB DDR3 1600MHz, Toshiba 64 GB SSD, 3x 4TB WD40EFRX (Snapraid)
    • Once you format the logical volume, this should be available for usage. Did it appear for example for creating shared folders in the dropdown menu?

      The procedure you mentioned is fine, though i don't understand why you choose LVM, you could use it as single disk
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • The procedure you mentioned is fine, though i don't understand why you choose LVM, you could use it as single disk


      I didn't see how I can just add the drive a single disk...

      Well I think I just figured it out. Just create a new file system on the drive. So I now have the ssd as a single disk in ext4 format.

      But this still doesn't solve my problem with the plex plugin.
      Supermicro X9SCM-F, Intel Pentium G2030, 8GB DDR3 1600MHz, Toshiba 64 GB SSD, 3x 4TB WD40EFRX (Snapraid)

      The post was edited 2 times, last by TiredHornet ().

    • In filesystems, you choose create and select the device sdX. Is very common that the device doesn't appear sometimes there, so a common practice as you mentioned is to wipe the disk previous to format.

      That's why I understand if you wiped it should appeared as an available device to create a FS in the section
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • We must have posted at the same time. So as I said the issue with the plugin still remains although I now have a single ext4 drive instead of a LVM drive. I tried to enable the plex plugin with this single drive and I still get the error:

      Source Code

      1. Fehler #4000:
      2. exception 'OMVException' with message 'Failed to execute command 'omv-mkconf plexmediaserver 2>&1': chown: cannot access `/var/lib/plexmediaserver': No such file or directory' in /usr/share/openmediavault/engined/module/plexmediaserver.inc:44
      3. Stack trace:
      4. #0 /usr/share/openmediavault/engined/rpc/config.inc(180): OMVModulePlexMediaServer->applyConfig()
      5. #1 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
      6. #2 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      7. #3 /usr/share/php/openmediavault/rpcservice.inc(158): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
      8. #4 /usr/share/openmediavault/engined/rpc/config.inc(224): OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)
      9. #5 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
      10. #6 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      11. #7 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
      12. #8 /usr/sbin/omv-engined(500): OMVRpc::exec('Config', 'applyChangesBg', Array, Array, 1)
      13. #9 {main}
      Display All


      Here are my plugin settings:

      [IMG:https://dl.dropboxusercontent.com/u/64732375/plexpluginsettings.JPG]

      Everytime, I try to enable the plugin I get the above error message. Does anyone else have an idea what I am doing wrong?
      Supermicro X9SCM-F, Intel Pentium G2030, 8GB DDR3 1600MHz, Toshiba 64 GB SSD, 3x 4TB WD40EFRX (Snapraid)

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

    • Just got home. Is this what you are looking for?

      Source Code

      1. root@OMV:~# cat /etc/passwd | grep plex
      2. plex:x:115:65534::/var/lib/plexmediaserver:/bin/bash


      UPDATE:

      I just uninstalled and reinstalled the plex plugin and now it seems to work.

      Source Code

      1. ​root@OMV:~# cat /etc/passwd | grep plex
      2. plex:x:115:65534::/media/c862295f-8046-4cfd-a1bf-2b9d4d746a75/plexmediaserver:/bin/bash


      This looks better, doesn't it?
      Supermicro X9SCM-F, Intel Pentium G2030, 8GB DDR3 1600MHz, Toshiba 64 GB SSD, 3x 4TB WD40EFRX (Snapraid)

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