# Trouble installing OpenVidu server

**URL:** <https://openvidu.discourse.group/t/trouble-installing-openvidu-server/167>\
**Category:** Issues with deployment\
**Tags:** v2\
**Created:** [February 19, 2020, 2:52pm UTC](https://openvidu.discourse.group/t/trouble-installing-openvidu-server/167 "2020-02-19T14:52:22Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![angi](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/angi/32/24_2.png) [@angi](https://openvidu.discourse.group/u/angi)\
**Post date:** [February 19, 2020, 2:52pm UTC](https://openvidu.discourse.group/t/trouble-installing-openvidu-server/167/1 "2020-02-19T14:52:22Z")

</div>

I’m trying to follow this [https://openvidu.io/docs/deployment/deploying-ubuntu/](https://openvidu.io/docs/deployment/deploying-ubuntu/) guide on Ubuntu 18. I did all steps and ended up with an error. The message is the following

> KMS in ws://localhost:8888/kurento is not reachable by OpenVidu Server

Any idea what went wrong? How can I fix it?

---

<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:** [February 20, 2020, 9:49am UTC](https://openvidu.discourse.group/t/trouble-installing-openvidu-server/167/2 "2020-02-20T09:49:37Z")

</div>

Is KMS running? Check it by entering this command:

```auto
systemctl status kurento-media-server

```

if it is stopped, run this command:

```auto
systemctl start kurento-media-server

```

Also if Kurento Media Server is running, run this command:

```auto
curl -i -N \
    -H "Connection: Upgrade" \
    -H "Upgrade: websocket" \
    -H "Host: 127.0.0.1:8888" \
    -H "Origin: 127.0.0.1" \
    http://127.0.0.1:8888/kurento

```

It should return this if KMS is working correctly:

```auto
HTTP/1.1 500 Internal Server Error

```

Best Regards,  
Carlos

---

<div class="post-metadata">

**Author:** ![angi](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/angi/32/24_2.png) [@angi](https://openvidu.discourse.group/u/angi)\
**Post date:** [February 20, 2020, 11:03am UTC](https://openvidu.discourse.group/t/trouble-installing-openvidu-server/167/3 "2020-02-20T11:03:24Z")

</div>

> [@cruizba](#):
>
> systemctl status kurento-media-server

gives me this message

> kurento-media-server.service - LSB: Kurento Media Server daemon  
> Loaded: loaded (/etc/init.d/kurento-media-server; generated)  
> Active: active (exited) since Wed 2020-02-19 14:34:03 UTC; 20h ago  
> Docs: man:systemd-sysv-generator(8)  
> Tasks: 0 (limit: 4646)  
> CGroup: /system.slice/kurento-media-server.service

I also tried this command

> [@cruizba](#):
>
> ```auto
> curl -i -N \
> -H "Connection: Upgrade" \
> -H "Upgrade: websocket" \
> -H "Host: 127.0.0.1:8888" \
> -H "Origin: 127.0.0.1" \
> http://127.0.0.1:8888/kurento
> 
> ```

but I’m getting

> (7) Failed to connect to 127.0.0.1 port 8888: Connection refused

I think I’ve done something wrong in these steps

 ![ov-setup](https://global.discourse-cdn.com/free1/uploads/openvidu/original/1X/d7b103a1fced3a6c6d926f4a145f40242fe28a78.png)

Am I supposed to access these files and just copy paste the given properties? That’s what I did.

---

<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:** [February 20, 2020, 11:24am UTC](https://openvidu.discourse.group/t/trouble-installing-openvidu-server/167/4 "2020-02-20T11:24:14Z")

</div>

Maybe your configuration is wrong and the KMS did not run correctly. Did you replace `YOUR_MACHINE_PUBLIC_IP` with your actual public ip in those configuration files?

---

<div class="post-metadata">

**Author:** ![angi](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/angi/32/24_2.png) [@angi](https://openvidu.discourse.group/u/angi)\
**Post date:** [February 20, 2020, 1:07pm UTC](https://openvidu.discourse.group/t/trouble-installing-openvidu-server/167/5 "2020-02-20T13:07:03Z")

</div>

Yes, I did that. But anyway I think it works now. I think the issue was I didn’t initialize services properly.

---

<div class="post-metadata">

**Author:** ![Rishabh\_Khandelwal](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/rishabh_khandelwal/32/1061_2.png) [@Rishabh\_Khandelwal](https://openvidu.discourse.group/u/Rishabh_Khandelwal)\
**Post date:** [October 16, 2020, 7:48am UTC](https://openvidu.discourse.group/t/trouble-installing-openvidu-server/167/6 "2020-10-16T07:48:55Z")

</div>

@angi can you please expain the way, you set up this error ?

---

<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:** [October 16, 2020, 10:56am UTC](https://openvidu.discourse.group/t/trouble-installing-openvidu-server/167/7 "2020-10-16T10:56:15Z")

</div>

@Rishabh_Khandelwal this is an old post and the deployment have changed. Can you create a new one and explain your problem? Thanks

---

<div class="post-metadata">

**Author:** ![Rishabh\_Khandelwal](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/rishabh_khandelwal/32/1061_2.png) [@Rishabh\_Khandelwal](https://openvidu.discourse.group/u/Rishabh_Khandelwal)\
**Post date:** [October 16, 2020, 11:28am UTC](https://openvidu.discourse.group/t/trouble-installing-openvidu-server/167/8 "2020-10-16T11:28:20Z")

</div>

@cruizba I want to create a deployment of openvidu in minikube cluster. I am doing this by using a yaml file. KMS container and other containers has been launched successfully but openvidu-server is unable to start. I got this type of logs in openvidu-server:

**KMS in ws://localhost:8888/kurento is not reachable by OpenVidu Server**

In logs, I find that openvidu-server is started initially with all the environment variables and due to this error, openvidu-server gets shut down.

I think may be issue due to networking in the cluster. Can you please suggest me the network configuration so that openvidu-server can reach **ws://localhost:8888/kurento**. And for other pods, they would be able to make an internal network between them.

Please suggest me some way so that I can make this whole deployment in one network and openvidu-server has access to kms, coturn, redis, etc and their required ports.

---

<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:** [October 16, 2020, 11:37am UTC](https://openvidu.discourse.group/t/trouble-installing-openvidu-server/167/9 "2020-10-16T11:37:11Z")

</div>

Well, if you know how kubernetes works:

1. You need A LOT of ports bindings if you want to use KMS deployed as a Service in K8s and use the K8S DNS to access the service. So your only way to manage this excessive port binding is to run KMS in `network=host`.

2. Running KMS as `network=host` implies that you can not use the k8s DNS for this specific service. In minikube it may works (I don’t know i did not try it) because your cluster has only one node, and it will find what localhost is, but in real clusters, you will need to guess in what Node the KMS is deployed.

In conclustion, I don’t recomend you to deploy OpenVidu CE in a kubernetes cluster (it is not tested and we don’t support it). But in your case, I think that running all the services as network=host should do the trick.

---

<div class="post-metadata">

**Author:** ![sanausco](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@sanausco](https://openvidu.discourse.group/u/sanausco)\
**Post date:** [August 19, 2021, 9:08pm UTC](https://openvidu.discourse.group/t/trouble-installing-openvidu-server/167/10 "2021-08-19T21:08:08Z")

</div>

@Rishabh_Khandelwal could you please share your yaml file? I would really appreciate it. Thanks.
