Please check the installation order

It’s ubuntu 20.04 version and I installed docker.
The sequence is as follows.

  1. sudo su
  2. cd /opt
  3. curl https://s3-eu-west-1.amazonaws.com/aws.openvidu.io/install_openvidu_latest.sh | bash
  4. cd openvidu
  5. nano .env
  6. My .env file Setting
    DOMAIN_OR_PUBLIC_IP=220.89.167.212
    OPENVIDU_SECRET=MY_SECRET
    CERTIFICATE_TYPE=selfsigned
    HTTP_PORT=4443
    HTTPS_PORT=4443
  7. .env file save completed.
  8. ./openvidu start
    start completed.

OpenVidu Platform is ready!


If you connect to the server address, the connection is not possible.
What’s wrong?

Why have you set HTTP and HTTPS ports to the same port number? That will bring problems, for sure.
Remove your HTTP_PORT=4443 declaration. Use only HTTPS_PORT.

I removed the HTTP_PORT=4443 entry, but it still doesn’t work.
Is there anything else you can check?

But what is the error you get in the browser?

Check the logs of other containers running, like nginx:

sudo su
cd /opt/openvidu
docker-compose logs nginx

Also check your opened ports: On premises - OpenVidu Docs

Browser error is ‘Connection denied.’

The log can be checked tomorrow.

Ok, check the log for any error tomorrow and come back.

Regards,
Carlos

Thanks for the advice.

nginx log is:
openvidu-nginx-1 |
openvidu-nginx-1 | =======================================
openvidu-nginx-1 | = INPUT VARIABLES =
openvidu-nginx-1 | =======================================
openvidu-nginx-1 |
openvidu-nginx-1 | Config NGINX:
openvidu-nginx-1 | - Http Port: 80
openvidu-nginx-1 | - Https Port: 4443
openvidu-nginx-1 | - Worker Connections: 10240
openvidu-nginx-1 | - Allowed Access in Openvidu Dashboard: all
openvidu-nginx-1 | - Allowed Access in Openvidu API: all
openvidu-nginx-1 | - Support deprecated API: true
openvidu-nginx-1 | - Redirect www to non-www: false
openvidu-nginx-1 |
openvidu-nginx-1 | Config Openvidu Application:
openvidu-nginx-1 | - Domain name: 220.89.167.212
openvidu-nginx-1 | - Certificated: selfsigned
openvidu-nginx-1 | - Letsencrypt Email: sengsun2000@naver.com
openvidu-nginx-1 | - Openvidu Application: true
openvidu-nginx-1 | - Openvidu Application Type: CE
openvidu-nginx-1 |
openvidu-nginx-1 | =======================================
openvidu-nginx-1 | = CONFIGURATION NGINX =
openvidu-nginx-1 | =======================================
openvidu-nginx-1 |
openvidu-nginx-1 | Configure 220.89.167.212 domain…
openvidu-nginx-1 | - New configuration: selfsigned 220.89.167.212
openvidu-nginx-1 | - Old configuration: selfsigned 192.168.0.30
openvidu-nginx-1 |
openvidu-nginx-1 | - Restarting configuration… Removing old certificated…
openvidu-nginx-1 | - Generating selfsigned certificate…
openvidu-nginx-1 | Generating a RSA private key
openvidu-nginx-1 | …+++++
openvidu-nginx-1 | …+++++
openvidu-nginx-1 | writing new private key to ‘/etc/letsencrypt/live/220.89.167.212/privkey.pem’
openvidu-nginx-1 | -----
openvidu-nginx-1 |
openvidu-nginx-1 |
openvidu-nginx-1 | =======================================
openvidu-nginx-1 | = ALLOWED ACCESS =
openvidu-nginx-1 | =======================================
openvidu-nginx-1 |
openvidu-nginx-1 | Adding rules…
openvidu-nginx-1 | - Public IPv4 for rules: 220.89.167.212
openvidu-nginx-1 |
openvidu-nginx-1 | Finish Rules:
openvidu-nginx-1 | Openvidu Dashboard:
openvidu-nginx-1 | - allow all;
openvidu-nginx-1 | Openvidu API:
openvidu-nginx-1 | - allow all;
openvidu-nginx-1 |
openvidu-nginx-1 | =======================================
openvidu-nginx-1 | = START OPENVIDU PROXY =
openvidu-nginx-1 | =======================================
openvidu-nginx-1 |
openvidu-nginx-1 | Restarting nginx
openvidu-nginx-1 | 2022/05/13 00:25:54 [warn] 89#89: “ssl_stapling” ignored, no OCSP responder URL in the certificate “/etc/letsencrypt/live/220.89.167.212/fullchain.pem”
openvidu-nginx-1 | nginx: [warn] “ssl_stapling” ignored, no OCSP responder URL in the certificate “/etc/letsencrypt/live/220.89.167.212/fullchain.pem”
openvidu-nginx-1 | 2022/05/13 00:25:54 [notice] 89#89: signal process started
openvidu-nginx-1 | Starting nginx…
openvidu-nginx-1 | 2022/05/13 00:26:04 [warn] 91#91: “ssl_stapling” ignored, no OCSP responder URL in the certificate “/etc/letsencrypt/live/220.89.167.212/fullchain.pem”
openvidu-nginx-1 | nginx: [warn] “ssl_stapling” ignored, no OCSP responder URL in the certificate “/etc/letsencrypt/live/220.89.167.212/fullchain.pem”

Problems with the log?

Looks ok.

Can you do a docker ps?

Did you check all your ports are reachable?