Upgrade version from 2.17.0 to 2.20.0 or 2.18.0

Hello!
Try upgrade openvidu version from 2.17
Self server with docker deploy.

2.20 version couldn’t work. In openvidu/dashboard error on “check connection”:
Also i tryed install ovidu 2.18 with equal result:
Server eventslock_outline

* KMS event [IceComponentStateChange]: -> endpoint: str_CAM_FEwl_con_E0MUdfJMTz (publisher) | state: CONNECTING | componentId: 1 | streamId: 1 | timestamp: 1636455750197
* KMS event [IceComponentStateChange]: -> endpoint: str_CAM_FEwl_con_E0MUdfJMTz (publisher) | state: GATHERING | componentId: 1 | streamId: 1 | timestamp: 1636455750196
* KMS event [IceComponentStateChange]: -> endpoint: str_CAM_FEwl_con_E0MUdfJMTz (publisher) | state: GATHERING | componentId: 2 | streamId: 1 | timestamp: 1636455750212
* KMS event [IceGatheringDone] -> endpoint: str_CAM_FEwl_con_E0MUdfJMTz (publisher) | timestamp: 1636455752238
* KMS event [IceComponentStateChange]: -> endpoint: str_CAM_FEwl_con_E0MUdfJMTz (publisher) | state: FAILED | componentId: 1 | streamId: 1 | timestamp: 1636455757580

all works in ovidu 2.17
on dashboard test log:


Server eventslock_outline

* KMS event [IceComponentStateChange]: -> endpoint: str_CAM_BGbf_con_Zd352G78Ok (publisher) | state: GATHERING | componentId: 1 | streamId: 1 | timestamp: 1636454864423
* KMS event [IceComponentStateChange]: -> endpoint: str_CAM_BGbf_con_Zd352G78Ok (publisher) | state: GATHERING | componentId: 2 | streamId: 1 | timestamp: 1636454864434
* KMS event [IceComponentStateChange]: -> endpoint: str_CAM_BGbf_con_Zd352G78Ok (publisher) | state: CONNECTING | componentId: 1 | streamId: 1 | timestamp: 1636454864424
* KMS event [IceComponentStateChange]: -> endpoint: str_CAM_BGbf_con_Zd352G78Ok (publisher) | state: CONNECTED | componentId: 1 | streamId: 1 | timestamp: 1636454864647
* KMS event [NewCandidatePairSelected]: -> endpoint: str_CAM_BGbf_con_Zd352G78Ok (publisher) | local: candidate:1 1 UDP 2015363327 10.0.2.2 40040 typ host | remote: candidate:2943310109 1 UDP 25108223 10.0.2.2 60421 typ relay raddr 195.239.239.83 rport 52331 | timestamp: 1636454864647
* KMS event [ConnectionStateChanged]: -> endpoint: str_CAM_BGbf_con_Zd352G78Ok (publisher) | oldState: DISCONNECTED | newState: CONNECTED | timestamp: 1636454865451
* KMS event [MediaTranscodingStateChange]: -> endpoint: str_CAM_BGbf_con_Zd352G78Ok (publisher) | state: NOT_TRANSCODING | mediaType: AUDIO | binName: kmswebrtcendpoint0_kmsagnosticbin2-2 | timestamp: 1636454865477
* KMS event [MediaFlowInStateChange] -> endpoint: str_CAM_BGbf_con_Zd352G78Ok (publisher) | state: FLOWING | pad: default | mediaType: AUDIO | timestamp: 1636454865487
* KMS event [MediaFlowOutStateChange] -> endpoint: str_CAM_BGbf_con_Zd352G78Ok (publisher) | state: FLOWING | pad: default | mediaType: AUDIO | timestamp: 1636454865477
* KMS event [MediaFlowOutStateChange] -> endpoint: str_CAM_BGbf_con_Zd352G78Ok (publisher) | state: FLOWING | pad: default | mediaType: VIDEO | timestamp: 1636454865562
* KMS event [MediaTranscodingStateChange]: -> endpoint: str_CAM_BGbf_con_Zd352G78Ok (publisher) | state: NOT_TRANSCODING | mediaType: VIDEO | binName: kmswebrtcendpoint0_kmsagnosticbin2-3 | timestamp: 1636454865565
* KMS event [MediaFlowInStateChange] -> endpoint: str_CAM_BGbf_con_Zd352G78Ok (publisher) | state: FLOWING | pad: default | mediaType: VIDEO | timestamp: 1636454865584
* KMS event [MediaStateChangedEvent]: -> endpoint: str_CAM_BGbf_con_Zd352G78Ok (publisher) | oldState: DISCONNECTED | newState: CONNECTED | timestamp: 1636454865943
* KMS event [IceGatheringDone] -> endpoint: str_CAM_BGbf_con_Zd352G78Ok (publisher) | timestamp: 1636454866446
* KMS event [IceComponentStateChange]: -> endpoint: str_CAM_BGbf_con_Zd352G78Ok (publisher) | state: READY | componentId: 1 | streamId: 1 | timestamp: 1636454866520

That may was happend?

Thanks for answers.

How did you update/deploy OpenVidu?

Can you show the output of:

sudo su
cd /opt/openvidu
./openvidu version

on currently running work version 2.17 output is:

./openvidu version
./openvidu: строка 23: lsb_release: команда не найдена

Openvidu Information:

  Installation Type: On Premises
  Openvidu Version: 2.17.0
  Openvidu Call Version: 2.17.0

System Information:

  Linux Version:
    - 
  Docker Version: 19.03.12
  Docker Compose Version: 1.26.2

