We're running into intermittent errors when creati...
# ask-ai
b
We're running into intermittent errors when creating a room w/ livekit cloud (using the autoegress API) We're starting a livekit room w/ composite + track egress, and it will generally take a few seconds. In some sessions however, we're getting no egress and these errors cause livekit to hang for ~20 seconds waiting for the egress server before creating the room w/o egress entirely. We get back
could not handle new participant
and later in the logs in the StartEgress call: `failed to launch track egress``from an error of
no response from servers
Looking at the dashboard at these sessions, we have no egress data at all for them. What would cause this, and how could we ensure the egress servers are available to handle more participants? As a workaround, how can we have the livekit room creation not block on egress connections?
Copy code
ERROR	livekit	service/signal.go:184	could not handle new participant {
	"room": "room-2025-10-15-11-13-23_e982e72f-c44e-48cf-b2f3-ed1a3b4ae48b", 
	"participant": "user-a39a827a-eab0-47b1-b658-098159064cc8", 
	"connID": "CO_EfJcJaEMezmG", 
	"error": "no response from servers
	}

WARN	livekit.psrpc.EgressInternal.StartEgress	rpc/logging.go:66	client error {
	"topic": [""], 
	"request": {
		"egressId": "EG_weWwkDWQuTGa", 
		"track": {
			"roomName": "room-2025-10-15-11-13-23_e982e72f-c44e-48cf-b2f3-ed1a3b4ae48b", 
			"trackId": "TR_AMUMmK5cQZzCUe", 
			"file": {"filepath": "{room_name}/{publisher_identity}+{track_source}+audio_tracks-{track_id}"}}, 
			"roomId": "RM_49DekTT22n83"}, 
		"response": null,
		 "duration": "22.722132084s", 
		 "error": "no response from servers"}

ERROR	livekit.room	rtc/room.go:1175	failed to launch track egress	{
	"room": "room-2025-10-15-11-13-23_e982e72f-c44e-48cf-b2f3-ed1a3b4ae48b", 
	"roomID": "RM_49DekTT22n83", 
	"error": "no response from servers"}
t
Thanks for reaching out, Tamir. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm sorry to hear you're encountering the "no response from servers" error. This usually happens when the LiveKit server is having trouble connecting with the egress service. It might be due to the egress service being temporarily unavailable, some network hiccups, or maybe the egress workers don’t have enough resources allocated. To help get things back on track and make sure your egress servers are up and running smoothly, here are a few steps you can try: • Check that at least one egress worker is active and properly connected to the LiveKit server. • Make sure each egress worker has enough resources—ideally at least 4 CPUs and 4 GB of memory. • Consider deploying multiple egress workers to balance the load and boost availability. • If you’re using Docker, don’t forget to include the
--cap-add=SYS_ADMIN
flag for Chrome sandboxing, especially for web and room composite egress jobs. Regarding your question about avoiding room creation being blocked by egress connections, this is linked to how LiveKit initializes egress. If you’d like, we can explore some alternative setups together or I’m happy to assist you further with this—just let me know! Sources: egress/errors.go | Self-hosting the Egress Service | LiveKit Docs | Diagnosing Connection Errors with Connection Test Utility
b
We are not hosting our own egress servers, we're using livekit cloud hosted servers. Can we increase our egress workers/resources with livekit cloud?
t
Hi there! I wanted to share some helpful info about increasing egress workers or resources in LiveKit Cloud. Currently, these are managed by LiveKit directly, so users can’t adjust them on their own. But if you’re on the Scale plan, you do have the option to request more egress capacity through the LiveKit Cloud dashboard: • Simply head over to Settings > Project tab in the LiveKit Cloud dashboard. • There, you’ll be able to see your current project limits and easily submit a request for an increase. Also, just a quick note that egress capacity is connected to transcode minutes, so it’s a good idea to make sure your plan has enough quota. If you’d like, I’m here to help guide you through the process or answer any questions you might have! Sources: Quotas and limits | LiveKit Docs | delay-handling/raw_data.txt | Self-hosting the Egress Service | LiveKit Docs | examples/egress.yaml | pkg/info/io.go
b
We're currently nowhere near the limit on participants or egress concurrents. We have a max of 10 of each, were our plan limits have 1000 concurrent participants and 100 concurrent egress requests. We're on the "Ship" plan
t
I understand how frustrating egress failures can be, especially when your usage is well below plan limits. Let’s walk through some common factors that might be causing this in LiveKit Cloud: • Service Availability: It’s important to make sure the egress service is fully up and connected to the LiveKit server. • Network Issues: Double-check that your RTMP/SRT endpoints are reachable and ready to accept connections. • Participant Connectivity: Sometimes egress can fail if participants disconnect or aren’t publishing media to the room. • Configuration: Take a look at any possible misconfigurations, like outdated SDKs or deployment hiccups. • Concurrency and Time Limits: Even though your overall usage is below plan limits, individual egress requests should stay within time limits (for example, 90 minutes for streams). If you’d like, I’m here to help you dig into any specific error messages or patterns you’re seeing. Together, we can find the best way to troubleshoot this! Sources: pkg/service/egress.go | Quotas and limits | LiveKit Docs | Self-hosting the Egress Service | LiveKit Docs | README.md
b
• For "*Participant Connectivity" --* Since this is with autoegress, and on room creation how can the participants publish media if the room hasn't been created yet?
t
Thanks for reaching out! I’d love to help clarify how Autoegress works in LiveKit Cloud. It doesn’t directly control when participants publish their media, but it keeps an eye out for published tracks and then kicks off egress processes based on how the room was set up. For example: • Participant Egress: This starts recording as soon as a participant shares their first audio or video track. • Track Egress: Here, recording begins for each individual track right when participants publish them. Because Autoegress depends on participants publishing media, the room needs to be created first, and then participants join and publish their tracks for the egress to start working. If you’re running into issues where egress fails before anyone joins, it might be something with the egress service setup or configuration. Please feel free to let me know if you want to dig into this together—I’m here to help! Sources: Auto egress | LiveKit Docs | livekit-protocol/src/livekit.rs | pkg/rtc/egress.go | Recording participants | LiveKit Docs | packages/livekit-server-sdk/src/RoomServiceClient.ts