From f4978cfe043e1ddbb968b7ac1fa2492b632331f6 Mon Sep 17 00:00:00 2001 From: Accusys Date: Sun, 27 Sep 2026 07:53:21 +0800 Subject: [PATCH] diagnosis: 020.mp4 root cause - zombie worker process Root cause: - Worker PID 16244 running non-existent binary - Last log update: 11 hours ago (03:18) - Worker stuck in infinite loop, not reading DB updates Why previous fixes failed: - Delete workspace: Worker state in memory - Restart launchd: Process didn't restart - DB reset: Worker didn't read new state Missing files: - traced_faces/: not exists - face_traced.json: not exists - workspace.sqlite: deleted Solution: 1. Kill zombie worker (PID 16244) 2. Start new worker with debug binary 3. Clear DB status --- ...6-09-27_020mp4_root_cause_zombie_worker.md | 83 +++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 docs_v1.0/M4_workspace/2026-09-27_020mp4_root_cause_zombie_worker.md 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`