# Separate Nuve and Erizo controller

**URL:** <https://discourse.lynckia.com/t/separate-nuve-and-erizo-controller/287>\
**Category:** Uncategorized\
**Created:** [March 6, 2014, 6:05am UTC](https://discourse.lynckia.com/t/separate-nuve-and-erizo-controller/287 "2014-03-06T06:05:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivo\_Pavlik](https://avatars.discourse-cdn.com/v4/letter/i/ed655f/32.png) [@Ivo\_Pavlik](https://discourse.lynckia.com/u/Ivo_Pavlik)\
**Post date:** [March 6, 2014, 6:05am UTC](https://discourse.lynckia.com/t/separate-nuve-and-erizo-controller/287/1 "2014-03-06T06:05:05Z")

</div>

Hello,

We’d like to reach high availability and scalability of Licode. As first  
step I’d like to separate Nuve and Erizo. I tried to install it on separate  
servers.  
As rabbit host I use Nuve server’s IP and set testErizoController Erizo  
server’s IP instead of localhost. I copied licode\_config.js to Erizo server.  
Both servers seems to connect each other when running their init scripts  
parts, but I’m getting error "[Auth] Unknown service " when I  
try to run basic example even the key is the same for Nuve and Erizo server.

Thanks for any advice.

---

<div class="post-metadata">

**Author:** ![Ricardo](https://avatars.discourse-cdn.com/v4/letter/r/a6a055/32.png) [@Ricardo](https://discourse.lynckia.com/u/Ricardo)\
**Post date:** [March 6, 2014, 10:14am UTC](https://discourse.lynckia.com/t/separate-nuve-and-erizo-controller/287/2 "2014-03-06T10:14:28Z")

</div>

Hi Ivo,

I’ve managed to completely separate the Erizo from the Nuve (in terms of  
servers)…

On the Nuve Server, I’ve installed it normally, except that I don’t start  
the Erizo (on the initLicode.sh, changed it for just do the initNuve).  
In the Nuve Server’s licode\_config.js, you’ll see that it has 2 variables  
configured: the superserviceKey and the superserviceID.

Just copy those values and install Erizo on another server…

One of the things that I did was removing the rabbitmq and mongodb from  
the Ubuntu dependencies on the Erizo installation… Don’t need it, so  
it’s fine 🙂  
Also changed the initLicode to not start/init the Nuve (basically  
commented the lines 13 to 21 of the initLicode.sh)

Last but not least, I went to the licode\_config.js of the Erizo  
installation and configured with everything (STUN, TURN, etc…) AND placed  
on the variables above mentioned, the values copied.

Then, and if you’re using the basicServer example, you’ll see that here -

> <https://github.com/lynckia/licode/blob/master/extras/basic_example/basicServer.js#L41>

- they’re connecting to localhost:3000 … You just need to connect to the  
IP of the Nuve, and I think you’ll be fine 🙂

If you have any problems, shout out for help 😉

Hugz,–  
{  
“name”: “Ricardo Machado”  
“position”: “Web-Developer”  
“email”: “[pt.n00b@gmail.com](mailto:pt.n00b@gmail.com)”  
}

Em Thu, 06 Mar 2014 07:05:05 +0100, Ivo Pavlík [ipavlik78@gmail.com](mailto:ipavlik78@gmail.com) escreveu:

> Hello,
> 
> We’d like to reach high availability and scalability of Licode. As first  
> step I’d like to separate Nuve and Erizo. I tried to install it on  
> separate servers.  
> As rabbit host I use Nuve server’s IP and set testErizoController Erizo  
> server’s IP instead of localhost. I copied licode\_config.js to Erizo  
> server.  
> Both servers seems to connect each other when running their init scripts  
> parts, but I’m getting error “[Auth] Unknown service ” when I  
> try to run basic \>example even the key is the same for Nuve and Erizo  
> server.
> 
> Thanks for any advice.  
> –You received this message because you are subscribed to the Google  
> Groups “lynckia” group.  
> To unsubscribe from this group and stop receiving emails from it, send  
> an email to [lynckia+unsubscribe@googlegroups.com](mailto:lynckia+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ivo\_Pavlik](https://avatars.discourse-cdn.com/v4/letter/i/ed655f/32.png) [@Ivo\_Pavlik](https://discourse.lynckia.com/u/Ivo_Pavlik)\
**Post date:** [April 8, 2014, 7:42am UTC](https://discourse.lynckia.com/t/separate-nuve-and-erizo-controller/287/3 "2014-04-08T07:42:49Z")

</div>

Hello,

thank you for your answer. In principle, I did the same. There’s no need to  
install Erizon on machine where Nuve is running and vice-versa.  
The only problem was that I specified IP address of Nuve server in  
licode\_config.js for Nuve server instead of localhost for rabbit host and  
Nuve database URL.  
It seems that on Nuve local machine Nuve can’t connect to database when  
there’s anything else than localhost (I tried IP and hostname).

Thanks,  
Ivo.

Dňa štvrtok, 6. marca 2014 7:05:05 UTC+1 Ivo Pavlík napísal(-a):\>

> Hello,
> 
> We’d like to reach high availability and scalability of Licode. As first  
> step I’d like to separate Nuve and Erizo. I tried to install it on separate  
> servers.  
> As rabbit host I use Nuve server’s IP and set testErizoController Erizo  
> server’s IP instead of localhost. I copied licode\_config.js to Erizo server.  
> Both servers seems to connect each other when running their init scripts  
> parts, but I’m getting error “[Auth] Unknown service ” when I  
> try to run basic example even the key is the same for Nuve and Erizo server.
> 
> Thanks for any advice.
