Plex Media Server on LibreELEC

  • Solved the "plex-update.sh: not found" error and got it to work!

    Looks like it's a problem with how Windows saves documents (I thought I was being careful by using Notepad++).

    These commands should fix the files:

    dos2unix /storage/scripts/plex-update.sh

    dos2unix /storage/.config/plex.conf

    dos2unix /storage/.config/system.d/plex.service

    And then run: bash /storage/scripts/plex-update.sh to execute the script.

    I also removed the \x20's from the plex.service file and replaced them with spaces, but I'm not really sure if that did anything significant. Also, I changed the file permission for all three files to 777.

    When I run: systemctl enable plex; systemctl start plex

    Nothing seems to happen, nothing in the logs. I'll have to figure this out later.

    Update:

    So I had to add back in the \x20 for it to start. It says it's running when I run top - i but doesn't show up as an installed addon. I'm not really sure where the server database is either. Is it in the .cache/plex.app folder or somewhere else? Trying to migrate it from the docker set up.

    If I go to http://192.168.1.80:32400/ it shows me an xml file without any styling.

    Update:

    If I do systemctl status plex

    I get this:

    Update:

    Just had to add /web like so: http://<local.ip>:32400/web

    Found the database folder here: /storage/.config/Plex Media Server

    Don't now why I didn't see it there before.

    If anyone has trouble finding the docker Plex Media Server folder, it's here:

    /storage/.kodi/userdata/addon_data/http://docker.linuxserver.plex/Library/Application Support/Plex Media Server

    Edited 9 times, last by Morawake (August 26, 2021 at 8:56 PM).

  • It was working fine until one day the server went down and wouldn't come back up. I tried fixing it by rerunning bash plex-update.sh but I got this:


    /storage/scripts$ bash plex-update.sh

    Plex directory does not exist, installing.

    mv: can't rename 'usr/lib/plexmediaserver': No such file or directory

    plex-update.sh: line 30: can't create /storage/.cache/app.plex/.plex_version: nonexistent directory

    bash: =: argument expected

    Plex up to date.

    Anyone else have this problem?

    app.plex got renamed to app.plex.old but it wasn't replaced with anything.

  • Hi,

    I have install Plex Media Server on Libreelec with LinuxServer.io docker addons.

    Is possibile to install a Plugin on Plex Media Server?

    I want install this Plugins:

    GitHub - taligentx/LiveTVH.bundle: Live TV streaming with Plex and Tvheadend
    Live TV streaming with Plex and Tvheadend. Contribute to taligentx/LiveTVH.bundle development by creating an account on GitHub.
    github.com

    I try to unzip plugin in this directory:

    /storage/.kodi/userdata/addon_data/http://docker.linuxserver.plex/Library/Application Support/Plex Media Server/Plug-ins

    Reboot Plex Media Server but in Plugin list:

    Plex media server on Libreleb docker support the plug-ins?

    It's a correct ftp directory to install plug-ins?

    Thanks at all!

    [SOLVED] - rename directory without "-master"...

    Edited once, last by enrydgl (December 30, 2021 at 7:24 PM).

    1. Copy plex.conf to /storage/.config/plex.conf: http://ix.io/2cip (then run systemctl daemon-reload)
    2. Copy the .service file to /storage/.config/system.d/plex.service (also edit to change location of plex-update.sh, or remove the ExecStartPre)
    3. Run plex-update.sh
    4. Run systemctl enable plex; systemctl start plex
    5. Enjoy

    hello, looks link not work, can u can reupload plex.conf

  • Hi SweeC

    It is a few years ago that I used this. Hope it still works.


    Edit

    Links to github on page 7 are working

    /Edit


    plex.conf

    Code
    PLEX_MEDIA_SERVER_HOME=/storage/.cache/app.plex
    PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/storage/.config
    PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
    PLEX_MEDIA_SERVER_TMPDIR=/tmp
    PLEX_MEDIA_SERVER_INFO_VENDOR=`grep ^NAME= /etc/os-release | awk -F= '{print $2}' | tr -d \")`
    PLEX_MEDIA_SERVER_INFO_DEVICE=PC
    PLEX_MEDIA_SERVER_INFO_MODEL=`uname -m`
    PLEX_MEDIA_SERVER_INFO_PLATFORM_VERSION=`grep ^VERSION= /etc/os-release | awk -F= '{print $2}' | tr -d \")`
    LD_LIBRARY_PATH=$PLEX_MEDIA_SERVER_HOME/lib


    plex-update.sh


    plex.service


    From my notes:

    Code
    Put plex-update.sh and plex.conf in /storage/.config/
    And plex.service in /storage/.config/system.d/
    Correct plex.service:
    sed -i 's/usr\/bin\/plex-update.sh/storage\/.config\/plex-update.sh/g' /storage/.config/system.d/plex.service 


    Installation (with additional output of the script):

    Code
    First Run (this will download and install Plex server, but not run):
    # sh -x /storage/.config/plex-update.sh


    Startup:

    Code
    systemctl start plex
    systemctl status plex.service

    Edited once, last by RomMon (November 12, 2024 at 7:09 PM).