On November 7th, about a week ago, I completely deleted the Plex directory and started from scratch due to database corruption issues. Today I went through the logs and found many of the same errors that prompted the original database recreation where showing up in the logs mere days after it was newly created.
There have been no shutdowns, no power outages, no anything that I can think of that would corrupt a database. I’ve also manually optimized the database at several times and I have enabled scheduled tasks to “Optimize database every week”.
I created a Perl script to go through the logs and consolidate each type of message collapsing each as much as possible by substituting in generic # for numbers, etc. I then sorted them by the number of times they appeared. Also attached the original logs.
What is happening that could be causing the database issues to repeat immediately after re-creating the database?
Format:
[Number of Occurrences]: Log item with # substituted for numbers to collapse the entries
INFO
[295]: SQLITE#:#x#, #, statement aborts at #: [select * from metadata_items limit #] database schema has changed
WARN
[7080]: Range could not be satisfied # - # (total size=#)
[114]: NAT: PMP, got an error: Not Supported by gateway.
[28]: SLOW QUERY: It took #.# ms to retrieve # items.
[9]: Sync: local sync directory /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/Transcode/Sync+ does not exist
[6]: PubSub: Received notifyConnectivity event with incorrect async identifier (#, expected #)
[3]: Unable to load episode file [seasons/#/episodes/#.xml]
[2]: Held transaction for too long (…/Library/FullTextSearch.cpp:#): #.# seconds
[1]: Held transaction for too long (…/Library/DatabaseFixups.cpp:#): #.# seconds
]1]: Held transaction for too long (…/Library/MetadataItem.cpp:#): #.# seconds
ERROR
[69]: [Transcoder] [mpeg#video @ #] Invalid frame dimensions #x#.
[22]: Unable to find title for item of type #
[19]: [Transcoder] [mpeg#video @ #] # motion_type at # #
[13]: Error issuing curl_easy_perform(handle): #
[11]: Throttle: timed out trying to read chunk #
[4]: IVA: Error downloading trailers for source #.
[3]: SQLITE#:#x#, #, duplicate column name: originally_available_at
[3]: SQLITE#:#x#, #, duplicate column name: grandparent_guid
[2]: [Transcoder] [mpeg#video @ #] ac-tex damaged at # #
[2]: [Transcoder] [mpeg#video @ #] mb incr damaged
[2]: HTTP # downloading url https://meta.plex.tv/t/theater?language=en&subtitleLanguage=en&redband=#
[2]: HTTP # downloading url https://meta.plex.tv/t/video?language=en&subtitleLanguage=en&redband=#
[2]: [Transcoder] [mpeg#video @ #] skip with previntra
[1]: [Transcoder] Error while decoding stream ##:#: Invalid data found when processing input
[1]: [Transcoder] [ac# @ #] frame sync error
[1]: [Transcoder] [ac# @ #] error decoding the audio block
[1]: [Transcoder] [mpeg#video @ #] Warning MVs not available
[1]: [Transcoder] [ac# @ #] bandwidth code = # > #