Ticket pages are giving a 500, maybe due to the mcp server deployment? #112
Closed
opened 2026-09-25 01:05:36 -04:00 by jared
·
2 comments
No Branch/Tag Specified
main
development
fix/comment-markdown-persist-18
deploy-2026.09.25-268
deploy-2026.09.25-264
deploy-2026.09.24-258
deploy-2026.09.24-254
deploy-2026.09.12-242
deploy-2026.09.12-238
deploy-2026.09.12-234
deploy-2026.09.12-230
deploy-2026.09.12-226
deploy-2026.09.12-222
deploy-2026.09.11-218
deploy-2026.09.11-214
deploy-2026.09.11-210
deploy-2026.09.11-206
deploy-2026.09.11-202
deploy-2026.09.11-198
deploy-2026.09.11-194
deploy-2026.09.11-190
deploy-2026.09.11-186
deploy-2026.09.09-182
deploy-2026.09.09-178
deploy-2026.09.08-172
deploy-2026.09.01-163
deploy-2026.08.08-155
deploy-2026.08.08-151
deploy-2026.08.08-147
deploy-2026.08.08-143
deploy-2026.08.08-139
deploy-2026.07.15-130
deploy-2026.07.15-122
deploy-2026.07.11-107
deploy-2026.06.30-96
deploy-2026.06.30-92
deploy-2026.06.30-88
deploy-2026.06.30-84
deploy-2026.06.30-80
deploy-2026.06.30-76
deploy-2026.06.30-72
deploy-2026.06.30-68
deploy-2026.04.29-49
deploy-2026.04.29-41
deploy-2026.04.18-35
deploy-2026.04.16-31
deploy-2026.04.16-27
deploy-2026.04.16-23
deploy-2026.04.16-11
deploy-2026.04.14-9
Labels
Clear labels
api
bug
concurrency
config
data-integrity
dead-code
documentation
duplicate
enhancement
help wanted
invalid
needs-decision
notifications
performance
priority/docs
priority/high
priority/low
priority/medium
question
rate-limiting
reliability
security
ux
wontfix
workflow
Bearer/internal API surface
Something is not working
Race condition / concurrency bug
Configuration / deployment default
Data correctness / schema / integrity issue
Unused / dead code cleanup
README / docs accuracy
This issue or pull request already exists
New feature
Need some help
Something is wrong
Needs a maintainer decision, not clearly a bug
Matrix / in-app notification bug
Performance or resource-usage concern
Documentation-only gap
High-severity / high-impact issue
Low-severity / cosmetic issue
Medium-severity issue
More information is needed
Rate limiting behavior
Reliability / error-handling gap
Security or access-control impact
User-facing UX/functional bug
This won't be fixed
Ticket status workflow engine
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: LotusGuild/tinker_tickets#112
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Not caused by the MCP server. Fixed in
ad20169(merged to main inda916bc, deployed).Cause: ticket 221040637 (the Ceph
nooutticket) had 51,970 audit rows, about 15 MB of JSON. The ticket page loaded its whole activity timeline with no limit, so PHP hit its 128 MB memory limit (Allowed memory size ... exhausted in models/AuditLogModel.php). The rows came from hwmonDaemon. Every run refreshes the ticket description, and that alone wrote an "auto-updated by hwmonDaemon (condition worsened)" audit row, so each open auto-ticket got a new row every few minutes. This has happened since April; the next biggest is 673679581 with 21k rows.Fixes
getTicketTimeline()now takes a limit. The ticket page shows the newest 500 events and a note when older ones are left out. The JSON export is capped at 5000. Tested against prod data: 501 rows, 1.7 MB peak memory.create_ticket_api.phpwrites an audit row only when the title or priority actually changes. Description-only refreshes no longer log anything.Verified locally against MariaDB over real HTTP: a new ticket returns a clean 200, two description-only refreshes add 0 audit rows, and a priority escalation still logs 1.
The old reason-only rows are still in
audit_log. Pruning them is optional and left for a separate decision.Follow-up (
72feafb, merged in5b43e7d, deployed):/root/db-backups/audit-prune-112-20260925155822.sql(root-only).audit_logwent from 88,148 to 1,260 rows.HEALTH_WARNwithout a special case shared one dedup hash, so all cluster warnings landed on 221040637. Each warning now gets its own ticket, keyed on the optionalcheck_codefield, or else on the warning text with counts stripped. Known subtypes hash as before.