# Intermittent Auto-start issue with PMS

**URL:** <https://forums.plex.tv/t/intermittent-auto-start-issue-with-pms/221698>\
**Category:** General Discussions\
**Created:** [January 15, 2018, 7:43pm UTC](https://forums.plex.tv/t/intermittent-auto-start-issue-with-pms/221698 "2018-01-15T19:43:18Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nello33](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/nello33/32/82328_2.png) [@Nello33](https://forums.plex.tv/u/Nello33)\
**Post date:** [January 15, 2018, 7:43pm UTC](https://forums.plex.tv/t/intermittent-auto-start-issue-with-pms/221698/1 "2018-01-15T19:43:18Z")

</div>

I am having intermittent auto-start issue with my PMS that i have been dealing with for a while now.

I am using a custom configuration and have done the recommended steps with the override file

> **[Customizing your Plex configuration](https://forums.plex.tv/discussion/286395/customizing-your-plex-configuration)**
>
> Customizing your Plex configuration on systemdbased systems This information is intended for those systems where cat /proc/1/comm returns systemd. On systems which use Systemd (Ubuntu 16+, Fedora, Centos 7, Debian 8,) you create this customization...

But it seems most times when i reboot the server PMS fails to start.

 ![](https://sea1.discourse-cdn.com/plex/uploads/default/original/3X/0/0/0024a91cb1d396560cd2ca86b2fe515508d80605.png)

Override file:

 ![](https://sea1.discourse-cdn.com/plex/uploads/default/original/3X/8/1/81e302265e0999b9c65beb785d1084c9909755e0.png)

Change the UMask to Umask, still unable to start on boot up

 ![](https://sea1.discourse-cdn.com/plex/uploads/default/original/3X/8/c/8c0f489e20ed695d389b19ae4f76df09fa8dec34.png)

When i start it manual i get below

 ![](https://sea1.discourse-cdn.com/plex/uploads/default/original/3X/d/f/df07e0c765e02b21e9bb0d3f71b026cf2a996404.png)

Note that service does start up fine if i start it manually.

System:  
DISTRIB\_ID=Ubuntu  
DISTRIB\_RELEASE=16.04  
DISTRIB\_CODENAME=xenial  
DISTRIB\_DESCRIPTION=“Ubuntu 16.04.3 LTS”  
NAME=“Ubuntu”  
VERSION=“16.04.3 LTS (Xenial Xerus)”

PMS: Version 1.11.0.4666

I need help, must be missing something. Thanks.

---

<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:** [January 15, 2018, 7:48pm UTC](https://forums.plex.tv/t/intermittent-auto-start-issue-with-pms/221698/2 "2018-01-15T19:48:01Z")

</div>

What does your `override.conf` contain?

---

<div class="post-metadata">

**Author:** ![Nello33](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/nello33/32/82328_2.png) [@Nello33](https://forums.plex.tv/u/Nello33)\
**Post date:** [January 15, 2018, 7:53pm UTC](https://forums.plex.tv/t/intermittent-auto-start-issue-with-pms/221698/3 "2018-01-15T19:53:21Z")

</div>

screenshot in the original problem description

 ![](https://sea1.discourse-cdn.com/plex/uploads/default/original/3X/8/1/81e302265e0999b9c65beb785d1084c9909755e0.png)

---

<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:** [January 15, 2018, 11:04pm UTC](https://forums.plex.tv/t/intermittent-auto-start-issue-with-pms/221698/4 "2018-01-15T23:04:29Z")

</div>

Sorry for the delay. I was detained.

As I stated in the configuration doc, Some hosts want **`UMask`** and others want **`Umask`**. It looks like you system is stricter on autostart versus manual start. That’s an interesting twist.

Have you edited the override and performed the `systemctl daemon-reload` to update it?

---

<div class="post-metadata">

**Author:** ![Nello33](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/nello33/32/82328_2.png) [@Nello33](https://forums.plex.tv/u/Nello33)\
**Post date:** [January 15, 2018, 11:37pm UTC](https://forums.plex.tv/t/intermittent-auto-start-issue-with-pms/221698/5 "2018-01-15T23:37:47Z")

</div>

Yea, perform reload on every change to the override.

Steps is have tried:  
Tried with UMask and 0002  
Tried with Umask and 0002  
Tried getting UMask from /etc/login.defs  
 ![](https://global.discourse-cdn.com/plex/original/3X/3/3/3367b8eb922a060b55b2f11d0fa3c4bbd957d5fb.png)  
Tried with UMask and 0022  
Tried with Umask and 0022

Still same issue.

---

<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:** [January 15, 2018, 11:52pm UTC](https://forums.plex.tv/t/intermittent-auto-start-issue-with-pms/221698/6 "2018-01-15T23:52:06Z")

</div>

what distro and version is that? I’ve not seen both fail.

---

<div class="post-metadata">

**Author:** ![Nello33](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/nello33/32/82328_2.png) [@Nello33](https://forums.plex.tv/u/Nello33)\
**Post date:** [January 15, 2018, 11:54pm UTC](https://forums.plex.tv/t/intermittent-auto-start-issue-with-pms/221698/7 "2018-01-15T23:54:43Z")

</div>

System:  
DISTRIB\_ID=Ubuntu  
DISTRIB\_RELEASE=16.04  
DISTRIB\_CODENAME=xenial  
DISTRIB\_DESCRIPTION=“Ubuntu 16.04.3 LTS”  
NAME=“Ubuntu”  
VERSION=“16.04.3 LTS (Xenial Xerus)”

PMS: Version 1.11.0.4666

---

<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:** [January 15, 2018, 11:57pm UTC](https://forums.plex.tv/t/intermittent-auto-start-issue-with-pms/221698/8 "2018-01-15T23:57:05Z")

</div>

Crap… Be right back. I will spin up a specific 16.04.3 VM to confirm but it looks like we’re dealing with a Ubuntu bug.

---

<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:** [January 16, 2018, 12:32am UTC](https://forums.plex.tv/t/intermittent-auto-start-issue-with-pms/221698/9 "2018-01-16T00:32:12Z")

</div>

I just created a fresh 16.04.3 VM

1. Ubuntu no longer allows `Umask=xxxx`
2. Ubuntu does allow `UMask=xxxx`

Please remember to issue `systemctl daemon-reload after changing the value but before restarting and try again?

---

<div class="post-metadata">

**Author:** ![Nello33](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/nello33/32/82328_2.png) [@Nello33](https://forums.plex.tv/u/Nello33)\
**Post date:** [January 16, 2018, 1:39am UTC](https://forums.plex.tv/t/intermittent-auto-start-issue-with-pms/221698/10 "2018-01-16T01:39:47Z")

</div>

I went over the steps again to confirm everything, it all looks good but PMS still failing on start-up. Guessing the issue is not with the config file?

Steps:

 ![](https://sea1.discourse-cdn.com/plex/uploads/default/original/3X/7/6/76013008e65812746f188a91645126618905c5f5.png)

Error:

 ![](https://sea1.discourse-cdn.com/plex/uploads/default/original/3X/5/5/552f6e7a4166291717f81ceb810ac78457ee7627.png)

---

<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:** [January 16, 2018, 1:50am UTC](https://forums.plex.tv/t/intermittent-auto-start-issue-with-pms/221698/11 "2018-01-16T01:50:47Z")

</div>

That must be something on your machine, unfortunately.

I’ve built a full fresh VM and cannot replicate both failing.

I did make a notation about the change in 16.04.3 regarding UMask but otherwise it is solid on autostart.

---

<div class="post-metadata">

**Author:** ![Nello33](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/nello33/32/82328_2.png) [@Nello33](https://forums.plex.tv/u/Nello33)\
**Post date:** [March 17, 2018, 3:08pm UTC](https://forums.plex.tv/t/intermittent-auto-start-issue-with-pms/221698/12 "2018-03-17T15:08:01Z")

</div>

Closing loop on this.

Was finally able to detect and resolve the issue with ‘Intermittent Auto-start issue with PMS’ last month and i thought i share.

The issue was with the PMS service starting before the data disk with configuration is mounted. resolved issue by putting a 30 seconds delay on the override file.

`ExecStartPre=/bin/sleep 30`

---

<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:** [January 8, 2020, 12:27am UTC](https://forums.plex.tv/t/intermittent-auto-start-issue-with-pms/221698/13 "2020-01-08T00:27:28Z")

</div>


