Plex Media Server constantly stopping and restarting

Server Version#: 1.32.2.7002-86cfcc10c
Player Version#:

Ran into an issue last night where the entire server seemed to become unresponsive. Since then, despite uninstalling/reinstalling, rebooting the entire physical server, and poring over logfiles to see what might be the problem, I cannot get my PMS into a stable state. It appears to be in a cycle where it starts up, runs for a minute or so, then shuts down. Then the service restarts and the cycle repeats. As far as I can tell there is no useful information in the log showing what the problem might be. This is the shutdown log entries interspersed between metadata/scanning debug entries.

Literally any ideas on what to look into or try would be greatly appreciated. There’s nothing in the logs about database corruption, I’ve deleted caches, at a loss as to what to try next.

May 10, 2023 15:45:20.110 [140549025233720] DEBUG - Shutting down with signal 15 (Terminated)
May 10, 2023 15:45:20.110 [140549025233720] DEBUG - Ordered to stop server.
May 10, 2023 15:45:20.110 [140549030001296] DEBUG - Stopping server...
May 10, 2023 15:45:20.110 [140549030001296] DEBUG - HttpServer: Stopping server.
May 10, 2023 15:45:20.110 [140549017328440] DEBUG - MetadataItemClusterRequestHandler: a shutdown event has been received
May 10, 2023 15:45:20.110 [140549017328440] DEBUG - TranscodeJobManager: [Running] onServerShutdown
May 10, 2023 15:45:20.110 [140549017328440] DEBUG - TranscodeJobManager: [Running] -> [Shutdown]
May 10, 2023 15:45:20.110 [140549030001296] DEBUG - Server stopped.
May 10, 2023 15:45:20.110 [140549030001296] DEBUG - NetworkService: Stopping advertisement.
May 10, 2023 15:45:20.110 [140548911135544] ERROR - Network Service: Error in advertiser handle read: 125 (Operation canceled) socket=-1
May 10, 2023 15:45:20.110 [140549030001296] DEBUG - Killing plug-ins.
May 10, 2023 15:45:20.126 [140549025233720] DEBUG - Jobs: '/usr/lib/plexmediaserver/Plex Tuner Service' exit code for process 9394 is 0 (success)
May 10, 2023 15:45:20.126 [140548906916664] DEBUG - [ChildProcessMonitor] Plex Tuner Service exited.
May 10, 2023 15:45:20.127 [140548906916664] DEBUG - [ChildProcessMonitor] attempting to relaunch Plex Tuner Service; attempt number 1, 2 tries remaining
May 10, 2023 15:45:20.135 [140549030001296] DEBUG - [com.plexapp.agents.imdb] Killing.
May 10, 2023 15:45:20.137 [140549025233720] WARN - JobManager: Could not find job for handle 9519
May 10, 2023 15:45:20.148 [140549030001296] DEBUG - [com.plexapp.system] Killing.
May 10, 2023 15:45:20.152 [140549025233720] WARN - JobManager: Could not find job for handle 9346
May 10, 2023 15:45:20.177 [140549030001296] DEBUG - [com.plexapp.agents.subzero] Killing.
May 10, 2023 15:45:20.185 [140549030001296] DEBUG - ChildProcessMonitor: Waiting for Plex DLNA Server to exit.
May 10, 2023 15:45:20.195 [140549025233720] WARN - JobManager: Could not find job for handle 9423
May 10, 2023 15:45:20.202 [140548904807224] DEBUG - Stopping file watcher for com.plexapp.agents.imdb
May 10, 2023 15:45:20.210 [140548911135544] INFO - Network Service: Abandoning advertise socket, it was closed.
May 10, 2023 15:45:22.339 [140548932643640] DEBUG - Stopping file watcher for com.plexapp.system
May 10, 2023 15:45:24.168 [140548898478904] DEBUG - Stopping file watcher for com.plexapp.agents.subzero
May 10, 2023 15:45:25.185 [140549030001296] DEBUG - Killing job.
May 10, 2023 15:45:25.185 [140549030001296] DEBUG - Signalling job ID 9395 with 9
May 10, 2023 15:45:25.187 [140549025233720] DEBUG - Jobs: '/usr/lib/plexmediaserver/Plex DLNA Server' exit code for process 9395 is -9 (signal: Killed)
May 10, 2023 15:45:25.187 [140548909026104] DEBUG - [ChildProcessMonitor] Plex DLNA Server exited.
May 10, 2023 15:45:25.187 [140549030001296] DEBUG - ChildProcessMonitor: Waiting for Plex Tuner Service to exit.
May 10, 2023 15:45:25.187 [140549030001296] DEBUG - [JobRunner] Signalling job ID 9394 with 2
May 10, 2023 15:45:39.732 [140549030001296] DEBUG - Database: Shutting down.

Can’t debug just the shutdown snippet.

Need to see what comes before it to cause it

May I have the DEBUG logs (ZIP file)

Just following up here; although there was no message in the logs about possible database corruption I assume that was the cause, as restoring a backup of the database resolved the issue.

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