Hi, while recording call with egress, i am getting...
# egress
b
Hi, while recording call with egress, i am getting the below error;
Copy code
{"nodeID": "NE_covsMANvq7zS", "clusterID": "", "egressID": "EG_KUNk68CGLVWk"}
2025-12-12T08:44:25.864Z        DEBUG   egress.psrpc.IOInfo.UpdateEgress        rpc/logging.go:68       client response {"nodeID": "NE_covsMANvq7zS", "clusterID": "", "topic": [], "request": {"egressId": "EG_KUNk68CGLVWk", "roomId": "RM_iB7nwopspUDs", "roomName": "call-1765529046", "sourceType": "EGRESS_SOURCE_TYPE_WEB", "status": "EGRESS_ABORTED", "startedAt": 1765529050386979932, "endedAt": 1765529065858947790, "updatedAt": 1765529065858947790, "details": "End reason: Source closed", "error": "Start signal not received", "errorCode": 412, "roomComposite": {"roomName": "call-1765529046", "audioOnly": true, "audioMixing": "DEFAULT_MIXING", "preset": "H264_720P_30", "fileOutputs": [{"fileType": "OGG", "filepath": "/2025-12-12/call-1765529046", "s3": {"accessKey": "<redacted>", "secret": "<redacted>", "sessionToken": "<redacted>", "assumeRoleArn": "<redacted>", "region": "us-east-1", "bucket": "livekit_bucket", "forcePathStyle": true}}]}, "file": {"filename": "/2025-12-12/call-1765529046.ogg", "startedAt": 1765529065814486336, "endedAt": 1765529065814486336}, "fileResults": [{"filename": "/2025-12-12/call-1765529046.ogg", "startedAt": 1765529065814486336, "endedAt": 1765529065814486336}]}, "response": {}, "duration": "2.673872ms"}
my egress is running on ec2, whereas the dispatch call is taking places via a service on eks. i am using the below approach for recording the conversation:
Copy code
req = api.RoomCompositeEgressRequest(
                room_name=room_name,
                audio_only=True,
                file_outputs=[
                    api.EncodedFileOutput(
                        file_type=api.EncodedFileType.OGG,
                        filepath=file_path,
                        s3=api.S3Upload(
                            bucket=self.s3_bucket,
                            region=self.s3_region,
                            force_path_style=True
                        )
                    )
                ]
            )

# Start recording
await ctx.api.egress.start_room_composite_egress(req)
and below is the egress logs:
Copy code
025-12-12T09:10:09.460Z        DEBUG   egress  source/web.go:349       chrome initialized      {"nodeID": "NE_TrC2rLR37rU8", "handlerID": "EGH_WkRWw2MhfuUK", "clusterID": "", "egressID": "EG_gvJ5KKKwzewg"}
2025-12-12T09:10:09.547Z        DEBUG   egress  gstreamer/bin.go:71     adding src audio to pipeline    {"nodeID": "NE_TrC2rLR37rU8", "handlerID": "EGH_WkRWw2MhfuUK", "clusterID": "", "egressID": "EG_gvJ5KKKwzewg"}
2025-12-12T09:10:09.548Z        DEBUG   egress  gstreamer/bin.go:77     adding sink file to pipeline    {"nodeID": "NE_TrC2rLR37rU8", "handlerID": "EGH_WkRWw2MhfuUK", "clusterID": "", "egressID": "EG_gvJ5KKKwzewg"}
2025-12-12T09:10:09.549Z        DEBUG   egress  gstreamer/state.go:75   pipeline state building -> starting     {"nodeID": "NE_TrC2rLR37rU8", "handlerID": "EGH_WkRWw2MhfuUK", "clusterID": "", "egressID": "EG_gvJ5KKKwzewg"}
2025-12-12T09:10:09.549Z        DEBUG   egress  pipeline/controller.go:220      waiting for start signal        {"nodeID": "NE_TrC2rLR37rU8", "handlerID": "EGH_WkRWw2MhfuUK", "clusterID": "", "egressID": "EG_gvJ5KKKwzewg"}
2025-12-12T09:10:24.573Z        INFO    egress  source/web.go:328       chrome: END_RECORDING   {"nodeID": "NE_TrC2rLR37rU8", "handlerID": "EGH_WkRWw2MhfuUK", "clusterID": "", "egressID": "EG_gvJ5KKKwzewg"}
2025-12-12T09:10:24.573Z        DEBUG   egress  pipeline/controller.go:416      stopping pipeline       {"nodeID": "NE_TrC2rLR37rU8", "handlerID": "EGH_WkRWw2MhfuUK", "clusterID": "", "egressID": "EG_gvJ5KKKwzewg", "reason": "Source closed"}
2025-12-12T09:10:24.573Z        DEBUG   egress  gstreamer/pipeline.go:146       stopping pipeline       {"nodeID": "NE_TrC2rLR37rU8", "handlerID": "EGH_WkRWw2MhfuUK", "clusterID": "", "egressID": "EG_gvJ5KKKwzewg"}
2025-12-12T09:10:24.573Z        DEBUG   egress  gstreamer/state.go:75   pipeline state starting -> stopping     {"nodeID": "NE_TrC2rLR37rU8", "handlerID": "EGH_WkRWw2MhfuUK", "clusterID": "", "egressID": "EG_gvJ5KKKwzewg"}
2025-12-12T09:10:24.573Z        DEBUG   egress  source/web.go:123       closing chrome  {"nodeID": "NE_TrC2rLR37rU8", "handlerID": "EGH_WkRWw2MhfuUK", "clusterID": "", "egressID": "EG_gvJ5KKKwzewg"}
2025-12-12T09:10:24.573Z        DEBUG   egress  gstreamer/state.go:75   pipeline state stopping -> finished     {"nodeID": "NE_TrC2rLR37rU8", "handlerID": "EGH_WkRWw2MhfuUK", "clusterID": "", "egressID": "EG_gvJ5KKKwzewg"}
2025-12-12T09:10:24.610Z        DEBUG   egress  source/web.go:128       closing X display       {"nodeID": "NE_TrC2rLR37rU8", "handlerID": "EGH_WkRWw2MhfuUK", "clusterID": "", "egressID": "EG_gvJ5KKKwzewg"}
2025-12-12T09:10:24.613Z        DEBUG   egress  source/web.go:134       unloading pulse module  {"nodeID": "NE_TrC2rLR37rU8", "handlerID": "EGH_WkRWw2MhfuUK", "clusterID": "", "egressID": "EG_gvJ5KKKwzewg"}
2025-12-12T09:10:24.622Z        DEBUG   egress  server/server_ipc.go:55 handler finished        {"nodeID": "NE_TrC2rLR37rU8", "clusterID": "", "egressID": "EG_gvJ5KKKwzewg"}
and anyone tell me what could be the possible root cause?
c
are you using custom recording template? (https://docs.livekit.io/home/egress/custom-template)
b
no, i just want to record the ongoing call via egress, the setup was working fine when everything was on ec2 but since we separated out, we are facing the issue
c
the recording doesn't start because for some reason we don't get START_RECORDING signal from the template..
you record audio only?
if you record audio only - more resource efficient way would be to use sdk
within egress
by setting config option
enable_room_composite_sdk_source
to
true
that would also allow you to use different audio mixing options: https://docs.livekit.io/home/egress/api/#audiomixing
c
hey @boundless-author-7811 can u share how did u setup a self hosted server on aws currently i am having issues doing so
@clever-nail-49292 not able to connect to livekit's self hosted server can u help me out here