[Server-devel] Understanding registering xo process

Ciro Nuñez ciro.nunez at perueduca.edu.pe
Tue Apr 21 15:55:54 EDT 2009


Hi,
Im trying to understand the registering process.
(registering xo with XS)
Could some one point me to the pieces of code to look up please?
I know that, at the server side, idmgr service is in charge.
but who is in charge at the  client side?

saludos,
Ing. Ciro Nuñez I.
______________________
Dirección General
de Tecnologías Educativas
DIGETE - MED - PERU
tel:   615-5800  (1236)
Cel: 991-331-163
________________________________________
De: server-devel-bounces at lists.laptop.org [server-devel-bounces at lists.laptop.org] en nombre de server-devel-request at lists.laptop.org [server-devel-request at lists.laptop.org]
Enviado el: viernes, 03 de abril de 2009 11:00 a.m.
Para: server-devel at lists.laptop.org
Asunto: Server-devel Digest, Vol 24, Issue 7

Send Server-devel mailing list submissions to
        server-devel at lists.laptop.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.laptop.org/listinfo/server-devel
or, via email, send a message with subject or body 'help' to
        server-devel-request at lists.laptop.org

You can reach the person managing the list at
        server-devel-owner at lists.laptop.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Server-devel digest..."


Today's Topics:

   1. Re: Gadget on XS (Guillaume Desmottes)
   2. Re: XS Restore UI and account aliasing are ready for
      testing... (Martin Langhoff)
   3. Re: Gadget on XS (Dave Bauer)
   4. Re: Gadget on XS (Dave Bauer)


----------------------------------------------------------------------

Message: 1
Date: Fri, 03 Apr 2009 15:15:50 +0100
From: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Subject: Re: [Server-devel] Gadget on XS
To: dave.bauer at gmail.com
Cc: server-devel at lists.laptop.org
Message-ID: <1238768150.4109.27.camel at cass-x200s.lan>
Content-Type: text/plain; charset="UTF-8"

