Database Corruption - Need help

Server Version#: 1.22.2.4264
Player Version#: N/A

Similar issue to:

And to a lesser extent:

My database has suddenly become corrupt (or so it claims) and as a docker/UnRAID user I have no idea how to proceed with repairs given that the repair a corrupt DB help page is apparently wildly out of date for the new DB structures? Can we please get some updated instructions so we can check and hopefully repair the new DB structure?

I stopped the docker, renamed the main db file and replaced it with my oldest “good” backup from the DB folder. At first this didn’t appear to fix anything as the maintenance ran and failed the backup with a corruption error again.

I stopped the docker, double checked my work by replacing the DB again, and reran the maintenance tasks and this time it appears to have successfully backed up the DB and NOT claimed the DB is corrupt.

Here are debug logs: Plex Media Server Logs_2021-03-31_06-00-06.zip (1.9 MB)

I see errors and warnings in the logs but I’m not entirely clear on what all in the logs specifically indicates DB corruption vs other issues.

Well, it looks like rolling my DB back to the 22nd (my oldest plex made backup) may have fixed it? I reran the maintenance window, got a successful DB backup push notice, and no corrupt DB push notice.

I am still seeing a lot of:

Mar 31, 2021 06:42:16.429 [0x14624b9fc700] WARN - QueryParser: Invalid field 'contentDirectoryID' found, ignoring.
Mar 31, 2021 06:42:16.457 [0x14630506d700] WARN - QueryParser: Invalid field 'sectionID' found, ignoring.
Mar 31, 2021 06:42:16.458 [0x14630506d700] WARN - QueryParser: Invalid field 'contentDirectoryID' found, ignoring.
Mar 31, 2021 06:42:16.458 [0x1462ce9f4700] WARN - QueryParser: Invalid field 'contentDirectoryID' found, ignoring.
Mar 31, 2021 06:42:16.543 [0x14630506d700] WARN - QueryParser: Invalid field 'sectionID' found, ignoring.
Mar 31, 2021 06:42:16.905 [0x146304a6a700] WARN - Unable to load episode file ["seasons/1/episodes/7.xml"]
Mar 31, 2021 06:42:17.641 [0x146304a6a700] WARN - Unable to load episode file ["seasons/1/episodes/8.xml"]
Mar 31, 2021 06:42:17.645 [0x1462ccbe5700] WARN - MDE: unable to find a working transcode profile for video stream
Mar 31, 2021 06:42:17.645 [0x1462ccbe5700] WARN - MDE: unable to find a working transcode profile for video stream
Mar 31, 2021 06:42:17.695 [0x14630506d700] WARN - QueryParser: Invalid field 'sectionID' found, ignoring.
Mar 31, 2021 06:42:21.428 [0x1462ce9f4700] WARN - QueryParser: Invalid field 'contentDirectoryID' found, ignoring.
Mar 31, 2021 06:42:21.428 [0x14624b9fc700] WARN - QueryParser: Invalid field 'sectionID' found, ignoring.
Mar 31, 2021 06:42:21.428 [0x14624b9fc700] WARN - QueryParser: Invalid field 'contentDirectoryID' found, ignoring.
Mar 31, 2021 06:42:21.428 [0x146304e6c700] WARN - QueryParser: Invalid field 'contentDirectoryID' found, ignoring.
Mar 31, 2021 06:42:26.428 [0x146304668700] WARN - QueryParser: Invalid field 'sectionID' found, ignoring.
Mar 31, 2021 06:42:26.428 [0x146304668700] WARN - QueryParser: Invalid field 'contentDirectoryID' found, ignoring.
Mar 31, 2021 06:42:26.428 [0x1462cf1f8700] WARN - QueryParser: Invalid field 'contentDirectoryID' found, ignoring.
Mar 31, 2021 06:42:26.428 [0x1462cdbed700] WARN - QueryParser: Invalid field 'contentDirectoryID' found, ignoring.
Mar 31, 2021 06:42:31.429 [0x14630506d700] WARN - QueryParser: Invalid field 'contentDirectoryID' found, ignoring.
Mar 31, 2021 06:42:31.430 [0x146304e6c700] WARN - QueryParser: Invalid field 'sectionID' found, ignoring.
Mar 31, 2021 06:42:31.430 [0x146304e6c700] WARN - QueryParser: Invalid field 'contentDirectoryID' found, ignoring.
Mar 31, 2021 06:42:31.431 [0x1462ce9f4700] WARN - QueryParser: Invalid field 'contentDirectoryID' found, ignoring.
Mar 31, 2021 06:42:36.430 [0x1462ce9f4700] WARN - QueryParser: Invalid field 'sectionID' found, ignoring.
Mar 31, 2021 06:42:36.430 [0x146304e6c700] WARN - QueryParser: Invalid field 'contentDirectoryID' found, ignoring.
Mar 31, 2021 06:42:36.430 [0x1462ce9f4700] WARN - QueryParser: Invalid field 'contentDirectoryID' found, ignoring.
Mar 31, 2021 06:42:36.431 [0x146305670700] WARN - QueryParser: Invalid field 'contentDirectoryID' found, ignoring.
Mar 31, 2021 06:42:41.435 [0x1462ce9f4700] WARN - QueryParser: Invalid field 'contentDirectoryID' found, ignoring.
Mar 31, 2021 06:42:41.436 [0x14630506d700] WARN - QueryParser: Invalid field 'sectionID' found, ignoring.
Mar 31, 2021 06:42:41.436 [0x14630506d700] WARN - QueryParser: Invalid field 'contentDirectoryID' found, ignoring.
Mar 31, 2021 06:42:41.436 [0x146304e6c700] WARN - QueryParser: Invalid field 'contentDirectoryID' found, ignoring.
Mar 31, 2021 06:48:35.090 [0x1462ccde6700] WARN - QueryParser: Invalid field 'sectionID' found, ignoring.
Mar 31, 2021 06:48:35.302 [0x1462cf1f8700] WARN - QueryParser: Invalid field 'sectionID' found, ignoring.

These types of warnings though. Is this normal or something to be concerned about?

New logs, without debug on: Plex Media Server Logs_2021-03-31_06-58-10.zip (1.9 MB)

I’m getting a lot of this in my logs too after fighting with versions and database issues last week. I rolled back my database to a “sane” date and am getting a lot of the above in my logs as well.

The documentation seems to be very out of date now. I would rather see something being “ignored” in logs though than the database slowly taking longer and longer to do things, so this is a step up.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.