Import model failed: migration id(1843) last step(migrate_capture) - ActiveRecord::RecordNotFound: C
Service
cupixworks-migration-worker
Occurrences
17
Status
Dismissed
Confidence
85%
Actionability
32%
Cluster ID
991a711c-30e9-421d-acfb-90959f04dac2
First Seen
2026-07-08 12:15 UTC
Last Seen
2026-07-08 22:07 UTC
Actions
현재 상태 dismissed 에서는 실행할 액션이 없습니다.
Import model failed: migration id(1843) last step(migrate_capture) - ActiveRecord::RecordNotFound: C
What Happened#
2026-07-08 21:15 KST, cupixworks-migration-worker 서비스에서 facility 18180 (team walmart-tst, team_id 1257) 대상 migration id 1843 의 ImportWorker Sidekiq job이 migrate_pano 단계에서 실패했다. MigrationImportOperation#migrate_tile_object 내부 Pano.find(new_id) 호출이 새로 insert 된 pano id 92228359 을 찾지 못해 ActiveRecord::RecordNotFound 를 발생시켰으며, 이는 원본 pano(id 77468817) 가 state=abandoned 였고 그 값이 그대로 복제되어 Statable::Pano default_scope 의 where.not(state: :abandoned) 필터에 걸려 발생한 것이다.
Quick Facts#
| Field | Value |
|---|---|
| exception.class | ActiveRecord::RecordNotFound |
| exception.message | Couldn't find Pano with 'id'=92228359 [WHERE panos.state != ?] |
| top_frame | app/operations/migration_import_operation.rb:708 |
| runtime | Ruby 3.3.0 / Rails 7.2.2 / Sidekiq 7.3.9 |
| env | production, us-west-2 |
Affected Teams#
| Team / Domain | Error Count | Impact |
|---|---|---|
| walmart-tst (team_id 1257) | 1 | Facility 18180 migration 1843 중단 — retry 실패 후 dead queue 로 이동 예상 |
Timeline#
- 2026-07-08 20:50 KST — Migration 1843 최초 시작 (
Database import(copy) begin, retry_limit 5) - 2026-07-08 20:50 KST — Sidekiq 이 이전 attempt 실패로 인해 retry 를 시작 (
Migration import ... sidekiq is retried) - 2026-07-08 21:14:22 KST —
migrate_panocurrent step 진입, 이미 capture(663015) 는 migrated 로 skip - 2026-07-08 21:14:28 KST — Pano bulk insert 완료 (
index - id: 92228359 - 92313891) - 2026-07-08 21:14:52 KST — Pano 원본 resource 복사 (
org_id(77468817)->new_id(92228359)) - 2026-07-08 21:15:07 KST —
migrate_tile_object에서Pano.find(92228359)실행 →RecordNotFound발생, job 실패 - 2026-07-08 21:15:07 KST —
delete_data_file로 export 디렉터리만 정리, import 디렉터리는 없음 (warn)
Scoring#
Confidence 85% · Actionability 32%
Confidence#
| Dimension | Score | Detail |
|---|---|---|
| Evidence completeness | 5/5 | 16 code refs, 4 log queries |
| Code path explicitness | 3/3 | 16 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 | 5/5 | trivial |
| Affected files | 1/5 | 16 file(s) |
| Single repo | 1/3 | 2 service(s) |
| Immediate actions | 0/3 | absent |
| Testability | 0/3 | no test info |
| External dependency | 1/3 | external deps found |
| Data migration | 0/3 | migration needed |