Looking at my ost_ticket table, the first 7 tickets date back to 2019. When you query the number in the Staff's Panel search box, it pulls up the one liner for the ticket. But, when you click on the Number to go to the detail view for the ticket, you get:
ticket: Unknown or invalid ID.
The id being passed in the URL matches the database.
I don't see any data in the records that appears different than the data for valid tickets. Can I just manually delete those 7 records out of ost_ticket?
I also suspect this is related to my orphaned attachments not being purged. Over the years, my database has grown to 5GB. There are tens of thousands of records in ost_attachment, file, and file_chunk despite there only being 200 or so ticket records.