Quantcast
Channel: Recent Discussions — Plex Forums
Viewing all articles
Browse latest Browse all 151235

Perpetual Database Corruption

$
0
0

It all starts with timeouts and retries...

Feb 08, 2016 20:57:32 [0x5d0d6400] WARN - Waited one whole second for a busy database.
Feb 08, 2016 20:57:35 [0x5d0d6400] ERROR - Failed to begin transaction (../Statistics/StatisticsManager.h:185) (tries=1): Cannot begin transaction. database is locked
Feb 08, 2016 20:57:38 [0x5d0d6400] WARN - Waited one whole second for a busy database.
Feb 08, 2016 20:57:41 [0x5d0d6400] ERROR - Failed to begin transaction (../Statistics/StatisticsManager.h:185) (tries=2): Cannot begin transaction. database is locked
Feb 08, 2016 20:57:45 [0x5d0d6400] WARN - Waited one whole second for a busy database.
Feb 08, 2016 20:57:50 [0x5d0d6400] ERROR - Failed to begin transaction (../Statistics/StatisticsManager.h:185) (tries=3): Cannot begin transaction. database is locked
Feb 08, 2016 20:57:51 [0x5d0d6400] WARN - Waited one whole second for a busy database.
Feb 08, 2016 20:57:54 [0x5d0d6400] ERROR - Failed to begin transaction (../Statistics/StatisticsManager.h:185) (tries=4): Cannot begin transaction. database is locked
Feb 08, 2016 20:57:54 [0x6d6ef400] WARN - Waited one whole second for a busy database.
Feb 08, 2016 20:57:56 [0x5ee22400] ERROR - BIF transcoder exited abnormally
Feb 08, 2016 20:57:58 [0x5d0d6400] WARN - Waited one whole second for a busy database.
Feb 08, 2016 20:58:01 [0x5d0d6400] ERROR - Failed to begin transaction (../Statistics/StatisticsManager.h:185) (tries=5): Cannot begin transaction. database is locked
Feb 08, 2016 20:58:04 [0x5d0d6400] WARN - Waited one whole second for a busy database.

Until PMS seemingly decides to time out waiting for lock and do something stupid anyway:

Feb 08, 2016 20:58:04 [0x5d0d6400] WARN - Took too long (1.030000 seconds) to start a transaction on ../Statistics/StatisticsManager.h:185
Feb 08, 2016 20:58:04 [0x5d0d6400] WARN - Transaction that was running was started on ../Statistics/StatisticsManager.h:185
Feb 08, 2016 20:58:04 [0x69212400] WARN - Took too long (0.690000 seconds) to start a transaction on ../../Library/MetadataItem.cpp:812
Feb 08, 2016 20:58:04 [0x69212400] WARN - Transaction that was running was started on ../Statistics/StatisticsManager.h:185
Feb 08, 2016 20:58:05 [0x653b3400] WARN - Took too long (0.640000 seconds) to start a transaction on ../../Library/MetadataItem.cpp:812
Feb 08, 2016 20:58:05 [0x653b3400] WARN - Transaction that was running was started on ../../Library/MetadataItem.cpp:812
Feb 08, 2016 20:58:13 [0x69212400] ERROR - SQLITE3:(nil), 11, database corruption at line 57498 of [8a8ffc862e]
Feb 08, 2016 20:58:13 [0x69212400] ERROR - SQLITE3:(nil), 11, statement aborts at 109: [update metadata_items set library_section_id=:metadata_items_library_section_id,parent_id=:metadata_items_parent_id,metadata_type=:metadata_items_metadata_type,guid=:metadata_items_gu
Feb 08, 2016 20:58:13 [0x69212400] ERROR - Exception inside transaction (inside=1) (../../Library/MetadataItem.cpp:814): sqlite3_statement_backend::loadOne: database disk image is malformed
Feb 08, 2016 20:58:13 [0x69212400] ERROR - * Error loading episode.
Feb 08, 2016 20:58:13 [0x5c712400] ERROR - BIF transcoder exited abnormally
Feb 08, 2016 20:58:14 [0x69212400] ERROR - SQLITE3:(nil), 26, statement aborts at 1: [BEGIN IMMEDIATE] file is encrypted or is not a database
Feb 08, 2016 20:58:14 [0x69212400] ERROR - Failed to begin transaction (../../Library/MetadataItem.cpp:812) (tries=1): Cannot begin transaction. file is encrypted or is not a database

And then the only cure is to restore from backup. But then it happens again because a small single core NAS isn't somehow magically going to get faster.

I've rolled back to a known good backup several times today, and every time a rescan kicks off, it all gets corrupted all over.

Plex is becoming increasingly unusuably broken.


Viewing all articles
Browse latest Browse all 151235

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>