Plex server wont start when username changed from pi to plex

Server Version#: Version 1.19.1.2645
Player Version#:
Hi when i change my /etc/systemd/system/plexmediaserver.service.d/override.conf and change user and group from pi to plex my server will not start. As soon as i change it back it will start again

i get this error
sudo systemctl status plexmediaserver
● plexmediaserver.service - Plex Media Server
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; bad; vendor preset: enabled)
Drop-In: /etc/systemd/system/plexmediaserver.service.d
└─override.conf
Active: activating (auto-restart) (Result: exit-code) since Mon 2020-04-13 15:52:35 IST; 4s ago
Process: 1251 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=0/SUCCESS)
Process: 1253 ExecStart=/bin/sh -c export PLEX_MEDIA_SERVER_INFO_VENDOR="$(grep ^NAME= /etc/os-release | awk -F= “{print $2}” | tr -d " )"; export PLEX_MEDIA_SERVER_INFO_DEVICE=“PC”; export PLEX_MEDIA_
Main PID: 1253 (code=exited, status=1/FAILURE)

Apr 13 15:52:39 shanepi systemd[1]: /etc/systemd/system/plexmediaserver.service.d/override.conf:6: Missing ‘=’.

Show me your /etc/systemd/system/plexmediaserver.service.d/override.conf ?

The system is pointing out the error to you.

Apr 13 15:52:39 shanepi systemd[1]: /etc/systemd/system/plexmediaserver.service.d/override.conf:6: Missing ‘=’.

Hi,
Here is my override file.
Appreciate the help.

cat /etc/systemd/system/plexmediaserver.service.d/override.conf

Customize Plex’s config

Identify this as a service override

[Service]

Move the data directory

Environment=“PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plexmediaserver/Library/Application Support”

These values are only needed if you wish to change user & group

User=pi
Group=pi

This is needed to change the default umask

UMask=0002 # this must be octal - See warning below

Warning:
Some distros used UMask while others use Umask
Some distros want 4 octal digits, not the standard 3. Go figure

Please be cautious of this on your system.

B. Inform SystemD of the changes and test the related & reconfigured PMS

systemctl daemon-reload
systemctl start plexmediaserver

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.