[How-to] Plex DB folder set in the GUI but not effective

    • OMV 4.x

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

    • [How-to] Plex DB folder set in the GUI but not effective

      I have just installed OMV 4.x. My previous installation was 2.x where I had plex running for many years.
      I have backed up the Library folder and as soon as I've installed Plex onto the new system I've specified the old Library location to be on a data partition rather than system. So I was hoping it would pick up the existing DB.

      Despite seen this set in the OMV GUI and in the OMV config file:

      Source Code

      1. <plexmediaserver>
      2. <db-folder>/srv/dev-disk-by-label-DATA/plexmediaserver</db-folder>
      3. </plexmediaserver>

      I got a warning via email from Plex while it was scanning the media. After a brief investigation I can see that the Library is instead created in the default Plex location:

      Source Code

      1. /var/lib/plexmediaserver

      So I've run a search:

      Source Code

      1. find / -name *.service | grep plex
      2. /etc/systemd/system/multi-user.target.wants/plexmediaserver.service
      3. /lib/systemd/system/plexmediaserver.service

      The first one is a link to the second so you can edit either.

      Basically once open modify the line

      Source Code

      1. Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/mnt/raid/plexmediaserver/Library/Application Support"

      With the actual Library location.

      Restart Plex

      HTH :)
    • While what you did may have worked, your changes are vulnerable to being overwritten without any warning the next time PMS is upgraded.

      The Official Plex sanctioned method to do this is described here:


      I thought what is linked above is the way the plugin does this, but I do not know for sure. It's this way on my system.
      OMV 4.x - ASRock Rack C2550D4I - 16GB ECC - Silverstone DS380

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