Server Version#: 1.32.8.7639
Player Version#: 4.122.0
Server running Ubuntu 22.04.
I keep getting this database error. I have run Optimize Database and Clean Bundles on the troubleshooting menu. I have also run the DB Repair Tool from GitHub - ChuckPa/PlexDBRepair: Database repair utility for Plex Media Server databases
This keeps occurring and when it does sometimes the server seems to freeze for a few seconds.
ERROR - [Req#31da63/Req#31da75] SQLITE3:0x80000001, 1, no such column: grandchildren_settings.view_count in "select distinct metadata_items.id from metadata_items left join metadata_item_settings on metadata_item_settings.guid=metadata_items.guid and metadata_item_settings.account_id= 1 where metadata_items.library_section_id in (6) and (grandchildren_settings.view_count>='1' and (select count(*) from metadata_items as leaves join metadata_items as parents on leaves.parent_id=parents.id left join metadata_item_settings on metadata_item_settings.guid = leaves.guid and metadata_item_settings.account_id=1 where (parents.parent_id=metadata_items.id or parents.id=metadata_items.id) and (metadata_item_settings.view_count=0 or metadata_item_settings.view_count is null) and leaves.metadata_type in (1, 4, 10))>=1 and (
Jan 24, 2024 13:14:40.944 [140589738711864] ERROR - [Req#31da63] Got exception from request handler: sqlite3_statement_backend::prepare: no such column: grandchildren_settings.view_count for SQL: select distinct metadata_items.id from metadata_items left join metadata_item_settings on metadata_item_settings.guid=metadata_items.guid and metadata_item_settings.account_id= 1 where metadata_items.library_section_id in (6) and (grandchildren_settings.view_count>='1' and (select count(*) from metadata_items as leaves join metadata_items as parents on leaves.parent_id=parents.id left join metadata_item_settings on metadata_item_settings.guid = leaves.guid and metadata_item_settings.account_id=1 where (parents.parent_id=metadata_items.id or parents.id=metadata_items.id) and (metadata_item_settings.view_count=0 or metadata_item_settings.view_count is null) and leaves.metadata_type in (1, 4, 10))>=1 and (metadata_items.metadata_type=2 or metadata_items.metadata_type=10)) and metadata_items.metadata_type=2 and metadata_items.metadata_type=2 and length(metadata_items.user_thumb_url) > 0 order by random() limit 8
Iâm okish working in a database so if there is a way to edit the database and fix this I can give it a try.