Attempting to run the commands in the guide → Repair a Corrupted Database | Plex Support
"Plex SQLite" com.plexapp.plugins.library.db
However for some reason before I can run ```
PRAGMA integrity_check;
Attempting to run the commands in the guide → Repair a Corrupted Database | Plex Support
"Plex SQLite" com.plexapp.plugins.library.db
However for some reason before I can run ```
PRAGMA integrity_check;
sqlite> PRAGMA integrity_check;
*** in database main ***
Page 237141: unable to get the page. error code=8458
On tree page 230947 cell 87: Child page depth differs
Page 237091: unable to get the page. error code=8458
Page 237090: unable to get the page. error code=8458
Page 237089: unable to get the page. error code=8458
Page 237088: unable to get the page. error code=8458
Page 237087: unable to get the page. error code=8458
Page 237086: unable to get the page. error code=8458
Page 237085: unable to get the page. error code=8458
Page 237084: unable to get the page. error code=8458
Page 237083: unable to get the page. error code=8458
Page 237081: unable to get the page. error code=8458
Page 237077: unable to get the page. error code=8458
Page 237075: unable to get the page. error code=8458
Page 237074: unable to get the page. error code=8458
Page 237072: unable to get the page. error code=8458
Page 237071: unable to get the page. error code=8458
Page 237069: unable to get the page. error code=8458
Page 237068: unable to get the page. error code=8458
Page 237067: unable to get the page. error code=8458
Page 237065: unable to get the page. error code=8458
Page 237064: unable to get the page. error code=8458
Page 237062: unable to get the page. error code=8458
Page 237060: unable to get the page. error code=8458
Page 237058: unable to get the page. error code=8458
On tree page 230947 cell 86: Child page depth differs
Runtime error: database disk image is malformed (11)
sqlite>
I guess I cannot salvage this
Agreed, database file is very broken.
While it’s possible that you could recover some of the data from it, because it’s Plex I would encourage you to just bite the bullet and start fresh.
Do you have any sense of how this happened, what went wrong in the first place? Is this Plex on a bare-metal TrueNAS system?
WHy not close recent snaps to a new dataset and try to spin them up see if any of them is not corrupted
Power outage, UPS ran out of juice while I was away
You mean the .db with timestamps on them?
i tried to cp com.plexapp.plugins.library.db-2024-08-15 com.plexapp.plugins.library.db
Plex starts but all the meta data is gone…
Can’t help with Plex, but you should configure your UPS service to shutdown truenas on power outage, not just go until it runs out.
Yeah - i learned my lesson there…
Just figured that one out… thanks for the head’s up