Installation Information:

  Installation Folder: /opt/openvidu
  Installation Folder Tree:

         |-custom-layout
         |-cdr
         |-.env
         |-kms-crashes
         |-certificates
         | |-live
         | | |-certificates.conf
         | | |-localhost
         | | | |-privkey.pem
         | | | |-fullchain.pem
         |-owncert
         |-kurento-logs
         | |-2021-11-03T192314.00000.pid1.log
         | |-2021-11-03T192421.00001.pid1.log
         | |-2021-11-04T000022.00002.pid1.log
         | |-2021-11-05T000024.00003.pid1.log
         | |-2021-11-06T000026.00004.pid1.log
         | |-2021-11-07T000028.00005.pid1.log
         | |-2021-11-08T000028.00006.pid1.log
         | |-2021-11-09T000028.00007.pid1.log
         | |-2021-11-09T082312.00008.pid1.log
         | |-2021-11-09T104658.00009.pid1.log
         | |-2021-11-09T110105.00010.pid1.log
         | |-2021-11-09T111416.00011.pid1.log
         | |-2021-11-09T115920.00012.pid1.log
         |-recordings
         |-.old-2.17.0
         | |-docker-compose.yml
         | |-docker-compose.override.yml
         | |-openvidu
         | |-.env
         | |-custom-nginx-vhosts
         |-.env-v2.18.0
         |-.old-2.18.0
         | |-docker-compose.yml
         | |-docker-compose.override.yml
         | |-openvidu
         | |-.env
         |-.env-v2.19.0
         |-.old-2.19.0
         | |-docker-compose.yml
         | |-docker-compose.override.yml
         | |-openvidu
         | |-.env
         |-docker-compose.yml
         |-docker-compose.override.yml
         |-openvidu
         |-.env-2.17.0
         |-custom-nginx-vhosts
         |-.old-2.20.0
         | |-.env
         | |-docker-compose.override.yml
         | |-docker-compose.yml
         | |-openvidu

Docker Running Services:

  CONTAINER ID        IMAGE                                 COMMAND                  CREATED             STATUS                             PORTS               NAMES
        228ca330afdc        openvidu/openvidu-proxy:5.0.0         "/docker-entrypoint.…"   22 seconds ago      Up 21 seconds                                          openvidu_nginx_1
        6c505b5bba0b        openvidu/openvidu-call:2.17.0         "docker-entrypoint.s…"   22 seconds ago      Up 21 seconds                                          openvidu_app_1
        97f06e6e292f        openvidu/openvidu-redis:2.0.0         "docker-entrypoint.s…"   22 seconds ago      Up 21 seconds                                          openvidu_redis_1
        ec10ad23d90d        openvidu/openvidu-server:2.17.0       "/usr/local/bin/entr…"   22 seconds ago      Up 21 seconds                                          openvidu_openvidu-server_1
        8525737e6ce4        openvidu/openvidu-coturn:3.0.0        "/usr/local/bin/entr…"   22 seconds ago      Up 21 seconds                                          openvidu_coturn_1
        6af05da2017f        kurento/kurento-media-server:6.16.0   "/entrypoint.sh"         22 seconds ago      Up 21 seconds (health: starting)                       openvidu_kms_1

on Not working openvidu 2.18 output is:

./openvidu version
./openvidu: строка 23: lsb_release: команда не найдена

Openvidu Information:

  Installation Type: On Premises
  Openvidu Version: 2.18.0
  Openvidu Call Version: 2.18.0

System Information:

  Linux Version:
    - 
  Docker Version: 19.03.12
  Docker Compose Version: 1.26.2

Installation Information:

  Installation Folder: /opt/openvidu
  Installation Folder Tree:

         |-custom-layout
         |-cdr
         |-.env
         |-kms-crashes
         |-certificates
         | |-live
         | | |-certificates.conf
         | | |-localhost
         | | | |-privkey.pem
         | | | |-fullchain.pem
         |-owncert
         |-kurento-logs
         | |-2021-11-03T192314.00000.pid1.log
         | |-2021-11-03T192421.00001.pid1.log
         | |-2021-11-04T000022.00002.pid1.log
         | |-2021-11-05T000024.00003.pid1.log
         | |-2021-11-06T000026.00004.pid1.log
         | |-2021-11-07T000028.00005.pid1.log
         | |-2021-11-08T000028.00006.pid1.log
         | |-2021-11-09T000028.00007.pid1.log
         | |-2021-11-09T082312.00008.pid1.log
         | |-2021-11-09T104658.00009.pid1.log
         | |-2021-11-09T110105.00010.pid1.log
         | |-2021-11-09T111416.00011.pid1.log
         | |-2021-11-09T115920.00012.pid1.log
         | |-2021-11-09T120159.00013.pid1.log
         |-recordings
         |-.old-2.17.0
         | |-docker-compose.yml
         | |-docker-compose.override.yml
         | |-openvidu
         | |-.env
         | |-custom-nginx-vhosts
         |-.env-v2.18.0
         |-.old-2.18.0
         | |-docker-compose.yml
         | |-docker-compose.override.yml
         | |-openvidu
         | |-.env
         |-.env-v2.19.0
         |-.old-2.19.0
         | |-docker-compose.yml
         | |-docker-compose.override.yml
         | |-openvidu
         | |-.env
         |-docker-compose.yml
         |-docker-compose.override.yml
         |-openvidu
         |-.env-2.17.0
         |-custom-nginx-vhosts
         |-.old-2.20.0
         | |-.env
         | |-docker-compose.override.yml
         | |-docker-compose.yml
         | |-openvidu

