# iniBasicExample.sh stops erizoController, and start/stop preocedure

**URL:** <https://discourse.lynckia.com/t/inibasicexample-sh-stops-erizocontroller-and-start-stop-preocedure/19>\
**Category:** Uncategorized\
**Created:** [June 12, 2013, 11:24am UTC](https://discourse.lynckia.com/t/inibasicexample-sh-stops-erizocontroller-and-start-stop-preocedure/19 "2013-06-12T11:24:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philippe](https://avatars.discourse-cdn.com/v4/letter/p/f14d63/32.png) [@Philippe](https://discourse.lynckia.com/u/Philippe)\
**Post date:** [June 12, 2013, 11:24am UTC](https://discourse.lynckia.com/t/inibasicexample-sh-stops-erizocontroller-and-start-stop-preocedure/19/1 "2013-06-12T11:24:04Z")

</div>

Hi,

I installed Licode using today’s git repository, started it with  
[initLicode.sh](http://initLicode.sh), then lauched the [initBasicExample.sh](http://initBasicExample.sh).

When I connect with Chrome to [http://myserver:3001](http://myserver:3001), video is properly  
displayed, but shortly after, I can see those errors in the console :  
WebRtcConnection constructor stunserver stunPort 0 minPort 0 maxPort 0  
init… localvideoSsrc\_ 55543

GThread-ERROR \*\*: GThread system may only be initialized once.  
aborting…  
ErizoController 1 in 10.0.0.43 does not respond. Deleting it.  
[CLOUD HANDLER]: Warning! No erizoController is available.

And therefore, access to [http://myserver:3001](http://myserver:3001) is available, but the page  
remains blank for others who join that URL.

Also, I could not find any start/stop procedure for all the components. Is  
the info available somewhere?

To my understanding, the following node programs are used :

- nuve.js (listening on TCP port 3000 by default)
- erizoController.js (listening on TCP port 8080 by default)

Should a simple "stop script’ just kill the corresponding processed  
attached to the programs?

Thanks, and congratulations for this great software!

Philippe

---

<div class="post-metadata">

**Author:** ![Pedro\_Rodriguez](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.lynckia.com/pedro_rodriguez/32/23_2.png) [@Pedro\_Rodriguez](https://discourse.lynckia.com/u/Pedro_Rodriguez)\
**Post date:** [June 18, 2013, 2:57pm UTC](https://discourse.lynckia.com/t/inibasicexample-sh-stops-erizocontroller-and-start-stop-preocedure/19/2 "2013-06-18T14:57:05Z")

</div>

Hi Philippe:

You are right, it is deprecated now, I’ve updated licode removing g\_thread\_init as it is not needed in the versions of glib found in ubuntu 12.04 (2.0.so.0.3400.1). Hopefully it will work with your version also. If it doesn’t we could make sure it is only initialized once.

Cheers!-  
Pedro Rodriguez

El martes, 18 de junio de 2013 a las 12:00, Philippe escribió:

> Hola Pedro :D,
> 
> Great to meet here, and congratulations for your work on Lynckia!
> 
> I installed everything on a Linux x64 CentOS 6.3 distribution. I might have messed up with the dependencies somewhere, as I tried to install what’s mentioned in scripts/installUbuntuDeps.sh ([http://installUbuntuDeps.sh](http://installUbuntuDeps.sh))
> 
> For information, the Gthread library I’m using is libgthread-2.0.so.0.2200.5, taken from the yum package glib2-2.22.5-7.el6.x86\_64. Looking at the code in erizo/src/erizo/NiceConnection.cpp, it lloks like g\_thread\_init is called each time a new ICE connection is instantiated.
> 
> What version of Glib are you running? Maybe I should upgrade to a newer version of Glib to avoid this “double initialisation” problem, as the g\_thread\_init function seems to have evolved in Glib \>= 2.32 to a no operation function according to this thread :  
> [c - how to free memory allocated by g\_thread\_init - Stack Overflow](http://stackoverflow.com/questions/8444853/how-to-free-memory-allocated-by-g-thread-init)
> 
> Thanks a lot for your help,
> 
> Philippe
> 
> Le lundi 17 juin 2013 17:13:56 UTC+2, Pedro Rodriguez a écrit :
> 
> > Hi Phillippe:
> > 
> > The GThread error does not look good. Are you using Linux or Mac in your server. I can try to replicate the error.  
> > As for stopping devices, killing all node processes should do the trick, specifically you should have those you said (nuve.js, erizoController) and BasicExample.
> > 
> > Cheers!
> > 
> > –  
> > Pedro Rodriguez
> > 
> > El miércoles, 12 de junio de 2013 a las 13:24, Philippe escribió:
> > 
> > > Hi,
> > > 
> > > I installed Licode using today’s git repository, started it with initLicode.sh ([http://initLicode.sh](http://initLicode.sh)), then lauched the initBasicExample.sh ([http://initBasicExample.sh](http://initBasicExample.sh)).
> > > 
> > > When I connect with Chrome to [http://myserver:3001](http://myserver:3001), video is properly displayed, but shortly after, I can see those errors in the console :  
> > > WebRtcConnection constructor stunserver stunPort 0 minPort 0 maxPort 0  
> > > init… localvideoSsrc\_ 55543
> > > 
> > > GThread-ERROR \*\*: GThread system may only be initialized once.  
> > > aborting…  
> > > ErizoController 1 in 10.0.0.43 does not respond. Deleting it.  
> > > [CLOUD HANDLER]: Warning! No erizoController is available.
> > > 
> > > And therefore, access to [http://myserver:3001](http://myserver:3001) is available, but the page remains blank for others who join that URL.
> > > 
> > > Also, I could not find any start/stop procedure for all the components. Is the info available somewhere?
> > > 
> > > To my understanding, the following node programs are used :
> > > 
> > > - nuve.js (listening on TCP port 3000 by default)
> > > - erizoController.js (listening on TCP port 8080 by default)
> > > 
> > > Should a simple "stop script’ just kill the corresponding processed attached to the programs?
> > > 
> > > Thanks, and congratulations for this great software!
> > > 
> > > ## Philippe
> > > 
> > > 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+u...@googlegroups.com](mailto:lynckia+u...@googlegroups.com) (javascript:).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> –  
> 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) ([mailto: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:** ![Pedro\_Rodriguez](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.lynckia.com/pedro_rodriguez/32/23_2.png) [@Pedro\_Rodriguez](https://discourse.lynckia.com/u/Pedro_Rodriguez)\
**Post date:** [June 17, 2013, 3:13pm UTC](https://discourse.lynckia.com/t/inibasicexample-sh-stops-erizocontroller-and-start-stop-preocedure/19/3 "2013-06-17T15:13:56Z")

</div>

Hi Phillippe:

The GThread error does not look good. Are you using Linux or Mac in your server. I can try to replicate the error.  
As for stopping devices, killing all node processes should do the trick, specifically you should have those you said (nuve.js, erizoController) and BasicExample.

Cheers!–  
Pedro Rodriguez

El miércoles, 12 de junio de 2013 a las 13:24, Philippe escribió:

> Hi,
> 
> I installed Licode using today’s git repository, started it with initLicode.sh ([http://initLicode.sh](http://initLicode.sh)), then lauched the initBasicExample.sh ([http://initBasicExample.sh](http://initBasicExample.sh)).
> 
> When I connect with Chrome to [http://myserver:3001](http://myserver:3001), video is properly displayed, but shortly after, I can see those errors in the console :  
> WebRtcConnection constructor stunserver stunPort 0 minPort 0 maxPort 0  
> init… localvideoSsrc\_ 55543
> 
> GThread-ERROR \*\*: GThread system may only be initialized once.  
> aborting…  
> ErizoController 1 in 10.0.0.43 does not respond. Deleting it.  
> [CLOUD HANDLER]: Warning! No erizoController is available.
> 
> And therefore, access to [http://myserver:3001](http://myserver:3001) is available, but the page remains blank for others who join that URL.
> 
> Also, I could not find any start/stop procedure for all the components. Is the info available somewhere?
> 
> To my understanding, the following node programs are used :
> 
> - nuve.js (listening on TCP port 3000 by default)
> - erizoController.js (listening on TCP port 8080 by default)
> 
> Should a simple "stop script’ just kill the corresponding processed attached to the programs?
> 
> Thanks, and congratulations for this great software!
> 
> ## Philippe
> 
> 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) ([mailto: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:** ![Philippe](https://avatars.discourse-cdn.com/v4/letter/p/f14d63/32.png) [@Philippe](https://discourse.lynckia.com/u/Philippe)\
**Post date:** [June 18, 2013, 10:00am UTC](https://discourse.lynckia.com/t/inibasicexample-sh-stops-erizocontroller-and-start-stop-preocedure/19/4 "2013-06-18T10:00:17Z")

</div>

Hola Pedro :D,

Great to meet here, and congratulations for your work on Lynckia!

I installed everything on a Linux x64 CentOS 6.3 distribution. I might have  
messed up with the dependencies somewhere, as I tried to install what’s  
mentioned in scripts/installUbuntuDeps.sh

For information, the Gthread library I’m using is  
libgthread-2.0.so.0.2200.5, taken from the yum package  
glib2-2.22.5-7.el6.x86\_64. Looking at the code in  
erizo/src/erizo/NiceConnection.cpp, it lloks like g\_thread\_init is called  
each time a new ICE connection is instantiated.

What version of Glib are you running? Maybe I should upgrade to a newer  
version of Glib to avoid this “double initialisation” problem, as the  
g\_thread\_init function seems to have evolved in Glib \>= 2.32 to a no  
operation function according to this thread :

> <https://stackoverflow.com/questions/8444853/how-to-free-memory-allocated-by-g-thread-init>

Thanks a lot for your help,

PhilippeLe lundi 17 juin 2013 17:13:56 UTC+2, Pedro Rodriguez a écrit :

> Hi Phillippe:
> 
> The GThread error does not look good. Are you using Linux or Mac in your  
> server. I can try to replicate the error.  
> As for stopping devices, killing all node processes should do the trick,  
> specifically you should have those you said (nuve.js, erizoController) and  
> BasicExample.
> 
> Cheers!
> 
> –  
> Pedro Rodriguez
> 
> El miércoles, 12 de junio de 2013 a las 13:24, Philippe escribió:
> 
> Hi,
> 
> I installed Licode using today’s git repository, started it with  
> initLicode.sh, then lauched the initBasicExample.sh.
> 
> When I connect with Chrome to [http://myserver:3001](http://myserver:3001), video is properly  
> displayed, but shortly after, I can see those errors in the console :  
> WebRtcConnection constructor stunserver stunPort 0 minPort 0 maxPort 0  
> init… localvideoSsrc\_ 55543
> 
> GThread-ERROR \*\*: GThread system may only be initialized once.  
> aborting…  
> ErizoController 1 in 10.0.0.43 does not respond. Deleting it.  
> [CLOUD HANDLER]: Warning! No erizoController is available.
> 
> And therefore, access to [http://myserver:3001](http://myserver:3001) is available, but the page  
> remains blank for others who join that URL.
> 
> Also, I could not find any start/stop procedure for all the components. Is  
> the info available somewhere?
> 
> To my understanding, the following node programs are used :
> 
> - nuve.js (listening on TCP port 3000 by default)
> - erizoController.js (listening on TCP port 8080 by default)
> 
> Should a simple "stop script’ just kill the corresponding processed  
> attached to the programs?
> 
> Thanks, and congratulations for this great software!
> 
> Philippe
> 
> –  
> 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+u...@googlegroups.com](mailto:lynckia+u...@googlegroups.com) \<javascript:\>.  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
