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