Server Version#:v1.41.7.9799-5bce000f7 - Docker Docker Container x86_64 - build: linux-x86_64 debian
Player Version#: N/A
Last night I was streaming content from PMS without any issues. The server is on a UPS and did not encounter any power issues. This morning I discovered that I could not access the server via any apps/devices, and that the web client reported “503 Maintenance Plex Media Server is currently running database migrations.” I opened the docker logs and saw constant logs that the server was unable to start. After some investigation, I found the server logs with the following errors:
May 22, 2025 09:32:53.997 [22960106175120] ERROR - SQLITE3:0x80000001, 11, database corruption at line 91363 of [a29f994989]
May 22, 2025 09:32:53.997 [22960106175120] ERROR - SQLITE3:0x80000001, 11, statement aborts at 5: [UPDATE activities SET `finished_at`=`started_at` WHERE `finished_at` IS NULL] database disk image is malformed
May 22, 2025 09:32:53.997 [22960106175120] ERROR - Error: Unable to set up server: std::exception (N2DB9ExceptionE)
I found the PlexDBRepair tool and attempted to use it, but every time it attempts to use SQLite3 (Plex Sqlite) it just reports “Killed” and moves on (it is thus unable to restore the most recent backup, or to effectuate any repairs).
Enter command # -or- command name (4 char min) : 2
Automatic Check,Repair,Index started.
Checking the PMS databases
Check complete. PMS main database is damaged.
Killed
Check complete. PMS blobs database is damaged.
Exporting current databases using timestamp: 2025-05-22_09.26.22
Exporting Main DB
Killed
Error 137 from Plex SQLite while exporting com.plexapp.plugins.library.db
Could not successfully export the main database to repair it. Please try restoring a backup.
Repair failed. Automatic mode cannot continue. Please repair with individual commands
Enter command # -or- command name (4 char min) : 9
Checking the PMS databases
Check complete. PMS main database is damaged.
Killed
Check complete. PMS blobs database is damaged.
Checking for a usable backup.
Database backups available are: 2025-05-21 2025-05-18 2025-05-15 2025-05-12
1) - 2025-05-21
2) - 2025-05-18
3) - 2025-05-15
4) - 2025-05-12
Select backup date by number or date name (blank = return to menu) 1
Checking backup candidate 2025-05-21
Killed
Killed
Backup from 2025-05-21 is not usable. Try again
What are my options for next-steps?