Server Version#: 4.32.2
Player Version#: 1.9.0.1203-00f2b4d9
Hello, quite a novice Linux user here.
Running plex on a headless Raspberry PI 2B with Raspian.
Since I was not able to update plex via apt, I followed this guide to move the metadata dir. Not sure I did it properly.
Now plex doesn’t start.
systemctl status plexmediaserver.service says:
plexmediaserver.service - Plex Media Server for Linux
Loaded: loaded (/etc/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/plexmediaserver.service.d
└─override.conf
Active: failed (Result: exit-code) since Wed 2020-04-29 22:36:07 CEST; 13min ago
Process: 8423 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)
Apr 29 22:36:07 raspberrypi systemd[1]: plexmediaserver.service: Service RestartSec=5s expired, scheduling restart.
Apr 29 22:36:07 raspberrypi systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 3.
Apr 29 22:36:07 raspberrypi systemd[1]: Stopped Plex Media Server for Linux.
Apr 29 22:36:07 raspberrypi systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Apr 29 22:36:07 raspberrypi systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Apr 29 22:36:07 raspberrypi systemd[1]: Failed to start Plex Media Server for Linux.
#
# Customize Plex's config
#
# Identify this as a service override
[Service]
#
# Move the data directory
Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/home/plexdir/Library/Application Support"
#
# These values are only needed if you wish to change user & group
User=plex
Group=plex
#
# This is needed to change the default umask
UMask=0002 # this must be octal - See warning below
ls -la of /home/plexdata/Library/Application Support/Plex Media Server
My installation scripts adapt to whatever you have configured.
If you want:
User to be pi
Application Support dir to be /home/plexdata/Library/Application Support warning: You refer to plexdir and plexdata, I will assume you mean plexdata. Adjust as appropriate if incorrect.
Then:
Remove file: /etc/systemd/system/plexmediaserver.service – It doesn’t belong. Allow the system default in /usr/lib/systemd/system/plexmediaserver.service to do its job. It’s also the file I expect and maintain for you.
The file /usr/lib/systemd/system/plexmediaserver.service is a file the installer (DPKG package manager) maintains. You don’t touch it. All Debian 8+ and Ubuntu 16+ systemd use /usr/lib/systemd/system as the default storage area for their service definition files.