Ignoring invalid environment 'export PLEX_MEDIA_SERVER

  • I just noticed i am getting the following errors in the log.
    I can see that plex creates a directory under /tmp/ pms-fdbbd0e4-d33e-4f60........


    On a side note, i have the flash memory plugin running and shouldn't it move the /tmp directory and not just the /var/tmp directory to ram?


    2017-11-10T11:23:08+0100 eapenas systemd[1]: Starting Plex Media Server for Linux...
    2017-11-10T11:23:08+0100 eapenas systemd[1]: Ignoring invalid environment 'export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6': /etc/default/plexmediaserver
    2017-11-10T11:23:08+0100 eapenas systemd[1]: Ignoring invalid environment 'export PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000': /etc/default/plexmediaserver
    2017-11-10T11:23:08+0100 eapenas systemd[1]: Ignoring invalid environment 'export PLEX_MEDIA_SERVER_TMPDIR=/tmp': /etc/default/plexmediaserver
    2017-11-10T11:23:08+0100 eapenas systemd[1]: Ignoring invalid environment 'export PLEX_MEDIA_SERVER_USER=plex': /etc/default/plexmediaserver

    • Offizieller Beitrag

    /tmp should be using tmpfs already.


    tmpfs on /tmp type tmpfs (rw,relatime)

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


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


    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!

  • /tmp should be using tmpfs already.


    tmpfs on /tmp type tmpfs (rw,relatime)

    you are right ryecoaaron thanks. i had to research list mount points in linux :) back to original problem of the
    2017-11-10T11:23:08+0100 eapenas systemd[1]: Starting Plex Media Server for Linux...
    2017-11-10T11:23:08+0100 eapenas systemd[1]: Ignoring invalid
    environment 'export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6': /etc/default/plexmediaserver
    2017-11-10T11:23:08+0100 eapenas systemd[1]: Ignoring invalid
    environment 'export PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000': /etc/default/plexmediaserver
    2017-11-10T11:23:08+0100 eapenas systemd[1]: Ignoring invalid environment 'export PLEX_MEDIA_SERVER_TMPDIR=/tmp': /etc/default/plexmediaserver
    2017-11-10T11:23:08+0100 eapenas systemd[1]: Ignoring invalid environment 'export PLEX_MEDIA_SERVER_USER=plex': /etc/default/plexmediaserver


    any ideas?

    • Offizieller Beitrag

    any ideas?

    Nope. Just another reason why I don't use plex.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


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


    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!

  • Ah... it seems there was some changes to plex that have not been incorporated into the plugin, or,
    i have been caught with legacy files from the old version of plex when I at one point installed manually.


    https://forums.plex.tv/discuss…ed-on-debian-with-systemd


    It is opportune that I found this now also, as i have just installed the flash memory plugin and i don't want transcoding be filling up ram in the /tmp folder.


    the fix for this problem was:
    1) delete /etc/default/plexmediaserver


    2) edit /etc/systemd/system/plexmediaserver.service.d/db_folder.conf
    - comment out EnvironmentFile=/etc/default/plexmediaserver


    3) create override.conf


    # default script for Plex Media Server
    [Service]


    # the number of plugins that can run at the same time
    Environment="PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6"


    # ulimit -s $PLEX_MEDIA_SERVER_MAX_STACK_SIZE
    Environment="PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000"


    # where the mediaserver should store the transcodes
    Environment="PLEX_MEDIA_SERVER_TMPDIR=/media/a7e96974-7965-4103-9743-281802f3d956/plexmediaserver"


    # uncomment to set it to something else
    # Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=${HOME}/Library/Application Support"


    # the user that PMS should run as, defaults to 'plex'
    # note that if you change this you might need to move
    # the Application Support directory to not lose your
    # media library (match what is in /etc/passwd)
    # Environment="PLEX_MEDIA_SERVER_USER=plex"


    # Uncomment this to use syslog for logging instead of
    # sending logs to Plex Media Server.log
    # Environment="PLEX_MEDIA_SERVER_USE_SYSLOG=true"
    Feature Request:
    please add an option to the plugin to set the default temp directory for transcoding.
    Although the option exists within plex's Settings/Transcoder section,
    someone new to plex and/or OMV might not set it and discover their small system drive ends up filling up


    also, I have accidentally created this thread in the wrong forum. could one of the moderators move it to the plugins forum please.

  • ah....db_folder.conf reverts back to putting the following in which creates the error originally listed.
    EnvironmentFile=/etc/default/plexmediaserver


    is there an OMV file where the default plex settings can be set so the
    /etc/default/plexmediaserver doesn't have to be called?
    It is supposed to be using override.conf in /etc/systemd/system/plexmediaserver.service.d#

    • Offizieller Beitrag

    is there an OMV file where the default plex settings can be set so the
    /etc/default/plexmediaserver doesn't have to be called?

    No the plugin needs to be changed.


    It is supposed to be using override.conf in /etc/systemd/system/plexmediaserver.service.d#

    It doesn't have to be called override.conf. It can be anything.conf.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


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


    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!