i always get this error. i did mange to use the ap...
# ask-ai
p
i always get this error. i did mange to use the api to start recording but in egress instance i get this error.
t
Thanks for reaching out, Bryner. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'd love to help you get this sorted out! Could you please share a bit more about the error you're seeing? It would be really helpful to know: • The exact error message or code that popped up • The steps or API calls you made before the error happened • Any project or room IDs related to this issue Once I have these details, I'll be in a much better position to assist you. Looking forward to your reply!
p
what u see are the logs. it says egress_aborted
t
The 'egress_aborted' error means the egress operation was stopped before it could finish, often because of some unmet conditions or an external signal to abort. Don’t worry, here are some friendly steps to help you get this sorted out: 1. Check Egress Inputs: Make sure all the important details like room name, track ID, and output paths are correctly filled in your egress request. 2. Verify Source Availability: Double-check that the room or track you want to record is active and accessible when you start the egress. 3. Review Error Message: Take a close look at the error message for any clues that might point to what’s causing the issue. 4. Ensure Proper Permissions: Confirm that your API key has the right permissions, such as the
room_record
grants. 5. Use Correct Egress Methods: Make sure you’re using the right method for your recording type, like
start_room_composite_egress
or
start_track_egress
. If you’re still running into trouble, checking your server logs or telemetry events can often reveal more details. Feel free to reach out anytime if you want me to walk through this with you—I’m here to help! Sources: livekit/livekit_egress.go | livekit-api/livekit/api/egress_service.py
p
2025-10-23T005105.936Z INFO egress server/server_rpc.go:59 request received {"nodeID": "NE_NCQynwxQrius", "clusterID": "", "egressID": "EG_oChP7pNf3X8s"} 2025-10-23T005105.937Z INFO egress server/server_rpc.go:69 request validated {"nodeID": "NE_NCQynwxQrius", "clusterID": "", "egressID": "EG_oChP7pNf3X8s", "requestType": "room_composite", "sourceType": "EGRESS_SOURCE_TYPE_WEB", "outputType": "file", "room": "my-sip-room-3373", "request": {"RoomComposite":{"room_name":"my-sip-room-3373","audio_only":true,"Output":null,"Options":null,"file_outputs":[{"file_type":2,"filepath":"livekit-test/my-sip-room-3373-20251023_085105.ogg","Output":{"S3":{"access_key":"{access_key}","secret":"{secret}","region":"ap-southeast-1","bucket":"setup-for-livekit-audio-recordings"}}}]}}} 2025-10-23T005105.959Z INFO egress redis/redis.go:142 connecting to redis {"nodeID": "NE_NCQynwxQrius", "handlerID": "EGH_CSsP37FTJe7f", "clusterID": "", "egressID": "EG_oChP7pNf3X8s", "simple": true, "addr": "localhost:6379"} 2025-10-23T005106.561Z INFO egress source/web.go:320 chrome: END_RECORDING {"nodeID": "NE_NCQynwxQrius", "handlerID": "EGH_CSsP37FTJe7f", "clusterID": "", "egressID": "EG_oChP7pNf3X8s"} 2025-10-23T005106.612Z INFO egress info/io.go:230 egress_aborted {"nodeID": "NE_NCQynwxQrius", "clusterID": "", "egressID": "EG_oChP7pNf3X8s", "requestType": "room_composite", "outputType": "file", "error": "Start signal not received", "code": 412, "details": "End reason: Source closed"}
t
Thank you for sharing the error logs! They point to two main issues that we can work through together: 1. "Start signal not received": This usually happens when the egress pipeline stops before it gets the start signal from the media source. It might be because the room or track wasn’t active yet when egress began, or the egress request was sent a bit too early. Here are some steps to help fix this: • Make sure the room exists and has participants who are publishing audio/video before starting egress. • Try not to start egress immediately after creating the room; give a little time for participants to join and start publishing tracks. • Enable egress-ended webhooks so you can get detailed error info and better understand what’s going on. 1. "End reason: Source closed": This means the egress ended because the media source (like the room or participant session) was closed. This is expected if the source ends, but if it happens sooner than you expect: • Check that the room stays open for as long as you want the egress to run. • Use webhooks to keep an eye on room lifecycle events and see how they line up with your egress timing. If these issues keep popping up, taking a close look at webhook payloads, server logs, and syncing egress timing with room events usually helps a lot. Please feel free to reach out if you’d like me to walk you through any of these steps or if you have more questions—I’m here to help! Sources: SIP Integration & Telephony | livekit/livekit_composite | DeepWiki | pkg/pipeline/controller.go | livekit/livekit_egress.go | Webhooks | LiveKit Docs
p
that is weird because it got to this error but the room is still alive. not closed.
t
I understand how the 'Source closed' error can be confusing, especially when the room still appears to be active. This usually happens because of some specific issues with the egress participant, which is like a hidden participant capturing the media in the room. Let me walk you through some common reasons this might occur: 1. Manual Removal: Sometimes, the egress participant might have been intentionally removed using the
RemoveParticipant
API. 2. Duplicate Identity: If another participant joins the room using the same identity as the egress participant, it can cause a conflict and lead to disconnection. 3. Network Issues: The egress participant’s connection might drop due to network instability. 4. Agent Session Termination: In cases where agents assist, the session might have ended early, which disconnects the egress participant. 5. Internal Errors: Occasionally, crashes or failures within the egress service itself can cause this problem. Even though the room stays active, the egress process relies on its own participant connection to keep going. If you’d like, I’m here to help you check for any of these situations or guide you through the next steps to troubleshoot. Just let me know! Sources: pkg/pipeline/source/sdk.go | Connecting to LiveKit | LiveKit Docs | Events and error handling | LiveKit Docs
p
in the logs there should be a START_RECORDING right? but i nmy case it didnt even start after connecting to redis.
t
Thanks for sharing your logs! The missing START_RECORDING signal could be happening for a few reasons, so let’s walk through some common ones together: 1. Egress Type: Make sure you’re using web egress or room composite egress since the START_RECORDING signal is tied specifically to these types. 2. await_start_signal Parameter: Double-check that the
await_start_signal
parameter is set to
true
in your egress request. Without this, the system won’t wait for the signal to start recording. 3. Logging Level: It helps to have your logging level set to debug because Chrome-related signals like START_RECORDING might not show up if the logging level is higher. 4. Chrome Sandbox Issues: If you’re running Docker, please ensure your setup includes the necessary capabilities (like
--cap-add=SYS_ADMIN
) to support Chrome sandboxing properly. 5. Redis Configuration: Also, check that your egress service is connecting to the same Redis instance as your LiveKit server, since mismatched setups can interfere with signal flow. I’m here to help if you want to dive deeper into any of these points or need more troubleshooting tips. Just let me know! Sources: lib/livekit/egress_service_client.rb | cmd/server/main.go | Self-hosting the Egress Service | LiveKit Docs