I have answers from Engineering about your database problem.
-
The problem can originate if any of the shared servers (another server with this server)
-
At some point, the “other” server is nuked and a fresh DB is created without first removing it. (now there is an orphaned entry in the DB).
-
After the other server is rebuilt, it is also added to the DB. Now there’s duplication.
-
PMS 1.40 attempts to upgrade – BOOM.
Engineering will address this but has given instructions for now.
- Stop PMS
- Using SQLITE3 for
com.plexapp.plugins.library.db(`Plex SQLite) DELETE from external_metadata_items;- Exit SQLITE3
- Start PMS
The table will repopulate itself through normal refresh/operation.
They will be tweaking the DB to ensure the database doesn’t have a duplicate again.