I'm trying to run the livekit agent application wi...
# ask-ai
b
I'm trying to run the livekit agent application with (STT-LLM-TTS) pipeline on local in python environment. I'm facing these below issues while trying to connect to the agent worker. Agent worker is being dispatched by the livekit server but facing these below errors after that. Python version : 3.12.12 Livekit versions : livekit==1.0.20 livekit-agents==1.3.6 livekit-plugins-sarvam==1.3.6 livekit-plugins-silero==1.3.6 livekit-plugins-noise-cancellation==0.2.5 How can I resolve this ? Errors : 2025-12-05 132324,379 - WARNING - Failed to get memory info for process Traceback (most recent call last): File "/Users/yashpratap.singh/workspace/oneassist/conversation_ai_agent/venv/lib/python3.12/site-packages/livekit/agents/ipc/supervised_proc.py", line 428, in _memory_monitor_task memory_info = process.memory_info() ^^^^^^^^^^^^^^^^^^^^^ File "/Users/yashpratap.singh/workspace/oneassist/conversation_ai_agent/venv/lib/python3.12/site-packages/psutil/_common.py", line 461, in wrapper raise err from None File "/Users/yashpratap.singh/workspace/oneassist/conversation_ai_agent/venv/lib/python3.12/site-packages/psutil/_common.py", line 459, in wrapper return fun(self) ^^^^^^^^^ File "/Users/yashpratap.singh/workspace/oneassist/conversation_ai_agent/venv/lib/python3.12/site-packages/psutil/__init__.py", line 1137, in memory_info return self._proc.memory_info() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/yashpratap.singh/workspace/oneassist/conversation_ai_agent/venv/lib/python3.12/site-packages/psutil/_psosx.py", line 363, in wrapper return fun(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/yashpratap.singh/workspace/oneassist/conversation_ai_agent/venv/lib/python3.12/site-packages/psutil/_psosx.py", line 465, in memory_info rawtuple = self._get_pidtaskinfo() ^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/yashpratap.singh/workspace/oneassist/conversation_ai_agent/venv/lib/python3.12/site-packages/psutil/_psosx.py", line 367, in wrapper raise NoSuchProcess(pid, name) from err psutil.NoSuchProcess: process no longer exists (pid=59602) 132324.379 WARNI… livekit.agents Failed to get memory info for process {"pid": 59602}
t
Thanks for reaching out, Yashpratap. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — you're seeing the LiveKit Agents memory-monitoring warning (psutil.NoSuchProcess) after the worker is dispatched. I'll help you troubleshoot. What this warning means • The agent supervisor tried to read memory info for a child process that already exited (pid shown). This warning is usually non-fatal and often indicates the job process started but terminated quickly (race or crash) or exited normally before the monitor could sample it. Quick checklist to diagnose and fix 1. Check for earlier agent startup errors ◦ Look in the logs immediately before this warning for exceptions from your agent entrypoint, plugin loads (STT/LLM/TTS), or missing env vars. A crashing agent process causes this warning. 1. Confirm required env vars and secrets are set ◦ Ensure
LIVEKIT_URL
,
LIVEKIT_API_KEY
,
LIVEKIT_API_SECRET
and any plugin provider keys (STT/LLM/TTS) are present in the environment used by the worker. 1. Add simple entrypoint logging to verify lifecycle ◦ Insert prints/logging at the top of your job entrypoint and after key steps (prewarm, connect, session start). If you never see these lines, the child process is failing before your code runs. ◦ Example minimal checks: ▪︎ "Agent job started" ▪︎ "Connected to room" ▪︎ "Prewarm complete" 1. Inspect plugin initialization ◦ Ensure
livekit-plugins-sarvam
,
silero
, and
noise-cancellation
dependencies initialize without import errors and that model files or remote API access are available. 1. Verify Python/process compatibility on macOS ◦ The stack trace shows macOS psutil code. Rapid spawn+exit on macOS can trigger these warnings even if nothing else fails. Confirm the child process is not crashing due to macOS-specific env or permission issues. 1. Run worker with higher log level and observe full logs ◦ Enable DEBUG for
livekit.agents
to capture earlier exceptions:
Copy code
import logging
     logging.getLogger("livekit.agents").setLevel(logging.DEBUG)
1. Temporarily suppress the warning while debugging ◦ If the warning is noisy and you need to focus on earlier errors, raise that logger to ERROR until root cause is found:
Copy code
logging.getLogger("livekit.agents").setLevel(logging.ERROR)
If the agent actually functions otherwise • If you confirm the job completes normally or the agent handles requests despite the warning, this is benign and can be ignored or suppressed. If it still fails after the above • Share: ◦ The agent entrypoint code (or a minimal reproduction). ◦ Full startup logs from process spawn through this warning (include lines immediately before the warning). ◦ Any plugin configuration or environment variables you set. I’ll review those and suggest targeted fixes. Would you like help adding entrypoint debug logs or checking env var examples? Sources: Agent server options | LiveKit docs | Silero VAD plugin | LiveKit docs | Deploying to custom environments | LiveKit docs