This message was deleted.
# helpdesk
s
This message was deleted.
p
I guess... using http protocol.. must need SSL(?)
a
it was waiting for a participant to join the room
πŸ‘€ 1
p
@able-gigabyte-21598 Hello, thank you every time. I thought the reason egress wasn't working was because webRTC media related functions work only when SSL is installed in the deployment environment. So, I downloaded the SSL authentication related file through zeroSSL and confirmed that no error message appears when connecting from the frontend using a reverse proxy in the local environment. And using the livekit API, we confirmed that there is a room called '123' and that there is a participant called '123'. After that, I wanted to make room 123 a RoomComposite via egress, but I still received the same message as above. I have no idea what's wrong. please help me this is room list response
Copy code
[
    {
        "sid": "RM_aXQAsRBJLj7M",
        "name": "123",
        "emptyTimeout": 300,
        "maxParticipants": 0,
        "creationTime": 1693401193,
        "turnPassword": "mocL3Ao4VQeggIfY8il3khPTenUMMrfqL6AUyw57bKED",
        "enabledCodecs": [
            {
                "mime": "audio/opus",
                "fmtpLine": ""
            },
            {
                "mime": "audio/red",
                "fmtpLine": ""
            },
            {
                "mime": "video/VP8",
                "fmtpLine": ""
            },
            {
                "mime": "video/H264",
                "fmtpLine": ""
            }
        ],
        "metadata": "",
        "numParticipants": 1,
        "numPublishers": 1,
        "activeRecording": false
    }
]
this is room 123 participants list
Copy code
[
    {
        "sid": "PA_TeaQD7t7LHa3",
        "identity": "123",
        "state": 2,
        "tracks": [
            {
                "sid": "TR_AMSjHGXCfxVGok",
                "type": 0,
                "name": "",
                "muted": false,
                "width": 0,
                "height": 0,
                "simulcast": false,
                "disableDtx": false,
                "source": 2,
                "layers": [],
                "mimeType": "audio/red",
                "mid": "0",
                "codecs": [],
                "stereo": false,
                "disableRed": false,
                "encryption": 0
            },
            {
                "sid": "TR_VC2hiJUAKXsWj9",
                "type": 1,
                "name": "",
                "muted": false,
                "width": 1280,
                "height": 720,
                "simulcast": true,
                "disableDtx": false,
                "source": 1,
                "layers": [
                    {
                        "quality": 0,
                        "width": 320,
                        "height": 180,
                        "bitrate": 160000,
                        "ssrc": 3941831310
                    },
                    {
                        "quality": 1,
                        "width": 640,
                        "height": 360,
                        "bitrate": 450000,
                        "ssrc": 3850153617
                    },
                    {
                        "quality": 2,
                        "width": 1280,
                        "height": 720,
                        "bitrate": 1700000,
                        "ssrc": 3511754551
                    }
                ],
                "mimeType": "video/VP8",
                "mid": "1",
                "codecs": [
                    {
                        "mimeType": "video/VP8",
                        "mid": "1",
                        "cid": "f411e9c6-82eb-41a1-af6d-6eec4b07431b",
                        "layers": [
                            {
                                "quality": 0,
                                "width": 320,
                                "height": 180,
                                "bitrate": 160000,
                                "ssrc": 3941831310
                            },
                            {
                                "quality": 1,
                                "width": 640,
                                "height": 360,
                                "bitrate": 450000,
                                "ssrc": 3850153617
                            },
                            {
                                "quality": 2,
                                "width": 1280,
                                "height": 720,
                                "bitrate": 1700000,
                                "ssrc": 3511754551
                            }
                        ]
                    }
                ],
                "stereo": false,
                "disableRed": false,
                "encryption": 0
            }
        ],
        "metadata": "",
        "joinedAt": 1693401703,
        "name": "",
        "version": 6,
        "permission": {
            "canSubscribe": true,
            "canPublish": true,
            "canPublishData": true,
            "canPublishSources": [],
            "hidden": false,
            "recorder": false,
            "canUpdateMetadata": false
        },
        "region": "",
        "isPublisher": true
    }
]
However, the egress container log is as above.. waiting signal -> END RECORDED πŸ™
a
Check your livekit server logs to see whether egress connected to the room. It might not be able to connect
πŸ‘€ 1
πŸ‘Œ 1
p
here is my livekit docker logs. what should i do? It seems like the websocket connects and then terminates after some time.
Copy code
23-08-31 20:08:51 2023-08-31T11:08:51.777Z INFO livekit.room rtc/room.go:297 participant state changed {"room": "123", "roomID": "RM_BLq564aZGzHY", "state": "JOINED", "participant": "EG_PkCJ2GqnxczP", "pID": "PA_a6pNsW7N9Q8m", "oldState": "JOINING"} 
2023-08-31 20:08:51 2023-08-31T11:08:51.777Z INFO livekit service/rtcservice.go:298 new client WS connected {"room": "123", "roomID": "RM_BLq564aZGzHY", "participant": "EG_PkCJ2GqnxczP", "pID": "PA_a6pNsW7N9Q8m", "remote": false, "connID": "CO_WbFBuz2P6YRR", "reconnect": false, "reconnectReason": "RR_UNKNOWN", "adaptiveStream": false} 
2023-08-31 20:08:51 2023-08-31T11:08:51.947Z INFO livekit.pub rtc/participant.go:1556 sending max subscribed quality {"room": "123", "roomID": "RM_BLq564aZGzHY", "participant": "123", "pID": "PA_8Gpwf77L9d2i", "remote": false, "trackID": "TR_VCXSYpY8ozRCpq", "qualities": [{"codec":"vp8","qualities":[{"enabled":true},{"quality":1,"enabled":true},{"quality":2,"enabled":true}]}], "max": [{"CodecMime":"video/VP8","Quality":2}]}
2023-08-31 20:09:06 2023-08-31T11:09:06.811Z INFO livekit service/rtcservice.go:374 exit ws read loop for closed connection {"room": "123", "roomID": "RM_BLq564aZGzHY", "participant": "EG_PkCJ2GqnxczP", "pID": "PA_a6pNsW7N9Q8m", "remote": false, "connID": "CO_WbFBuz2P6YRR", "wsError": "websocket: close 1005 (no status)"} 
2023-08-31 20:09:06 2023-08-31T11:09:06.812Z INFO livekit service/rtcservice.go:261 finishing WS connection {"room": "123", "roomID": "RM_BLq564aZGzHY", "participant": "EG_PkCJ2GqnxczP", "pID": "PA_a6pNsW7N9Q8m", "remote": false, "connID": "CO_WbFBuz2P6YRR"} 
2023-08-31 20:09:06 2023-08-31T11:09:06.812Z INFO livekit service/rtcservice.go:323 nothing to read from response source {"room": "123", "roomID": "RM_BLq564aZGzHY", "participant": "EG_PkCJ2GqnxczP", "pID": "PA_a6pNsW7N9Q8m", "remote": false, "connID": "CO_WbFBuz2P6YRR"} 
2023-08-31 20:09:06 2023-08-31T11:09:06.898Z INFO livekit service/ioinfo.go:92 egress ended {"egressID": "EG_PkCJ2GqnxczP"}
I am inexperienced in configuring nginx ssl and livekit locally, so I only applied SSL to the '/rtc' path for websocket ssl. i use nginx to reverse proxy in my local The nginx config is as follows
Copy code
server {
    listen               443 ssl;
    server_name  teemo-world.link;
    
    error_log /root/error.log info;
    ssl_certificate      /root/ssl/certificate.crt; 
    ssl_certificate_key  /root/ssl/private.key;

    location     / {
      proxy_pass <http://127.0.0.1:3001>;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header Host $http_host;
    }

    location /rtc {
      proxy_pass <http://teemo-world.link:7880>;
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection 'upgrade';
      proxy_set_header Host $host;
      proxy_cache_bypass $http_upgrade;
    }
  }
a
do you have
insecure: true
in your egress config? Also this is just a guess, but you could try applying SSL to :7881 as well. It’s possible the rtc (media) connection is being blocked
βœ… 1
πŸ‘ 1
πŸ‘ 1
πŸ˜† 1
p
yes, this is my egress.yaml
Copy code
log_level: debug
api_key: devkey
api_secret: secret
ws_url: <ws://192.168.65.254:7880>
insecure: true
redis:
  address: 192.168.65.254:6379
As you said, I will apply SSL to port 7881 and try again. thanks
Thank you so much for your consistent replies over the past few days! I guess it didn't work because egress used DNS to connect, but the LiveKit container only forwarded port 7880 and not 7881. After forwarding port 7881 of the LiveKit container, it works well! The question was poorly worded, but thank you for your wise answer!! I feel so good πŸ˜„ πŸ‘πŸ½πŸ˜ƒπŸ™
πŸ™Œ 2