2021년 08월 10일 TIL

less than 1 minute read

오늘은 테스트코드를 작성하고, webRTC를 프로젝트 EC2에 배포했다.

오늘의 가장 큰 이슈는 포트번호 충돌이었다.

OpenVidu OnPremise 배포에서 사용하고 있는 포트들은

Port configuration in the server

Open these ports (in section Close ports to avoid external attacks you have an UFW sample to configure a firewall)

22 TCP: to connect using SSH to admin OpenVidu. 80 TCP: if you select Let’s Encrypt to generate an SSL certificate this port is used by the generation process. 443 TCP: OpenVidu server and application are published by default in standard https port. 3478 TCP+UDP: used by TURN server to resolve clients IPs. 40000 - 57000 TCP+UDP: used by Kurento Media Server to establish media connections. 57001 - 65535 TCP+UDP: used by TURN server to establish relayed media connections.

위와 같았는데, 이미 기존에 ingress가 80번 포트를 점유하고 있었고, 따라서 OpenVidu의 Nginx와 포트번호 충돌이 발생했다.

결론부터 말하자면

https://docs.openvidu.io/en/2.17.0/troubleshooting/#16-how-can-i-customize-deployed-nginx

OpenVidu의 공식문서를 참조하여 내부 설정파일을 변경하였고, OpenVidu의 포트번호를 변경하여 해결할 수 있었다.

webRTC의 업로드가 끝난 이후로는 테스트코드를 작성했다.

굉장히 초보적인 실수이긴 하지만, 팀원이 API 요청을 작성할 때 들어오는 Get 요청의 데이터를 파라미터가 아니라 Body로 받도록 작성한 실수가 있었다.

테스트코드의 작성 중에 그 오류를 확인할 수 있었고, 수정을 요청했다.

Categories:

Updated: