# Video transmission not working

**URL:** <https://openvidu.discourse.group/t/video-transmission-not-working/1420>\
**Category:** Issues with deployment\
**Tags:** v2\
**Created:** [July 9, 2020, 11:56am UTC](https://openvidu.discourse.group/t/video-transmission-not-working/1420 "2020-07-09T11:56:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mk1](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/mk1/32/718_2.png) [@Mk1](https://openvidu.discourse.group/u/Mk1)\
**Post date:** [July 9, 2020, 11:56am UTC](https://openvidu.discourse.group/t/video-transmission-not-working/1420/1 "2020-07-09T11:56:15Z")

</div>

hi, i am Mk  
i have some problem to transmit video between users in android to web, actually i got expected output when i was working locally but did not get after deployed my node server …what was happened there i did not understand please help me. its very urgent. i have attached screen shots below…!!

1. receiver side (web)  
[Screenshot from 2020-07-09 17-13-36|690x374](https://openvidu.discourse.group/uploads/short-url/gQZhT6ZTGUZwBaUKNBIBarfauLj.jpeg)

2. sender side (android)

---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [July 9, 2020, 12:49pm UTC](https://openvidu.discourse.group/t/video-transmission-not-working/1420/2 "2020-07-09T12:49:12Z")

</div>

Hi @Mk1, we need more information about your problem. What kind of deployment are you using? On premises? AWS Cloudformation? What is the log of your android application?

Could you run `./openvidu version` in your deployment and provide us your .env file?

Also you can test your app with our demos server and check if it works. In this way we can see if the problem is in your deployment. Demos server has this configuration:

URL: [https://demos.openvidu.io/](https://demos.openvidu.io/)  
SECRET: MY\_SECRET

Regards,  
Carlos

---

<div class="post-metadata">

**Author:** ![hsmltuge](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/hsmltuge/32/674_2.png) [@hsmltuge](https://openvidu.discourse.group/u/hsmltuge)\
**Post date:** [July 11, 2020, 4:50pm UTC](https://openvidu.discourse.group/t/video-transmission-not-working/1420/3 "2020-07-11T16:50:44Z")

</div>

Greetings Openvidu Team:  
I have installed the Openvidu using the .jar method everything works except when sending participants videos and audios, space is created for that on the app but they are not transmitted.  
below is my log when i try to connect from openvidu dashboard:  
[INFO] 2020-07-11 16:41:27,502 [0.0-4443-exec-3] org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet ‘dispatcherServlet’  
[INFO] 2020-07-11 16:41:27,502 [0.0-4443-exec-3] org.springframework.web.servlet.DispatcherServlet - Initializing Servlet ‘dispatcherServlet’  
[INFO] 2020-07-11 16:41:27,514 [0.0-4443-exec-3] org.springframework.web.servlet.DispatcherServlet - Completed initialization in 11 ms  
[INFO] 2020-07-11 16:41:32,675 [0.0-4443-exec-8] io.openvidu.server.rest.ConfigRestController - REST API: GET /config/openvidu-publicurl  
[INFO] 2020-07-11 16:41:33,391 [0.0-4443-exec-6] io.openvidu.server.config.InfoHandler - Info websocket stablished…  
[INFO] 2020-07-11 16:41:48,568 [0.0-4443-exec-4] io.openvidu.server.rest.SessionRestController - REST API: POST /api/sessions {mediaMode=ROUTED, recordingMode=MANUAL, RECORDING\_LAYOUT=BEST\_FIT}  
[INFO] 2020-07-11 16:41:48,575 [0.0-4443-exec-4] io.openvidu.server.rest.SessionRestController - New session ses\_ZCkASR16Lt initialized [ses\_ZCkASR16Lt]  
[INFO] 2020-07-11 16:41:48,929 [.0-4443-exec-10] io.openvidu.server.rest.SessionRestController - REST API: POST /api/tokens {session=ses\_ZCkASR16Lt}  
[INFO] 2020-07-11 16:41:48,933 [.0-4443-exec-10] io.openvidu.server.coturn.CoturnCredentialsService - Creating COTURN user  
[INFO] 2020-07-11 16:41:48,946 [.0-4443-exec-10] io.openvidu.server.coturn.CoturnCredentialsService - COTURN user created: true  
[INFO] 2020-07-11 16:41:48,947 [.0-4443-exec-10] io.openvidu.server.core.Session - Token created { Session: ses\_ZCkASR16Lt | Tokens: [wss://ssmap.hsmltuge.com.ng:4443?sessionId=ses\_ZCkASR16Lt&token=tok\_XD2j5gyglikL9B9x&role=PUBLISHER&version=2.12.0&coturnIp=ssmap.hsmltuge.com.ng&turnUsername=YZCIMZ&turnCredential=uuh11a] }  
[INFO] 2020-07-11 16:41:49,926 [0.0-4443-exec-5] io.openvidu.server.config.HttpHandshakeInterceptor - Old HttpSession 13D3183C4D277E2498C8CF090AA4155F  
[INFO] 2020-07-11 16:41:50,288 [0.0-4443-exec-3] io.openvidu.server.rpc.RpcHandler - After connection established for WebSocket session: b97iduos51eon5sfk99i5gnf40  
[INFO] 2020-07-11 16:41:50,294 [99i5gnf40-e4-t0] io.openvidu.server.core.Session - Token consumed { Session: ses\_ZCkASR16Lt | Tokens: [] }  
[INFO] 2020-07-11 16:41:50,299 [99i5gnf40-e4-t0] io.openvidu.server.core.SessionManager - Participant con\_Gi2Usreyh5 of session ses\_ZCkASR16Lt is a final user connecting to this session for the first time  
[INFO] 2020-07-11 16:41:50,300 [99i5gnf40-e4-t0] io.openvidu.server.kurento.core.KurentoSessionManager - KMS less loaded is ws://localhost:8888/kurento with a load of 1.0  
[INFO] 2020-07-11 16:41:50,301 [99i5gnf40-e4-t0] io.openvidu.server.kurento.core.KurentoSessionManager - No session ‘ses\_ZCkASR16Lt’ exists yet. Created one on KMS ‘kms\_GFs41xus’ with ip ‘localhost’  
[INFO] 2020-07-11 16:41:50,302 [99i5gnf40-e4-t0] io.openvidu.server.cdr.CDRLoggerFile - {“sessionCreated”:{“sessionId”:“ses\_ZCkASR16Lt”,“timestamp”:1594485708574}}  
[INFO] 2020-07-11 16:41:50,305 [99i5gnf40-e4-t0] io.openvidu.server.core.Session - SESSION ses\_ZCkASR16Lt: Creating MediaPipeline  
[INFO] 2020-07-11 16:41:50,337 [99i5gnf40-e4-t0] io.openvidu.server.core.Session - SESSION ses\_ZCkASR16Lt: Added participant [participantPrivateId=b97iduos51eon5sfk99i5gnf40, participantPublicId=con\_Gi2Usreyh5, streaming=false]  
[INFO] 2020-07-11 16:41:50,338 [99i5gnf40-e4-t0] io.openvidu.server.cdr.CDRLoggerFile - {“participantJoined”:{“sessionId”:“ses\_ZCkASR16Lt”,“timestamp”:1594485710297,“participantId”:“con\_Gi2Usreyh5”,“location”:“unknown”,“platform”:“Chrome 83.0.4103.116 on Windows 10 64-bit”,“clientData”:"",“serverData”:""}}  
[INFO] 2020-07-11 16:41:53,582 [99i5gnf40-e4-t0] io.openvidu.server.rpc.RpcHandler - Participant con\_Gi2Usreyh5 is calling method ‘publish’ in session ses\_ZCkASR16Lt  
[INFO] 2020-07-11 16:41:53,871 [99i5gnf40-e4-t0] io.openvidu.server.kurento.core.KurentoParticipant - PARTICIPANT con\_Gi2Usreyh5: Request to publish video in room ses\_ZCkASR16Lt (sdp type OFFER)  
[INFO] 2020-07-11 16:41:54,241 [99i5gnf40-e4-t0] io.openvidu.server.kurento.core.KurentoParticipant - PARTICIPANT con\_Gi2Usreyh5: Is now publishing video in room ses\_ZCkASR16Lt  
[INFO] 2020-07-11 16:41:54,241 [99i5gnf40-e4-t0] io.openvidu.server.cdr.CDRLoggerFile - {“webrtcConnectionCreated”:{“sessionId”:“ses\_ZCkASR16Lt”,“timestamp”:1594485713881,“streamId”:“str\_CAM\_LaIV\_con\_Gi2Usreyh5”,“participantId”:“con\_Gi2Usreyh5”,“connection”:“OUTBOUND”,“videoSource”:“CAMERA”,“videoFramerate”:-1,“videoDimensions”:"{“width”:640,“height”:480}",“audioEnabled”:true,“videoEnabled”:true}}  
[INFO] 2020-07-11 16:41:54,244 [99i5gnf40-e4-t0] io.openvidu.server.rpc.RpcHandler - Participant con\_Gi2Usreyh5 is calling method ‘onIceCandidate’ in session ses\_ZCkASR16Lt  
[INFO] 2020-07-11 16:41:54,262 [99i5gnf40-e4-t0] io.openvidu.server.rpc.RpcHandler - Participant con\_Gi2Usreyh5 is calling method ‘onIceCandidate’ in session ses\_ZCkASR16Lt  
[INFO] 2020-07-11 16:41:54,264 [99i5gnf40-e4-t0] io.openvidu.server.rpc.RpcHandler - Participant con\_Gi2Usreyh5 is calling method ‘onIceCandidate’ in session ses\_ZCkASR16Lt  
[INFO] 2020-07-11 16:41:54,271 [99i5gnf40-e4-t0] io.openvidu.server.rpc.RpcHandler - Participant con\_Gi2Usreyh5 is calling method ‘onIceCandidate’ in session ses\_ZCkASR16Lt  
[INFO] 2020-07-11 16:41:54,276 [99i5gnf40-e4-t0] io.openvidu.server.rpc.RpcHandler - Participant con\_Gi2Usreyh5 is calling method ‘onIceCandidate’ in session ses\_ZCkASR16Lt  
[INFO] 2020-07-11 16:41:54,277 [99i5gnf40-e4-t0] io.openvidu.server.rpc.RpcHandler - Participant con\_Gi2Usreyh5 is calling method ‘onIceCandidate’ in session ses\_ZCkASR16Lt  
[INFO] 2020-07-11 16:41:54,281 [99i5gnf40-e4-t0] io.openvidu.server.rpc.RpcHandler - Participant con\_Gi2Usreyh5 is calling method ‘onIceCandidate’ in session ses\_ZCkASR16Lt  
[INFO] 2020-07-11 16:41:54,292 [99i5gnf40-e4-t0] io.openvidu.server.rpc.RpcHandler - Participant con\_Gi2Usreyh5 is calling method ‘onIceCandidate’ in session ses\_ZCkASR16Lt  
[INFO] 2020-07-11 16:41:54,300 [99i5gnf40-e4-t0] io.openvidu.server.rpc.RpcHandler - Participant con\_Gi2Usreyh5 is calling method ‘onIceCandidate’ in session ses\_ZCkASR16Lt  
[INFO] 2020-07-11 16:41:54,286 [EventExec-e2-t2] io.openvidu.server.kurento.core.KurentoParticipantEndpointConfig - KMS event [IceGatheringDone] -\> endpoint: str\_CAM\_LaIV\_con\_Gi2Usreyh5 (publisher) | timestamp: 1594485714245  
[INFO] 2020-07-11 16:41:54,303 [EventExec-e2-t5] io.openvidu.server.kurento.core.KurentoParticipantEndpointConfig - KMS event [IceComponentStateChange]: -\> endpoint: str\_CAM\_LaIV\_con\_Gi2Usreyh5 (publisher) | state: CONNECTING | componentId: 1 | streamId: 1 | timestamp: 1594485714282  
[INFO] 2020-07-11 16:41:54,307 [99i5gnf40-e4-t0] io.openvidu.server.rpc.RpcHandler - Participant con\_Gi2Usreyh5 is calling method ‘onIceCandidate’ in session ses\_ZCkASR16Lt  
[INFO] 2020-07-11 16:41:54,311 [99i5gnf40-e4-t0] io.openvidu.server.rpc.RpcHandler - Participant con\_Gi2Usreyh5 is calling method ‘onIceCandidate’ in session ses\_ZCkASR16Lt  
[INFO] 2020-07-11 16:41:54,313 [99i5gnf40-e4-t0] io.openvidu.server.rpc.RpcHandler - Participant con\_Gi2Usreyh5 is calling method ‘onIceCandidate’ in session ses\_ZCkASR16Lt  
[INFO] 2020-07-11 16:42:03,255 [EventExec-e2-t5] io.openvidu.server.kurento.core.KurentoParticipantEndpointConfig - KMS event [IceComponentStateChange]: -\> endpoint: str\_CAM\_LaIV\_con\_Gi2Usreyh5 (publisher) | state: FAILED | componentId: 1 | streamId: 1 | timestamp: 1594485723254  
Please Help.  
Thank you.

---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [July 13, 2020, 8:43am UTC](https://openvidu.discourse.group/t/video-transmission-not-working/1420/4 "2020-07-13T08:43:57Z")

</div>

Hi @hsmltuge, why don’t you use the official ways to deploy OpenVidu Server? :

1. [AWS](https://docs.openvidu.io/en/2.15.0/deployment/deploying-aws/)
2. [On Premises](https://docs.openvidu.io/en/2.15.0/deployment/deploying-on-premises/)

---

<div class="post-metadata">

**Author:** ![hsmltuge](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/hsmltuge/32/674_2.png) [@hsmltuge](https://openvidu.discourse.group/u/hsmltuge)\
**Post date:** [July 13, 2020, 10:10am UTC](https://openvidu.discourse.group/t/video-transmission-not-working/1420/5 "2020-07-13T10:10:36Z")

</div>

@cruizba greetings,  
I have tried the official using docker the problem i have with that is related to letsencrypt ssl, there is no detailed documentation on how to implement it.

---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [July 13, 2020, 10:20am UTC](https://openvidu.discourse.group/t/video-transmission-not-working/1420/6 "2020-07-13T10:20:11Z")

</div>

[https://docs.openvidu.io/en/2.15.0/deployment/deploying-on-premises/#3-configuration](https://docs.openvidu.io/en/2.15.0/deployment/deploying-on-premises/#3-configuration)

Just ssh into your machine, change the .env file in /opt/openvidu/ and follow this instructions.

The unique thing you need to do is to change is `CERTIFICATE_TYPE` to `letsencrypt`, put your email in `LETSENCRYPT_EMAIL` and have a valid domain in `DOMAIN_OR_PUBLIC_IP`

Regards

---

<div class="post-metadata">

**Author:** ![hsmltuge](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/hsmltuge/32/674_2.png) [@hsmltuge](https://openvidu.discourse.group/u/hsmltuge)\
**Post date:** [July 13, 2020, 1:56pm UTC](https://openvidu.discourse.group/t/video-transmission-not-working/1420/7 "2020-07-13T13:56:06Z")

</div>

Thank you for getting back to me @cruizba.  
I have followed your instructions to the letter.  
I can enter the dashboard when its not on **letsencrypt** but the moment i change it to **letsencrypt** i get ERR\_CONNECTION\_REJECTED  
openvidu-server\_1 | [INFO] 2020-07-13 13:52:30,747 [main] io.openvidu.server.OpenViduServer - Starting OpenViduServer on ip-172-31-5-63 with PID 19 (/openvidu-server.jar started by root in /)  
openvidu-server\_1 | [INFO] 2020-07-13 13:52:30,754 [main] io.openvidu.server.OpenViduServer - No active profile set, falling back to default profiles: default  
openvidu-server\_1 | [ERROR] 2020-07-13 13:52:31,032 [main] io.openvidu.server.config.OpenviduConfig - .env file not found at /.env  
openvidu-server\_1 | [INFO] 2020-07-13 13:52:31,516 [main] io.openvidu.server.OpenViduServer - Started OpenViduServer in 3.29 seconds (JVM running for 8.067)  
openvidu-server\_1 | [INFO] 2020-07-13 13:52:31,524 [main] io.openvidu.server.OpenViduServer -  
openvidu-server\_1 |  
openvidu-server\_1 |  
openvidu-server\_1 | Configuration properties  
openvidu-server\_1 | ------------------------  
openvidu-server\_1 |  
openvidu-server\_1 | \* CERTIFICATE\_TYPE=letsencrypt  
openvidu-server\_1 | \* DOMAIN\_OR\_PUBLIC\_IP=ssmap.hsmltuge.com.ng  
openvidu-server\_1 | \* HTTPS\_PORT=4443  
openvidu-server\_1 | \* KMS\_URIS=[“ws://localhost:8888/kurento”]  
openvidu-server\_1 | \* OPENVIDU\_CDR=false  
openvidu-server\_1 | \* OPENVIDU\_CDR\_PATH=/opt/openvidu/cdr  
openvidu-server\_1 | \* OPENVIDU\_RECORDING=true  
openvidu-server\_1 | \* OPENVIDU\_RECORDING\_AUTOSTOP\_TIMEOUT=120  
openvidu-server\_1 | \* OPENVIDU\_RECORDING\_COMPOSED\_URL=  
openvidu-server\_1 | \* OPENVIDU\_RECORDING\_CUSTOM\_LAYOUT=/opt/openvidu/custom-layout  
openvidu-server\_1 | \* OPENVIDU\_RECORDING\_DEBUG=false  
openvidu-server\_1 | \* OPENVIDU\_RECORDING\_NOTIFICATION=publisher\_moderator  
openvidu-server\_1 | \* OPENVIDU\_RECORDING\_PATH=/opt/openvidu/recordings  
openvidu-server\_1 | \* OPENVIDU\_RECORDING\_PUBLIC\_ACCESS=true  
openvidu-server\_1 | \* OPENVIDU\_RECORDING\_VERSION=2.15.0  
openvidu-server\_1 | \* OPENVIDU\_SECRET=MY\_SECRET  
openvidu-server\_1 | \* OPENVIDU\_SESSIONS\_GARBAGE\_INTERVAL=900  
openvidu-server\_1 | \* OPENVIDU\_SESSIONS\_GARBAGE\_THRESHOLD=3600  
openvidu-server\_1 | \* OPENVIDU\_STREAMS\_VIDEO\_MAX\_RECV\_BANDWIDTH=1000  
openvidu-server\_1 | \* OPENVIDU\_STREAMS\_VIDEO\_MAX\_SEND\_BANDWIDTH=1000  
openvidu-server\_1 | \* OPENVIDU\_STREAMS\_VIDEO\_MIN\_RECV\_BANDWIDTH=300  
openvidu-server\_1 | \* OPENVIDU\_STREAMS\_VIDEO\_MIN\_SEND\_BANDWIDTH=300  
openvidu-server\_1 | \* OPENVIDU\_WEBHOOK=false  
openvidu-server\_1 | \* OPENVIDU\_WEBHOOK\_ENDPOINT=  
openvidu-server\_1 | \* OPENVIDU\_WEBHOOK\_EVENTS=[sessionCreated,sessionDestroyed,participantJoined,participantLeft,webrtcConnectionCreated,webrtcConnectionDestroyed,recordingStatusChanged,filterEventDispatched,mediaNodeStatusChanged]  
openvidu-server\_1 | \* OPENVIDU\_WEBHOOK\_HEADERS=[]

---

<div class="post-metadata">

**Author:** ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)\
**Post date:** [July 13, 2020, 2:47pm UTC](https://openvidu.discourse.group/t/video-transmission-not-working/1420/8 "2020-07-13T14:47:01Z")

</div>

Where do you get ERR\_CONNECTION\_REJECTED ?

Have you opened 80 and 443 ports in the server?

---

<div class="post-metadata">

**Author:** ![hsmltuge](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/hsmltuge/32/674_2.png) [@hsmltuge](https://openvidu.discourse.group/u/hsmltuge)\
**Post date:** [July 13, 2020, 2:57pm UTC](https://openvidu.discourse.group/t/video-transmission-not-working/1420/9 "2020-07-13T14:57:56Z")

</div>

Greetings @micael.gallego  
Yes I have opened both ports  
ufw allow ssh  
ufw allow 80/tcp  
ufw allow 443/tcp  
ufw allow 3478/tcp  
ufw allow 3478/udp  
ufw allow 40000:57000/tcp  
ufw allow 40000:57000/udp  
ufw allow 57001:65535/tcp  
ufw allow 57001:65535/udp  
ufw enable  
and I have enabled both 80 and 443 on the security group of ec2 instance.  
Thank you.

---

<div class="post-metadata">

**Author:** ![hsmltuge](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/hsmltuge/32/674_2.png) [@hsmltuge](https://openvidu.discourse.group/u/hsmltuge)\
**Post date:** [July 13, 2020, 3:01pm UTC](https://openvidu.discourse.group/t/video-transmission-not-working/1420/10 "2020-07-13T15:01:25Z")

</div>

“_Where do you get ERR\_CONNECTION\_REJECTED ?_”  
I get the error on my browser.  
Thank you.

---

<div class="post-metadata">

**Author:** ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)\
**Post date:** [July 14, 2020, 5:35pm UTC](https://openvidu.discourse.group/t/video-transmission-not-working/1420/11 "2020-07-14T17:35:12Z")

</div>

Please specify the URL you are trying to connect.

Please share with us the NGINX container logs and OpenVidu server logs.

---

<div class="post-metadata">

**Author:** ![hsmltuge](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/hsmltuge/32/674_2.png) [@hsmltuge](https://openvidu.discourse.group/u/hsmltuge)\
**Post date:** [July 20, 2020, 12:42am UTC](https://openvidu.discourse.group/t/video-transmission-not-working/1420/12 "2020-07-20T00:42:00Z")

</div>

Greetings @micael.gallego  
Please find urls and logs blow:  
root@ip-172-31-5-250:/opt/openvidu# docker-compose logs -f nginx  
Attaching to openvidu\_nginx\_1  
nginx\_1 | 2020/07/20 00:23:34 [emerg] 7#7: bind() to 0.0.0.0:80 failed (98: Address in use)  
nginx\_1 | nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)  
nginx\_1 | 2020/07/20 00:23:34 [emerg] 7#7: bind() to 0.0.0.0:80 failed (98: Address in use)  
nginx\_1 | nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)  
nginx\_1 | 2020/07/20 00:23:34 [emerg] 7#7: bind() to 0.0.0.0:80 failed (98: Address in use)  
nginx\_1 | nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)  
nginx\_1 | 2020/07/20 00:23:34 [emerg] 7#7: bind() to 0.0.0.0:80 failed (98: Address in use)  
nginx\_1 | nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)  
nginx\_1 | 2020/07/20 00:23:34 [emerg] 7#7: bind() to 0.0.0.0:80 failed (98: Address in use)  
nginx\_1 | nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)  
nginx\_1 | 2020/07/20 00:23:34 [emerg] 7#7: still could not bind()  
nginx\_1 | nginx: [emerg] still could not bind()  
nginx\_1 |  
nginx\_1 | =======================================  
nginx\_1 | = INPUT VARIABLES =  
nginx\_1 | =======================================  
nginx\_1 |  
nginx\_1 | Config NGINX:  
nginx\_1 | - Http Port: 80  
nginx\_1 | - Https Port: 4443  
nginx\_1 | - Allowed Access in Openvidu Dashboard: all  
nginx\_1 | - Allowed Access in Openvidu API: all  
nginx\_1 |  
nginx\_1 | Config Openvidu Application:  
nginx\_1 | - Domain name: zones.hsmltuge.com.ng  
nginx\_1 | - Certificated: owncert  
nginx\_1 | - Letsencrypt Email: admin@hsmltuge.com.ng  
nginx\_1 | - Openvidu Application: true  
nginx\_1 | - Openvidu Application Type: CE  
nginx\_1 |  
nginx\_1 | =======================================  
nginx\_1 | = CONFIGURATION NGINX =  
nginx\_1 | =======================================  
nginx\_1 |  
nginx\_1 | Configure zones.hsmltuge.com.ng domain…  
nginx\_1 | - New configuration: owncert  
nginx\_1 | - Old configuration: letsencrypt  
nginx\_1 | - Restarting configuration… Removing old certificated…  
nginx\_1 | - Copying owmcert certificate…  
nginx\_1 |  
nginx\_1 | =======================================  
nginx\_1 | = ALLOWED ACCESS =  
nginx\_1 | =======================================  
nginx\_1 |  
nginx\_1 | Adding rules…  
nginx\_1 |  
nginx\_1 | Finish Rules:  
nginx\_1 | Openvidu Dashboard:  
nginx\_1 | - allow all;  
nginx\_1 | Openvidu API:  
nginx\_1 | - allow all;  
nginx\_1 |  
nginx\_1 | =======================================  
nginx\_1 | = START OPENVIDU PROXY =  
nginx\_1 | =======================================  
nginx\_1 |  
nginx\_1 | 2020/07/20 00:23:37 [emerg] 59#59: cannot load certificate key “/etc/letsencrypt/live/zones.hsmltuge.com.ng/privkey.pem”: PEM\_read\_bio\_PrivateKey() failed (SSL: error:0909006C:PEM routines:get\_name:no start line:Expecting: ANY PRIVATE KEY)  
nginx\_1 | nginx: [emerg] cannot load certificate key “/etc/letsencrypt/live/zones.hsmltuge.com.ng/privkey.pem”: PEM\_read\_bio\_PrivateKey() failed (SSL: error:0909006C:PEM routines:get\_name:no start line:Expecting: ANY PRIVATE KEY)  
nginx\_1 | ==\> /var/log/nginx/access.log \<==  
nginx\_1 |  
nginx\_1 | =======================================  
nginx\_1 | = INPUT VARIABLES =  
nginx\_1 | =======================================  
nginx\_1 |  
nginx\_1 | Config NGINX:  
nginx\_1 | - Http Port: 80  
nginx\_1 | - Https Port: 4443  
nginx\_1 | - Allowed Access in Openvidu Dashboard: all  
nginx\_1 | - Allowed Access in Openvidu API: all  
nginx\_1 |  
nginx\_1 | Config Openvidu Application:  
nginx\_1 | - Domain name: zones.hsmltuge.com.ng  
nginx\_1 | - Certificated: owncert  
nginx\_1 | - Letsencrypt Email: admin@hsmltuge.com.ng  
nginx\_1 | - Openvidu Application: true  
nginx\_1 | - Openvidu Application Type: CE  
nginx\_1 |  
nginx\_1 | =======================================  
nginx\_1 | = CONFIGURATION NGINX =  
nginx\_1 | =======================================  
nginx\_1 |  
nginx\_1 | 2020/07/20 00:36:22 [emerg] 7#7: cannot load certificate key “/etc/letsencrypt/live/zones.hsmltuge.com.ng/privkey.pem”: PEM\_read\_bio\_PrivateKey() failed (SSL: error:0909006C:PEM routines:get\_name:no start line:Expecting: ANY PRIVATE KEY)  
nginx\_1 | nginx: [emerg] cannot load certificate key “/etc/letsencrypt/live/zones.hsmltuge.com.ng/privkey.pem”: PEM\_read\_bio\_PrivateKey() failed (SSL: error:0909006C:PEM routines:get\_name:no start line:Expecting: ANY PRIVATE KEY)  
nginx\_1 | Configure zones.hsmltuge.com.ng domain…  
nginx\_1 | - New configuration: owncert  
nginx\_1 | mv: can’t rename ‘/default\_nginx\_conf/ce/default-app.conf’: No such file or directory  
nginx\_1 | mv: can’t rename ‘/default\_nginx\_conf/ce/default.conf’: No such file or directory  
nginx\_1 | - Old configuration: owncert  
nginx\_1 | - Owmcert certificate already exists, using them…  
nginx\_1 |  
nginx\_1 | =======================================  
nginx\_1 | = ALLOWED ACCESS =  
nginx\_1 | =======================================  
nginx\_1 |  
nginx\_1 | Adding rules…  
nginx\_1 |  
nginx\_1 | Finish Rules:  
nginx\_1 | Openvidu Dashboard:  
nginx\_1 | - allow all;  
nginx\_1 | Openvidu API:  
nginx\_1 | - allow all;  
nginx\_1 |  
nginx\_1 | =======================================  
nginx\_1 | = START OPENVIDU PROXY =  
nginx\_1 | =======================================  
nginx\_1 |  
nginx\_1 | 2020/07/20 00:36:22 [emerg] 53#53: cannot load certificate key “/etc/letsencrypt/live/zones.hsmltuge.com.ng/privkey.pem”: PEM\_read\_bio\_PrivateKey() failed (SSL: error:0909006C:PEM routines:get\_name:no start line:Expecting: ANY PRIVATE KEY)

---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [July 20, 2020, 11:01am UTC](https://openvidu.discourse.group/t/video-transmission-not-working/1420/13 "2020-07-20T11:01:34Z")

</div>

@hsmltuge Try this:

1. Ensure that you don’t have any service running in the background at port 80. I see when I enter to your domain that an http server at port 80 is enabled, showing an apache server if I’m not wrong. To use letsenrypt you need to have this port available! (So this Apache server should not be running at port 80)
2. After ensuring that you don’t have any background server running, remove this directory `/opt/openvidu/certificates`
3. Ensure that your properties in .env are correctly setted up for letsencrypt and restart openvidu.

---

<div class="post-metadata">

**Author:** ![hsmltuge](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/hsmltuge/32/674_2.png) [@hsmltuge](https://openvidu.discourse.group/u/hsmltuge)\
**Post date:** [July 20, 2020, 1:16pm UTC](https://openvidu.discourse.group/t/video-transmission-not-working/1420/14 "2020-07-20T13:16:08Z")

</div>

Thank you for getting back to me @cruizba Very much appreciated.  
I have worked on what you proposed, stopped apache2, and deleted the cert dir.  
Below is my Openvidu Conf of .env.  
Is there anything else I need to do?

# OpenVidu configuration

# ----------------------

# Documentation: [https://docs.openvidu.io/en/stable/reference-docs/openvidu-config/](https://docs.openvidu.io/en/stable/reference-docs/openvidu-config/)

# NOTE: This file doesn’t need to quote assignment values, like most shells do.

# All values are stored as-is, even if they contain spaces, so don’t quote them.

# Domain name. If you do not have one, the public IP of the machine.

# For example: 198.51.100.1, or [openvidu.example.com](http://openvidu.example.com)

DOMAIN\_OR\_PUBLIC\_IP=zones.hsmltuge.com.ng

# OpenVidu SECRET used for apps to connect to OpenVidu server and users to access to OpenVidu Dashboard

OPENVIDU\_SECRET=MY\_SECRETs

# Certificate type:

# - selfsigned: Self signed certificate. Not recommended for production use.

# Users will see an ERROR when connected to web page.

# - owncert: Valid certificate purchased in a Internet services company.

# Please put the certificates files inside folder ./owncert

# with names certificate.key and certificate.cert

# - letsencrypt: Generate a new certificate using letsencrypt. Please set the

# required contact email for Let’s Encrypt in LETSENCRYPT\_EMAIL

# variable.

CERTIFICATE\_TYPE=letsencrypt

# If CERTIFICATE\_TYPE=letsencrypt, you need to configure a valid email for notifications

LETSENCRYPT\_EMAIL=admin@hsmltuge.com.ng

# Proxy configuration

# If you want to change the ports on which openvidu listens, uncomment the following lines

# Allows any request to http://DOMAIN\_OR\_PUBLIC\_IP:HTTP\_PORT/ to be automatically

# redirected to https://DOMAIN\_OR\_PUBLIC\_IP:HTTPS\_PORT/.

# WARNING: the default port 80 cannot be changed during the first boot

# if you have chosen to deploy with the option CERTIFICATE\_TYPE=letsencrypt

HTTP\_PORT=80

# Changes the port of all services exposed by OpenVidu.

# SDKs, REST clients and browsers will have to connect to this port

HTTPS\_PORT=4443

# Access restrictions

# In this section you will be able to restrict the IPs from which you can access to

# Openvidu API and the Administration Panel

# WARNING! If you touch this configuration you can lose access to the platform from some IPs.

# Use it carefully

---

<div class="post-metadata">

**Author:** ![hsmltuge](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/hsmltuge/32/674_2.png) [@hsmltuge](https://openvidu.discourse.group/u/hsmltuge)\
**Post date:** [July 20, 2020, 1:26pm UTC](https://openvidu.discourse.group/t/video-transmission-not-working/1420/15 "2020-07-20T13:26:07Z")

</div>

this is what i get when i attempt to view:  
[https://zones.hsmltuge.com.ng:4443/dashboard](https://zones.hsmltuge.com.ng:4443/dashboard)

# This site can’t be reached

**zones.hsmltuge.com.ng** refused to connect.

Try:

- Checking the connection
- Checking the proxy and the firewall

ERR\_CONNECTION\_REFUSED

---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [July 20, 2020, 1:36pm UTC](https://openvidu.discourse.group/t/video-transmission-not-working/1420/16 "2020-07-20T13:36:18Z")

</div>

Can you show me, again, nginx logs? Also, what is the output of:

```auto
sudo docker ps

```

Just to check if all services are running.

You’re .env looks ok.

---

<div class="post-metadata">

**Author:** ![hsmltuge](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/hsmltuge/32/674_2.png) [@hsmltuge](https://openvidu.discourse.group/u/hsmltuge)\
**Post date:** [July 20, 2020, 1:40pm UTC](https://openvidu.discourse.group/t/video-transmission-not-working/1420/17 "2020-07-20T13:40:50Z")

</div>

> [@cruizba](#):
>
> `sudo docker ps`

#Docker ps

> CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES  
> 9a916ae541de openvidu/openvidu-proxy:3.0.0 “/bin/sh -c /usr/loc…” 12 minutes ago Up 12 minutes openvidu\_nginx\_1  
> cf2a04e4fd4b openvidu/openvidu-coturn:1.0.0 “/bin/sh -c /usr/loc…” 12 minutes ago Up 12 minutes openvidu\_coturn\_1  
> fcd53487997c openvidu/openvidu-call:2.15.0 “docker-entrypoint.s…” 12 minutes ago Up 12 minutes openvidu\_app\_1  
> 143f57724f8e openvidu/openvidu-server:2.15.0 “/bin/bash -c 'expor…” 12 minutes ago Up 12 minutes openvidu\_openvidu-server\_1  
> 3adb485b30d0 kurento/kurento-media-server:6.14.0 “/entrypoint.sh” 12 minutes ago Up 12 minutes (healthy) openvidu\_kms\_1  
> 85a64e4022f6 openvidu/openvidu-redis:1.0.0 “docker-entrypoint.s…” 12 minutes ago Up 12 minutes openvidu\_redis\_1

#nginx  
Attaching to openvidu\_nginx\_1  
nginx\_1 |  
nginx\_1 | =======================================  
nginx\_1 | = INPUT VARIABLES =  
nginx\_1 | =======================================  
nginx\_1 |  
nginx\_1 | Config NGINX:  
nginx\_1 | - Http Port: 80  
nginx\_1 | - Https Port: 4443  
nginx\_1 | - Allowed Access in Openvidu Dashboard: all  
nginx\_1 | - Allowed Access in Openvidu API: all  
nginx\_1 |  
nginx\_1 | Config Openvidu Application:  
nginx\_1 | - Domain name: zones.hsmltuge.com.ng  
nginx\_1 | - Certificated: letsencrypt  
nginx\_1 | - Letsencrypt Email: admin@hsmltuge.com.ng  
nginx\_1 | - Openvidu Application: true  
nginx\_1 | - Openvidu Application Type: CE  
nginx\_1 |  
nginx\_1 | =======================================  
nginx\_1 | = CONFIGURATION NGINX =  
nginx\_1 | =======================================  
nginx\_1 |  
nginx\_1 | Configure zones.hsmltuge.com.ng domain…  
nginx\_1 | - New configuration: letsencrypt  
nginx\_1 | - Old configuration: letsencrypt  
nginx\_1 | Saving debug log to /var/log/letsencrypt/letsencrypt.log  
nginx\_1 | Plugins selected: Authenticator webroot, Installer None  
nginx\_1 | Obtaining a new certificate  
nginx\_1 | Performing the following challenges:  
nginx\_1 | http-01 challenge for zones.hsmltuge.com.ng  
nginx\_1 | Using the webroot path /var/www/certbot for all unmatched domains.  
nginx\_1 | Waiting for verification…  
nginx\_1 | - Requesting LetsEncrypt certificate…52.15.254.228 - - [20/Jul/2020:13:25:40 +0000] “GET /.well-known/acme-challenge/T76n\_9LLlRR0Fb6cnqp7ZdrKVEN3XVmH2-wDO3opPPg HTTP/1.1” 200 87 “-” “Mozilla/5.0 (compatible; Let’s Encrypt validation server; +https://www.letsencrypt.org)” “-”  
nginx\_1 | 34.209.232.166 - - [20/Jul/2020:13:25:40 +0000] “GET /.well-known/acme-challenge/T76n\_9LLlRR0Fb6cnqp7ZdrKVEN3XVmH2-wDO3opPPg HTTP/1.1” 200 87 “-” “Mozilla/5.0 (compatible; Let’s Encrypt validation server; +https://www.letsencrypt.org)” “-”  
nginx\_1 | Challenge failed for domain zones.hsmltuge.com.ng  
nginx\_1 | http-01 challenge for zones.hsmltuge.com.ng  
nginx\_1 | Cleaning up challenges  
nginx\_1 | Some challenges have failed.  
nginx\_1 | IMPORTANT NOTES:  
nginx\_1 | - The following errors were reported by the server:  
nginx\_1 |  
nginx\_1 | Domain: zones.hsmltuge.com.ng  
nginx\_1 | Type: unauthorized  
nginx\_1 | Detail: Invalid response from  
nginx\_1 | [http://zones.hsmltuge.com.ng/.well-known/acme-challenge/T76n\_9LLlRR0Fb6cnqp7ZdrKVEN3XVmH2-wDO3opPPg](http://zones.hsmltuge.com.ng/.well-known/acme-challenge/T76n_9LLlRR0Fb6cnqp7ZdrKVEN3XVmH2-wDO3opPPg)  
nginx\_1 | [192.3.137.194]: “\n\n404 Not  
nginx\_1 | Found\n\n

# Not Found
\n\<p”  
nginx\_1 |  
nginx\_1 | To fix these errors, please make sure that your domain name was  
nginx\_1 | entered correctly and the DNS A/AAAA record(s) for that domain  
nginx\_1 | contain(s) the right IP address.  
nginx\_1 |  
nginx\_1 |  
nginx\_1 | =======================================  
nginx\_1 | = ALLOWED ACCESS =  
nginx\_1 | =======================================  
nginx\_1 |  
nginx\_1 | Adding rules…  
nginx\_1 |  
nginx\_1 | Finish Rules:  
nginx\_1 | Openvidu Dashboard:  
nginx\_1 | - allow all;  
nginx\_1 | Openvidu API:  
nginx\_1 | - allow all;  
nginx\_1 |  
nginx\_1 | =======================================  
nginx\_1 | = START OPENVIDU PROXY =  
nginx\_1 | =======================================  
nginx\_1 |  
nginx\_1 | 2020/07/20 13:25:41 [emerg] 63#63: cannot load certificate “/etc/letsencrypt/live/zones.hsmltuge.com.ng/fullchain.pem”: BIO\_new\_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(‘/etc/letsencrypt/live/zones.hsmltuge.com.ng/fullchain.pem’,‘r’) error:2006D080:BIO routines:BIO\_new\_file:no such file)  
nginx\_1 | nginx: [emerg] cannot load certificate “/etc/letsencrypt/live/zones.hsmltuge.com.ng/fullchain.pem”: BIO\_new\_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(‘/etc/letsencrypt/live/zones.hsmltuge.com.ng/fullchain.pem’,‘r’) error:2006D080:BIO routines:BIO\_new\_file:no such file)

---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [July 20, 2020, 1:45pm UTC](https://openvidu.discourse.group/t/video-transmission-not-working/1420/18 "2020-07-20T13:45:20Z")

</div>

I see in the logs that a service still running. OpenVidu Ngnix offers this url to validate letsencrypt: `http://zones.hsmltuge.com.ng/.well-known/acme-challenge/<token>`. But a server on top of ngnix responds to this requests in port 80. Is everything shutdown? All servers need to be shutdown before running Openvidu.

---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [July 20, 2020, 1:46pm UTC](https://openvidu.discourse.group/t/video-transmission-not-working/1420/19 "2020-07-20T13:46:43Z")

</div>

This error appears in this part of the log:

```auto
nginx_1 | Domain: zones.hsmltuge.com.ng
nginx_1 | Type: unauthorized
nginx_1 | Detail: Invalid response from
nginx_1 | http://zones.hsmltuge.com.ng/.well-known/acme-challenge/T76n_9LLlRR0Fb6cnqp7ZdrKVEN3XVmH2-wDO3opPPg 1
nginx_1 | [192.3.137.194]: “\n\n404 Not
nginx_1 | Found\n\n
Not Found
\n<p”

```

---

<div class="post-metadata">

**Author:** ![hsmltuge](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/hsmltuge/32/674_2.png) [@hsmltuge](https://openvidu.discourse.group/u/hsmltuge)\
**Post date:** [July 20, 2020, 1:58pm UTC](https://openvidu.discourse.group/t/video-transmission-not-working/1420/20 "2020-07-20T13:58:19Z")

</div>

> [@cruizba](#):
>
> `http://zones.hsmltuge.com.ng/.well-known`

Can you please elaborate on all servers need to be shutdown before starting openvidu server?  
I dont have anything running on my instance right now but openvidu.  
I added a DNS A Record linking my domain to the instance.  
Is there anything I need to correct?

[Next page](https://openvidu.discourse.group/t/video-transmission-not-working/1420.md?page=2)
