# Openvidu server problems

**URL:** https://openvidu.discourse.group/t/openvidu-server-problems/2977
**Category:** Issues with deployment
**Tags:** v2
**Created:** [April 20, 2021, 10:57pm UTC](https://openvidu.discourse.group/t/openvidu-server-problems/2977 "2021-04-20T22:57:35Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![RussB](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@RussB](https://openvidu.discourse.group/u/RussB)
#### Post date: [April 20, 2021, 10:57pm UTC](https://openvidu.discourse.group/t/openvidu-server-problems/2977/1 "2021-04-20T22:57:35Z")

</div>

I am trying to setup a WebRTC compatible media server, and implement (basically) a web video conference server for my company (with some other features like conference recording).

I initially tried following the directions for setting up Kurento Media Server, and the “Kurento web conference tutorial” example (Node.JS) code, but even using the code without any changes, I always got error code 40401 (Ice candidates error) from the Node.JS server application.

NOTE: I can provide the entire KMS application server log if desired.

I heard several people recommend setting up an OpenVidu server instead, so I followed the “deployment” (install) instructions (at [OpenVidu Docs](https://docs.openvidu.io/en/2.17.0/deployment/deploying-on-premises/#deployment-instructions)).

I am still getting KMS errors (from OpenVidu) related to Ice candidates…

openvidu-server\_1 | [INFO] 2021-04-20 22:32:46,794 [AbstractJsonRpcClientWebSocket-reqResEventExec-e2-t95] io.openvidu.server.kurento.core.KurentoParticipantEndpointConfig - KMS event [IceComponentStateChange]: → endpoint: con\_T5XwOS3RIy\_str\_CAM\_QwYk\_con\_Ksmb2PkDdQ (subscriber) | state: FAILED | componentId: 1 | streamId: 1 | timestamp: 1618957966793

NOTE: I can provide the complete OpenVidu log if desired.

Any ideas how I can resolve this???

---

<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: [April 21, 2021, 7:20am UTC](https://openvidu.discourse.group/t/openvidu-server-problems/2977/2 "2021-04-21T07:20:39Z")

</div>

You must deploy OpenVidu following the deployment instructions: [OpenVidu Docs](https://docs.openvidu.io/en/2.17.0/deployment/deploying-on-premises/)

Take a look to this page and to the Troubleshooting section at the end to check if your deployment is correct.

---

<div class="post-metadata">

### Author: ![RussB](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@RussB](https://openvidu.discourse.group/u/RussB)
#### Post date: [April 21, 2021, 8:48pm UTC](https://openvidu.discourse.group/t/openvidu-server-problems/2977/3 "2021-04-21T20:48:59Z")

</div>

I did read the install instructions, and followed them (step by step).

NOTE: This was an “on premises” install. Perhaps those install instructions need to be reviewed.

The behavior that I am seeing is:  
When the web browser client connects to the server, selects a “conference room” ID, and enters the “conference room” (after selecting their webcam and audio device)…  
I can see the video of the local webcam,  
but I can NOT see the video from ANY other client that has joined the conference  
(I only see black/no video for all other clients).

---

<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: [April 22, 2021, 11:54am UTC](https://openvidu.discourse.group/t/openvidu-server-problems/2977/4 "2021-04-22T11:54:01Z")

</div>

1. What ports do you have opened? Rememeber to not only open them with `ufw`, open it to the outside in your cloud provider (Security groups).
2. Can you show the content of `/opt/openvidu/.env` (Without the password)?
3. Can you execute and share the output of:

```auto
sudo su
cd /opt/openvidu
./openvidu version

```

> NOTE: This was an “on premises” install. Perhaps those install instructions need to be reviewed.

We test them, I installed OpenVIdu following installation instructions multiple times, and it is used in our Cloudformation templates
