CaptureIntelligenceService::updateCaptureSummaryState | failed - captureId: 724243, state: processin
Service
cupixworks-capture-intelligence-agent
Occurrences
1
Status
Reported
Confidence
85%
Actionability
36%
Cluster ID
14c77697-da0e-4ed3-a9be-269f03e95be9
First Seen
2026-07-03 08:57 UTC
Last Seen
2026-07-03 08:57 UTC
Actions
CaptureIntelligenceService::updateCaptureSummaryState | failed - captureId: 724243, state: processin
What Happened#
2026-07-03 17:57 KST에 cupixworks-capture-intelligence-agent가 capture 724243의 summary_state를 processing으로 전이하기 위해 tesla API에 PUT /api/v1/captures/724243를 호출했으나, tesla가 ActiveRecord::LockWaitTimeout (Mysql2::Error::TimeoutError: Lock wait timeout exceeded)으로 502를 반환하여 agent가 HttpError 예외를 로깅했다. 동일 capture에 대한 502 응답이 17:44:50 KST부터 17:57:47 KST까지 7건 연속 관측되며, SQS 메시지가 재전달되어 약 1시간 뒤 18:55~18:57 KST에 정상 처리 완료(queued → processing → done)되었다.
Quick Facts#
| Field | Value |
|---|---|
| exception.class | HttpError |
| exception.message | HTTP request failed |
| top_frame | /tmp/agent/dist/node_modules/@tesla/typescript-node-sdk/api/captureApi.js:4350 |
| upstream.error | Mysql2::Error::TimeoutError: Lock wait timeout exceeded; try restarting transaction (ActiveRecord::LockWaitTimeout) |
| upstream.status | 502 BadGateway (Cupix::Errors::BadGateway / BG10000) |
| upstream.x-runtime | 50.915s |
| target | PUT /api/v1/captures/724243 (tesla Api::V1::CapturesController#update) |
| env | production, us-west-2 |
| tenant | cupix (team weoneil) |
Affected Teams#
| Team / Domain | Error Count | Impact |
|---|---|---|
| weoneil (tenant cupix) | 1 capture (724243) | Capture summary 생성이 약 1시간 지연되었으나 SQS 재전달로 최종 성공. 데이터 손실 없음 |
Timeline#
- 2026-07-03 17:37 KST — worker에서
Capture#run_zip,update_associated_sitetracks,update_associated_deviations가 capture 724243에 대해 실행 (service:cupixworks-worker). - 2026-07-03 17:44:50 KST — tesla API 첫 번째 502 응답 (
ActiveRecord::LockWaitTimeout,PUT /api/v1/captures/724243, x-runtime 50.9s). - 2026-07-03 17:52:40 ~ 17:57:47 KST — 동일 요청에 대해 502 응답 6건 추가 발생 (총 7건).
- 2026-07-03 17:57:46 KST — agent가
CaptureIntelligenceService::updateCaptureSummaryState실패를 error 레벨로 로깅 (본 클러스터의 first/last seen). - 2026-07-03 18:55:42 KST —
summary_state transitioned from queued to processing(재시도 성공). - 2026-07-03 18:57:29 KST —
summary_state transitioned from processing to done(최종 완료).
Scoring#
Confidence 85% · Actionability 36%
Confidence#
| Dimension | Score | Detail |
|---|---|---|
| Evidence completeness | 5/5 | 14 code refs, 7 log queries |
| Code path explicitness | 3/3 | 14 file:line refs |
| Log evidence | 3/3 | section, query, pattern |
| RCA structure | 3/3 | 3/3 sections |
| Revision history | 0/3 | 0 revision(s) |
| Agent execution | 3/3 | success |
Actionability#
| Dimension | Score | Detail |
|---|---|---|
| Fix complexity | 1/5 | critical |
| Affected files | 1/5 | 10 file(s) |
| Single repo | 1/3 | 13 service(s) |
| Immediate actions | 0/3 | absent |
| Testability | 0/3 | no test info |
| External dependency | 3/3 | no external deps |
| Data migration | 3/3 | no migration |