env) PS C:\Users\HP\AiCallAgentBackend> python ...
# ask-ai
n
env) PS C:\Users\HP\AiCallAgentBackend> python main.py console Connected to MongoDB database: test 2025-08-24 173530,060 - DEBUG asyncio - Using proactor: IocpProactor ================================================== Livekit Agents - Console ================================================== Press [Ctrl+B] to toggle between Text/Audio mode, [Q] to quit. 2025-08-24 173530,066 - INFO livekit.agents - starting worker {"version": "1.2.6", "rtc-version": "1.0.12"} 2025-08-24 173530,068 - INFO livekit.agents - starting inference executor 2025-08-24 173530,142 - INFO livekit.agents - initializing process {"pid": 17808, "inference": true} Connected to MongoDB database: test 2025-08-24 173539,263 - DEBUG livekit.agents - initializing inference runner {"runner": "lk_end_of_utterance_en", "pid": 17808, "inference": true} 2025-08-24 173540,152 - INFO livekit.agents - killing process {"pid": 17808, "inference": true} 2025-08-24 173540,155 - ERROR livekit.agents - worker failed Traceback (most recent call last): File "C:\Users\HP\AppData\Local\Programs\Python\Python311\Lib\asyncio\tasks.py", line 500, in wait_for return fut.result() ^^^^^^^^^^^^ File "C:\Users\HP\AiCallAgentBackend\env\Lib\site-packages\livekit\agents\ipc\channel.py", line 47, in arecv_message return _read_message(await dplx.recv_bytes(), messages) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\HP\AiCallAgentBackend\env\Lib\site-packages\livekit\agents\utils\aio\duplex_unix.py", line 35, in recv_bytes len_bytes = await self._reader.readexactly(4) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\HP\AppData\Local\Programs\Python\Python311\Lib\asyncio\streams.py", line 750, in readexactly await self._wait_for_data('readexactly') File "C:\Users\HP\AppData\Local\Programs\Python\Python311\Lib\asyncio\streams.py", line 543, in _wait_for_data await self._waiter asyncio.exceptions.CancelledError The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\HP\AiCallAgentBackend\env\Lib\site-packages\livekit\agents\cli\_run.py", l File "C:\Users\HP\AiCallAgentBackend\env\Lib\site-packages\livekit\agents\worker.py", line 403, in run await self._inference_executor.initialize() File "C:\Users\HP\AiCallAgentBackend\env\Lib\site-packages\livekit\agents\ipc\supervised_proc.py", line 169, in initialize init_res = await asyncio.wait_for( ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\HP\AppData\Local\Programs\Python\Python311\Lib\asyncio\tasks.py", line 502, in wait_for raise exceptions.TimeoutError() from exc TimeoutError
t
Thanks for reaching out, Mubbashir. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! That TimeoutError in your LiveKit agents setup can be a bit tricky, but it usually comes down to a few common causes: • Inference Process Initialization Timeout: You might want to try increasing the initialization timeout in your worker options. Here’s a quick example:
Copy code
worker_options = WorkerOptions(
    initialize_process_timeout=30.0,  # Bumped up from the default 10.0
)
• Turn Detection Inference Timeout: Another spot to check is the timeout for turn detection inference operations. You can increase it like this:
Copy code
eou_probability = await turn_detector.predict_end_of_turn(
    chat_ctx, 
    timeout=10.0  # Raised from the default 3.0
)
• AWS Burstable Instance CPU Throttling: If you’re running on AWS t3 or t4 instances, they sometimes throttle CPU under load. Switching to non-burstable instances like m5 or c5 can help keep things running smoothly. If you want, I’m here to help you tweak these settings or figure out exactly what’s causing the timeout in your setup. Just give me a shout! Sources: Troubleshooting Latency and Timeout Errors with Turn Detection on AWS | tests/test_ipc.py
n
how to check live kit concurrent calls limit?
t
Hey there! You can easily check your LiveKit concurrent calls limit by heading over to the LiveKit Cloud dashboard: • Just go to Settings and click on the Project tab to see your current connection limits. Here’s a quick rundown of the limits based on your plan: • Build Plan: 100 concurrent participants • Ship Plan: 1,000 concurrent participants • Scale Plan: Unlimited concurrent participants If you want, I’m here to help you get to the dashboard or explain anything about your plan’s limits—just give me a shout! Sources: Quotas and limits | LiveKit Docs | Quotas and limits | LiveKit Docs