steep-balloon-41261
12/27/2025, 5:49 PMtall-airline-16756
12/27/2025, 5:49 PMtall-airline-16756
12/27/2025, 5:50 PMcuddly-vr-85751
12/27/2025, 5:50 PMtall-airline-16756
12/27/2025, 5:50 PMIncompleteReadError then DuplexClosed during _read_ipc_task, and that the agent still logs registered worker. I can help troubleshoot—a few quick questions to narrow this down:
1. After registration did this agent receive any jobs or start any sessions?
2. Are you seeing any job-related logs (e.g., JobContext created) after the register line?
3. How are you running the agent (command / mode: dev or console) and on what OS/version?
4. Did this start happening recently or after a change (agent version, Python, LiveKit server URL/credentials)?
5. If possible, can you share a slightly larger portion of the logs around startup (30–60 seconds before and after the excerpt)?
If the agent registers but no jobs arrive, this DuplexClosed can be benign (IPC closing while idle). If jobs fail to start or the agent never processes work, the next steps will be: check dispatch rules/agent name, confirm server URL/credentials, and run the agent in dev mode to get more verbose traces. Tell me the answers above and I’ll recommend exact commands and log checks.
Sources: Agents Framework | livekit/livekit_composite | DeepWiki | Job lifecycle | LiveKit docs | examples/voice_agents | livekit/livekit_composite | DeepWikicuddly-vr-85751
12/27/2025, 5:52 PMtall-airline-16756
12/27/2025, 5:52 PMconsole mode and it registers (registered worker) but the IPC read fails with an IncompleteReadError → DuplexClosed. That matches a pattern where the IPC stream is closed (often when idle) after registration.
A few targeted checks to determine if this is benign or causing real failures:
1. Are jobs being dispatched to this agent? Do you see any JobContext or session-start logs after the registration line?
2. When you trigger a job (create/join a room), does the agent actually start the session and send the greeting? If not, paste the logs from the moment you trigger the job to 30s after.
3. Confirm you're running the exact command you showed (console) and not mixing `dev`/`console`. If you can, try running in dev mode to get more verbose lifecycle logs:
◦ Run: python agent.py dev (or the equivalent entry command).
1. Share your LiveKit server URL and dispatch rules settings (agent name ar-local must match dispatch rules). If dispatch rules target different agent names/regions, the agent will register but receive no jobs.
2. Collect a slightly larger log slice (30–60s before and after) including any lines showing job dispatch, JobContext creation, or errors right after registration.
Quick likely outcomes:
• If jobs run normally after registration, the DuplexClosed is likely benign (IPC closed while idle).
• If jobs never start, the cause is dispatch/routing (agent name mismatch or credentials) or an early process exit—your logs will show that once you provide the requested slice.
Tell me:
• Whether jobs run after registration, and
• The additional log lines or results from running in dev mode.
I’ll then give exact commands and next steps based on what the logs show.