Cannot Start Plex

    • OMV 1.0
    • Resolved
    • Cannot Start Plex

      Hi Guys,

      today i wanted to do a new, clean install of my OMV.

      Now im having the big problem, im not getting Plex to run again.

      I installed the latest Plex 1.05 without any problems, but after i set the path for the database and then put the mark on Activate i receive an error message when i click on safe. I did now 3 clean installs, everytime i receives the same error.



      Failed to execute command 'omv-mkconf plexmediaserver 2>&1': Plex Media Server is not running (no process found)...
      /usr/share/openmediavault/mkconf/plexmediaserver: 51: /usr/share/openmediavault/mkconf/plexmediaserver: dbid: not found

      Source Code

      1. Fehler
      2. #4000:
      3. exception 'OMVException' with message 'Failed to execute command
      4. 'omv-mkconf plexmediaserver 2>&1': Plex Media Server is not
      5. running (no process found)...
      6. /usr/share/openmediavault/mkconf/plexmediaserver: 51:
      7. /usr/share/openmediavault/mkconf/plexmediaserver: dbid: not found' in
      8. /usr/share/openmediavault/engined/module/plexmediaserver.inc:44
      9. Stack trace:
      10. #0 /usr/share/openmediavault/engined/rpc/config.inc(180):
      11. OMVModulePlexMediaServer->applyConfig()
      12. #1 [internal function]: OMVRpcServiceConfig->applyChanges(Array,
      13. Array)
      14. #2 /usr/share/php/openmediavault/rpcservice.inc(125):
      15. call_user_func_array(Array, Array)
      16. #3 /usr/share/php/openmediavault/rpcservice.inc(158):
      17. OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
      18. #4 /usr/share/openmediavault/engined/rpc/config.inc(224):
      19. OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)
      20. #5 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array,
      21. Array)
      22. #6 /usr/share/php/openmediavault/rpcservice.inc(125):
      23. call_user_func_array(Array, Array)
      24. #7 /usr/share/php/openmediavault/rpc.inc(79):
      25. OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
      26. #8 /usr/sbin/omv-engined(501): OMVRpc::exec('Config', 'applyChangesBg',
      27. Array, Array, 1)
      28. #9 {main}
      Display All


      Any Idea ?
      Software:
      OMV 3.0 / Plex / Snapraid / Tvheadend / ecoDMS / sonar / sabnzbd
      Hardware:
      ASRock C2750D4I / 2x Kingston KVR16E11/8 / Dell PERC H200 Crossflashed / 8x WD Red 3 TB / 60GB TeamGroup Dark L3 SSD / Samsung 750 EVO 256 GB SSD / Sundtek Sky TV Ultimate 6 DVB-S2
    • All mounted....

      but when i install Plex it's not creating the user plex anymore.....
      Software:
      OMV 3.0 / Plex / Snapraid / Tvheadend / ecoDMS / sonar / sabnzbd
      Hardware:
      ASRock C2750D4I / 2x Kingston KVR16E11/8 / Dell PERC H200 Crossflashed / 8x WD Red 3 TB / 60GB TeamGroup Dark L3 SSD / Samsung 750 EVO 256 GB SSD / Sundtek Sky TV Ultimate 6 DVB-S2
    • already did.

      some problem.

      After i installed plex without setting the Database directory through the plugin i can acess plex.

      As soon as i put the the database directory and Save the changes i receiver the error message and nothing is working anymore

      [IMG:http://s14.directupload.net/images/141101/5k5ipkth.png]


      Software:
      OMV 3.0 / Plex / Snapraid / Tvheadend / ecoDMS / sonar / sabnzbd
      Hardware:
      ASRock C2750D4I / 2x Kingston KVR16E11/8 / Dell PERC H200 Crossflashed / 8x WD Red 3 TB / 60GB TeamGroup Dark L3 SSD / Samsung 750 EVO 256 GB SSD / Sundtek Sky TV Ultimate 6 DVB-S2
    • stat plexmediaserver

      Source Code

      1. root@fritznas:/media/0722de2e-cf4b-4a63-aece-f01f502b7c27# stat plexmediaserver
      2. Datei: „plexmediaserver“
      3. Größe: 4096 Blöcke: 8 EA Block: 4096 Verzeichnis
      4. Gerät: 831h/2097d Inode: 36831233 Verknüpfungen: 3
      5. Zugriff: (0777/drwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
      6. Zugriff : 2014-11-01 02:51:31.679622253 +0100
      7. Modifiziert: 2014-11-01 02:51:31.679622253 +0100
      8. Geändert : 2014-11-01 02:51:31.679622253 +0100
      9. Geburt : -


      ls -la

      Source Code

      1. root@fritznas:/media/0722de2e-cf4b-4a63-aece-f01f502b7c27/plexmediaserver# ls -la
      2. insgesamt 12
      3. drwxrwxrwx 3 root root 4096 Nov 1 02:51 .
      4. drwxr-xr-x 6 root root 4096 Nov 1 02:51 ..
      5. drwxr-xr-x 3 plex nogroup 4096 Nov 1 02:50 Library
      Software:
      OMV 3.0 / Plex / Snapraid / Tvheadend / ecoDMS / sonar / sabnzbd
      Hardware:
      ASRock C2750D4I / 2x Kingston KVR16E11/8 / Dell PERC H200 Crossflashed / 8x WD Red 3 TB / 60GB TeamGroup Dark L3 SSD / Samsung 750 EVO 256 GB SSD / Sundtek Sky TV Ultimate 6 DVB-S2
    • Still not working....

      now the error message slightly changed to:



      Failed
      to execute command 'omv-mkconf plexmediaserver 2>&1': chown:
      Zugriff auf „/var/lib/plexmediaserver“ nicht möglich: Datei oder
      Verzeichnis nicht gefunden

      Source Code

      1. Fehler
      2. #4000:
      3. exception 'OMVException' with message 'Failed to execute command
      4. 'omv-mkconf plexmediaserver 2>&1': chown: Zugriff auf
      5. „/var/lib/plexmediaserver“ nicht möglich: Datei oder Verzeichnis nicht
      6. gefunden' in
      7. /usr/share/openmediavault/engined/module/plexmediaserver.inc:44
      8. Stack trace:
      9. #0 /usr/share/openmediavault/engined/rpc/config.inc(180):
      10. OMVModulePlexMediaServer->applyConfig()
      11. #1 [internal function]: OMVRpcServiceConfig->applyChanges(Array,
      12. Array)
      13. #2 /usr/share/php/openmediavault/rpcservice.inc(125):
      14. call_user_func_array(Array, Array)
      15. #3 /usr/share/php/openmediavault/rpcservice.inc(158):
      16. OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
      17. #4 /usr/share/openmediavault/engined/rpc/config.inc(224):
      18. OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)
      19. #5 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array,
      20. Array)
      21. #6 /usr/share/php/openmediavault/rpcservice.inc(125):
      22. call_user_func_array(Array, Array)
      23. #7 /usr/share/php/openmediavault/rpc.inc(79):
      24. OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
      25. #8 /usr/sbin/omv-engined(501): OMVRpc::exec('Config', 'applyChangesBg',
      26. Array, Array, 1)
      27. #9 {main}
      Display All



      Software:
      OMV 3.0 / Plex / Snapraid / Tvheadend / ecoDMS / sonar / sabnzbd
      Hardware:
      ASRock C2750D4I / 2x Kingston KVR16E11/8 / Dell PERC H200 Crossflashed / 8x WD Red 3 TB / 60GB TeamGroup Dark L3 SSD / Samsung 750 EVO 256 GB SSD / Sundtek Sky TV Ultimate 6 DVB-S2
    • Source Code

      1. root@fritznas:/media/0722de2e-cf4b-4a63-aece-f01f502b7c27# /etc/init.d/plexmediaserver start
      2. Starting Plex Media Server: done
      3. root@fritznas:/media/0722de2e-cf4b-4a63-aece-f01f502b7c27# /etc/init.d/plexmediaserver status
      4. It seems that Plex Media Server isn't running (no process found).
      5. root@fritznas:/media/0722de2e-cf4b-4a63-aece-f01f502b7c27#
      Software:
      OMV 3.0 / Plex / Snapraid / Tvheadend / ecoDMS / sonar / sabnzbd
      Hardware:
      ASRock C2750D4I / 2x Kingston KVR16E11/8 / Dell PERC H200 Crossflashed / 8x WD Red 3 TB / 60GB TeamGroup Dark L3 SSD / Samsung 750 EVO 256 GB SSD / Sundtek Sky TV Ultimate 6 DVB-S2
    • It is a typo in the new code to check to see if ownership is correct. I will fix in a bit.
      omv 4.1.13 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • an then friday night/ saturday morning some crazy german guy is whining about Plex not running......but u are right...the for me the last three days in business made me feel like 1 year older

      root@fritznas:/media/0722de2e-cf4b-4a63-aece-f01f502b7c27# id plex

      Source Code

      1. uid=111(plex) gid=65534(nogroup) Gruppen=65534(nogroup)


      root@fritznas:/media/0722de2e-cf4b-4a63-aece-f01f502b7c27# stat /media/0722de2e-cf4b-4a63-aece-f01f502b7c27/plexmediaserver

      Source Code

      1. Datei: „/media/0722de2e-cf4b-4a63-aece-f01f502b7c27/plexmediaserver“
      2. Größe: 4096 Blöcke: 8 EA Block: 4096 Verzeichnis
      3. Gerät: 831h/2097d Inode: 36831233 Verknüpfungen: 3
      4. Zugriff: (0777/drwxrwxrwx) Uid: ( 111/ plex) Gid: (65534/ nogroup)
      5. Zugriff : 2014-11-01 02:59:43.421500742 +0100
      6. Modifiziert: 2014-11-01 02:51:31.679622253 +0100
      7. Geändert : 2014-11-01 03:04:31.287775301 +0100
      8. Geburt : -




      Software:
      OMV 3.0 / Plex / Snapraid / Tvheadend / ecoDMS / sonar / sabnzbd
      Hardware:
      ASRock C2750D4I / 2x Kingston KVR16E11/8 / Dell PERC H200 Crossflashed / 8x WD Red 3 TB / 60GB TeamGroup Dark L3 SSD / Samsung 750 EVO 256 GB SSD / Sundtek Sky TV Ultimate 6 DVB-S2
    • 1.0.6 is in repo. It compares the stat of the database folder to the plex user. If different, it changes the ownership.
      omv 4.1.13 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!