The egress service is not working.
# ask-ai
a
The egress service is not working.
t
Thanks for reaching out, Aditya. 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 with the issue you're having with the egress service. Could you please share a bit more about what's going on? For instance: • Are there any specific error messages or logs popping up? • What kind of egress are you using (like WebRTC, file, or segmented)? • Have you tried any steps so far to troubleshoot the problem? Sharing these details will really help us get to the bottom of this together. Looking forward to your reply!
a
No error logs are coming up. File egress service.
t
Let's work together to troubleshoot the file egress service when you're not seeing any error logs. Here are some steps that might help: • First, please make sure the
log_level
is set to
info
or an even more detailed level in your egress service configuration. This will help capture more detailed logs. • Next, try using the Twirp API to check the
EgressInfo
status and error fields. This often gives useful clues about whether the job encountered any issues and why. • Also, double-check your storage setup (like S3, GCP, or Azure) to ensure everything is configured correctly and accessible. It’s a good idea to look for the output file and see if it’s there and what size it is. • If your setup involves infrastructure requirements like Chrome sandbox settings, please verify those as well. • Lastly, consider whether any recent updates to your LiveKit server’s logging might be impacting log generation. You might need to adjust some settings or update your version. If you’d like, I’m here to help guide you through any of these steps. Just let me know! Sources: test/edge.go | CHANGELOG.md | egress-sample.yaml | livekit/livekit_egress.twirp.go
a
how can I try the twirp api to check the egress info?
t
To check the
EgressInfo
using the Twirp API, here’s a simple guide to help you through the process: 1. First, send an HTTP POST request to this endpoint:
<YOUR_LIVEKIT_HOST>/twirp/rpc.IOInfo/GetEgress
. 2. Make sure to include the following JSON body in your request, swapping out
your-egress-id
with the actual egress ID you want to check:
Copy code
{
  "egress_id": "your-egress-id"
}
1. Don’t forget to add an
Authorization
header with a valid access token that has
roomRecord
permissions—this is key for access:
Copy code
Authorization: Bearer <your-access-token>
1. When everything goes smoothly, you’ll get a response containing the
EgressInfo
object, which includes details like status and file results. If you prefer using
curl
, here’s a handy command you can run:
Copy code
curl -X POST <YOUR_LIVEKIT_HOST>/twirp/rpc.IOInfo/GetEgress \
  -H "Authorization: Bearer <your-access-token>" \
  -H "Content-Type: application/json" \
  -d '{"egress_id": "your-egress-id"}'
If you’d like, I’m here to help you generate the access token or guide you through any part of this. Just let me know! Sources: livekit/livekit_egress.pb.go | Egress API | LiveKit Docs