Server Version#: 1.41.8.9834-071366d65 (I think)
Player Version#:
I have had issues since a week ago when scanning library files the server would hang loose connection and I would have to restart it. I decided to Optimize the database through plex, and it would hang around 60%-ish for hours with minimal disc activity, it started at 70MB/sec and then lowered to around 14/MB/sec and 3MB or 4MB/sec.
So I decided to start a DBrepair since it was taking up a lot of space and I could not remember if I had turned on the optimize db functioning or not.
.\DBRepair-Windows.ps1 stop automatic check show prune start \path\to\database\
How long is it supposed to take? I mean I started the first time yesterday at 19:30 and I stopped it this morning because I did not see any new files or changes. Then when I refreshed I saw a new file pop up “com.plexapp.plugins.library.db-wal”.
Does dbrepair need to run with admin?
How long does it take?
I have started the process again but the log show now progress and there is no verbose option.
I know I am impatient but from what I have read most of the other users reported having it being done in 2 hours.
Is there a way to have dbrepair pause and continue?
The new file appeared after the 10 hours, com.plexapp.plugins.library.db-wal, when I restarted the new repair this one popped up, com.plexapp.plugins.library.db-shm and is SLOWLY growing at 4 - max 6MB/s.
I tried googling the file names, some people said to removed them in certain cases.
It is unclear to me what they do
Any help/advice/words/patience_inducing_clarification would be appreciated ![]()
Update: It’s been running since yesterday 08:08 AM
Not done yet, but the com.plex.app.plugins.library.dbs-shm and ````com.plexapp.plugins.library.db-wal``` are gone.
Nothing more inside the CLI nothing new
Then I started PMS up.
And wanted to copy paste output from the CLI to here and suddenly it started updating outputting actual information.
But it was cleary hanging since 3 AM and
PS C:\Users\arp\scripts\DBRepair\Windows> .\DBRepair-Windows.ps1 stop automatic check show prune start C:\Users\arp\AppData\Local\Plex Media Server\Plug-in Support\Databases\com.plexapp.plugins.library.db
Database Repair Utility for Plex Media Server (Windows 10, Build 22631)
Version v1.01.01
2025-06-04 08.08.17 PMS already stopped.
2025-06-04 08.08.17 Automatic Check,Repair,Index started.
2025-06-04 08.08.17 Performing DB cleanup tasks.
2025-06-05 03.15.09 Exporting Main DB
2025-06-05 08.24.17 Exporting Blobs DB
2025-06-05 08.24.17 Successfully exported the main and blobs databases. Proceeding to import into new database.
2025-06-05 08.24.17 Importing Main DB.
2025-06-05 08.24.32 Importing Blobs DB.
2025-06-05 08.24.32 Successfully imported databases.
2025-06-05 08.24.32 Verifying databases integrity after importing.
2025-06-05 08.24.36 Main DB verification check is: ok
2025-06-05 08.24.36 Verification complete. PMS main database is OK.
2025-06-05 08.24.36 Blobs DB verification check is: ok
2025-06-05 08.24.36 Verification complete. PMS blobs database is OK.
2025-06-05 08.24.36 Reindexing Main DB
2025-06-05 08.24.40 Reindexing Blobs DB
2025-06-05 08.24.40 Reindexing complete.
2025-06-05 08.24.40 Moving current DBs to DBTMP and making new databases active
2025-06-05 08.24.40 Automatic Check,Repair,Index succeeded.
WARNING: 2025-06-05 08.24.40 Unknown Command: 'check'
WARNING: 2025-06-05 08.24.40 Unknown Command: 'show'
2025-06-05 08.24.40 Pruning started.
2025-06-05 08.24.51 Prune - Removed 12958 files over 30 days old (566.37 MiB), out of 56671 total files
2025-06-05 08.24.51 Pruning completed.
2025-06-05 08.24.51 Started PMS
WARNING: 2025-06-05 08.24.51 Unknown Command: 'C:\Users\arp\AppData\Local\Plex'
WARNING: 2025-06-05 08.24.51 Unknown Command: 'Media'
WARNING: 2025-06-05 08.24.51 Unknown Command: 'Server\Plug-in'
WARNING: 2025-06-05 08.24.51 Unknown Command: 'Support\Databases\com.plexapp.plugins.library.db'
2025-06-05 08.24.53 Deleted all temporary work files.
anyway I think its done, it took 1 day and 6 hours…



