Server Version#: 1.27.2.5929 - but has been happening since the first release with “better database optimizations”.
Player Version#: Any
As the title says, my Plex server keeps hanging when a database optimization is ran. This happens both when ran manually, and when it’s performed during the regular maintenance window. My server was running fine for a year+ with no issue, until the newer server version with “better database optimizations”. I do have a larger library with about 3500 movies and 24k episodes, but this has never happened before.
Attached is my log which shows when I started the optimization manually (near the bottom) and when I stopped the server because all of my clients that were currently playing, stopping streaming and started buffering. Both remote and local sessions. As I understand it, media should continue to play while the optimization is running, but new sessions cannot be started. This wouldn’t be a problem, but it doesn’t just last 2-3 minutes and then come back online.
When the maintenance runs automatically at night, it will go offline at about 4am and won’t come back online until I restart the service many hours later when I wake up. (Worth noting, I run Plex as a service in Windows Server, using NSSM) There also appears to be no activity on the server when it hangs. No CPU, no memory usage change, no disk activity, no network activity, etc (this is also running on a dedicated blade server with no other apps on it at all. Just Plex.)
Also worth noting, Tautulli doesn’t seen that the server is unreachable. It can still communicate with the Plex server while none of the streaming clients can access it, and it can’t even be access via localhost. This could just be a glitch with Tautulli too, but just wanted to add that info.
Any help is appreciated. I’ve been fighting with this for a few months now, hoping that a new release would fix the issue.
Plex Media Server.1.log (5.7 MB)

