diff --git a/docs_v1.0/M4_workspace/2026-09-27_020mp4_root_cause_zombie_worker.md b/docs_v1.0/M4_workspace/2026-09-27_020mp4_root_cause_zombie_worker.md new file mode 100644 index 00000000..04200abb --- /dev/null +++ b/docs_v1.0/M4_workspace/2026-09-27_020mp4_root_cause_zombie_worker.md @@ -0,0 +1,83 @@ +--- +title: 020.mp4 Root Cause - Zombie Worker Process +version: 1.0 +date: 2026-09-27 +author: OpenCode +status: identified +--- + +## Problem + +020.mp4 stuck at 40% for 11+ hours. All repair attempts failed. + +--- + +## Root Cause + +**Zombie Worker Process:** + +- PID: 16244 +- Binary: target/release/momentry (NOT EXISTS) +- Started: 03:18AM +- Status: SN (sleeping, no updates) +- Last log: 19:18 (11 hours ago) + +**Why stuck:** +1. Worker uses old logic (doesn't check data integrity) +2. Worker thinks face_trace done, skips execution +3. Waits for 15 missing files (traced_faces/ not exists) +4. Never times out, just loops forever + +--- + +## Why Previous Fixes Failed + +| Fix | Why Failed | +|-----|-----------| +| Delete workspace.sqlite | Worker state in memory | +| Restart worker (launchd) | Process didn't restart | +| Database status reset | Worker didn't read new state | +| Re-register file | Same UUID, state restored | + +**Key insight:** Worker process stuck with old binary, not reading DB updates. + +--- + +## Files Missing + +``` +traced_faces/: NOT EXISTS +face_traced.json: NOT EXISTS +workspace.sqlite: NOT EXISTS (deleted) +``` + +--- + +## Worker Log (11h ago) + +``` +✅ Face trace already done, skipping spawn +📝 Face dedup waiting: 15 missing files +[Ingestion] all_ok=false +``` + +--- + +## Solution + +**Immediate:** +1. Kill zombie worker (PID 16244) +2. Start new worker with debug binary +3. Clear DB status again + +**Long-term:** +1. Fix Worker logic - add data integrity checks +2. Add timeout/retry limits +3. Monitor worker health + +--- + +## Related + +- `/Users/accusys/momentry_core/docs_v1.0/M4_workspace/2026-09-27_020mp4_stuck_analysis.md` +- `/Users/accusys/momentry_core/docs_v1.0/M4_workspace/2026-09-27_020mp4_repair_attempts.md`