I am running Unraid on my media server and I am running the Hotio docker container for plex.
My problem is my server keeps going offline and this has only been an intermittent issue for the past 2 months. Its been absolutely bulletproof before that. My last major issue was an issue with the Plex database that I repaired using a DB repair tool.
I have removed the plex docker container and re-added it to see if that fixes anything but im at my wits end as docker shows the plex container running but the server is very much offline. A simple restart gets the server back online again and works normally until something makes it crash or go offline.
I dont know where to start with the logs but i have attached them to my post.
Check the size of the com.plexapp.plugins.library.db database file (located in the Plug-in Support/Databases folder in the Plex Data Folder).
Is it abnormally large - possibly gigabytes in size? You may have been bitten by the bug in PMS 1.41.7 that inflated the database to an abnormally large size.
The log files show Plex deleting unneeded metadata from the database. This can take a long time and cause Plex to be non-responsive.
This will remove the excess metadata faster than Plex Media Server can do so.
That should shrink the database back to its normal size and make Plex more responsive.
Snippet from Plex Media Server.2.log. The “Updating deletion state” line repeats over 13000 times.
Jan 15, 2026 16:59:29.703 [23278233324344] DEBUG - Deleting media item 33677.
Jan 15, 2026 16:59:29.704 [23278233324344] DEBUG - Was connected to metadata item 22825, count is now 0.
Jan 15, 2026 16:59:29.704 [23278233324344] DEBUG - Destroying metadata item 22825 (Episode 6)
Jan 15, 2026 16:59:29.708 [23278233324344] DEBUG - Updating deletion state for metadata item 22824, is has a dead item count of 0.
Jan 15, 2026 16:59:29.708 [23278233324344] DEBUG - Updating deletion state for metadata item 22824, is has a dead item count of 0.
Jan 15, 2026 16:59:29.708 [23278233324344] DEBUG - Updating deletion state for metadata item 22824, is has a dead item count of 0.
Jan 15, 2026 16:59:29.708 [23278233324344] DEBUG - Updating deletion state for metadata item 22824, is has a dead item count of 0.
Jan 15, 2026 16:59:29.709 [23278233324344] DEBUG - Updating deletion state for metadata item 22824, is has a dead item count of 0.
UPDATE: I think i found a symptom of the problem. When ever i clicked on “Recently Added in TV Shows” i would get an error. This never happens when i do the recently added movies. It had been doing this for a couple of weeks. I didnt think it was related, maybe its not, maybe it is. The issue with the recent tv shows still happened even after deflate and auto repair. I even did a prune and it removed 4000 files and i still had the error.
So i put all the files in the DB directory into a sub directory and restarted plex. I re-added my libraries and its now rescanning all the files and rebuilding the DB files, but all the features on the plex home screen seem to be working as normal. I have not deleted the sub directory, i thought maybe keeping them could be helpful if this fix sorted my problem, it might help people go through them files to find other errors or something.
Maybe i just had something was wrong with one of the db files that the db tool couldnt fix?