I'm using the egress api and i start recordings be...
# ask-ai
b
I'm using the egress api and i start recordings before the ctx.connect and the egress works fine but it always retries and it eats up my egress quota it always says "aborted" with error "Start signal not received" and the retry doesnt have any destination how can i avoid this behaviour
t
Thanks for reaching out, Sebastian. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! To help you sort out the "Start signal not received" error and the retries eating up your egress quota, could you share a bit more about your setup? • What kind of egress are you working with? (like room composite, web, participant, or track egress) • Are you using the
await_start_signal
option? If yes, what usually triggers the start signal in your app? • How long do you usually wait between starting egress and expecting the start signal? • Have you noticed any patterns or specific situations when this error pops up? Sources: livekit-api/src/services/egress.rs | src/main/kotlin/io/livekit/server/EgressServiceClient.kt | rpc/egress_client.go | pkg/pipeline/controller.go
b
room composite no i start recording the room instantly 4 yeah that it has no destination and says aborted
t
It looks like the "Start signal not received" error and the retries eating up your egress quota might be happening because your egress request is missing or has misconfigured output destinations. No worries—here are some friendly steps to help you sort this out: 1. Double-check Your Output Setup: Make sure your
RoomCompositeEgressRequest
includes at least one output destination, like a file, stream, or segment output. For example:
Copy code
const egressRequest = {
  roomName: "your-room",
  layout: "grid",
  fileOutputs: [{
    fileType: "MP4",
    filepath: "recording-{time}.mp4",
    // Add your storage configuration (S3, GCP, etc.)
  }]
};
1. Confirm the Room’s Status: Check that the room actually exists, has participants connected, and that those participants are sharing audio/video tracks. 2. Mind the Timing: Try not to kick off egress right after creating the room. Give participants a moment to join and start publishing their tracks first. 3. Keep an Eye on Egress: Use webhooks or polling to track the egress status so you can catch any hiccups and handle them smoothly. Following these tips should help stop those retries and save your quota from unnecessary use due to aborted egress sessions. If you want, feel free to share your exact egress request setup—I’m here to help! Sources: rpc/egress.pb.go | livekit-protocol/livekit/protocol/egress.py | pkg/pipeline/controller.go | packages/livekit-server-sdk/src/EgressClient.ts