Docker Running Services:

  CONTAINER ID        IMAGE                                 COMMAND                  CREATED             STATUS                    PORTS               NAMES
        cf0625ff9506        openvidu/openvidu-proxy:6.0.0         "/docker-entrypoint.…"   46 seconds ago      Up 45 seconds                                 openvidu_nginx_1
        bfaa78d177f1        openvidu/openvidu-coturn:4.0.0        "docker-entrypoint.s…"   46 seconds ago      Up 45 seconds                                 openvidu_coturn_1
        eb6c825b347d        openvidu/openvidu-server:2.18.0       "/usr/local/bin/entr…"   46 seconds ago      Up 45 seconds                                 openvidu_openvidu-server_1
        0fe7c802a4a3        kurento/kurento-media-server:6.16.0   "/entrypoint.sh"         46 seconds ago      Up 45 seconds (healthy)                       openvidu_kms_1
        a1feb0180a9a        openvidu/openvidu-redis:3.0.0         "docker-entrypoint.s…"   46 seconds ago      Up 45 seconds                                 openvidu_redis_1
        4e78e10afa09        openvidu/openvidu-call:2.18.0         "docker-entrypoint.s…"   46 seconds ago      Up 45 seconds                                 openvidu_app_1

Have you checked if recommended ports for 2.20 are opened?

It is possible that some port ranges have changed from one version to another.

Best regards