Le vendredi 03 avril 2009 ? 09:41 -0400, Dave Bauer a ?crit :
>
>
> On Wed, Apr 1, 2009 at 6:36 AM, Guillaume Desmottes
> <guillaume.desmottes at collabora.co.uk> wrote:
>         Le mardi 31 mars 2009 ? 13:45 -0400, Dave Bauer a ?crit :
>         > Hi,
>         >
>         > I am trying to get gadget working on my XS at
>         > schoolserver.solutiongrove.com
>         >
>         > First I downloaded the source and built it, but I could not
>         find any
>         > indication that gadget was installed. How can I tell if it
>         is working?
>         >
>         > Next I tried the gadget package
>         > http://koji.fedoraproject.org/koji/taskinfo?taskID=1261886
>         RPM but it
>         > required ejabberd package. RPM says this is not installed.
>         (I did
>         > install python-twisted which was another requirement of the
>         RPM).
>         >
>         > Does anyoe have any advice on getting gadget working?
>
>
>         Basically you have to install the gadget service, launch it
>         (it's a
>         separated process), modify your ejabberd.cfg as explained in
>         the Gadget
>         README and then restart your ejabberd.
>
>         You can see if Gadget is working by looking at the XMPP
>         traffic
>         exchanged between clients and the server.
>
> Gadget started /etc/init.d/gadget start
>
> logs on server say
>
> 2009/04/03 09:37 -0400 [-] Log opened.
> 2009/04/03 09:37 -0400 [-] twistd 2.5.0 (/usr/bin/python 2.5.1)
> starting up
> 2009/04/03 09:37 -0400 [-] reactor class: <class
> 'twisted.internet.selectreactor.SelectReactor'>
> 2009/04/03 09:37 -0400 [-] Loading /usr/share/gadget/gadget.tac...
> 2009/04/03 09:37 -0400 [-] Loaded.
> 2009/04/03 09:37 -0400 [-] Starting factory
> <twisted.words.protocols.jabber.xmlstream.XmlStreamFactory instance at
> 0x8a8644c>
> 2009/04/03 09:37 -0400 [Uninitialized] <twisted.internet.tcp.Connector
> instance at 0x8a8bb4c> will retry in 2 seconds
> 2009/04/03 09:37 -0400 [Uninitialized] Stopping factory
> <twisted.words.protocols.jabber.xmlstream.XmlStreamFactory instance at
> 0x8a8644c>
> 2009/04/03 09:37 -0400 [-] Starting factory
> <twisted.words.protocols.jabber.xmlstream.XmlStreamFactory instance at
> 0x8a8644c>
> 2009/04/03 09:37 -0400 [Uninitialized] <twisted.internet.tcp.Connector
> instance at 0x8a8bb4c> will retry in 9 seconds
> 2009/04/03 09:37 -0400 [Uninitialized] Stopping factory
> <twisted.words.protocols.jabber.xmlstream.XmlStreamFactory instance at
> 0x8a8644c>
> 2009/04/03 09:37 -0400 [-] Starting factory
> <twisted.words.protocols.jabber.xmlstream.XmlStreamFactory instance at
> 0x8a8644c>
> 2009/04/03 09:37 -0400 [Uninitialized] <twisted.internet.tcp.Connector
> instance at 0x8a8bb4c> will retry in 24 seconds
> 2009/04/03 09:37 -0400 [Uninitialized] Stopping factory
> <twisted.words.protocols.jabber.xmlstream.XmlStreamFactory instance at
> 0x8a8644c>
> 2009/04/03 09:38 -0400 [-] Starting factory
> <twisted.words.protocols.jabber.xmlstream.XmlStreamFactory instance at
> 0x8a8644c>
> 2009/04/03 09:38 -0400 [Uninitialized] <twisted.internet.tcp.Connector
> instance at 0x8a8bb4c> will retry in 70 seconds
> 2009/04/03 09:38 -0400 [Uninitialized] Stopping factory
> <twisted.words.protocols.jabber.xmlstream.XmlStreamFactory instance at
> 0x8a8644c>
> 2009/04/03 09:39 -0400 [-] Starting factory
> <twisted.words.protocols.jabber.xmlstream.XmlStreamFactory instance at
> 0x8a8644c>
> 2009/04/03 09:39 -0400 [Uninitialized] <twisted.internet.tcp.Connector
> instance at 0x8a8bb4c> will retry in 183 seconds
> 2009/04/03 09:39 -0400 [Uninitialized] Stopping factory
> <twisted.words.protocols.jabber.xmlstream.XmlStreamFactory instance at
> 0x8a8644c>
>
> and so on. Not sure where to look. is this OK?

Did you properly configured ejabberd as explained in Gadget's README?
You should have something like that:

 {5560, ejabberd_service, [
      {ip, {127, 0, 0, 1}},
      {access, all},
      {host, "gadget.jabber.sugarlabs.org", [{password, "xxxx"}]}]},

Your gadget.config should match these params.

Then don't forget to restart ejabberd to reload the new configuration.



        G.




------------------------------

Message: 2
Date: Fri, 3 Apr 2009 16:35:48 +0200
From: Martin Langhoff <martin.langhoff at gmail.com>
Subject: Re: [Server-devel] XS Restore UI and account aliasing are
        ready for       testing...
To: XS Devel <server-devel at lists.laptop.org>
Cc: OLPC Devel <devel at lists.laptop.org>
Message-ID:
        <46a038f90904030735q720a90c2h91c5d2fa99abf980 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Thu, Apr 2, 2009 at 9:26 PM, Martin Langhoff
<martin.langhoff at gmail.com> wrote:
> ?- Setup a XS 5.2 and grab my development version of moodle -
> instructions here:
> http://lists.laptop.org/pipermail/server-devel/2009-March/003126.html

There's a new series of patches with minor tidyups, recommended. And
an rpm, so if you want to play with it

 yum --enablerepo=olpcxs-testing install moodle-xs

The version at this point is: moodle-xs-1.9.2.xs2.45.g136e4d

cheers,



martin
--
 martin.langhoff at gmail.com
 martin at laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff


------------------------------

