Server Version#: 1.18.2.2058
OS: Windows 10
Player Version#: N/A
Hello all - I’ve been stuck on an older version (1.16.3.1402) for some time because every time I try to upgrade to a new version I get database corruption errors. For the most part, my database in the older version works without issue, but it corrupts itself 100% of the time when I try to upgrade.
I’ve tried the instructions to repair a corrupt database, and no issues are found. The errors from my plex media server log after upgrading and failing to start are:
Dec 07, 2019 21:53:37.873 [11600] INFO - Plex Media Server v1.18.2.2058-e67a4e892 - Microsoft PC x64 - build: windows-x86 windows - GMT -07:00
Dec 07, 2019 21:53:37.874 [11600] INFO - Windows version: 10.0 (Build 17134), language en-US
Dec 07, 2019 21:53:37.874 [11600] INFO - 16 2000 MHz processor(s): Architecture=0, Level=6, Revision=15876 Processor Identifier=Intel64 Family 6 Model 62 Stepping 4, GenuineIntel
Dec 07, 2019 21:53:38.078 [2680] ERROR - SQLITE3:0xa36ef04f, 1, duplicate column name: data in “ALTER TABLE ‘media_provider_resources’ ADD ‘data’ blob”
Dec 07, 2019 21:53:38.079 [2680] ERROR - Exception inside transaction (inside=1) (…\Library\DatabaseMigrations.cpp:209): sqlite3_statement_backend::prepare: duplicate column name: data for SQL: ALTER TABLE ‘media_provider_resources’ ADD ‘data’ blob
Dec 07, 2019 21:53:38.085 [2680] ERROR - Exception thrown during migrations, aborting: sqlite3_statement_backend::prepare: duplicate column name: data for SQL: ALTER TABLE ‘media_provider_resources’ ADD ‘data’ blob
Dec 07, 2019 21:53:38.359 [2680] ERROR - SQLITE3:0xa36ef04f, 1, no such column: library_sections.content_changed_at in “select max(max(library_sections.changed_at),max(library_sections.content_changed_at)) from library_sections”
Dec 07, 2019 21:53:38.360 [2680] ERROR - Database corruption: sqlite3_statement_backend::prepare: no such column: library_sections.content_changed_at for SQL: select max(max(library_sections.changed_at),max(library_sections.content_changed_at)) from library_sections
In the distant past I’ve had to mess with manually updating things in my DB to fix corruption, so I am capable of doing that, but need a pointer please on where to look for this corruption or how to fix the duplicate column error above so that the migration to the new version can be successful.
Help would be much appreciated! Thank you.