5-12-04 17:52:28,422 - ERROR livekit.agents - proc...
# ask-ai
a
2025-12-04 175228,422 - ERROR livekit.agents - process is unresponsive, killing process {"pid": 2049, "job_id": "AJ_P2DNuBPhBW3N"}
t
Thanks for reaching out, Arun. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I’m looking at the error that a job process became unresponsive and was killed:
process is unresponsive, killing process {"pid": 2049, "job_id":"AJ_P2DNuBPhBW3N"}
. I can help troubleshoot; first a few quick steps and then a couple of targeted questions to narrow it down. What you can check now • Inspect agent logs around that timestamp for any stack traces, repeated errors, or warnings before the kill. • Check system resource metrics (CPU, memory, disk, file descriptors) for the agent host at that time. • Confirm whether the agent server stayed running (this message indicates only the job process was killed, not the agent server). • Look for long-running synchronous work, deadlocks, or infinite loops in the job code that could block the process. • If running on burstable cloud instances (e.g., AWS t3/t4), verify whether CPU credits were exhausted. Helpful info I need to help further 1. Which agent are you running (agent type / version)? 2. Is this a single occurrence or happening repeatedly? 3. Were there any recent code or config changes to the job logic? 4. Resource details for the agent host (instance type, cores, RAM) and any monitoring output around the event. 5. Full log snippet (±1–2 minutes) around the error if possible. If you share those details I’ll suggest targeted next steps (specific log patterns to look for, config tweaks, or code changes to avoid blocking operations). Sources: Deploying to custom environments | LiveKit docs | Job lifecycle | LiveKit docs | Troubleshooting Latency and Timeout Errors with Turn Detection on AWS
a
2025-12-04 084504,987 - DEBUG livekit.agents - input stream detached {"participant": "candidate_ccbb8934-8eee-4f1b-9be2-f190efed2a5c", "source": "SOURCE_MICROPHONE", "accepted_sources": ["SOURCE_MICROPHONE"], "pid": 1916, "job_id": "AJ_xrxHgvb9nXfw"} 2025-12-04 084506,991 - DEBUG livekit.agents - session closed {"reason": "job_shutdown", "error": null, "pid": 1916, "job_id": "AJ_xrxHgvb9nXfw"} 2025-12-04 084506,992 - DEBUG livekit.agents - http_session(): closing the httpclient ctx {"pid": 1916, "job_id": "AJ_xrxHgvb9nXfw"} 2025-12-04 175125,152 - INFO livekit.agents - received job request {"job_id": "AJ_P2DNuBPhBW3N", "dispatch_id": "AD_VgpQVThJQjyp", "room_name": "interview_6931a01d14f2625cf9e63dcf_1764870684", "agent_name": "", "resuming": false} 2025-12-04 175125,160 - INFO livekit.agents - initializing process {"pid": 2049} 2025-12-04 175128,420 - INFO livekit.agents - process initialized {"pid": 2049, "elapsed_time": 3.26} 2025-12-04 175128,420 - DEBUG asyncio - Using selector: EpollSelector {"pid": 2049, "job_id": "AJ_P2DNuBPhBW3N"} 2025-12-04 175228,422 - ERROR livekit.agents - process is unresponsive, killing process {"pid": 2049, "job_id": "AJ_P2DNuBPhBW3N"} 2025-12-04 175228,422 - INFO livekit.agents - killing process {"pid": 2049, "job_id": "AJ_P2DNuBPhBW3N"} 2025-12-04 191056,378 - INFO livekit.agents - received job request {"job_id": "AJ_bwWmoQNHWSxU", "dispatch_id": "AD_JGVrC2Ysuaok", "room_name": "interview_6931db7b40454626ede63d9c_1764875456", "agent_name": "", "resuming": false} 2025-12-04 191056,385 - INFO livekit.agents - initializing process {"pid": 2056} 2025-12-04 191059,605 - INFO livekit.agents - process initialized {"pid": 2056, "elapsed_time": 3.22} 2025-12-04 191059,605 - DEBUG asyncio - Using selector: EpollSelector {"pid": 2056, "job_id": "AJ_bwWmoQNHWSxU"} 2025-12-04 191159,607 - ERROR livekit.agents - process is unresponsive, killing process {"pid": 2056, "job_id": "AJ_bwWmoQNHWSxU"} 2025-12-04 191159,607 - INFO livekit.agents - killing process {"pid": 2056, "job_id": "AJ_bwWmoQNHWSxU"} 2025-12-04 210517,694 - INFO livekit.agents - received job request {"job_id": "AJ_kNaNqb3grx5j", "dispatch_id": "AD_vq4RYqFsbDvT", "room_name": "interview_6931c97065140bce5fe63d93_1764882317", "agent_name": "", "resuming": false} 2025-12-04 210517,700 - INFO livekit.agents - initializing process {"pid": 2063} 2025-12-04 210520,894 - INFO livekit.agents - process initialized {"pid": 2063, "elapsed_time": 3.19} 2025-12-04 210520,894 - DEBUG asyncio - Using selector: EpollSelector {"pid": 2063, "job_id": "AJ_kNaNqb3grx5j"} 2025-12-04 210620,897 - ERROR livekit.agents - process is unresponsive, killing process {"pid": 2063, "job_id": "AJ_kNaNqb3grx5j"} 2025-12-04 210620,897 - INFO livekit.agents - killing process {"pid": 2063, "job_id": "AJ_kNaNqb3grx5j"} 2025-12-04 211500,963 - INFO livekit.agents - received job request {"job_id": "AJ_cLurmdCB2qKX", "dispatch_id": "AD_wTBhXJuGmmhc", "room_name": "interview_6931dfb765140bce5fe63d94_1764882900", "agent_name": "", "resuming": false} 2025-12-04 211500,970 - INFO livekit.agents - initializing process {"pid": 2070} 2025-12-04 211504,375 - INFO livekit.agents - process initialized {"pid": 2070, "elapsed_time": 3.41} 2025-12-04 211504,375 - DEBUG asyncio - Using selector: EpollSelector {"pid": 2070, "job_id": "AJ_cLurmdCB2qKX"} 2025-12-04 211604,378 - ERROR livekit.agents - process is unresponsive, killing process {"pid": 2070, "job_id": "AJ_cLurmdCB2qKX"} 2025-12-04 211604,379 - INFO livekit.agents - killing process {"pid": 2070, "job_id": "AJ_cLurmdCB2qKX"} repeated errors, livekit-agents[openai,silero,deepgram,cartesia]==1.2.14 livekit-plugins-turn-detector==1.2.14 livekit-plugins-noise-cancellation==0.2.5 livekit==1.0.13
t
Thanks — I’m looking at the repeated "process is unresponsive, killing process" entries for multiple job processes (pids 2049, 2056, 2063, 2070) and the package versions you shared. I can help diagnose and narrow this down. Quick guidance and a few targeted questions below. Immediate checks you can run • Inspect each job’s logs for the 60 seconds after initialization (3s init → ~1 minute later they’re killed). Look for stack traces, blocking calls, or repeated retries. • Monitor host metrics during a job run: CPU, memory, load average, and file descriptor usage. Capture a short timeframe covering job start → kill. • Confirm whether the agent server process remained running (these logs show individual job kills, not agent server crashes). • If on burstable cloud instances (e.g., AWS t3/t4), check CPU credit exhaustion around those times. • Search job code for blocking synchronous operations, long sleeps, or infinite loops that would prevent event loop progress. Given the pattern (each job initializes ~3s, then is killed ~60s later) likely causes to investigate • Job process is blocking the asyncio event loop (synchronous or CPU-bound work). • Resource exhaustion (CPU throttling or out-of-memory condition causing unresponsiveness). • Deadlock or an external dependency call hanging (network I/O or third-party API). • Single-job misbehavior — each job runs isolated, so the issue likely lies in job code or host resource constraints rather than the agent server. Targeted questions so I can recommend exact fixes 1. What is the agent host environment (instance type, cores, RAM)? 2. Are you running on burstable instances (t3/t4) or similar autoscaled hosts? 3. Do you have CPU/memory graphs or monitoring snapshots for the times shown (08:45, 1751–2116)? 4. Is this happening for all job types/plugins or only specific ones (openai, silero, etc.)? 5. Any recent code/config changes to the job scripts or plugin versions prior to these errors? 6. Can you paste a 2–3 minute contiguous log snippet around one job start→kill (include DEBUG/ERROR lines)? If you’d like, I can: • Point out specific log patterns to look for (blocking call traces, repeated retries, OOM messages). • Recommend runtime changes (move CPU-bound work to worker threads/processes, convert blocking calls to async, increase host CPU/RAM). • Suggest configuration values to test (larger instance size, add swap, increase file descriptor limits). Which of the targeted questions above can you share now?