I have this exact same issue as Steve, the only difference is all my files are located on the same pc as the server. My issues seems to have started almost the same day. I am running on a windows 10 pc. Would you be able to contact me? The last week has been driving me crazy
Mod Edit: Relocated to Windows section of the forum. The original thread was for QNAP NAS. @FordGuy61.
Also if I restart my server it will work as long as I play something but 5-10 mins after the video is not being played it goes back to that never ending maintenance issue. Thank you
I can’t be of help with Windows other than point you to the minimal knowledge of the DBRepair tool for Windows (one is a bat file and the other is a Powershell file)
Do you know if I just need to run the bat file? I downloaded the zip folder and it was in there. Seems like the tool wasn’t designed the same for windows as the other OS’s. Do you happen to know if it functions the same or would you be able to point me to anyone who works with windows? Thank you!
Run the bat file from a c:\ prompt so you can see the output (instead of double clicking it).
DBRepair-Windows.bat Example
c:\Temp>DBRepair-Windows.bat
NOTE: This script is being replaced with the PowerShell script DBRepair-Windows.ps1,
which aims to better emulate DBRepair.sh (more options, interative mode, etc).
Consider moving over to the new script.
14:05:35.19 -- ====== Session begins. (Sun 03/16/2025) ======
14:05:35.44 -- Exporting Main DB
14:05:36.14 -- Exporting Blobs DB
14:05:36.20 -- Exporting Complete.
14:05:36.20 -- Creating Main DB
14:05:36.44 -- Verifying Main DB
14:05:36.50 -- Main DB verification check is: ok
14:05:36.50 -- Main DB verification successful.
14:05:36.51 -- Creating Blobs DB
14:05:36.58 -- Verifying Blobs DB
14:05:36.62 -- Blobs DB verification check is: ok
14:05:36.62 -- Blobs DB verification successful.
14:05:36.63 -- Import and verification complete.
14:05:36.64 -- Reindexing Main DB
14:05:36.71 -- Reindexing Blobs DB
14:05:36.86 -- Reindexing complete.
14:05:36.87 -- Moving current DBs to DBTMP and making new databases active
1 file(s) moved.
1 file(s) moved.
1 file(s) moved.
1 file(s) moved.
14:05:36.88 -- Database repair/rebuild/reindex completed.
14:05:36.88 -- ====== Session completed. ======
c:\Temp>
Downloads is OK. It does not matter where the file is located (I ran it from c:\Temp in my example above).
To open a command prompt:
Navigate to the same location as the bat file in Windows File Explorer. Hold down the shift key and right click on an empty space in the folder. A menu will appear. One of the choices should be “open command prompt here.” It might say “Open Powershell window here.” Either is OK.
If that doesn’t work:
Enter cmd or command prompt in the search box on the taskbar. That should open a command prompt in your home directory, c:\users\your_username.
To change to the Downloads directory, enter cd Downloads.
Once you’re in the same folder as the file, enter the file name, press enter, and it should run.
You should see output similar to the example in my earlier post.
Thank you so much! I’m backing up all my movies and stuff tonight should be done tomorrow and then I’ll run it! I’ll keep you posted! Have a good night
That written, you do not need to perform a backup to run DBRepair. It touches only the Plex database files and makes a backup of them as well. It does not touch any media files, other files in the Plex Data Folder, Windows OS files, etc.
Thank you! More knowledge is always appreciated, I hope it works! If it doesn’t I think I’ll just have to make a new server, Or are there other next steps you suggest?
PlexDBRepair.log (1.0 KB)
all the other files are too large to send here. also if you’d like you can feel free to DM me and i can try and run your ideas quicker. thanks again
It says that the iPad stopped it? My iPad said it had lost connection with the server and the server had said 503 unavailable.
My internet should be set to private? It’s my home internet and it has a passcode. Do you know how I can make it private? Also all other internet traffic (on this pc) is going through a vpn Except for Plex and PMS, if that helps.
And I agree all the server shut offs were manual because I could no longer access it and restarting the server makes it work for like an hour at a time. So far I’ve not been able to find an issue online that matches it.