Message: 3
Date: Fri, 3 Apr 2009 10:40:20 -0400
From: Dave Bauer <dave.bauer at gmail.com>
Subject: Re: [Server-devel] Gadget on XS
To: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Cc: server-devel at lists.laptop.org
Message-ID:
        <6c4e07720904030740j7707fba3nc5c1f7456883466f at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

On Fri, Apr 3, 2009 at 10:15 AM, Guillaume Desmottes <
guillaume.desmottes at collabora.co.uk> wrote:

> Le vendredi 03 avril 2009 ? 09:41 -0400, Dave Bauer a ?crit :
> >
> >
> > On Wed, Apr 1, 2009 at 6:36 AM, Guillaume Desmottes
> > <guillaume.desmottes at collabora.co.uk> wrote:
> >         Le mardi 31 mars 2009 ? 13:45 -0400, Dave Bauer a ?crit :
> >         > Hi,
> >         >
> >         > I am trying to get gadget working on my XS at
> >         > schoolserver.solutiongrove.com
> >         >
> >         > First I downloaded the source and built it, but I could not
> >         find any
> >         > indication that gadget was installed. How can I tell if it
> >         is working?
> >         >
> >         > Next I tried the gadget package
> >         > http://koji.fedoraproject.org/koji/taskinfo?taskID=1261886
> >         RPM but it
> >         > required ejabberd package. RPM says this is not installed.
> >         (I did
> >         > install python-twisted which was another requirement of the
> >         RPM).
> >         >
> >         > Does anyoe have any advice on getting gadget working?
> >
> >
> >         Basically you have to install the gadget service, launch it
> >         (it's a
> >         separated process), modify your ejabberd.cfg as explained in
> >         the Gadget
> >         README and then restart your ejabberd.
> >
> >         You can see if Gadget is working by looking at the XMPP
> >         traffic
> >         exchanged between clients and the server.
> >
> > Gadget started /etc/init.d/gadget start
> >
> > logs on server say
> >
> > 2009/04/03 09:37 -0400 [-] Log opened.
> > 2009/04/03 09:37 -0400 [-] twistd 2.5.0 (/usr/bin/python 2.5.1)
> > starting up
> > 2009/04/03 09:37 -0400 [-] reactor class: <class
> > 'twisted.internet.selectreactor.SelectReactor'>
> > 2009/04/03 09:37 -0400 [-] Loading /usr/share/gadget/gadget.tac...
> > 2009/04/03 09:37 -0400 [-] Loaded.
> > 2009/04/03 09:37 -0400 [-] Starting factory
> > <twisted.words.protocols.jabber.xmlstream.XmlStreamFactory instance at
> > 0x8a8644c>
> > 2009/04/03 09:37 -0400 [Uninitialized] <twisted.internet.tcp.Connector
> > instance at 0x8a8bb4c> will retry in 2 seconds
> > 2009/04/03 09:37 -0400 [Uninitialized] Stopping factory
> > <twisted.words.protocols.jabber.xmlstream.XmlStreamFactory instance at
> > 0x8a8644c>
> > 2009/04/03 09:37 -0400 [-] Starting factory
> > <twisted.words.protocols.jabber.xmlstream.XmlStreamFactory instance at
> > 0x8a8644c>
> > 2009/04/03 09:37 -0400 [Uninitialized] <twisted.internet.tcp.Connector
> > instance at 0x8a8bb4c> will retry in 9 seconds
> > 2009/04/03 09:37 -0400 [Uninitialized] Stopping factory
> > <twisted.words.protocols.jabber.xmlstream.XmlStreamFactory instance at
> > 0x8a8644c>
> > 2009/04/03 09:37 -0400 [-] Starting factory
> > <twisted.words.protocols.jabber.xmlstream.XmlStreamFactory instance at
> > 0x8a8644c>
> > 2009/04/03 09:37 -0400 [Uninitialized] <twisted.internet.tcp.Connector
> > instance at 0x8a8bb4c> will retry in 24 seconds
> > 2009/04/03 09:37 -0400 [Uninitialized] Stopping factory
> > <twisted.words.protocols.jabber.xmlstream.XmlStreamFactory instance at
> > 0x8a8644c>
> > 2009/04/03 09:38 -0400 [-] Starting factory
> > <twisted.words.protocols.jabber.xmlstream.XmlStreamFactory instance at
> > 0x8a8644c>
> > 2009/04/03 09:38 -0400 [Uninitialized] <twisted.internet.tcp.Connector
> > instance at 0x8a8bb4c> will retry in 70 seconds
> > 2009/04/03 09:38 -0400 [Uninitialized] Stopping factory
> > <twisted.words.protocols.jabber.xmlstream.XmlStreamFactory instance at
> > 0x8a8644c>
> > 2009/04/03 09:39 -0400 [-] Starting factory
> > <twisted.words.protocols.jabber.xmlstream.XmlStreamFactory instance at
> > 0x8a8644c>
> > 2009/04/03 09:39 -0400 [Uninitialized] <twisted.internet.tcp.Connector
> > instance at 0x8a8bb4c> will retry in 183 seconds
> > 2009/04/03 09:39 -0400 [Uninitialized] Stopping factory
> > <twisted.words.protocols.jabber.xmlstream.XmlStreamFactory instance at
> > 0x8a8644c>
> >
> > and so on. Not sure where to look. is this OK?
>
> Did you properly configured ejabberd as explained in Gadget's README?
> You should have something like that:
>
>  {5560, ejabberd_service, [
>      {ip, {127, 0, 0, 1}},
>      {access, all},
>      {host, "gadget.jabber.sugarlabs.org", [{password, "xxxx"}]}]},
>
> Your gadget.config should match these params.
>
AHA! gadget.config.

