Plex Server Repeatedly crashing upon launch

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.

Plex Media Server_20230820173936.log (20.0 KB)
Plex Media Server_20230820173936_000_pms.log (5.5 MB)
Plex Media Server_20230820173936_001_pmsshutdown.log (80.6 KB)
Plex Media Server_x64_2023_08_20__17_39_32.log (955.9 KB)

was finally able to get the logs. thanks in advance

Plex Media Server Logs_2023-08-20_19-11-26.zip (1.1 MB)

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.

If the utility cannot repair the database, then see Restore a Database Backed Up via ‘Scheduled Tasks’..

  1. Go to this page: https://github.com/ChuckPa/PlexDBRepair/blob/master/DBRepair-Windows.bat
  2. Click the download button
    db
  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 to be in their default locations. If you have moved either, edit the .bat file accordingly.

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

Sample Output:

 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. ======

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 (1.3 MB)
PlexDBRepair.log (1.7 KB)

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.

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

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?

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.

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