# Plex Server Repeatedly crashing upon launch

**URL:** <https://forums.plex.tv/t/plex-server-repeatedly-crashing-upon-launch/851101>\
**Category:** Plex Media Server\
**Tags:** server-windows\
**Created:** [August 21, 2023, 2:08am UTC](https://forums.plex.tv/t/plex-server-repeatedly-crashing-upon-launch/851101 "2023-08-21T02:08:02Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsaintamour](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jsaintamour/32/23850_2.png) [@jsaintamour](https://forums.plex.tv/u/jsaintamour)\
**Post date:** [August 21, 2023, 2:08am UTC](https://forums.plex.tv/t/plex-server-repeatedly-crashing-upon-launch/851101/1 "2023-08-21T02:08:02Z")

</div>

Server Version#: 1.32.5.7349-8f4248874

Over the last 24 hours, plex has been crashing repeatedly upon launch, i cannot even open the webpage long enough to download logs, or turn on verbose logging. Im attaching what logs and dumps i have been able to find.

I did see other posts suggesting moving to 64bit server (been running 32bit since 2014ish) so i tried installing that earlier today, and again within a couple of minutes the plex server process crashes.

Any input would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![jsaintamour](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jsaintamour/32/23850_2.png) [@jsaintamour](https://forums.plex.tv/u/jsaintamour)\
**Post date:** [August 21, 2023, 2:08am UTC](https://forums.plex.tv/t/plex-server-repeatedly-crashing-upon-launch/851101/2 "2023-08-21T02:08:25Z")

</div>

[Plex Media Server\_20230820173936.log](https://forums.plex.tv/uploads/short-url/lBaI2dQu9mxrm9JRv3E5FFYsB0b.log) (20.0 KB)  
[Plex Media Server\_20230820173936\_000\_pms.log](https://forums.plex.tv/uploads/short-url/cmtHPQZbCF0DfnuRPSGaiql4iX6.log) (5.5 MB)  
[Plex Media Server\_20230820173936\_001\_pmsshutdown.log](https://forums.plex.tv/uploads/short-url/wel8wtmfdlKVi4gwuB51OtOoAOf.log) (80.6 KB)  
[Plex Media Server\_x64\_2023\_08\_20\_\_17\_39\_32.log](https://forums.plex.tv/uploads/short-url/zCwkJIYhlxbaL8v001h5JY4gxLw.log) (955.9 KB)

---

<div class="post-metadata">

**Author:** ![jsaintamour](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jsaintamour/32/23850_2.png) [@jsaintamour](https://forums.plex.tv/u/jsaintamour)\
**Post date:** [August 21, 2023, 2:12am UTC](https://forums.plex.tv/t/plex-server-repeatedly-crashing-upon-launch/851101/3 "2023-08-21T02:12:28Z")

</div>

was finally able to get the logs. thanks in advance

[Plex Media Server Logs\_2023-08-20\_19-11-26.zip](https://forums.plex.tv/uploads/short-url/vmKxUCvLu4KHWWL64ZNEO759V8L.zip) (1.1 MB)

---

<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:** [August 21, 2023, 5:27am UTC](https://forums.plex.tv/t/plex-server-repeatedly-crashing-upon-launch/851101/4 "2023-08-21T05:27:19Z")

</div>

From `Plex Media Server.log`:  
`Aug 20, 2023 19:11:20.974 [1164] ERROR - SQLITE3:0x7ff6d8353dc0, 11, database corruption at line 69165 of [a29f994989]`

Database corruption.

Download & run the [PlexDBRepair Utility](https://github.com/ChuckPa/PlexDBRepair).

If the utility cannot [repair the database](https://support.plex.tv/articles/repair-a-corrupted-database/), then see [Restore a Database Backed Up via ‘Scheduled Tasks’.](https://support.plex.tv/articles/202485658-restore-a-database-backed-up-via-scheduled-tasks/).

1. Go to this page: [https://github.com/ChuckPa/PlexDBRepair/blob/master/DBRepair-Windows.bat](https://github.com/ChuckPa/PlexDBRepair/blob/master/DBRepair-Windows.bat)
2. Click the download button  
 ![db](https://global.discourse-cdn.com/plex/original/4X/4/7/1/4718535d156294350b44160777692306bc274fe4.png)
3. If running, stop Plex Media Server
4. Run the utility from the c:\ prompt.

The utility expects Plex Media Server and the [Plex Data Folder](https://support.plex.tv/articles/202915258-where-is-the-plex-media-server-data-directory-located/) to be in their default locations. If you have moved either, edit the .bat file accordingly.

```auto
set "PlexData=%LOCALAPPDATA%\Plex Media Server\Plug-in Support\Databases"
set "PlexSQL=%PROGRAMFILES%\Plex\Plex Media Server\Plex SQLite"

```

Sample Output:

```auto
 0:23:39.47 -- ====== Session begins. (Mon 08/21/2023) ======
 0:23:39.80 -- Exporting Main DB
 0:24:06.92 -- Exporting Blobs DB
 0:24:21.46 -- Exporting Complete.
 0:24:21.46 -- Creating Main DB
 0:24:32.65 -- Verifying Main DB
 0:24:36.12 -- Main DB verification check is: ok
 0:24:36.12 -- Main DB verification successful.
 0:24:36.13 -- Creating Blobs DB
 0:24:38.10 -- Verifying Blobs DB
 0:24:38.30 -- Blobs DB verification check is: ok
 0:24:38.30 -- Blobs DB verification successful.
 0:24:38.31 -- Import and verification complete.
 0:24:38.32 -- Reindexing Main DB
 0:24:40.98 -- Reindexing Blobs DB
 0:24:41.49 -- Reindexing complete.
 0:24:41.49 -- 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.
 0:24:41.51 -- Database repair/rebuild/reindex completed.
 0:24:41.51 -- ====== Session completed. ======

```

---

<div class="post-metadata">

**Author:** ![jsaintamour](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jsaintamour/32/23850_2.png) [@jsaintamour](https://forums.plex.tv/u/jsaintamour)\
**Post date:** [August 21, 2023, 5:20pm UTC](https://forums.plex.tv/t/plex-server-repeatedly-crashing-upon-launch/851101/5 "2023-08-21T17:20:29Z")

</div>

Thanks for your assistance,  
unfortunately, it doesn’t appear to have worked… tried the db repair twice (log attached)

I then tried the database restore and the same behavior persists.  
I was able to keep it for about 10 seconds, just long enough to grab a new log pull.

Is it worth it to try an older Db restore point? or is there some other trick i can try?

[Plex Media Server Logs\_2023-08-21\_10-18-15.zip](https://forums.plex.tv/uploads/short-url/khfRUTRvn0jCR0lout2T9lTjgYK.zip) (1.3 MB)  
[PlexDBRepair.log](https://forums.plex.tv/uploads/short-url/8DtNqU2tRE3Kdw2g7GsZ5GB28lQ.log) (1.7 KB)

---

<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:** [August 21, 2023, 7:03pm UTC](https://forums.plex.tv/t/plex-server-repeatedly-crashing-upon-launch/851101/7 "2023-08-21T19:03:28Z")

</div>

> [@jsaintamour](#):
>
> Is it worth it to try an older Db restore point?

Give it a try. There is no way to tell exactly when the corruption occurred, so it is possible the older versions are also corrupt. You may want to just jump to the oldest restore point instead of trying each one individually.

- Grab an older restore point.
- Load it into Plex Media Server
- Run the DB Repair Utility.
- Run Plex Media Server
- Check Plex Media Server.log for entries that mention database corruption.

Every time PMS starts, the logs get rolled (.log to .1.log, .1.log to .2.log, etc), so Plex Media Server.log always has the most recent information.

---

<div class="post-metadata">

**Author:** ![jsaintamour](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jsaintamour/32/23850_2.png) [@jsaintamour](https://forums.plex.tv/u/jsaintamour)\
**Post date:** [August 21, 2023, 9:04pm UTC](https://forums.plex.tv/t/plex-server-repeatedly-crashing-upon-launch/851101/8 "2023-08-21T21:04:14Z")

</div>

No dice… even with the oldest backup from 12 days ago.  
Still crashing on launch, and still throwing database corruption errors.

 ![2023-08-21_13h58_48](https://global.discourse-cdn.com/plex/original/4X/1/6/9/169d8ddfb0ea995c1f6d6b560fa79f7ebc748b1c.png)

at this point i think im going to have to essentially re-initialize the plex db, is there a process for this? or do i just need to delete everything and re-install?

---

<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:** [August 21, 2023, 9:30pm UTC](https://forums.plex.tv/t/plex-server-repeatedly-crashing-upon-launch/851101/9 "2023-08-21T21:30:59Z")

</div>

Just toss the database. No need for a complete re-install.

Stop Plex Media Server  
Delete everything in …/Plug-in Support/Databases (or rename the files with .bak, .old, etc).  
Start Plex Media Server

Plex will create a new, empty database. You’ll have to re-create your libraries, shares with others, etc.

---

<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:** [November 19, 2023, 9:31pm UTC](https://forums.plex.tv/t/plex-server-repeatedly-crashing-upon-launch/851101/10 "2023-11-19T21:31:31Z")

</div>

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