I look in pflog nothing is blocked there.
All ports that are recommended to be opened on this page are open. (On premises - OpenVidu Docs


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.
40,000 - 57,000 TCP + UDP: used by Kurento Media Server to establish media connections.
57001 - 65535 TCP + UDP: used by TURN server to establish relayed media connections.

sorry i miss question :slight_smile:

curl https://s3-eu-west-1.amazonaws.com/aws.openvidu.io/install_openvidu_2.20.0.sh | bash -s upgrade

I think something is missing in your configuration:

Can you execute this command to your stack? If you have a computer with docker installed, just execute this command:

docker run --rm --shm-size 2g \
    -e OV_URL=<YOUR_OPENVIDU_URL> \
    -e OV_SECRET=<YOUR_OV_SECRET> \
    openvidu/openvidu-health-checker

For example with our demos infrastructure, the test would look like this:

docker run --rm --shm-size 2g \
    -e OV_URL=https://demos.openvidu.io \
    -e OV_SECRET=MY_SECRET \
    openvidu/openvidu-health-checker

This will basically test with browsers the stack and returns information about the candidates. As this information can have public IPs, send me the output via PM.


As aditional information, could you send me the content of these files?:

  • /opt/openvidu/.env
  • /opt/openvidu/docker-compose.yml

Regards

ok, thank you. I send you additional debug info, but sorry :slight_smile: how i can send private message?

in test i don’t see private info. Only virtual machine ip:
Output from work 2.17 version:

Waiting xvfb...
Running tests... Please wait...


====== WebDriver manager ======
Current google-chrome version is 95.0.4638
Get LATEST chromedriver version for 95.0.4638 google-chrome
There is no [linux64] chromedriver for browser  in cache
Trying to download new driver from https://chromedriver.storage.googleapis.com/95.0.4638.69/chromedriver_linux64.zip
Driver has been saved in cache [/root/.wdm/drivers/chromedriver/linux64/95.0.4638.69]
E

====== WebDriver manager ======
Current firefox version is 94.0
Get LATEST geckodriver version for 94.0 firefox
Getting latest mozilla release info for v0.30.0
Trying to download new driver from https://github.com/mozilla/geckodriver/releases/download/v0.30.0/geckodriver-v0.30.0-linux64.tar.gz
Driver has been saved in cache [/root/.wdm/drivers/geckodriver/linux64/v0.30.0]
E

====== WebDriver manager ======
Current firefox version is 94.0
Get LATEST geckodriver version for 94.0 firefox
Driver [/root/.wdm/drivers/geckodriver/linux64/v0.30.0/geckodriver] found in cache
EExecuting test... Please wait...


======================================================================
|
|
|   Testing OpenVidu CE with chrome and force relay: False
|
|
======================================================================
Executing test... Please wait...


======================================================================
|
|
|   Testing OpenVidu CE with firefox and force relay: True
|
|
======================================================================
Running firefox with Turn:  True
Waiting for candidates to be checked...
Executing test... Please wait...


======================================================================
|
|
|   Testing OpenVidu CE with firefox and force relay: False
|
|
======================================================================
Running firefox with Turn:  False
Waiting for candidates to be checked...
+-----------+-----------+----------+------------------------------------------+--------------------------+--------------+---------------------+-------------+-----------------+
| ICE State | Nominated | Selected |             Local Candidate              |     Remote Candidate     | Component ID |       Priority      | Bytes sent: | Bytes received: |
+-----------+-----------+----------+------------------------------------------+--------------------------+--------------+---------------------+-------------+-----------------+
|   failed  |   false   |  false   | 172.17.0.2:50690/udp(host) [non-proxied] | 10.0.2.2:54942/udp(host) |      1       | 8655919583267258000 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:50690/udp(host) [non-proxied] | 10.0.2.2:54942/udp(host) |      1       | 8655919583267258000 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:50690/udp(host) [non-proxied] | 10.0.2.2:54942/udp(host) |      1       | 8655919583267258000 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:50690/udp(host) [non-proxied] | 10.0.2.2:54942/udp(host) |      1       | 8655919583267258000 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:50690/udp(host) [non-proxied] | 10.0.2.2:54942/udp(host) |      1       | 8655919583267258000 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:50690/udp(host) [non-proxied] | 10.0.2.2:54942/udp(host) |      1       | 8655919583267258000 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:63015/tcp(host) [non-proxied] | 10.0.2.2:52664/tcp(host) |      1       | 4341471140212867600 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:63015/tcp(host) [non-proxied] | 10.0.2.2:52664/tcp(host) |      1       | 4341471140212867600 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:63015/tcp(host) [non-proxied] | 10.0.2.2:52664/tcp(host) |      1       | 4341471140212867600 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:63015/tcp(host) [non-proxied] | 10.0.2.2:52664/tcp(host) |      1       | 4341471140212867600 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:63015/tcp(host) [non-proxied] | 10.0.2.2:52664/tcp(host) |      1       | 4341471140212867600 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:63015/tcp(host) [non-proxied] | 10.0.2.2:52664/tcp(host) |      1       | 4341471140212867600 |      0      |        0        |
+-----------+-----------+----------+------------------------------------------+--------------------------+--------------+---------------------+-------------+-----------------+

======================================================================
ERROR: test_chrome_no_relay (__main__.InfraSmokeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "openvidu_health_check.py", line 31, in test_chrome_no_relay
    self.inspector_check(browser="chrome")
  File "openvidu_health_check.py", line 96, in inspector_check
    raise Exception('Error. No video detected')
Exception: Error. No video detected

======================================================================
ERROR: test_firefox_force_relay (__main__.InfraSmokeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "openvidu_health_check.py", line 37, in test_firefox_force_relay
    self.inspector_check(browser="firefox", turn=True)
  File "openvidu_health_check.py", line 96, in inspector_check
    raise Exception('Error. No video detected')
Exception: Error. No video detected

======================================================================
ERROR: test_firefox_no_relay (__main__.InfraSmokeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "openvidu_health_check.py", line 34, in test_firefox_no_relay
    self.inspector_check(browser="firefox")
  File "openvidu_health_check.py", line 96, in inspector_check
    raise Exception('Error. No video detected')
Exception: Error. No video detected

----------------------------------------------------------------------
Ran 3 tests in 108.093s

FAILED (errors=3)

Output from not work 2.20:

Waiting xvfb...
Running tests... Please wait...


====== WebDriver manager ======
Current google-chrome version is 95.0.4638
Get LATEST chromedriver version for 95.0.4638 google-chrome
There is no [linux64] chromedriver for browser  in cache
Trying to download new driver from https://chromedriver.storage.googleapis.com/95.0.4638.69/chromedriver_linux64.zip
Driver has been saved in cache [/root/.wdm/drivers/chromedriver/linux64/95.0.4638.69]
E

====== WebDriver manager ======
Current firefox version is 94.0
Get LATEST geckodriver version for 94.0 firefox
Getting latest mozilla release info for v0.30.0
Trying to download new driver from https://github.com/mozilla/geckodriver/releases/download/v0.30.0/geckodriver-v0.30.0-linux64.tar.gz
Driver has been saved in cache [/root/.wdm/drivers/geckodriver/linux64/v0.30.0]
E

====== WebDriver manager ======
Current firefox version is 94.0
Get LATEST geckodriver version for 94.0 firefox
Driver [/root/.wdm/drivers/geckodriver/linux64/v0.30.0/geckodriver] found in cache
E
======================================================================
ERROR: test_chrome_no_relay (__main__.InfraSmokeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "openvidu_health_check.py", line 31, in test_chrome_no_relay
    self.inspector_check(browser="chrome")
  File "openvidu_health_check.py", line 96, in inspector_check
    raise Exception('Error. No video detected')
Exception: Error. No video detected

======================================================================
ERROR: test_firefox_force_relay (__main__.InfraSmokeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "openvidu_health_check.py", line 37, in test_firefox_force_relay
    self.inspector_check(browser="firefox", turn=True)
  File "openvidu_health_check.py", line 96, in inspector_check
    raise Exception('Error. No video detected')
Exception: Error. No video detected

======================================================================
ERROR: test_firefox_no_relay (__main__.InfraSmokeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "openvidu_health_check.py", line 34, in test_firefox_no_relay
    self.inspector_check(browser="firefox")
  File "openvidu_health_check.py", line 96, in inspector_check
    raise Exception('Error. No video detected')
Exception: Error. No video detected

----------------------------------------------------------------------
Ran 3 tests in 93.921s

FAILED (errors=3)
Executing test... Please wait...


======================================================================
|
|
|   Testing OpenVidu CE with chrome and force relay: False
|
|
======================================================================
Executing test... Please wait...


======================================================================
|
|
|   Testing OpenVidu CE with firefox and force relay: True
|
|
======================================================================
Running firefox with Turn:  True
Waiting for candidates to be checked...
+-----------+-----------+----------+-----------------+------------------+--------------+----------+-------------+-----------------+
| ICE State | Nominated | Selected | Local Candidate | Remote Candidate | Component ID | Priority | Bytes sent: | Bytes received: |
+-----------+-----------+----------+-----------------+------------------+--------------+----------+-------------+-----------------+
+-----------+-----------+----------+-----------------+------------------+--------------+----------+-------------+-----------------+
Executing test... Please wait...


======================================================================
|
|
|   Testing OpenVidu CE with firefox and force relay: False
|
|
======================================================================
Running firefox with Turn:  False
Waiting for candidates to be checked...
+-----------+-----------+----------+------------------------------------------+--------------------------+--------------+---------------------+-------------+-----------------+
| ICE State | Nominated | Selected |             Local Candidate              |     Remote Candidate     | Component ID |       Priority      | Bytes sent: | Bytes received: |
+-----------+-----------+----------+------------------------------------------+--------------------------+--------------+---------------------+-------------+-----------------+
|   failed  |   false   |  false   | 172.17.0.2:37241/udp(host) [non-proxied] | 10.0.2.2:56581/udp(host) |      1       | 8655919583267258000 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:37241/udp(host) [non-proxied] | 10.0.2.2:56581/udp(host) |      1       | 8655919583267258000 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:37241/udp(host) [non-proxied] | 10.0.2.2:56581/udp(host) |      1       | 8655919583267258000 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:37241/udp(host) [non-proxied] | 10.0.2.2:56581/udp(host) |      1       | 8655919583267258000 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:37241/udp(host) [non-proxied] | 10.0.2.2:56581/udp(host) |      1       | 8655919583267258000 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:37241/udp(host) [non-proxied] | 10.0.2.2:56581/udp(host) |      1       | 8655919583267258000 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:58596/tcp(host) [non-proxied] | 10.0.2.2:41689/tcp(host) |      1       | 4341471140212867600 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:58596/tcp(host) [non-proxied] | 10.0.2.2:41689/tcp(host) |      1       | 4341471140212867600 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:58596/tcp(host) [non-proxied] | 10.0.2.2:41689/tcp(host) |      1       | 4341471140212867600 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:58596/tcp(host) [non-proxied] | 10.0.2.2:41689/tcp(host) |      1       | 4341471140212867600 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:58596/tcp(host) [non-proxied] | 10.0.2.2:41689/tcp(host) |      1       | 4341471140212867600 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:58596/tcp(host) [non-proxied] | 10.0.2.2:41689/tcp(host) |      1       | 4341471140212867600 |      0      |        0        |
+-----------+-----------+----------+------------------------------------------+--------------------------+--------------+---------------------+-------------+-----------------+

And /dashboard/ info (how test proccesssed)

Server events

lock_outline
KMS event [IceComponentStateChange]: -> endpoint: str_CAM_TsSN_con_MMqihQpKHQ (publisher) | state: GATHERING | componentId: 1 | streamId: 1 | timestamp: 1636608502018

KMS event [IceComponentStateChange]: -> endpoint: str_CAM_TsSN_con_MMqihQpKHQ (publisher) | state: GATHERING | componentId: 2 | streamId: 1 | timestamp: 1636608502031

KMS event [IceGatheringDone] -> endpoint: str_CAM_TsSN_con_MMqihQpKHQ (publisher) | timestamp: 1636608504057

KMS event [IceComponentStateChange]: -> endpoint: str_CAM_DaDq_con_EqBy1MUD6K (publisher) | state: GATHERING | componentId: 1 | streamId: 1 | timestamp: 1636608538646

KMS event [IceComponentStateChange]: -> endpoint: str_CAM_DaDq_con_EqBy1MUD6K (publisher) | state: CONNECTING | componentId: 2 | streamId: 1 | timestamp: 1636608538655

KMS event [IceComponentStateChange]: -> endpoint: str_CAM_DaDq_con_EqBy1MUD6K (publisher) | state: CONNECTING | componentId: 1 | streamId: 1 | timestamp: 1636608538652

KMS event [IceGatheringDone] -> endpoint: str_CAM_DaDq_con_EqBy1MUD6K (publisher) | timestamp: 1636608540691

KMS event [IceComponentStateChange]: -> endpoint: str_CAM_DaDq_con_EqBy1MUD6K (publisher) | state: FAILED | componentId: 1 | streamId: 1 | timestamp: 1636608546045

KMS event [IceComponentStateChange]: -> endpoint: str_CAM_DaDq_con_EqBy1MUD6K (publisher) | state: FAILED | componentId: 2 | streamId: 1 | timestamp: 1636608546046

.env - 2.20
cat .env | grep -ve “^#”

DOMAIN_OR_PUBLIC_IP=xxxx
OPENVIDU_SECRET=yyyy
CERTIFICATE_TYPE=selfsigned
LETSENCRYPT_EMAIL=xxx@xxx
OPENVIDU_RECORDING=false
OPENVIDU_RECORDING_DEBUG=false
OPENVIDU_RECORDING_PATH=/opt/openvidu/recordings
OPENVIDU_RECORDING_CUSTOM_LAYOUT=/opt/openvidu/custom-layout
OPENVIDU_RECORDING_PUBLIC_ACCESS=false
OPENVIDU_RECORDING_NOTIFICATION=publisher_moderator
OPENVIDU_RECORDING_AUTOSTOP_TIMEOUT=120
OPENVIDU_STREAMS_VIDEO_MAX_RECV_BANDWIDTH=1000
OPENVIDU_STREAMS_VIDEO_MIN_RECV_BANDWIDTH=300
OPENVIDU_STREAMS_VIDEO_MAX_SEND_BANDWIDTH=1000
OPENVIDU_STREAMS_VIDEO_MIN_SEND_BANDWIDTH=300
OPENVIDU_WEBHOOK=false
OPENVIDU_WEBHOOK_EVENTS=[sessionCreated,sessionDestroyed,participantJoined,participantLeft,webrtcConnectionCreated,webrtcConnectionDestroyed,recordingStatusChanged,filterEventDispatched,mediaNodeStatusChanged,nodeCrashed]
OPENVIDU_SESSIONS_GARBAGE_INTERVAL=900
OPENVIDU_SESSIONS_GARBAGE_THRESHOLD=3600
OPENVIDU_CDR=false
OPENVIDU_CDR_PATH=/opt/openvidu/cdr

docker-compose.xml - 2.20

version: '3.1'

services:

    openvidu-server:
        image: openvidu/openvidu-server:2.20.0
        restart: on-failure
        network_mode: host
        entrypoint: ['/usr/local/bin/entrypoint.sh']
        volumes:
            - /var/run/docker.sock:/var/run/docker.sock
            - ${OPENVIDU_RECORDING_PATH}:${OPENVIDU_RECORDING_PATH}
            - ${OPENVIDU_RECORDING_CUSTOM_LAYOUT}:${OPENVIDU_RECORDING_CUSTOM_LAYOUT}
            - ${OPENVIDU_CDR_PATH}:${OPENVIDU_CDR_PATH}
        env_file:
            - .env
        environment:
            - SERVER_SSL_ENABLED=false
            - SERVER_PORT=5443
            - KMS_URIS=["ws://localhost:8888/kurento"]
            - COTURN_REDIS_IP=127.0.0.1
            - COTURN_REDIS_PASSWORD=${OPENVIDU_SECRET}
            - COTURN_IP=${COTURN_IP:-auto-ipv4}
        logging:
            options:
                max-size: "${DOCKER_LOGS_MAX_SIZE:-100M}"

    kms:
        image: ${KMS_IMAGE:-kurento/kurento-media-server:6.16.0}
        restart: always
        network_mode: host
        ulimits:
          core: -1
        volumes:
            - /opt/openvidu/kms-crashes:/opt/openvidu/kms-crashes
            - ${OPENVIDU_RECORDING_PATH}:${OPENVIDU_RECORDING_PATH}
            - /opt/openvidu/kurento-logs:/opt/openvidu/kurento-logs
        environment:
            - KMS_MIN_PORT=40000
            - KMS_MAX_PORT=57000
            - GST_DEBUG=${KMS_DOCKER_ENV_GST_DEBUG:-}
            - KURENTO_LOG_FILE_SIZE=${KMS_DOCKER_ENV_KURENTO_LOG_FILE_SIZE:-100}
            - KURENTO_LOGS_PATH=/opt/openvidu/kurento-logs
        logging:
            options:
                max-size: "${DOCKER_LOGS_MAX_SIZE:-100M}"

    redis:
        image: openvidu/openvidu-redis:3.0.0
        restart: always
        network_mode: host
        environment:
            - REDIS_PASSWORD=${OPENVIDU_SECRET}
        logging:
            options:
                max-size: "${DOCKER_LOGS_MAX_SIZE:-100M}"

    coturn:
        image: openvidu/openvidu-coturn:5.0.0
        restart: on-failure
        network_mode: host
        environment:
            - REDIS_IP=127.0.0.1
            - DB_NAME=0
            - DB_PASSWORD=${OPENVIDU_SECRET}
        command:
            - --log-file=stdout
            - --listening-port=3478
            - --fingerprint
            - --lt-cred-mech
            - --min-port=57001
            - --max-port=65535
            - --realm=openvidu
            - --verbose
        logging:
            options:
                max-size: "${DOCKER_LOGS_MAX_SIZE:-100M}"

    nginx:
        image: openvidu/openvidu-proxy:7.0.0
        restart: on-failure
        network_mode: host
        volumes:
            - ./certificates:/etc/letsencrypt
            - ./owncert:/owncert
            - ./custom-nginx-vhosts:/etc/nginx/vhost.d/
            - ${OPENVIDU_RECORDING_CUSTOM_LAYOUT}:/opt/openvidu/custom-layout
        environment:
            - DOMAIN_OR_PUBLIC_IP=${DOMAIN_OR_PUBLIC_IP}
            - CERTIFICATE_TYPE=${CERTIFICATE_TYPE}
            - LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}
            - PROXY_HTTP_PORT=${HTTP_PORT:-}
            - PROXY_HTTPS_PORT=${HTTPS_PORT:-}
            - PROXY_HTTPS_PROTOCOLS=${HTTPS_PROTOCOLS:-}
            - PROXY_HTTPS_CIPHERS=${HTTPS_CIPHERS:-}
            - PROXY_HTTPS_HSTS=${HTTPS_HSTS:-}
            - ALLOWED_ACCESS_TO_DASHBOARD=${ALLOWED_ACCESS_TO_DASHBOARD:-}
            - ALLOWED_ACCESS_TO_RESTAPI=${ALLOWED_ACCESS_TO_RESTAPI:-}
            - PROXY_MODE=CE
            - WITH_APP=true
            - SUPPORT_DEPRECATED_API=${SUPPORT_DEPRECATED_API:-true}
            - REDIRECT_WWW=${REDIRECT_WWW:-false}
            - WORKER_CONNECTIONS=${WORKER_CONNECTIONS:-10240}
            - PUBLIC_IP=${PROXY_PUBLIC_IP:-auto-ipv4}
        logging:
            options:
                max-size: "${DOCKER_LOGS_MAX_SIZE:-100M}"

Need info by 2.17 worked version?

Hi I don’t need that you send me a PM

Well from the output I can see that neither Kurento nor the browser can reach the Coturn the deployment.

In fact, when forcing TURN I can only see host candidates from both, browser and server:

+-----------+-----------+----------+------------------------------------------+--------------------------+--------------+---------------------+-------------+-------------------+
| ICE State | Nominated | Selected |             Local Candidate              |     Remote Candidate     | Component ID |       Priority      | Bytes sent: | Bytes received:   |
+-----------+-----------+----------+------------------------------------------+--------------------------+--------------+---------------------+-------------+-------------------+
|   failed  |   false   |  false   | xxx.xx.x.x:37241/udp(host) [non-proxied] | xxx.xx.x.x:56581/udp(host) |      1       | 8655919583267258000 |      0      |        0        |
|   failed  |   false   |  false   | xxx.xx.x.x:37241/udp(host) [non-proxied] | xxx.xx.x.x:56581/udp(host) |      1       | 8655919583267258000 |      0      |        0        |
|   failed  |   false   |  false   | xxx.xx.x.x:37241/udp(host) [non-proxied] | xxx.xx.x.x:56581/udp(host) |      1       | 8655919583267258000 |      0      |        0        |
|   failed  |   false   |  false   | xxx.xx.x.x:37241/udp(host) [non-proxied] | xxx.xx.x.x:56581/udp(host) |      1       | 8655919583267258000 |      0      |        0        |
|   failed  |   false   |  false   | xxx.xx.x.x:37241/udp(host) [non-proxied] | xxx.xx.x.x:56581/udp(host) |      1       | 8655919583267258000 |      0      |        0        |
|   failed  |   false   |  false   | xxx.xx.x.x:37241/udp(host) [non-proxied] | xxx.xx.x.x:56581/udp(host) |      1       | 8655919583267258000 |      0      |        0        |
|   failed  |   false   |  false   | xxx.xx.x.x:58596/tcp(host) [non-proxied] | xxx.xx.x.x:41689/tcp(host) |      1       | 4341471140212867600 |      0      |        0        |
|   failed  |   false   |  false   | xxx.xx.x.x:58596/tcp(host) [non-proxied] | xxx.xx.x.x:41689/tcp(host) |      1       | 4341471140212867600 |      0      |        0        |
|   failed  |   false   |  false   | xxx.xx.x.x:58596/tcp(host) [non-proxied] | xxx.xx.x.x:41689/tcp(host) |      1       | 4341471140212867600 |      0      |        0        |
|   failed  |   false   |  false   | xxx.xx.x.x:58596/tcp(host) [non-proxied] | xxx.xx.x.x:41689/tcp(host) |      1       | 4341471140212867600 |      0      |        0        |
|   failed  |   false   |  false   | xxx.xx.x.x:58596/tcp(host) [non-proxied] | xxx.xx.x.x:41689/tcp(host) |      1       | 4341471140212867600 |      0      |        0        |
|   failed  |   false   |  false   | xxx.xx.x.x:58596/tcp(host) [non-proxied] | xxx.xx.x.x:41689/tcp(host) |      1       | 4341471140212867600 |      0      |        0        |
+-----------+-----------+----------+------------------------------------------+--------------------------+--------------+---------------------+-------------+-------------------+

I’m pretty sure that the public IP is not correctly detected by the deployment for some reason.

Try to do these:

  1. Modify your .env and add this variable:
COTURN_IP=<YOUR_PUBLIC_IP>
  1. Restart OpenVidu:

I think that our DNS approach we have for autodiscover public IP fails in some kind of networks for some reason or return a different Public IP. Do you have some kind of internal DNS?

If my suggestion does not work, please can you send me your browser logs when going into the /dashboard url and Test connection?

Regards

Yes i use local net dns on this VM.

I set COTURN_IP and see correct IP in logs openvidu server:

openvidu-server_1  | [INFO] 2021-11-12 04:48:24,313 [main] io.openvidu.server.coturn.CoturnCredentialsService - COTURN IP: xx.yy.zz.qq (my correct public ip)
openvidu-server_1  | [INFO] 2021-11-12 04:48:24,314 [main] io.openvidu.server.coturn.CoturnCredentialsService - COTURN Redis DB accessible with string "ip=127.0.0.1 dbname=0 password=tgoezp51Sv31ug2hc52u7Aookhbe0x8L connect_timeout=30"
openvidu-server_1  | [INFO] 2021-11-12 04:48:24,314 [main] io.openvidu.server.coturn.CoturnCredentialsService - Cleaning COTURN DB...
openvidu-server_1  | [INFO] 2021-11-12 04:48:24,315 [main] io.openvidu.server.coturn.CoturnCredentialsService - Path of COTURN log files: /var/log/
openvidu-server_1  | [INFO] 2021-11-12 04:48:24,333 [main] io.openvidu.server.coturn.CoturnCredentialsService - COTURN DB is now empty
openvidu-server_1  | [INFO] 2021-11-12 04:48:24,333 [main] io.openvidu.server.coturn.CoturnCredentialsService - Using COTURN credentials service for BASH environment


In dashboard test connection output is:

Server eventslock_outline


* KMS event [IceComponentStateChange]: -> endpoint: str_CAM_TYqZ_con_IVhS7yCTVN (publisher) | state: GATHERING | componentId: 2 | streamId: 1 | timestamp: 1636692569791
* KMS event [IceComponentStateChange]: -> endpoint: str_CAM_TYqZ_con_IVhS7yCTVN (publisher) | state: GATHERING | componentId: 1 | streamId: 1 | timestamp: 1636692569788
* KMS event [IceComponentStateChange]: -> endpoint: str_CAM_TYqZ_con_IVhS7yCTVN (publisher) | state: CONNECTING | componentId: 1 | streamId: 1 | timestamp: 1636692569790
* KMS event [IceGatheringDone] -> endpoint: str_CAM_TYqZ_con_IVhS7yCTVN (publisher) | timestamp: 1636692571818
* KMS event [IceComponentStateChange]: -> endpoint: str_CAM_TYqZ_con_IVhS7yCTVN (publisher) | state: FAILED | componentId: 1 | streamId: 1 | timestamp: 1636692577064

docker run --rm --shm-size 2g -e OV_URL=https://srv-ov20.host -e OV_SECRET=mySecret openvidu/openvidu-health-checker

output from:

Waiting xvfb...
Running tests... Please wait...


====== WebDriver manager ======
Current google-chrome version is 95.0.4638
Get LATEST chromedriver version for 95.0.4638 google-chrome
There is no [linux64] chromedriver for browser  in cache
Trying to download new driver from https://chromedriver.storage.googleapis.com/95.0.4638.69/chromedriver_linux64.zip
Driver has been saved in cache [/root/.wdm/drivers/chromedriver/linux64/95.0.4638.69]
E

====== WebDriver manager ======
Current firefox version is 94.0
Get LATEST geckodriver version for 94.0 firefox
Getting latest mozilla release info for v0.30.0
Trying to download new driver from https://github.com/mozilla/geckodriver/releases/download/v0.30.0/geckodriver-v0.30.0-linux64.tar.gz
Driver has been saved in cache [/root/.wdm/drivers/geckodriver/linux64/v0.30.0]
E

====== WebDriver manager ======
Current firefox version is 94.0
Get LATEST geckodriver version for 94.0 firefox
Driver [/root/.wdm/drivers/geckodriver/linux64/v0.30.0/geckodriver] found in cache
E
======================================================================
ERROR: test_chrome_no_relay (__main__.InfraSmokeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "openvidu_health_check.py", line 31, in test_chrome_no_relay
    self.inspector_check(browser="chrome")
  File "openvidu_health_check.py", line 96, in inspector_check
    raise Exception('Error. No video detected')
Exception: Error. No video detected

======================================================================
ERROR: test_firefox_force_relay (__main__.InfraSmokeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "openvidu_health_check.py", line 37, in test_firefox_force_relay
    self.inspector_check(browser="firefox", turn=True)
  File "openvidu_health_check.py", line 96, in inspector_check
    raise Exception('Error. No video detected')
Exception: Error. No video detected

======================================================================
ERROR: test_firefox_no_relay (__main__.InfraSmokeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "openvidu_health_check.py", line 34, in test_firefox_no_relay
    self.inspector_check(browser="firefox")
  File "openvidu_health_check.py", line 96, in inspector_check
    raise Exception('Error. No video detected')
Exception: Error. No video detected

----------------------------------------------------------------------
Ran 3 tests in 94.411s

FAILED (errors=3)
Executing test... Please wait...


======================================================================
|
|
|   Testing OpenVidu CE with chrome and force relay: False
|
|
======================================================================
Executing test... Please wait...


======================================================================
|
|
|   Testing OpenVidu CE with firefox and force relay: True
|
|
======================================================================
Running firefox with Turn:  True
Waiting for candidates to be checked...
+-----------+-----------+----------+-----------------+------------------+--------------+----------+-------------+-----------------+
| ICE State | Nominated | Selected | Local Candidate | Remote Candidate | Component ID | Priority | Bytes sent: | Bytes received: |
+-----------+-----------+----------+-----------------+------------------+--------------+----------+-------------+-----------------+
+-----------+-----------+----------+-----------------+------------------+--------------+----------+-------------+-----------------+
Executing test... Please wait...


======================================================================
|
|
|   Testing OpenVidu CE with firefox and force relay: False
|
|
======================================================================
Running firefox with Turn:  False
Waiting for candidates to be checked...
+-----------+-----------+----------+------------------------------------------+--------------------------+--------------+---------------------+-------------+-----------------+
| ICE State | Nominated | Selected |             Local Candidate              |     Remote Candidate     | Component ID |       Priority      | Bytes sent: | Bytes received: |
+-----------+-----------+----------+------------------------------------------+--------------------------+--------------+---------------------+-------------+-----------------+
|   failed  |   false   |  false   | 172.17.0.2:33236/udp(host) [non-proxied] | 10.0.2.2:54950/udp(host) |      1       | 8655919583267258000 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:33236/udp(host) [non-proxied] | 10.0.2.2:54950/udp(host) |      1       | 8655919583267258000 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:33236/udp(host) [non-proxied] | 10.0.2.2:54950/udp(host) |      1       | 8655919583267258000 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:33236/udp(host) [non-proxied] | 10.0.2.2:54950/udp(host) |      1       | 8655919583267258000 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:33236/udp(host) [non-proxied] | 10.0.2.2:54950/udp(host) |      1       | 8655919583267258000 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:33236/udp(host) [non-proxied] | 10.0.2.2:54950/udp(host) |      1       | 8655919583267258000 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:51404/tcp(host) [non-proxied] | 10.0.2.2:53300/tcp(host) |      1       | 4341471140212867600 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:51404/tcp(host) [non-proxied] | 10.0.2.2:53300/tcp(host) |      1       | 4341471140212867600 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:51404/tcp(host) [non-proxied] | 10.0.2.2:53300/tcp(host) |      1       | 4341471140212867600 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:51404/tcp(host) [non-proxied] | 10.0.2.2:53300/tcp(host) |      1       | 4341471140212867600 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:51404/tcp(host) [non-proxied] | 10.0.2.2:53300/tcp(host) |      1       | 4341471140212867600 |      0      |        0        |
|   failed  |   false   |  false   | 172.17.0.2:51404/tcp(host) [non-proxied] | 10.0.2.2:53300/tcp(host) |      1       | 4341471140212867600 |      0      |        0        |
+-----------+-----------+----------+------------------------------------------+--------------------------+--------------+---------------------+-------------+-----------------+

Strange that openvidu 2.17 all works…

what else can I try to do? the problem is between 2.17 - 2.18 can any mechanisms have been affected what to look for?

Mmm I’m out of ideas.

Please contact me via PM and send me some temporary SSH credentials. Maybe in this way I can see what the problem is by checking ports, public IPs, etc.

Are you in some kind of NAT or something? Does your machine have a unique public IP or more than one?

Regards

Public IP for server (FreeBSD) + bhyve with Fedora Server (openvidu virtual machine with docker) works through NAT).

where i can send ssh access in virtual machine with OpenVidu for you?
I don’t see PM on this forum…

image

oh my god :slight_smile:

May be i haven’t rights to send PM?

I do screenshoots, but i don’t see attach button :cry: :
May be e-mails? telegram or another way?

Email: carlos.ruiz@openvidu.io

ov - 2.17 - working
ov - 2.18 - broke
ov - 2.19 - broke
ov - 2.20 - broke
ov - 2.21 - broke
ov - 2.22 - worked - without change any settings :slight_smile: problem is gone.
But very interested that is it was?