Getting following error in livekit server for egre...
# ask-ai
g
Getting following error in livekit server for egress: 2025-12-05T053254.224Z WARN livekit.psrpc.EgressInternal.StartEgress rpc/logging.go:66 client error {"topic": [""], "request": {"egressId": "EG_AHPUaNjxjaAV", "roomComposite": {"roomName": "1vq1J3sjWqmy_-dYidRUY", "layout": "speaker", "audioMixing": "DEFAULT_MIXING", "preset": "H264_720P_30", "fileOutputs": [{"fileType": "MP4", "filepath": "recordings/n87peR-4/n87peR-4.mp4", "s3": {"accessKey": "<redacted>", "secret": "<redacted>", "sessionToken": "<redacted>", "assumeRoleArn": "<redacted>", "region": "ap-south-1", "bucket": "goodfit-interview-recordings"}}]}, "roomId": "RM_Qr4FviuGYCgJ", "token": "<redacted>"}, "response": null, "duration": "21.113412412s", "error": "no response from servers"} 2025-12-05T053254.224Z INFO livekit.api service/twirp.go:128 API Egress.StartRoomCompositeEgress {"service": "Egress", "method": "StartRoomCompositeEgress", "room": "1vq1J3sjWqmy_-dYidRUY", "baseUrl": "", "outputType": "file", "duration": "21.114030479s", "status": "503", "error": "twirp error unknown: no response from servers", "code": "unavailable"} 2025-12-05T053257.543Z WARN livekit.psrpc.EgressInternal.StartEgress rpc/logging.go:66 client error {"topic": [""], "request": {"egressId": "EG_rCqMVq7gvaDM", "roomComposite": {"roomName": "zfJDLCfoza_P-qOiRap30", "layout": "speaker", "audioMixing": "DEFAULT_MIXING", "preset": "H264_720P_30", "fileOutputs": [{"fileType": "MP4", "filepath": "recordings/xOl6oG2K/xOl6oG2K.mp4", "s3": {"accessKey": "<redacted>", "secret": "<redacted>", "sessionToken": "<redacted>", "assumeRoleArn": "<redacted>", "region": "ap-south-1", "bucket": "goodfit-interview-recordings"}}]}, "roomId": "RM_PTGHJkoLRU8f", "token": "<redacted>"}, "response": null, "duration": "21.157004658s", "error": "no response from servers"}
t
Thanks for reaching out, Harsh. 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 "no response from servers" errors you posted from StartRoomCompositeEgress. That means the LiveKit server sent the egress request but didn’t get any response from an egress worker over the message bus (Redis Pub/Sub) before timing out. Please check the following and share answers/logs for the items you can: 1) Egress service running & reachable • Is the Egress service (egress worker) deployed and healthy? • Share egress worker logs for the same timeframe (any Redis errors, crashes, or Chrome/renderer startup failures). 2) Redis configuration match • Confirm LiveKit and Egress use the exact same Redis host:port, DB, and credentials. • Can you run a quick connectivity test from the LiveKit pod/container to the Redis host? 3) Worker availability / resource issues • Are egress workers under high CPU/memory load or repeatedly restarting? • How many concurrent egress jobs are you running vs how many workers are deployed? 4) Docker / Chrome runtime constraints • If using Docker, ensure egress containers start headless Chrome with required privileges (example:
--cap-add SYS_ADMIN
for Chrome sandboxing). Any Chrome-related errors in egress logs? 5) Quick Redis Pub/Sub test • If possible, run
redis-cli
pub/sub test between pods to verify messages flow on the egress request channel (e.g.,
livekit_egress_request
). If you share: • Egress worker logs around 053250–053310, • Your Redis connection config for both services (redact secrets), • Count of egress workers and current load, I’ll suggest the next specific steps (scaling, config fix, or targeted log diagnostics). Sources: Universal Egress | Universal Egress | Self-hosting the Egress Service | LiveKit docs
g
When doing self host what is concurrent egress session limit? File "/home/harsh/Desktop/livekit-ai-agent/venv/lib/python3.12/site-packages/livekit/api/egress_service.py", line 41, in start_room_composite_egress return await self._client.request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/harsh/Desktop/livekit-ai-agent/venv/lib/python3.12/site-packages/livekit/api/twirp_client.py", line 129, in request raise TwirpError( livekit.api.twirp_client.TwirpError: TwirpError(code=resource_exhausted, message=concurrent egress sessions limit exceeded, status=429) 2025-12-05 112624,708 ERROR livekit.agents - unhandled exception while running the job task Traceback (most recent call last): File "/home/harsh/Desktop/livekit-ai-agent/venv/lib/python3.12/site-packages/opentelemetry/util/_decorator.py", line 71, in async_wrapper return await func(*args, **kwargs) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/harsh/Desktop/livekit-ai-agent/venv/lib/python3.12/site-packages/livekit/agents/ipc/job_proc_lazy_main.py", line 240, in _traceable_entrypoint await self._job_entrypoint_fnc(job_ctx) File "/home/harsh/Desktop/livekit-ai-agent/goodfit-gemini-agent.py", line 401, in entry_point await lkapi.egress.start_room_composite_egress(req) File "/home/harsh/Desktop/livekit-ai-agent/venv/lib/python3.12/site-packages/livekit/api/egress_service.py", line 41, in start_room_composite_egress return await self._client.request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/harsh/Desktop/livekit-ai-agent/venv/lib/python3.12/site-packages/livekit/api/twirp_client.py", line 129, in request raise TwirpError( livekit.api.twirp_client.TwirpError: TwirpError(code=resource_exhausted, message=concurrent egress sessions limit exceeded, status=429) {"message": "unhandled exception while running the job task\nTraceback (most recent call last):\n File \"/home/harsh/Desktop/livekit-ai-agent/venv/lib/python3.12/site-packages/opentelemetry/util/_decorator.py\", line 71, in async_wrapper\n return await func(*args, **kwargs) # type: ignore\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/harsh/Desktop/livekit-ai-agent/venv/lib/python3.12/site-packages/livekit/agents/ipc/job_proc_lazy_main.py\", line 240, in _traceable_entrypoint\n await self._job_entrypoint_fnc(job_ctx)\n File \"/home/harsh/Desktop/livekit-ai-agent/goodfit-gemini-agent.py\", line 401, in entry_point\n await lkapi.egress.start_room_composite_egress(req)\n File \"/home/harsh/Desktop/livekit-ai-agent/venv/lib/python3.12/site-packages/livekit/api/egress_service.py\", line 41, in start_room_composite_egress\n return await self._client.request(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/harsh/Desktop/livekit-ai-agent/venv/lib/python3.12/site-packages/livekit/api/twirp_client.py\", line 129, in request\n raise TwirpError(\nlivekit.api.twirp_client.TwirpError: TwirpError(code=resource_exhausted, message=concurrent egress sessions limit exceeded, status=429)", "level": "ERROR", "name": "livekit.agents", "pid": 31872, "job_id": "AJ_MWP8kF5bmzNt", "timestamp": "2025-12-05T055624.708726+00:00"}
t
You're hitting the self-hosted concurrency limit because LiveKit enforces capacity based on your deployed Egress workers and their resources. Key points and actions: • There is no fixed global hard limit for self-hosting. Concurrent capacity = number of Egress worker instances × per-instance capacity. • Track egress is lightweight (hundreds per instance). Room-composite / web egress is resource‑heavy (typically 1 concurrent room-composite per worker; requires ~2–6 CPUs). • Typical recommendation: allocate ~4 CPUs and ~4GB RAM per Egress instance for room-composite jobs. • To increase capacity: ◦ Scale Egress horizontally (add more Egress instances / increase
replicaCount
in Helm). ◦ Use autoscaling driven by the
livekit_egress_available
Prometheus metric. • Short-term options: ◦ Queue requests client-side or retry with backoff when you receive 429. ◦ Ensure existing workers aren’t stuck/crashed (check Egress logs and metrics). If you tell me how many Egress instances you run, the instance CPU/RAM, and how many concurrent room-composite jobs you need, I’ll recommend a concrete scaling plan. Sources: Self-hosting the Egress Service | LiveKit docs