Ubuntu and Plex

### installation
sudo apt-get install plexmediaserver

### my custom systemd setup (plex-override.conf)

#
# Plex Media Server - Systemd service override file
#
# All entries must be systemd compliant (Environrment="var=absolute_value")
#

# cp -v $HOME/bin/systemd-services/plex-override.conf /etc/systemd/system/plexmediaserver.service.d && sudo chown root: /etc/systemd/system/plexmediaserver.service.d/*.conf && sudo chmod 664 /etc/systemd/system/plexmediaserver.service.d/*.conf && sudo systemctl daemon-reload

[Unit]
After=local-fs.target network-online.target preload.service ssh.service
Wants=local-fs.target

[Service]
LimitNOFILE=65536
LimitMEMLOCK=536870912

Environment=PLEX_MEDIA_SERVER_NewTmp=/tmp
Environment=LD_LIBRARY_PATH=/usr/lib/plexmediaserver

ExecStartPre=
ExecStartPre=/bin/mkdir -p /var/tmp/plex-transcoding
ExecStartPre=/bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"

ExecStart=
ExecStart="/usr/lib/plexmediaserver/Plex Media Server"

User****
Group*********

[Install]
WantedBy=graphical.target
ERROR
    Transcoder fails after upgrade
SOLUTION
    https://forums.plex.tv/discussion/comment/1295109#Comment_1295109
    Search for zero size *.so files (those are damaged codec files):
    find "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Codecs/" -type f -size 0c -exec ls -l "{}" \;
    Remove 0 size found *.so then restart plex.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.