livekit worker is getting egress status as `Aborte...
# ask-ai
m
livekit worker is getting egress status as
Aborted
with error:
Start signal not received
and details as
End reason: Source closed
Type is composite It is happening intermittently for same configurations for calls with varying duration How does this error occur??
t
Thanks for reaching out, aryan. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I understand how encountering the error
Aborted
with
Start signal not received
and
End reason: Source closed
can be frustrating. This usually happens when the egress pipeline doesn’t get the expected start signal before the source—like a room or web session—closes. It’s quite common in room composite egress scenarios where the system waits for a start condition, such as a participant joining, but the room ends before that happens. Here are some friendly tips to help you resolve this: • Keep the room active: Try to start egress only after you’re sure the room is active and participants have joined. • Avoid delayed start signals: Just a heads up, room composite egress doesn’t support
await_start_signal
. If you need conditional recording, using web egress with
await_start_signal=true
might be a better fit. • Check the room lifecycle: Make sure there’s enough time between when the room is created, participants enter, egress starts, and the room closes. • Keep an eye on egress status: You can use the
ListEgress
or
GetEgress
API to monitor the egress lifecycle and spot any issues early on. • Review your configurations: Double-check that your egress requests have the correct room names and outputs configured properly. If you’re still running into trouble, trying out simpler configurations can sometimes make it easier to pinpoint what’s going on. I’m here to help you through this, so please don’t hesitate to reach out if you need more guidance! Sources: pkg/service/egress.go | test/edge.go | livekit/livekit_egress.go | livekit-protocol/livekit/protocol/egress.pyi | packages/livekit-server-sdk/src/EgressClient.ts
m
But that doesnt explain why it's happening intermittently, it's happening in about 1/200 calls, but works for remaining 199/200
t
I understand how frustrating intermittent errors can be, and it often points to timing issues or temporary conditions like network latency, signaling delays, or brief disconnections. These can sometimes cause the egress process to miss the start signal before the source closes. To help reduce these occurrences, here are a few friendly suggestions: • Ensure source readiness: It’s important to confirm that the room and participants are fully connected and actively publishing media before starting egress. • Monitor room events: You might find it helpful to use server SDKs to check participant track publication status before calling
StartRoomCompositeEgress
. • Retry logic: Implementing retries with exponential backoff for egress initiation can be a great way to handle transient failures gracefully. • Review logs: Taking a look at server and egress service logs can reveal network drops, resource constraints, or other anomalies that might be causing issues. • Webhook notifications: Using webhooks or APIs like
ListEgress
to monitor egress state transitions can help detect failures early and keep you informed. These steps should really help in mitigating those intermittent failures. Please don’t hesitate to reach out if you’d like any help with implementation or debugging—I’m here to support you every step of the way! Sources: cmd/lk/egress.go | livekit/livekit_egress.twirp.go | pkg/pipeline/controller.go | livekit-protocol/livekit/protocol/egress.pyi | packages/livekit-server-sdk/src/EgressClient.ts