Can we add the startup and gadget.config to the README?
Thanks
Dave


>
> Then don't forget to restart ejabberd to reload the new configuration.
>
>
>
>        G.
>
>
>


--
Dave Bauer
dave at solutiongrove.com
http://www.solutiongrove.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.laptop.org/pipermail/server-devel/attachments/20090403/687c302c/attachment-0001.htm

------------------------------

Message: 4
Date: Fri, 3 Apr 2009 10:46:51 -0400
From: Dave Bauer <dave.bauer at gmail.com>
Subject: Re: [Server-devel] Gadget on XS
To: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Cc: server-devel at lists.laptop.org
Message-ID:
        <6c4e07720904030746m1cfe9b94v72d9424a720f887e at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

>
>> Did you properly configured ejabberd as explained in Gadget's README?
>> You should have something like that:
>>
>>  {5560, ejabberd_service, [
>>      {ip, {127, 0, 0, 1}},
>>      {access, all},
>>      {host, "gadget.jabber.sugarlabs.org", [{password, "xxxx"}]}]},
>>
>> Your gadget.config should match these params.
>>
> AHA! gadget.config.
>

Fixed, restarted ejabberd and gadget but same error.

Startup of gadget says
2009/04/03 10:44 -0400 [-] Received SIGTERM, shutting down.
2009/04/03 10:44 -0400 [-] Main loop terminated.
2009/04/03 10:44 -0400 [-] Server Shut Down.
2009/04/03 10:45 -0400 [-] Log opened.
2009/04/03 10:45 -0400 [-] twistd 2.5.0 (/usr/bin/python 2.5.1) starting up
2009/04/03 10:45 -0400 [-] reactor class: <class
'twisted.internet.selectreactor.SelectReactor'>
2009/04/03 10:45 -0400 [-] Loading /usr/share/gadget/gadget.tac...
2009/04/03 10:45 -0400 [-] Loaded.
2009/04/03 10:45 -0400 [-] Starting factory
<twisted.words.protocols.jabber.xmlstream.XmlStreamFactory instance at
0x94f640c>
2009/04/03 10:45 -0400 [Uninitialized] <twisted.internet.tcp.Connector
instance at 0x94fbb2c> will retry in 2 seconds

Any idea how to debug?

Thanks
Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.laptop.org/pipermail/server-devel/attachments/20090403/5eba4565/attachment-0001.htm

------------------------------

_______________________________________________
Server-devel mailing list
Server-devel at lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


End of Server-devel Digest, Vol 24, Issue 7
*******************************************


More information about the Server-devel mailing list