Unable to scan library. Computer freezes

Server Version#: 1.43.2.10687
Player Version#: 1.112.0.359

OS Unraid

Official Plex-Media-Server

A few weeks ago I started experiencing issues when scanning my libraries after adding new movies or shows. All cores on the CPU max out at 99% and I’m unable to do anything in Plex. The only way to watch or access anything on the server is to restart the Plex docker container. I have the scheduled tasks Backup database every three days checked, optimize database every week, remove old bundles every week, ect. Another odd thing I’ve noticed is Plex is using over 50% of my CPU when idling and nothing is being streamed. I used to be able to have multiple people streaming and the CPU would be at 1-5%.

After reading through some posts I’m guessing the database is corrupt. I made a backup of the current one and replaced it with the latest one, which was on 2026-5-2, which is 3 weeks old, not 3 days old, so I’m guessing its having issues making backups of the database. After replacing and renaming it, Plex showed my server was no longer online. after restoring the current one it shows its back online and working, but with the same freezing issue. I downloaded the log files through the Plex app on Windows and tried going through them, but I’m not sure what I’m looking at.

I don’t want to have to start over from scratch. I appreciate any help resolving this issue.

  1. Post the zip file so others can take a look.

  2. Navigate to the Plex Data Folder.
    What size is com.plexapp.plugins.library.db?

The database is 850MB. Should I upload that as well?

Your database is corrupt:

May 26, 2026 18:04:21.028 [23085855758992] ERROR - SQLITE3:0x80000001, 11, database corruption at line 68825 of [a29f994989]
May 26, 2026 18:04:21.028 [23085855758992] ERROR - SQLITE3:0x80000001, 11, database corruption at line 68975 of [a29f994989]
May 26, 2026 18:04:21.028 [23085855758992] ERROR - SQLITE3:0x80000001, 11, statement aborts at 10: database disk image is malformed
May 26, 2026 18:04:21.028 [23085855758992] ERROR - SQLITE3:0x80000001, 11, database disk image is malformed in “PRAGMA cache_size=5120”
May 26, 2026 18:04:21.029 [23085855758992] ERROR - SQLITE3:0x80000001, 11, database corruption at line 63781 of [a29f994989]

See: https://support.plex.tv/articles/repair-a-corrupted-database/

Thanks for the reply. I’ll go through the instructions on that page. I really appreciate your help!!

I went through that link, but it didn’t have any info on repairing a database in docker. I followed the instructions on this link and was able to successfully repair the database. https://www.reddit.com/r/PleX/comments/z7i4va/repair_a_corrupted_database_on_unraid_updated/. After following the instructions, I ran the PRAGMA integrity check and the database showed no errors.

Anyways, I started up Plex and told it to clean bundles and optimize the database and it maxed out the CPU and and I couldn’t access anything while it tried to optimize the database. Any time I try to scan library files, it locks up.

After doing some more reading online, I came across DBRepair tool by ChuckPA. https://github.com/ChuckPa/PlexDBRepair. I ran through it and it repaired some more database errors, but Plex is still locking up while trying to scan libraries. I attached the log of everything I did through the DBRepair.sh tool as well as a new Plex log.

I’m kind of at my wits end. Is it possible there are specific files in my media library that are causing the db to become corrupt? I’ve noticed other issues like certain media libraries not showing up on the home screen even though they are pinned. I also just went to watch a movie and it was using 15-20% of the CPU, so I don’t think hardware transcoding is working anymore.

Plex Media Server.log (150.1 KB)

DBRepair log.txt (13.9 KB)

There’s nothing in your log about scanning. Did you pull the log after you restarted PMS? You need the log from when it crashes/freezes.

Turn off verbose logging, restart PMS, reproduce the issue, grab the new log.