This message was deleted.
# helpdesk
s
This message was deleted.
a
stream
is deprecated, as well as
file
and
segments
.
Copy code
stream_outputs: [{
    protocol: StreamProtocol.RTMP,
}]
n
thanks
hey @able-gigabyte-21598 can you please tell me why some of my egress are always in state of "EGRESS_ENDING" but never getting EGRESS_COMPLETE, and when this happens i always get error in starting roomComposite and in response i got "no response from server".
a
what egress version are you running?
it looks like we might have a bug where updates are being saved to the database out of order, so the
ENDING
update is overwriting the
COMPLETE
update in some cases. Will look into a fix
n
thanks @able-gigabyte-21598 for your reply and precious time, I am using this egress
Copy code
<https://hub.docker.com/layers/livekit/egress/latest/images/sha256-dceb8336f8efa1ed7f04f636d5ee557044d8604beb7d9fdaca0f730bcb00b45c?context=explore>
and I have checked it many times whenever my egress state get stucked into ENDING state then i always have error while starting room composite. below is the response i get while starting room composite: { code: 'unavailable', msg: 'no response from servers' } And one more thing, is there any way around to tackle the situation untill this got fixed ?
may be i can delete something from redis to handle the stucked ENDING state of the egress ?
a
you can use
HDEL egress {egressID}
to remove it from redis
n
hey @able-gigabyte-21598 thanks for the reply i have tried that earlier but removing the egressId from redis doesnt solve the problem that i am getting while creating room composite. the only thing that helps me is to FLUSHDB in redis and restart livekit server. the error i am getting while creating roomComposite is below:
error in EgressCreate
0|server  | method:  post
0|server  | url:  /twirp/livekit.Egress/StartRoomCompositeEgress
0|server  | data:  {"roomName":"65152634bea4c82c388a3ce2_room_65157d773d634d385e8c0e5f","layout":"grid","audioOnly":false,"videoOnly":false,"customBaseUrl":"","fileOutputs":[],"streamOutputs":[{"protocol":"RTMP","urls":[]}],"segmentOutputs":[{"protocol":"HLS_PROTOCOL","filenamePrefix":"61496eae9689f724fcf14738/65152634bea4c82c388a3ce2/65157d773d634d385e8c0e5f/segement","playlistName":"playlist.m3u8","segmentDuration":6,"gcp":{"credentials":"{\n  \"type\": \"service_account\",\n  \"project_id\": \"flutin-prod-peer-eu-01\",\n  \"private_key_id\": \"2ec8c6aba55ead8587514d90298121d52d8a1281\",\n  \"private_key\": \"-----BEGIN PRIVATE KEY-----\\{{GCS AUTH KEY}}\\n-----END PRIVATE KEY-----\\n\",\n  \"client_email\": \"h{{GSC USER}}\",\n  \"client_id\": \"107292370832721727933\",\n  \"auth_uri\": \"<https://accounts.google.com/o/oauth2/auth>\",\n  \"token_uri\": \"<https://oauth2.googleapis.com/token>\",\n  \"auth_provider_x509_cert_url\": \"<https://www.googleapis.com/oauth2/v1/certs>\",\n  \"client_x509_cert_url\": \"<https://www.googleapis.com/robot/v1/metadata/x509/xxxxxxxxxxxxxxxxxxxxxx.com>\",\n  \"universe_domain\": \"<http://googleapis.com|googleapis.com>\"\n}\n","bucket":"BUCKET_NAME"}}]}
0|server  | response Data EgressCreate ==>> { code: 'unavailable', msg: 'no response from servers' }
It would be really helpful if you can look into this
and below is the logs from livekit server
Copy code
rtc/participant.go:1300 mediaTrack published    {"room": "65151035bea4c82c388a3ca4_room_651580663d634d385e8c0e66", "roomID": "RM_TZLiVbAhikGX", "participant": "61496eae9689f724fcf14738_65151035bea4c82c388a3ca4_host_studio_651580663d634d385e8c0e66", "pID": "PA_Xc9XraEkm4jc", "remote": false, "kind": "video", "trackID": "TR_VCgvdpxGPgpuNo", "webrtcTrackID": "f9f36a90-ac47-4de0-8e2e-094925b66b23", "rid": "q", "SSRC": 2397508884, "mime": "video/VP8"}
livekit-livekit-1  | 2023-09-28T13:34:17.656Z   INFO    livekit.room    rtc/room.go:297 participant state changed       {"room": "65151035bea4c82c388a3ca4_room_651580663d634d385e8c0e66", "roomID": "RM_TZLiVbAhikGX", "state": "ACTIVE", "participant": "61496eae9689f724fcf14738_65151035bea4c82c388a3ca4_host_studio_651580663d634d385e8c0e66", "pID": "PA_Xc9XraEkm4jc", "oldState": "JOINED"}
livekit-livekit-1  | 2023-09-28T13:34:17.838Z   INFO    livekit.pub     rtc/participant.go:1300 mediaTrack published    {"room": "65151035bea4c82c388a3ca4_room_651580663d634d385e8c0e66", "roomID": "RM_TZLiVbAhikGX", "participant": "61496eae9689f724fcf14738_65151035bea4c82c388a3ca4_host_studio_651580663d634d385e8c0e66", "pID": "PA_Xc9XraEkm4jc", "remote": false, "kind": "video", "trackID": "TR_VCgvdpxGPgpuNo", "webrtcTrackID": "f9f36a90-ac47-4de0-8e2e-094925b66b23", "rid": "h", "SSRC": 1590253966, "mime": "video/VP8"}
livekit-livekit-1  | 2023-09-28T13:34:17.922Z   INFO    livekit.pub     rtc/participant.go:1300 mediaTrack published    {"room": "65151035bea4c82c388a3ca4_room_651580663d634d385e8c0e66", "roomID": "RM_TZLiVbAhikGX", "participant": "61496eae9689f724fcf14738_65151035bea4c82c388a3ca4_host_studio_651580663d634d385e8c0e66", "pID": "PA_Xc9XraEkm4jc", "remote": false, "kind": "video", "trackID": "TR_VCgvdpxGPgpuNo", "webrtcTrackID": "f9f36a90-ac47-4de0-8e2e-094925b66b23", "rid": "f", "SSRC": 39265860, "mime": "video/VP8"}
livekit-livekit-1  | 2023-09-28T13:34:27.599Z   INFO    livekit.pub     rtc/participant.go:1556 sending max subscribed quality  {"room": "65151035bea4c82c388a3ca4_room_651580663d634d385e8c0e66", "roomID": "RM_TZLiVbAhikGX", "participant": "61496eae9689f724fcf14738_65151035bea4c82c388a3ca4_host_studio_651580663d634d385e8c0e66", "pID": "PA_Xc9XraEkm4jc", "remote": false, "trackID": "TR_VCgvdpxGPgpuNo", "qualities": [{"codec":"vp8","qualities":[{},{"quality":1},{"quality":2}]}], "max": [{"CodecMime":"video/VP8","Quality":3}]}
livekit-livekit-1  | 2023-09-28T13:34:28.695Z   INFO    livekit.api     service/twirp.go:128    API Egress.StartRoomCompositeEgress     {"service": "Egress", "method": "StartRoomCompositeEgress", "room": "65151035bea4c82c388a3ca4_room_651580663d634d385e8c0e66", "baseUrl": "", "duration": "1.001107534s", "status": "503", "error": "no response from servers", "code": "unavailable"}
or this could be because of my liveKit server is running out of resources ? and i m really sorry for bothering you that much with my messages.
a
do you have egress logs? it sounds like it’s not receiving the request at all
n
yeah sure @able-gigabyte-21598 i will be back with egress logs but as of now i am pretty sure that this issue:
Copy code
"status": "503", "error": "no response from servers", "code": "unavailable"
is because of my servers were running out of resources and when i increased the cores, everything was good. But since roomComposite demands so much resource, i am planning to go back to trackComposite again. And once more thanks for this awesome product
a
we also recently added Participant egress, which might be useful for you. It’s still in beta but should be available if you update to the latest livekit server and egress versions