If you’re hoping to salvage your watched status, that’s doable. naturalsort in the Plex database is a plex-proprietary attribute and why you’re having difficulty with it.
It was recently implemented and engineering is still refining things in PMS . I do not know the status of that work so have no further details on it.
If you have custom posters, etc, the best way is to put these with your media and not just keep them in the database. PMS will recognize local posters (poster.jpg) and use whatever you supply.
I’m not too concerned about watched status as I can get that back from trakt.tv
I’m much more concerned about custom tags and edits to metadata I did. It would be very painful if not impossible to re-do all of this.
I’m pretty sure that the offending library is ‘Audiobooks’ as this is the last change I made - adding the data scaper Audiobooks and running it. Is there a way of deleting just this library and all related info but keeping all my other 16 libraries?
By the way, I did have a backup path set-up for the library but it looks like the server never created one. The folder doesn’t even exit and there are no warnings / error messages regarding backups. Not a very reliable feature I have to say…
With server versions above 1.13.1, you need to perform 2 additional commands before all others in the repair procedure.
These will remove the problematic collation and instruct Plex server to recreate it during the first restart after the repair.
Shut down Plex Server before doing any of the below:
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'"
Unfortunately, these additional steps don’t work. The first creates an error “Error: no such index: index_title_sort_naturalsort”, and the second one “Error: no such table: schema_migrations”…
I am really devastated now having to re-create the whole library I fed and built over years and am desperate for any help I can get to fix this please.
Is there any way to salvage my (music) playlists? Like retrieve them from the old database and import them into the new one? Or at least export them to see the items so I can re-create them if necessary?
How can I use WebTools which relies on a running Plex server if the Plex server doesn’t start with the corrupt database? Or can WebTools access the database without a Plex server running?
My apologies! I wasn’t paying attention to the previous posts.
If you are OK with it, zip up your DB file and PM it to me (or put it onto e.g. GDrive and PM me the download link. I can relay it to one of the experts.)