brainy-pizza-19487
12/05/2025, 7:59 AMtall-airline-16756
12/05/2025, 7:59 AMtall-airline-16756
12/05/2025, 8:00 AMLIVEKIT_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:
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:
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