Server Version#:1.20.3.3483-211702a9f
Player Version#: no clue never got to this point…
Here is how I tried it:
Here are the system details:
- Debian sid latest updates all installed
- uname -a output: Linux debian 5.9.0-1-amd64 #1 SMP Debian 5.9.1-1 (2020-10-17) x86_64 GNU/Linux
- lsb_relase -cs output: sid
Here are the operations I took as root on this machine:
- mount an empty ext4 fs on /opt/plex (mount options are same as for root)
- mkdir -p “/opt/plex/Plex/tmp”
- mkdir -p “/opt/plex/Plex/workdir/Library/Application Support”
- wget -q https://downloads.plex.tv/plex-keys/PlexSign.key -O - | apt-key add -
- apt update
- apt install plexmediaserver
- service plexmediaserver stop
- chown -R plex:plex /opt/plex/Plex
- systemctl edit plexmediaserver
– Enter the following contents:
– [Service]
– Environment=“TMPDIR=/opt/plex/Plex/tmp”
– Environment=“PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/opt/plex/Plex/workdir/Library/Application Support” - systemctl daemon-reload
- service plexmediaserver start
– Result:
– Job for plexmediaserver.service failed because the control process exited with error code.
– See “systemctl status plexmediaserver.service” and “journalctl -xe” for details. - systemctl status plexmediaserver.service
– Result:
– plexmediaserver.service - Plex Media Server
– Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
– Drop-In: /etc/systemd/system/plexmediaserver.service.d
– └─override.conf
– Active: activating (auto-restart) (Result: exit-code) since Sat 2020-10-31 14:26:47 GMT; 723ms ago
– Process: 9328 ExecStartPre=/bin/sh -c /usr/bin/test -d “{PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "{PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}” (code=exited, status=1/FAILURE) - apt reinstall plexmediaserver
- Results
– Reading package lists… Done
– Building dependency tree
– Reading state information… Done
– 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
– Need to get 0 B/80.5 MB of archives.
– After this operation, 0 B of additional disk space will be used.
– (Reading database … 469454 files and directories currently installed.)
– Preparing to unpack …/plexmediaserver_1.20.3.3483-211702a9f_amd64.deb …
– PlexMediaServer install: Pre-installation Validation.
– PlexMediaServer install: Pre-installation Validation complete.
– Unpacking plexmediaserver (1.20.3.3483-211702a9f) over (1.20.3.3483-211702a9f) …
– Setting up plexmediaserver (1.20.3.3483-211702a9f) …
– PlexMediaServer install: PlexMediaServer-1.20.3.3483-211702a9f - Installation starting.
– PlexMediaServer install:
– PlexMediaServer install: Now installing based on:
– PlexMediaServer install: Installation Type: Update
– PlexMediaServer install: Process Control: systemd
– PlexMediaServer install: Plex User: plex
– PlexMediaServer install: Plex Group: plex
– PlexMediaServer install: Video Group: render
– PlexMediaServer install: Metadata Dir: /opt/plex/Plex/workdir/Library/Application Support
– PlexMediaServer install: Temp Directory: /opt/plex/Plex/tmp
– PlexMediaServer install: Lang Encoding: en_US.UTF-8
– PlexMediaServer install: Config file used: /etc/systemd/system/plexmediaserver.service.d/override.conf
– PlexMediaServer install: Transcoding HW: Found
– PlexMediaServer install:
– PlexMediaServer install: Completing final configuration.
– PlexMediaServer install: PlexMediaServer-1.20.3.3483-211702a9f - Installation successful. Errors: 0, Warnings: 0
– Processing triggers for mime-support (3.64) …
– Processing triggers for gnome-menus (3.36.0-1) …
– Processing triggers for libc-bin (2.31-4) …
– Processing triggers for desktop-file-utils (0.26-1) …
The installer thinks the install is all right with the override. But it does seem like there is some issue after all. I have checked with various ways to provide the override, and in some cases the installer indeed complained in the reinstall phase that the override is incorrect. So the installer can successfully use the directory, but the system.d startup script for PMS cannot. Is it running in as the correct user?
I have tried restarting the system as well just in case. No real effect.
