Server Version#: 1.19.4.2935
Hi everybody,
Unfortunately my Plex database is corrupt, resulting in failed searches, empty playlists, the inability to add new items, or to delete my Music library. I feel like I started having a lot of corruption issues once I added the Music library, and I would repair them using the dump.sql method and everything was fine. However, now the integrity check shows as ‘ok’ and using the dump.sql method is not fixing the issue. By the time I noticed this last issue, it was too late to go back to one of the backup databases, they all have the same issue.
Is there any way I can repair this, or is my only option to re-scan everything and re-create the database? I have around 50 TB of data and several years of play history so I was trying to avoid this if possible. Thank you for any help you may provide!!
Jul 22, 2020 16:25:32.746 [0x7fecc25a1700] WARN - Waited one whole second for a busy database.
Jul 22, 2020 16:25:34.129 [0x7fec7ce31700] ERROR - SQLITE3:(nil), 267, statement aborts at 10: [delete from metadata_items where library_section_id=?] database disk image is malformed
Jul 22, 2020 16:25:34.284 [0x7fec7ce31700] ERROR - Exception inside transaction (inside=1) (../Library/Scanner/LibrarySection.cpp:417): sqlite3_statement_backend::loadOne: database disk image is malformed
Jul 22, 2020 16:25:34.367 [0x7fec7ce31700] ERROR - Thread: Uncaught exception running async task which was spawned by thread 0x7fec7fa23700: sqlite3_statement_backend::loadOne: database disk image is malformed
mast@UltimaThule:/volume1/Plex/Library/Application Support/Plex Media Server/Plug-in Support/Databases$ cp com.plexapp.plugins.library.db com.plexapp.plugins.library.db.original
mast@UltimaThule:/volume1/Plex/Library/Application Support/Plex Media Server/Plug-in Support/Databases$ sqlite3 com.plexapp.plugins.library.db "DROP index 'index_title_sort_naturalsort'"
mast@UltimaThule:/volume1/Plex/Library/Application Support/Plex Media Server/Plug-in Support/Databases$ sqlite3 com.plexapp.plugins.library.db "DELETE from schema_migrations where version='20180501000000'"
mast@UltimaThule:/volume1/Plex/Library/Application Support/Plex Media Server/Plug-in Support/Databases$ sqlite3 com.plexapp.plugins.library.db "PRAGMA integrity_check"
ok