# Pro 2.12.0 - Unable to restart / add Media Nodes

**URL:** <https://openvidu.discourse.group/t/pro-2-12-0-unable-to-restart-add-media-nodes/264>\
**Category:** Issues with deployment\
**Tags:** v2\
**Created:** [March 18, 2020, 8:18am UTC](https://openvidu.discourse.group/t/pro-2-12-0-unable-to-restart-add-media-nodes/264 "2020-03-18T08:18:51Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![tibinpaul](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/tibinpaul/32/104_2.png) [@tibinpaul](https://openvidu.discourse.group/u/tibinpaul)\
**Post date:** [March 18, 2020, 8:18am UTC](https://openvidu.discourse.group/t/pro-2-12-0-unable-to-restart-add-media-nodes/264/1 "2020-03-18T08:18:51Z")

</div>

Hello Team,

I have successfully installed Openvidu Pro 2.12.0 and the servers are working fine. I am trying to add media nodes from the inspector and ran into some issues.

The system came up with `Cluster Mode = Manual` even though the default value is mentioned as `auto` in the document. On the cluster page, it seems like I have to enter `Media Node URI`. What is the value here?

Also, I am trying to change the `Cluster Mode to Auto`. I changed the configuration from the inspector but getting the below error while restarting `Openvidu Pro`.

```
Error restarting OpenVidu Server Pro: Cluster environment "on_premise" requires file 
"/opt/openvidu/cluster/openvidu_launch_kms.sh" to exist, but cannot be found

```

The servers are on Digitalocean. Please let me know how can I successfully add a media node on the fly.

![Screenshot 2020-03-18 at 1.32.43 PM](https://global.discourse-cdn.com/free1/uploads/openvidu/original/1X/e94641a715d47c394c8bdd3dead084a862d5417f.png)

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [March 18, 2020, 10:56am UTC](https://openvidu.discourse.group/t/pro-2-12-0-unable-to-restart-add-media-nodes/264/2 "2020-03-18T10:56:14Z")

</div>

Hello,

Sorry, but `auto` mode is right now only available by default for [AWS deployments](https://openvidu.io/docs/openvidu-pro/deployment/aws/). For DigitalOcean deployments to all effects you will be using [On premise](https://openvidu.io/docs/openvidu-pro/deployment/on-premise/) instructions.

This means that you must manually launch your Media Nodes on Digital Ocean machines before actually adding them through OpenVidu Inspector or REST API Pro, becasue OpenVidu doesn’t know how to manage DIgitalOcean instances. So after your Media Node is up and running in your Digital Ocean network, you simply need to provide the “uri” parameter on the Media Node addition’s operation to add it to your cluster.

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [March 18, 2020, 10:59am UTC](https://openvidu.discourse.group/t/pro-2-12-0-unable-to-restart-add-media-nodes/264/3 "2020-03-18T10:59:07Z")

</div>

Did you follow On Premise instrutions to deploy your OpenVidu Pro cluster in DigitalOcean? If that’s true, then how many Media Nodes did you define here?: [https://openvidu.io/docs/openvidu-pro/deployment/on-premise/#3-ansible-inventory](https://openvidu.io/docs/openvidu-pro/deployment/on-premise/#3-ansible-inventory)

If you follow those instructions correcly, you should end up with a cluster with as many Media Nodes as you stated in your Ansible’s inventory file.

---

<div class="post-metadata">

**Author:** ![tibinpaul](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/tibinpaul/32/104_2.png) [@tibinpaul](https://openvidu.discourse.group/u/tibinpaul)\
**Post date:** [March 18, 2020, 11:29am UTC](https://openvidu.discourse.group/t/pro-2-12-0-unable-to-restart-add-media-nodes/264/4 "2020-03-18T11:29:03Z")

</div>

Hey Pablo,

**This means that you must manually launch your Media Nodes on Digital Ocean machines before actually adding them through OpenVidu Inspector or REST API Pro** - Does it mean that I will have to install all the required services like KMS manually and set it up before launching it from the inspector? Or, I can spin up a fresh Digitalocean droplet and Openvidu can take the rest of the things from there?

Currently, my cluster screen looks like below.

 ![Screenshot 2020-03-18 at 4.57.26 PM](https://global.discourse-cdn.com/free1/uploads/openvidu/original/1X/ecf7d1e404666c9e8477b2ac42aeb004114e4d61.png)

---

<div class="post-metadata">

**Author:** ![tibinpaul](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/tibinpaul/32/104_2.png) [@tibinpaul](https://openvidu.discourse.group/u/tibinpaul)\
**Post date:** [March 18, 2020, 11:31am UTC](https://openvidu.discourse.group/t/pro-2-12-0-unable-to-restart-add-media-nodes/264/5 "2020-03-18T11:31:17Z")

</div>

I have followed on-premise instructions. I have configured one media node in the ansible inventory. I can see this media node in the cluster page of the inspector.

 ![Screenshot 2020-03-18 at 4.57.26 PM](https://global.discourse-cdn.com/free1/uploads/openvidu/original/1X/ecf7d1e404666c9e8477b2ac42aeb004114e4d61.png)

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [March 18, 2020, 11:45am UTC](https://openvidu.discourse.group/t/pro-2-12-0-unable-to-restart-add-media-nodes/264/6 "2020-03-18T11:45:09Z")

</div>

Okey, that’s the expected bahvior. You defined a single Media Node in your Ansible’s playbook, and it succesfully deployed.

Now: to launch a new one you will have to manually initiate a new Media Node. Or as you said by manually installing everything as in a plain OpenVidu Ubuntu installation, or by modifying the Ansible playbook to just deploy Media Nodes (simply removing everythintg related to the master OpenVidu Server Pro Node). Better, I don’t have that much experience in DigitalOcean, but if you are able to build an “static” image to be deployed in a new machine whenever you want, that would be the way to go. You could then launch new Media Nodes very quickly and add them to the cluster. I’m thinking of something similar to AWS AMIs.

PS: I’m updating the On Premise Scalability instructions right now, as the image showing OpenVidu Inspector doesn’t really correspond to the “manual” cluster mode. I’ll probably extend a bit more the instructions talking about the necessity of manually launching new Media Node before adding them to the cluster.

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [March 18, 2020, 11:53am UTC](https://openvidu.discourse.group/t/pro-2-12-0-unable-to-restart-add-media-nodes/264/7 "2020-03-18T11:53:18Z")

</div>

We are also currently discussing how to provide an “automated” way of deploying new Media Nodes in an existing On Premise cluster. Probably with a modification of the Ansible’s playbook to install only Media Nodes without the OpenVidu Server Pro Node, as I mentioned in my previous message.

Regards

---

<div class="post-metadata">

**Author:** ![tibinpaul](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/tibinpaul/32/104_2.png) [@tibinpaul](https://openvidu.discourse.group/u/tibinpaul)\
**Post date:** [March 18, 2020, 1:46pm UTC](https://openvidu.discourse.group/t/pro-2-12-0-unable-to-restart-add-media-nodes/264/8 "2020-03-18T13:46:42Z")

</div>

That would help, Pablo. If you come up with a solution, that is gonna be added as a patch to the current version or will take time to get it live? As the elastic scalability is not in place, it is great to manually add nodes as easy as possible.

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [March 18, 2020, 2:00pm UTC](https://openvidu.discourse.group/t/pro-2-12-0-unable-to-restart-add-media-nodes/264/9 "2020-03-18T14:00:16Z")

</div>

Hi,

I’m almost done. Installing new Media Nodes in your on premise cluster is going to be very easy, you’ll see. It uses the same Ansible procedure as when installing the cluster for the first time. Will be available immediatly after I push some changes to the docs.

Regards

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [March 18, 2020, 2:31pm UTC](https://openvidu.discourse.group/t/pro-2-12-0-unable-to-restart-add-media-nodes/264/10 "2020-03-18T14:31:26Z")

</div>

Documentation is now updated explaining how to launch new Media Nodes in On Premise OpenVidu Pro deployments. Visit the updated section [Change the number of Media Nodes on the fly](https://openvidu.io/docs/openvidu-pro/deployment/on-premise/#change-the-number-of-media-nodes-on-the-fly)

Regards

---

<div class="post-metadata">

**Author:** ![tibinpaul](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/tibinpaul/32/104_2.png) [@tibinpaul](https://openvidu.discourse.group/u/tibinpaul)\
**Post date:** [March 18, 2020, 2:37pm UTC](https://openvidu.discourse.group/t/pro-2-12-0-unable-to-restart-add-media-nodes/264/11 "2020-03-18T14:37:52Z")

</div>

That is great. I am gonna try this out.

Is it okay if we keep the currently active media nodes under `all.hosts` and `all.children` or need to comment out those too?

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [March 18, 2020, 3:05pm UTC](https://openvidu.discourse.group/t/pro-2-12-0-unable-to-restart-add-media-nodes/264/12 "2020-03-18T15:05:55Z")

</div>

Better comment them out, just in case Ansible tries to change something on the existing Media Nodes.

---

<div class="post-metadata">

**Author:** ![tibinpaul](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/tibinpaul/32/104_2.png) [@tibinpaul](https://openvidu.discourse.group/u/tibinpaul)\
**Post date:** [March 18, 2020, 3:07pm UTC](https://openvidu.discourse.group/t/pro-2-12-0-unable-to-restart-add-media-nodes/264/13 "2020-03-18T15:07:25Z")

</div>

Perfect. Thanks for the quick turnaround.
