We tried to install OpenVidu Pro on an Ubuntu 18.04.3 on premise environment (https://openvidu.io/docs/openvidu-pro/deploying-openvidu-pro/#deploying-openvidu-pro-on-premise)
After configuring the inventory.yaml and /group_vars/all we started the ansible installation, some ansible tasks caused errors
**TASK [kms : ading kurento repository]**
• This step executes the sh-script /usr/local/bin/add-kms-repo.sh
• The script tries to get the version and defines the variable OV_VERSION=v2.11.0 . the curl-command returns an invalid response for the JSON parser because the version is not correct. Changing the value to 2.11.0 solves the problem. We added the repository in this way as a workaround
TASK [kms : ading kurento repository] *************************************************************************************************************************************************************************
task path: /root/install_openvidu/openvidu-pro-clustering/roles/kms/tasks/main.yml:22
fatal: [media-node-1]: FAILED! => {
"changed": true,
"cmd": [
"/usr/local/bin/add-kms-repo.sh"
],
"delta": "0:00:03.537135",
"end": "2020-01-14 13:03:59.931389",
"invocation": {
"module_args": {
"_raw_params": "/usr/local/bin/add-kms-repo.sh",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true,
"warn": true
}
},
"msg": "non-zero return code",
"rc": 100,
"start": "2020-01-14 13:03:56.394254",
"stderr": "E: Failed to fetch http://ubuntu.openvidu.io/dists/xenial/InRelease 403 Forbidden [IP: 195.13.40.236 8080]\nE: The repository 'http://ubuntu.openvidu.io xenial InRelease' is not signed.",
"stderr_lines": [
"E: Failed to fetch http://ubuntu.openvidu.io/dists/xenial/InRelease 403 Forbidden [IP: 195.13.40.236 8080]",
"E: The repository 'http://ubuntu.openvidu.io xenial InRelease' is not signed."
],
"stdout": "Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]\nHit:2 http://de.archive.ubuntu.com/ubuntu bionic InRelease\nErr:3 http://ubuntu.openvidu.io xenial InRelease\n 403 Forbidden [IP: 195.13.40.236 8080]\nHit:4 http://de.archive.ubuntu.com/ubuntu bionic-updates InRelease\nHit:5 http://de.archive.ubuntu.com/ubuntu bionic-backports InRelease\nReading package lists...",
"stdout_lines": [
"Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]",
"Hit:2 http://de.archive.ubuntu.com/ubuntu bionic InRelease",
"Err:3 http://ubuntu.openvidu.io xenial InRelease",
" 403 Forbidden [IP: 195.13.40.236 8080]",
"Hit:4 http://de.archive.ubuntu.com/ubuntu bionic-updates InRelease",
"Hit:5 http://de.archive.ubuntu.com/ubuntu bionic-backports InRelease",
"Reading package lists..."
]
}
• This step executes the sh-script /usr/local/bin/add-kms-repo.sh
• The script tries to get the version and defines the variable OV_VERSION=v2.11.0 . the curl-command returns an invalid response for the JSON parser because the version is not correct. Changing the value to 2.11.0 (without v) solves the problem. We added the repository in this way as a workaround
TASK [kms : installing Kurento Media Server] ******************************************************************************************************************************************************************
task path: /root/install_openvidu/openvidu-pro-clustering/roles/kms/tasks/main.yml:27
fatal: [media-node-1]: FAILED! => {
"cache_update_time": 1579004975,
"cache_updated": true,
"changed": false,
"invocation": {
"module_args": {
"allow_unauthenticated": false,
"autoclean": false,
"autoremove": false,
"cache_valid_time": 0,
"deb": null,
"default_release": null,
"dpkg_options": "force-confdef,force-confold",
"force": false,
"force_apt_get": false,
"install_recommends": null,
"name": "kurento-media-server",
"only_upgrade": false,
"package": [
"kurento-media-server"
],
"policy_rc_d": null,
"purge": false,
"state": "present",
"update_cache": true,
"upgrade": null
}
},
"msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\" install 'kurento-media-server'' failed: E: Unable to correct problems, you have held broken packages.\n",
"rc": 100,
"stderr": "E: Unable to correct problems, you have held broken packages.\n",
"stderr_lines": [
"E: Unable to correct problems, you have held broken packages."
],
"stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n kurento-media-server : Depends: kms-core (>= 6.7.0) but it is not going to be installed\n Depends: libboost-filesystem1.58.0 but it is not installable\n Depends: libboost-log1.58.0 but it is not installable\n Depends: libboost-program-options1.58.0 but it is not installable\n Depends: libboost-system1.58.0 but it is not installable\n Depends: libboost-thread1.58.0 but it is not installable\n Depends: gstreamer1.5-plugins-bad but it is not going to be installed\n Depends: gstreamer1.5-plugins-good but it is not going to be installed\n Depends: gstreamer1.5-plugins-ugly but it is not going to be installed\n Depends: kms-elements (>= 6.7.0) but it is not going to be installed\n Depends: kms-filters (>= 6.7.0) but it is not going to be installed\n",
"stdout_lines": [
"Reading package lists...",
"Building dependency tree...",
"Reading state information...",
"Some packages could not be installed. This may mean that you have",
"requested an impossible situation or if you are using the unstable",
"distribution that some required packages have not yet been created",
"or been moved out of Incoming.",
"The following information may help to resolve the situation:",
"",
"The following packages have unmet dependencies:",
" kurento-media-server : Depends: kms-core (>= 6.7.0) but it is not going to be installed",
" Depends: libboost-filesystem1.58.0 but it is not installable",
" Depends: libboost-log1.58.0 but it is not installable",
" Depends: libboost-program-options1.58.0 but it is not installable",
" Depends: libboost-system1.58.0 but it is not installable",
" Depends: libboost-thread1.58.0 but it is not installable",
" Depends: gstreamer1.5-plugins-bad but it is not going to be installed",
" Depends: gstreamer1.5-plugins-good but it is not going to be installed",
" Depends: gstreamer1.5-plugins-ugly but it is not going to be installed",
" Depends: kms-elements (>= 6.7.0) but it is not going to be installed",
" Depends: kms-filters (>= 6.7.0) but it is not going to be installed"
]
}
There is a dependency problem, we did not found a solution for that
Same problem if you try to call the command apt install kurento-media-server
on the host