Plex media server never restarts itself after upgrades on CentOS 7

I’ve experienced this issue since forever (well over 2 years) and never bothered to look into it but here I am finally posting about it.

I am running PMS using the official yum/dnf repository on CentOS 7 and have an ansible task updating all of the packages on this server every night using yum/dnf. I have consistently noticed that my plex server randomly goes down and this coincidentally happens right after the plexmediaserver packages is upgraded on this CenOS box. The systemd journal shows no signs of the process crashing or aborting or anything like that, rather that the service is simply stopped after the upgrade and never re-started. Here is an excerpt from journalctl observing a plex upgrade fram last night.

Apr 09 02:02:10 Trixie systemd[1]: Stopping Plex Media Server...
Apr 09 02:02:11 Trixie systemd[1]: Stopped Plex Media Server.
Apr 09 02:03:12 Trixie systemd[1]: Starting Plex Media Server...
Apr 09 02:03:12 Trixie systemd[1]: Started Plex Media Server.
Apr 09 02:03:17 Trixie systemd[1]: Stopping Plex Media Server...
Apr 09 02:03:18 Trixie systemd[1]: Stopped Plex Media Server.

Server Version#: plexmediaserver-1.19.1.2630-72c16a276.x86_64

The package installers for Linux based systems (workstations and NAS boxes) are all set to:

  1. Stop PMS gracefully before an update
  2. Install the update
  3. Resume (restart) after the update.

TL;DR - That’s by design.

Is it a problem?

Absolutely, because step #3 doesn’t work as you can see from my systemd journal. My plex server is running. The installer stops it, then restarts it but then mysteriously stops it again instead of leaving it in the initial state it was (running).

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