plexmediaserver.service: Failed with result ‘exit-code’.
plexmediaserver.service: Control process exited, code=exited, status=217/USER
plexmediaserver.service: Failed at step USER spawning /bin/sh: No such process
plexmediaserver.service: Failed to determine user credentials: No such process
Plex Media Server installation configuration info: Fri Mar 27 22:08:45 EET 2020
plexmediaserver.service: Failed at step USER spawning /bin/sh: No such process
plexmediaserver.service: Failed to determine user credentials: No such process
It presumes user plex is the username,
it knows this is a reinstall on top of itself (existing = 1.18.9)
Need User, Group, Video are all zero (nothing needs to be created)
when you run the installation, what does the console output look like?
for the sake of it i exported all vars globally:
plex@tivo:/$ export | grep PLEX
declare -x PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/var/lib/plexmediaserver/Library/Application Support"
declare -x PLEX_MEDIA_SERVER_HOME="/usr/lib/plexmediaserver"
declare -x PLEX_MEDIA_SERVER_INFO_DEVICE=“PC”
declare -x PLEX_MEDIA_SERVER_INFO_MODEL=“x86_64”
declare -x PLEX_MEDIA_SERVER_INFO_PLATFORM_VERSION=“11”
declare -x PLEX_MEDIA_SERVER_INFO_VENDOR=“Debian GNU/Linux”
declare -x PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=“6”
declare -x PLEX_MEDIA_SERVER_TMPDIR="/tmp"
and started with:
plex@tivo:/$ LD_LIBRARY_PATH=/usr/lib/plexmediaserver/lib /usr/lib/plexmediaserver/Plex\ Media\ Server
and everything works !!!
Mar 28, 2020 09:25:48.976 [0x7f3206dc0700] INFO - Plex Media Server v1.18.9.2571-e106a8a91 - Debian GNU/Linux PC x86_64 - build: linux-x86_64 debian - GMT 02:00
Mar 28, 2020 09:25:48.976 [0x7f3206dc0700] INFO - Linux version: 11, language: en-US
Mar 28, 2020 09:25:48.976 [0x7f3206dc0700] INFO - Processor Intel® Core™ i5-4460 CPU @ 3.20GHz
Mar 28, 2020 09:25:48.976 [0x7f3206dc0700] INFO - /usr/lib/plexmediaserver/Plex Media Server
etc…
considering everything worked before the upgrade, and manually starting works, i think the service file is the culprit.
perhaps a dash<->bash escaping problem ?
root@tivo:~# l /bin/sh
lrwxrwxrwx 1 root root 4 Mar 28 09:36 /bin/sh -> bash
that way i declared vars in profile on login. its just for me to not using the ExecStart with grepping. like i wrote, there is no Version in debians os-release for example
root@tivo:~# cat /etc/os-release
PRETTY_NAME=“Debian GNU/Linux bullseye/sid”
NAME=“Debian GNU/Linux”
ID=debian
HOME_URL=“https://www.debian.org/”
SUPPORT_URL=“https://www.debian.org/support”
BUG_REPORT_URL=“https://bugs.debian.org/”
Are you intending to have a login account with the same UID/GID as the plex service UID/GID? If you are, creating an overloaded entry in /etc/passwd is far easier.
changed to: plex:x:110:114::/usr/lib/plexmediaserver:/usr/sbin/nologin
works now thank you
btw the user was created years ago, i dont even remember when, and always worked.
nvm, thanks for your help