Plex Media Server Uninstalled then Reinstalled now the process won't start

  • So since I upgrade from OMV 2 to OMV 3 Plex was kinda working. I lost all my previous settings and had to redo all the media directories.
    Then yesterday it stopped working. I started it manually using /etc/init.d/plexmediaserver start it started back right up and it was the install from before my OMV 3 install. All my settings were back etc.


    So this morning, I was thinking that it must have installed in two locations during my upgrade to OMV 3. So I backed up all the database files from Plex and disabled the plugin. After doing this Plex was still running, so this solidified the fact that it was installed in two locations. I removed the plugin and restarted the server.


    Plex is not currently running now. I apt clean and installed the plex media server plugin from the repo and enabled it. Now it won't load and I don't even see a process running for plex.


    Any ideas?


    I ran this command and plex looks to be the current version:

  • Okay I think I found the problems. I found so many old references of plexmediaserver on my server. I removed them all after uninstalling the plugin.


    Now there's no reference to plex on my server except for my database folder on my shared media drive.


    I reinstalled Plex and had to perform this fix Codec Issue to get Plex to load.


    The problem I'm seeing is that Plex is using

    Code
    /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases


    as the database location. I want it to go to

    Code
    /media/dd3de295-9705-4573-b299-53e77a01fada/plexmediaserver

    where I have it pointing within the Plugin settings page.




    How can I change/fix this to point to the correct location?

  • I believe I fixed the problem. I don't know if this is a problem with the OMV 3 version of the Plex Media Server. When you install the plugin it installs Plex Media Server to


    Code
    /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases

    It ignores the database directory that you point the install to in the plugin settings page. I had to manually adjust the file before I enable Plex


    Find this file

    Code
    /lib/systemd/system/plexmediaserver.service


    Edit the line

    Code
    Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plexmediaserver/Library/Application Support"

    With the proper location of your Plex database (mine looks like this)

    Code
    Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/media/dd3de295-9705-4573-b299-53e77a01fada/plexmediaserver/Library/Application Support"

    Once that is complete now enable the plugin.


    This seems to have corrected the issue. Now I'm not sure what will happen when there's an update to Plex. I will have to keep an eye open and see if it changes back.


    Hope this helps some of you. Could a dev look into this issue as to why in the plugin settings the database doesn't change this file automatically?

    • Offizieller Beitrag

    The plugin wasn't writing the unit override file unless you changed the database location. This has been fixed in 3.8.1 in the repo now.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    Einmal editiert, zuletzt von ryecoaaron ()

  • The shared folder can not be uppercase and has no special characters.


    Der freigegebene Ordner darf nicht groß geschrieben sein und keine Sonderzeichen haben.

    https://github.com/Wolf2000Pi


    OMV6 Hewlett-Packard HPE-411at - Intel Core i7 CPU 870 @ 2.93GHz - 16GB Ram

    Proxmox omv 7 sandworm Dell OptiPlex 7050 i5-6500 CPU @ 3.20GHz - 32GB Ram (Test!!!!)

  • I know this thread is old but I also had the same issue.
    I found that the folder located /var/lib/plexmediaserver would remain after a uninstall. So i navigated to /var/lib/ and run the command sudo rmdir plexmediaserver and the try to reinstall the plex plug in. In my case this solved my issue but wanted to see if anyone else had the same luck.

  • Oh man... I have ripping my hair out over this. I saw that in there and how it would change the folder on a reinstall but didn't even think it was causing the issue. thanks to someone on another thread for pointing me to this thread. had been coming the web for 2 days trying to find this issue.

  • Hello,


    I have the same issue (plex not starting, status/code=134). I understand that this fix is not the proper one:

    Edit the line

    Code
    Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plexmediaserver/Library/Application Support"


    With the proper location of your Plex database (mine looks like this)

    Code
    Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/media/dd3de295-9705-4573-b299-53e77a01fada/plexmediaserver/Library/Application Support"

    Once that is complete now enable the plugin.

    So, what is the proper fix?


    This is what I checked:


    Code
    root@homeserver:/etc/systemd/system/plexmediaserver.service.d# cat db_folder.conf
    [Service]
    EnvironmentFile=/etc/default/plexmediaserver
    Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/srv/dev-disk-by-label-Daten/plexmediaserver/Library/Application Support"
    
    
    plex@homeserver:/etc/systemd/system/plexmediaserver.service.d$ cd "/srv/dev-disk-by-label-Daten/plexmediaserver/Library/Application Support"
    plex@homeserver:/etc/systemd/system/plexmediaserver.service.d$ ls "/srv/dev-disk-by-label-Daten/plexmediaserver/Library/Application Support"
    Plex Media Server


    Regards,
    Hendrik

  • Actually I think it is the correct fix. That's how I got mine working. By correct I mean it fixes the issue. But I think the actual problem is with the Plex plugin and not OMV. It points to the wrong directory upon imstall. It's been a while, the plugin may have been fixed but I'm not sure. I haven't updated to see. And frankly am a little nervous to do so since it has been working fine since fixing it.

    • Offizieller Beitrag

    And this is why I keep telling people to stop using the plugin in favor of docker. I guess if I remove the plugin from the repo...

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Well, I think the reason, and I may be speaking for myself here, that people insist on using Plex is that some of us have the liftime pass. So to not use it defeats the purpose of having it. I've had Plex since before I had OMV so naturally I installed it. It's a good platform if they would just get that plugin to behave.


    Someone may be able to shed some light on this but the last system update to OMV changed some things directory wise right? I didn't have the issue till I updated OMV. Not saying it's an OMV issue, just that the developers of the Plex plugin are a little behind. Usually fixes don't take this long.


    Maybe someone can shed some light on this. I'm used to having to tweak things with Linux so it was more frustrating finding the solution than actually applying it. But to those who just want it to work, well, I'm not sure what to say there.

    • Offizieller Beitrag

    just that the developers of the Plex plugin are a little behind

    Yep, the developer (me) of the plex plugin just said to not use the plugin :) I don't use or like plex and it changes too often to keep up with. And not using it makes it very difficult to know why some things break. Many people are using plex in a docker now. It seems odd that you couldn't use lifetime pass in a docker since the important files are stored in persistent storage.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!