Video transmission not working

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

  2. sender side (android)

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/
SECRET: MY_SECRET

Regards,
Carlos

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.

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

  1. AWS
  2. On Premises

@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.

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

1 Like

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=[]

Where do you get ERR_CONNECTION_REJECTED ?

Have you opened 80 and 443 ports in the server?

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.

Where do you get ERR_CONNECTION_REJECTED ?
I get the error on my browser.
Thank you.

Please specify the URL you are trying to connect.

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

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)

@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.
1 Like

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/

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

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

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

This site can’t be reached

zones.hsmltuge.com.ng refused to connect.

Try:

ERR_CONNECTION_REFUSED

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

sudo docker ps

Just to check if all services are running.

You’re .env looks ok.

#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
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)

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.

This error appears in this part of the log:

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”

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?