m
hi
t
Thanks for reaching out, Rahib. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hi — welcome to LiveKit! How can I help you today? If you’re not sure where to start, tell me what you’re trying to build (SDK/language, hosting vs. self‑hosted, or any error you’re seeing) and I’ll guide you.
m
2025-12-09T184739.975Z INFO egress server/server_rpc.go:69 request validated {"nodeID": "NE_gzy4q4QaDhjP", "clusterID": "", "egressID": "EG_XcbKyYwxnu2r", "requestType": "room_composite", "sourceType": "EGRESS_SOURCE_TYPE_WEB", "outputType": "file", "room": "room-0dhX-2PGy", "request": {"RoomComposite":{"room_name":"room-0dhX-2PGy","layout":"speaker","Output":null,"Options":{"Preset":0},"file_outputs":[{"file_type":1,"filepath":"calls/6132555875/2025-12-09/room-0dhX-2PGy.mp4","Output":null}]}}} 2025-12-09T184740.020Z INFO egress redis/redis.go:144 connecting to redis {"nodeID": "NE_gzy4q4QaDhjP", "handlerID": "EGH_huTxTbTdVHey", "clusterID": "", "egressID": "EG_XcbKyYwxnu2r", "simple": true, "addr": "localhost:6379"} 2025-12-09T184755.413Z INFO egress source/web.go:328 chrome: END_RECORDING {"nodeID": "NE_gzy4q4QaDhjP", "handlerID": "EGH_huTxTbTdVHey", "clusterID": "", "egressID": "EG_XcbKyYwxnu2r"} 2025-12-09T184755.448Z INFO egress info/io.go:269 egress_aborted {"nodeID": "NE_gzy4q4QaDhjP", "clusterID": "", "egressID": "EG_XcbKyYwxnu2r", "requestType": "room_composite", "outputType": "file", "error": "Start signal not received", "code": 412, "details": "End reason: Source closed"}
t
Thanks — I’m looking at the logs you pasted showing a Room Composite egress that was validated but then aborted with code 412 and error "Start signal not received" / "End reason: Source closed." I can help troubleshoot; here are the most likely causes and quick checks you can run. Likely causes and immediate checks • Custom template didn’t emit START_RECORDING: confirm your compositor page logs exactly
START_RECORDING
to the console after it successfully connects and initializes the LiveKit client. • Page JS error or failed load: check the browser console (or headless Chrome logs) for JS errors or resource load failures during template initialization. • Room empty or no participant: verify at least one participant was connected to room-0dhX-2PGy when egress started. • Token / connectivity issue: ensure the recorder’s join token is valid and the headless Chrome instance can reach the LiveKit server (no network/DNS/CORS blocking). • Timeout / slow startup: long template load times can exceed the wait window — reduce external dependencies or optimize startup. Quick steps to resolve 1. Verify the compositor emits: ◦ Add a console.log('START_RECORDING') right after the LiveKit
connected
event (or use the Template SDK which sends it automatically). 1. Test with built-in layout: ◦ Start room composite egress without a
custom_base_url
to rule out template issues. 1. Use the Template SDK or sample: ◦ Use the egress template SDK which handles START/END signaling. 1. Inspect logs: ◦ Check the headless Chrome console output for errors and the LiveKit egress logs around the same timestamps. 1. Run a local template test: ◦ Use
lk egress test-template --base-url http://your-template --room room-0dhX-2PGy --layout speaker
to reproduce locally. If you’d like, tell me: • Are you using a custom template (a
custom_base_url
) or the built-in layouts? • Do you have access to the headless Chrome console logs or the template’s JS? • Were there participants in room-0dhX-2PGy when you started egress? I’ll suggest the exact next steps once you tell me which of the above applies. Sources: Custom recording templates | LiveKit docs | Recording and export | LiveKit docs
m
egress: image: livekit/egress network_mode: host cap_add: - SYS_ADMIN # Required for Chrome sandbox (egress v1.7.6+) volumes: - ./egress.yaml:/etc/egress.yaml - ./recordings:/out # Local recordings storage environment: EGRESS_CONFIG_FILE: /etc/egress.yaml depends_on: redis: condition: service_started livekit: condition: service_started # LiveKit Egress Configuration for Local Development # Required fields log_level: debug api_key: devkey # Match your livekit.yaml api_secret: secret # Match your livekit.yaml ws_url: ws://localhost:7880 # Local LiveKit server insecure: true # Required for local development (no TLS) # Redis configuration (must match LiveKit server) redis: address: localhost:6379 # Template configuration template_port: 7980 # Default port for egress templates template_base: http://localhost:7980/ # Base URL for default templates (REQUIRED) # Local file output configuration (REQUIRED for file-based egress) # This is where recordings will be saved when no cloud storage is specified file_output: local: /out # Must match the Docker volume mount path # Alternatively, you can use: # s3: {...} # gcp: {...} # azure: {...} # Health check endpoint health_port: 9090 # Prometheus metrics for monitoring prometheus_port: 9091
t
Thanks — I’ve reviewed your egress Docker/config and the earlier logs. The config looks correct for local development (host network, Redis set to localhost:6379, template_base pointing at http://localhost:7980, local file output at /out). To narrow down why the compositor never sent START_RECORDING, please answer these and run the checks below. Quick questions • Are you using a custom template served from template_base, or the built-in templates? • Is the template server actually running on port 7980 on the same host as the egress container? (Inside the egress container, localhost must reach the template server.) • How are you starting the egress request (API call, CLI, SDK)? Can you share the request payload if it’s custom? • Were there participants in room-0dhX-2PGy when you started egress? Immediate checks to run • From inside the egress container, curl the template URL: a. docker exec -it <egress_container> /bin/sh b. curl -I http://localhost:7980/ — confirm 200 and no redirects/CORS issues. • Inspect headless Chrome console logs for the template page around the egress timestamps (184739–55). Look for: ◦
START_RECORDING
(must appear) ◦ JS errors or failed resource loads ◦ Token or connection errors when joining the room • Verify the template emits START_RECORDING after the LiveKit client reports connected. If you’re not using the Template SDK, add:
Copy code
room.on('connected', () => console.log('START_RECORDING'));
• Test with built-in layout (no custom template) to rule out template problems. • Run the local template tester: lk egress test-template --base-url http://localhost:7980 --room room-0dhX-2PGy --layout speaker If you prefer, share: • whether template_base is serving a custom page, • any console error snippets from headless Chrome, • the exact egress request (sanitized if needed). I’ll give the next actionable step once you confirm the above items.