Automatically restart Plex service after crash

zfrogz

Dabbler
Joined
Jun 29, 2012
Messages
43
Once in a while Plex Media Server crashes and needs to be restarted (once every couple weeks). What is the easiest way to monitor the service and automatically restart it after a crash?
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
Odd. My Plex instance will stay up months at a time. It rarely (read: never) crashes. Do you have any Plex plugins/channels enabled? If so, try disabling them for the time being.
 

zfrogz

Dabbler
Joined
Jun 29, 2012
Messages
43
It might be even less frequent than I stated but I have about 30 active users and try to keep it on the latest version which sometimes means putting up with a few bugs. I’m not running any plugins or channels. Even if it didn’t crash, I’m still interested in the best way to monitor and restart a crashed service running in a jail.
 

CraigD

Patron
Joined
Mar 8, 2016
Messages
343
What are your system specs? My PLEX has also never crashed

I guess you could create a Cron job, however this not the way to deal with your problem

Have Fun
 

zfrogz

Dabbler
Joined
Jun 29, 2012
Messages
43
What are your system specs? My PLEX has also never crashed

System specs are:
Intel(R) Xeon(R) CPU E3-1230 v5 @ 3.40GHz
SUPERMICRO X11SSL-F
64gb ECC RAM
2x 32gb Mirrored USB flash drives for OS running FreeNAS-9.10.2-U6
12x 6TB drives (2x RAIDZ2 volumes)
Plex version in jail is 1.11.3.4803

Last crash happened yesterday.

FreeNAS console:
Code:
Mar  3 21:12:03 NAS kernel: pid 54749 (Plex Media Server), uid 972: exited on signal 11


Last Plex server log entries just before the crash:
Code:
Mar 03, 2018 21:11:21.922 [0x80dce1c00] ERROR - [Transcoder] [Parsed_inlineass_2 @ 0x8028901a0] fontselect: Using default font family: (Arial, 400, 0) -> /usr/local/share/plexmediaserver-plexpass/Resources/Fonts/DejaVuSans-Regular.ttf, 0, DejaVuSans[Parsed_inlineass_2 @ 0x8028901a0]
Mar 03, 2018 21:11:21.922 [0x811c70000] ERROR - [Transcoder] [Parsed_inlineass_2 @ 0x8028901a0] fontselect: Using default font family: (Arial, 400, 100) -> /usr/local/share/plexmediaserver-plexpass/Resources/Fonts/DejaVuSans-Regular.ttf, 0, DejaVuSans[Parsed_inlineass_2 @ 0x8028901a0]
 
Last edited:

StarkJohan

Explorer
Joined
Mar 27, 2015
Messages
62
Thanks. I've got it working now with monitord.
Would you mind posting your plex line in monitord.conf? I' trying to get this to work but my config line is either not doing anything or trying to start the plex service every 10 seconds.
 
Top