Hi all,
New media is again no longer showing up
As we have (way too) many power cuts over here, I do not have many doubts about the cause
I have summarized the instructions already performed on my PMS a few months ago as follows:
sqlite3 com.plexapp.plugins.library.db “DROP index ‘index_title_sort_naturalsort’”
sqlite3 com.plexapp.plugins.library.db “DELETE from schema_migrations where version=‘20180501000000’”Integrity check
sqlite3 com.plexapp.plugins.library.db “PRAGMA integrity_check”Export DB
sqlite3 com.plexapp.plugins.library.db .dump > dump.sqlRename the original, corrupted DB file
mv com.plexapp.plugins.library.db com.plexapp.plugins.library.db.originalImport the SQL dump back into a new DB file:
sqlite3 com.plexapp.plugins.library.db < dump.sqlRun another check to establish if repair was successful
sqlite3 com.plexapp.plugins.library.db “PRAGMA integrity_check”Move these 3 files out to a safe place (outside of Plex’s data), just in case you want to revert it:
com.plexapp.plugins.library.db-shm
com.plexapp.plugins.library.db-wal
com.plexapp.plugins.library.db.originalThe integrity check reports the following:
[plex@plex Databases]# sqlite3 com.plexapp.plugins.library.db “PRAGMA integrity_check”
Error: no such collation sequence: naturalsort
[plex@plex Databases]#
My questions before starting the recovery:
-
is it OK to systematically run both
sqlite3 com.plexapp.plugins.library.db “DROP index ‘index_title_sort_naturalsort’”
sqlite3 com.plexapp.plugins.library.db “DELETE from schema_migrations where version=‘20180501000000’” -
What is the meaning of that version/date 20180501000000 ?
Thanks!