Plex: Database folder not updated in the config + Plex Media Scanner command line buggy

  • So 2 things about Plex on the latest Plex installation:


    1)
    The database location as per gui doesn't appear to affect the Plex config. Have noticed this as the system disk filled up and the cause was Plex. I had to mo the Library and manually edit the


    /lib/systemd/system/plexmediaserver.service


    to modify the PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR variable.


    NOTE the position of the quotes had to be modified as well to make this working:

    Code
    [Service]
    Environment=PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/mnt/raid5/plexmediaserver/Library/Application Support"



    2)
    The second issue is Scanner related. The --list return empty output where the --tree:


    root@NAS:/usr/lib/plexmediaserver# ./Plex\ Media\ Scanner --tree
    terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_lexical_cast> >'
    what(): bad lexical cast: source type value could not be interpreted as target
    ****** PLEX MEDIA SCANNER CRASHED, CRASH REPORT WRITTEN: /root/Library/Application Support/Plex Media Server/Crash Reports/1.3.3.3148-b38628e/PLEX MEDIA SCANNER/33bd5af1-b81a-7d59-01773cf9-3302d696.dmp
    Aborted


    Anybody knows what this is about?
    Thanks!!

    • Offizieller Beitrag

    1 - the plugin doesn't modify the unit file itself. It creates an override file in /etc/systemd/system/plexmediaserver.service.d/

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | 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!

    • Offizieller Beitrag

    What is the output of: dpkg -l | grep openm

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | 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!

  • Code
    dpkg -l | grep openm
    ii  openmediavault                                              2.2.13                                  all          Open network attached storage solution
    rc  openmediavault-emby                                         2.7                                     all          Emby plugin for OpenMediaVault.
    ii  openmediavault-keyring                                      0.4                                     all          GnuPG archive keys of the OpenMediaVault archive
    ii  openmediavault-minidlna                                     1.1                                     all          OpenMediaVault miniDLNA (DLNA server) plugin
    ii  openmediavault-nginx                                        2.4                                     all          Nginx plugin for OpenMediaVault.
    ii  openmediavault-omvextrasorg                                 2.13.6                                  all          OMV-Extras.org Package Repositories for OpenMediaVault
    ii  openmediavault-plexmediaserver                              1.0.15                                  all          OpenMediaVault Plex Media Server plugin
    • Offizieller Beitrag

    It doesn't have an override file because you are on OMV 2.x which uses sysvinit not systemd. I though tagging the thread OMV 2.x was a mistake and assumed you were on OMV 3.x. So, changing the unit file you found isn't going to do anything either. Plex on OMV 2.x uses the plex user's home directory - getent passwd plex will show you that.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | 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!