# Database corrupt Message but Plex runs fine

**URL:** https://forums.plex.tv/t/database-corrupt-message-but-plex-runs-fine/902742
**Category:** Plex Media Server
**Tags:** server-windows
**Created:** [January 19, 2025, 1:02am UTC](https://forums.plex.tv/t/database-corrupt-message-but-plex-runs-fine/902742 "2025-01-19T01:02:41Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![mprachar](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mprachar/32/332566_2.png) [@mprachar](https://forums.plex.tv/u/mprachar)
#### Post date: [January 19, 2025, 1:02am UTC](https://forums.plex.tv/t/database-corrupt-message-but-plex-runs-fine/902742/1 "2025-01-19T01:02:41Z")

</div>

I saw a push message on my phone that said something about my Plex db being corrupted. However, when I logged on to see what was happening, I cannot find any trace of the message and the server seems to be fine.

I would much rather deal with an issue before it’s a “real” problem - not sure what (if anything) to do from here.

---

<div class="post-metadata">

### Author: ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)
#### Post date: [January 19, 2025, 1:38am UTC](https://forums.plex.tv/t/database-corrupt-message-but-plex-runs-fine/902742/2 "2025-01-19T01:38:42Z")

</div>

Best try to repair your database immediately.

> **[GitHub - ChuckPa/PlexDBRepair: Database repair utility for Plex Media Server...](https://github.com/ChuckPa/PlexDBRepair)**
>
> Database repair utility for Plex Media Server databases

---

<div class="post-metadata">

### Author: ![mprachar](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mprachar/32/332566_2.png) [@mprachar](https://forums.plex.tv/u/mprachar)
#### Post date: [January 19, 2025, 9:36pm UTC](https://forums.plex.tv/t/database-corrupt-message-but-plex-runs-fine/902742/3 "2025-01-19T21:36:51Z")

</div>

That db utility for Windows was almost too easy - I don’t know if it actually corrected/fixed anything, but it completed quickly and got me right back online.

---

<div class="post-metadata">

### Author: ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)
#### Post date: [January 20, 2025, 3:09am UTC](https://forums.plex.tv/t/database-corrupt-message-but-plex-runs-fine/902742/4 "2025-01-20T03:09:06Z")

</div>

ChuckPa has done a LOT of work to make the process easy for non-technical users. Often times database corruption occurs long before Plex stops functioning, Plex can handle minor database damage, but it starts a timer until the database crashes completely. In this case you were able to repair and should be good moving forward.

---

<div class="post-metadata">

### Author: ![FordGuy61](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@FordGuy61](https://forums.plex.tv/u/FordGuy61)
#### Post date: [January 20, 2025, 3:11am UTC](https://forums.plex.tv/t/database-corrupt-message-but-plex-runs-fine/902742/5 "2025-01-20T03:11:41Z")

</div>

> [@mprachar](#):
>
> I don’t know if it actually corrected/fixed anything

If you used the .bat file, run from a c:\ prompt. Don’t double click. You’ll see the results in the window.

It also leaves a log file in the folder with the database files.

---

<div class="post-metadata">

### Author: ![mprachar](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mprachar/32/332566_2.png) [@mprachar](https://forums.plex.tv/u/mprachar)
#### Post date: [January 20, 2025, 4:02pm UTC](https://forums.plex.tv/t/database-corrupt-message-but-plex-runs-fine/902742/6 "2025-01-20T16:02:17Z")

</div>

I used the PowerShell method. I got messages in the PowerShell window about what the tool was doing, but nothing that indicated specific repairs. I have also searched the Plex drive and system drive for ‘dbrepair.log’ but haven’t been able to locate it.

Obviously, all that really matters is that it is working and the tool most likely cleaned up an issue, but it would be nice to know what it found too.

---

<div class="post-metadata">

### Author: ![FordGuy61](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@FordGuy61](https://forums.plex.tv/u/FordGuy61)
#### Post date: [January 20, 2025, 4:56pm UTC](https://forums.plex.tv/t/database-corrupt-message-but-plex-runs-fine/902742/7 "2025-01-20T16:56:20Z")

</div>

Wasn’t sure which method you used. If the databases had problems, then it would have been mentioned on screen.

The log file, PlexDBRepair.log, is in the same directory as the Plex database files, `%LOCALAPPDATA%\Plex Media Server\Plug-in Support\Databases`. It has basically the same info that was in the PowerShell window. The entries are date/time stamped so you can look up prior runs.

Example:

```auto
2025-01-20 10.46.16 -- ============================================================
2025-01-20 10.46.16 -- Session start: Host is Windows 10 (Build 19045)
2025-01-20 10.46.19 -- Stop - START
2025-01-20 10.46.21 -- Auto - START
2025-01-20 10.46.22 -- Repair - Export databases - PASS
2025-01-20 10.46.24 -- Repair - Import - PASS
2025-01-20 10.46.24 -- Repair - Verify main database - PASS
2025-01-20 10.46.24 -- Repair - Verify blobs database - PASS
2025-01-20 10.46.24 -- Reindexing Main DB
2025-01-20 10.46.24 -- Reindexing Blobs DB
2025-01-20 10.46.25 -- Reindexing complete.
2025-01-20 10.46.25 -- Moving current DBs to DBTMP and making new databases active
2025-01-20 10.46.25 -- Auto - PASS
2025-01-20 10.46.33 -- Prune - START
2025-01-20 10.46.33 -- Prune - PASS (no files found to prune)
2025-01-20 10.46.37 -- Exit - Retain temp files.
2025-01-20 10.46.37 -- Session end. 01/20/2025 10:46:37
2025-01-20 10.46.37 -- ============================================================

```

---

<div class="post-metadata">

### Author: ![mprachar](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mprachar/32/332566_2.png) [@mprachar](https://forums.plex.tv/u/mprachar)
#### Post date: [January 20, 2025, 6:14pm UTC](https://forums.plex.tv/t/database-corrupt-message-but-plex-runs-fine/902742/8 "2025-01-20T18:14:41Z")

</div>

OK - thanks for that!

So that dir is empty - I guess when I let it clean up the temp files after the run it also cleaned up the log.

Your example output is almost exactly what I saw in the PS window, so I suppose it didn’t find anything too bad.

---

<div class="post-metadata">

### Author: ![shark2k](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/shark2k/32/305908_2.png) [@shark2k](https://forums.plex.tv/u/shark2k)
#### Post date: [January 20, 2025, 6:34pm UTC](https://forums.plex.tv/t/database-corrupt-message-but-plex-runs-fine/902742/9 "2025-01-20T18:34:58Z")

</div>

I’m not sure about the Windows version (I believe Chuck made it as similar as the shell script as possible), but there should be 2 exit options. One that will retain the temp files and the other that will give the option to delete them. It is possible you did the latter and deleted them without realizing.

I think if there was an issue it could not repair, it would have given you that message in the output. You could also run the ‘check’ option which will verify the integrity of the repaired DB. If that comes back OK, you should def be good to go.

-Shark2k

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [April 20, 2025, 6:35pm UTC](https://forums.plex.tv/t/database-corrupt-message-but-plex-runs-fine/902742/10 "2025-04-20T18:35:58Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
