# Plex server wont start when username changed from pi to plex

**URL:** <https://forums.plex.tv/t/plex-server-wont-start-when-username-changed-from-pi-to-plex/573570>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [April 13, 2020, 3:11pm UTC](https://forums.plex.tv/t/plex-server-wont-start-when-username-changed-from-pi-to-plex/573570 "2020-04-13T15:11:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![diggerdunne](https://avatars.discourse-cdn.com/v4/letter/d/6a8cbe/32.png) [@diggerdunne](https://forums.plex.tv/u/diggerdunne)\
**Post date:** [April 13, 2020, 3:11pm UTC](https://forums.plex.tv/t/plex-server-wont-start-when-username-changed-from-pi-to-plex/573570/1 "2020-04-13T15:11:15Z")

</div>

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 ‘=’.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [April 13, 2020, 4:34pm UTC](https://forums.plex.tv/t/plex-server-wont-start-when-username-changed-from-pi-to-plex/573570/2 "2020-04-13T16:34:31Z")

</div>

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

The system is pointing out the error to you.

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

```

---

<div class="post-metadata">

**Author:** ![diggerdunne](https://avatars.discourse-cdn.com/v4/letter/d/6a8cbe/32.png) [@diggerdunne](https://forums.plex.tv/u/diggerdunne)\
**Post date:** [April 13, 2020, 6:14pm UTC](https://forums.plex.tv/t/plex-server-wont-start-when-username-changed-from-pi-to-plex/573570/3 "2020-04-13T18:14:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [July 12, 2020, 6:14pm UTC](https://forums.plex.tv/t/plex-server-wont-start-when-username-changed-from-pi-to-plex/573570/4 "2020-07-12T18:14:15Z")

</div>

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