Re: [Server-devel] XO Registration Failed with XS
@James & Martin : Thanks alot for the new update. I had installed OS 10.1.2. My registration problem solved. Also I am very glad to see various feature added in this OS build. Specially Gnome on XO. On Mon, Aug 2, 2010 at 7:40 PM, Martin Langhoff wrote: > On Sun, Aug 1, 2010 at 8:58 PM, James Cameron wrote: > > Fixed, please upgrade. > > So this is in for 10.1.2 - bravo! > > > m > -- > martin.langh...@gmail.com > mar...@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 > -- Ganesh (Dragger) Be a FOSSERS, use GNU/Linux ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] XO Registration Failed with XS
On Sun, Aug 1, 2010 at 8:58 PM, James Cameron wrote: > Fixed, please upgrade. So this is in for 10.1.2 - bravo! m -- martin.langh...@gmail.com mar...@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 ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] XO Registration Failed with XS
On Fri, Jul 30, 2010 at 03:19:34PM -0400, Martin Langhoff wrote: > On Thu, Jul 29, 2010 at 7:43 PM, James Cameron wrote: > > On Thu, Jul 29, 2010 at 12:22:47PM -0400, Martin Langhoff wrote: > >> Maybe the sugar-control-panel cli can help, > >> but again I don't know the incantation. > > > > Probably because it doesn't work, again. > > > > http://dev.laptop.org/ticket/10261 raised, please track. > > Yeah, it spits out the same damn errors to me too. > > Ugly :-/ Fixed, please upgrade. (or, if you can't upgrade, backport the fix). -- James Cameron http://quozl.linux.org.au/ ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] XO Registration Failed with XS
On Thu, Jul 29, 2010 at 12:22:47PM -0400, Martin Langhoff wrote: > Maybe the sugar-control-panel cli can help, > but again I don't know the incantation. Probably because it doesn't work, again. http://dev.laptop.org/ticket/10261 raised, please track. -- James Cameron http://quozl.linux.org.au/ ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] XO Registration Failed with XS
On Thu, Jul 29, 2010 at 12:14 PM, Maxime Raynaud wrote: > I have a working XS server and my XO 1.5 is already registered so I want to > reset the register information and I can't find the config file. > every answers point to /home/olpc/.sugar/default/config and i have no config > file here :( On F11 / Sugar 0.84 systems (the XO-1.5 OS is one of them) that info has moved to gconf. There is probably a gconftool-2 magic incantation to remove those values, I don't know it. Maybe the sugar-control-panel cli can help, but again I don't know the incantation. It is all in .gconf . I sometimes just rm -fr .gconf :-/ m -- martin.langh...@gmail.com mar...@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 ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] XO Registration Failed with XS
Hello there, I didn't find the answer on various mailing list, i thought i could drop that here : I have a working XS server and my XO 1.5 is already registered so I want to reset the register information and I can't find the config file. every answers point to /home/olpc/.sugar/default/config and i have no config file here :( I tried to search the string "username = MyName" from the root but found nothing. Is there a way i can retrieve the path of the current loaded config ? Also I am able to launch a 2nd sugar environnement on an external display. Do you guys know where this new config file (as i am entering a new username + XO color) is created? Will it conflict with my current config file? Maxime 2010/7/29 Martin Langhoff > On Wed, Jul 28, 2010 at 7:04 PM, James Cameron wrote: > > Is there something about my proposed fix in SL #1940 that is preventing > > it from being tested by deployments? It has been three months. > > Nope. Probably deployments are fighting 200 other things. > > > Otherwise I need a complete test case to be able to verify the fix. > > I've reworked it into a patch, tests correctly for me. Adding my test > script in the bug now. > > > m > -- > martin.langh...@gmail.com > mar...@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 > ___ > Server-devel mailing list > Server-devel@lists.laptop.org > http://lists.laptop.org/listinfo/server-devel > ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] XO Registration Failed with XS
On Wed, Jul 28, 2010 at 7:04 PM, James Cameron wrote: > Is there something about my proposed fix in SL #1940 that is preventing > it from being tested by deployments? It has been three months. Nope. Probably deployments are fighting 200 other things. > Otherwise I need a complete test case to be able to verify the fix. I've reworked it into a patch, tests correctly for me. Adding my test script in the bug now. m -- martin.langh...@gmail.com mar...@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 ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] XO Registration Failed with XS
On Wed, Jul 28, 2010 at 08:46:31AM -0400, Martin Langhoff wrote: > On Sun, Jul 25, 2010 at 8:42 AM, James Cameron wrote: > > This may occur if there is no network connection on the first try, > > because the Sugar shell Python process caches the DNS resolver > > configuration. ?It is a known problem. > > So the bug is http://bugs.sugarlabs.org/ticket/1940 aka > http://dev.laptop.org/ticket/6857 - James, think we can > prioritise/retriage this for 10.1.2? Is there something about my proposed fix in SL #1940 that is preventing it from being tested by deployments? It has been three months. Otherwise I need a complete test case to be able to verify the fix. -- James Cameron http://quozl.linux.org.au/ ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] XO Registration Failed with XS
On Sun, Jul 25, 2010 at 8:42 AM, James Cameron wrote: > This may occur if there is no network connection on the first try, > because the Sugar shell Python process caches the DNS resolver > configuration. It is a known problem. So the bug is http://bugs.sugarlabs.org/ticket/1940 aka http://dev.laptop.org/ticket/6857 - James, think we can prioritise/retriage this for 10.1.2? cheers, m -- martin.langh...@gmail.com mar...@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 ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] XO Registration Failed with XS
On Wed, Jul 28, 2010 at 4:50 AM, ganesh gajre wrote: > When registration failed I tried > ctrl-alt-erase and restart sugar, after that I again connect to router, ping > the server which is ok. > > When I tried to register XO with server it fails > > .sugar/default/logs/shell.log has following record > > "ERROR root: Registration: cannot connect to server: (-3, 'Temporary > failure in name resolution') " That is *very* weird. After you ping the server successfully, Sugar must be able to connect. Can you retest, making sure you don't try to register before connecting to the AP? cheers, m -- martin.langh...@gmail.com mar...@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 ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] XO Registration Failed with XS
On Sun, Jul 25, 2010 at 6:12 PM, James Cameron wrote: > On Sun, Jul 25, 2010 at 10:00:59PM +1200, Tom Parker wrote: > > I have observed that if registration fails once it will fail every > > subsequent time until you do a restart of sugar. > > This may occur if there is no network connection on the first try, > because the Sugar shell Python process caches the DNS resolver > configuration. It is a known problem. > > > ctrl-alt-erase will > > restart sugar and seems to be sufficient. > > The new Sugar shell process re-reads the DNS resolver configuration, > which had changed. > When registration failed I tried ctrl-alt-erase and restart sugar, after that I again connect to router, ping the server which is ok. When I tried to register XO with server it fails .sugar/default/logs/shell.log has following record "ERROR root: Registration: cannot connect to server: (-3, 'Temporary failure in name resolution') " What can be the possible reason for this? > > > Note this file is erased on restart, so you have to view it > > after the failure. > > I thought these were saved in .sugar/default/logs with a timestamp. > > -- > James Cameron > http://quozl.linux.org.au/ > -- Ganesh (Dragger) Be a FOSSERS, use GNU/Linux ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] XO Registration Failed with XS
On Sun, Jul 25, 2010 at 10:00:59PM +1200, Tom Parker wrote: > I have observed that if registration fails once it will fail every > subsequent time until you do a restart of sugar. This may occur if there is no network connection on the first try, because the Sugar shell Python process caches the DNS resolver configuration. It is a known problem. > ctrl-alt-erase will > restart sugar and seems to be sufficient. The new Sugar shell process re-reads the DNS resolver configuration, which had changed. > Note this file is erased on restart, so you have to view it > after the failure. I thought these were saved in .sugar/default/logs with a timestamp. -- James Cameron http://quozl.linux.org.au/ ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] XO Registration Failed with XS
On Sun, July 25, 2010 9:34 pm, ganesh gajre wrote: > As per the given suggestion by all of you, I tried to follow the > procedure. > I didn't find schoolserver.py file neither on the machine which are > registered with schoolserver nor which failed to register. We have to bind > 100 XO's to Schoolserver in the next month, and we are at my place yet > unable to find out the reason why some XO's are failed to register while > others are registered. I have observed that if registration fails once it will fail every subsequent time until you do a restart of sugar. ctrl-alt-erase will restart sugar and seems to be sufficient. I've only registered 4 XOs with a school server so i'm not entirely sure that this is a coincidence. In my case, registration failed when the XO was not connected to the correct network or the XS wasn't properly working. I have found some information about registration failures in the shell.log. Note this file is erased on restart, so you have to view it after the failure. ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] XO Registration Failed with XS
As per the given suggestion by all of you, I tried to follow the procedure. I didn't find schoolserver.py file neither on the machine which are registered with schoolserver nor which failed to register. We have to bind 100 XO's to Schoolserver in the next month, and we are at my place yet unable to find out the reason why some XO's are failed to register while others are registered. On Tue, Jul 6, 2010 at 11:05 PM, ganesh gajre wrote: > > > On Tue, Jul 6, 2010 at 10:25 PM, Martin Langhoff < > martin.langh...@gmail.com> wrote: > >> On Mon, Jul 5, 2010 at 4:41 AM, ganesh gajre >> wrote: >> > I had upgraded and test on the xo build OS-802. I check the given path >> for >> > school server /usr/lib/python2.5/site-packages/ there I don't find >> jarabe >> > directory. >> >> That is for the XO not for the XS. >> > Yes, I try to locate schoolserver.py file in XO only. > >> >> > Also, the registering of XO to server still big hassle for me. It's very >> > important for me to bind all the XO to the Server. >> >> Daniel Drake has a patch that makes registration automatic. This leads >> to some problems so we cannot put it inthe general version of Sugar, >> but you may decide to include it in your build. >> > > Can I get the patch, so I can use it. What could be the possible reason to > failed XO registration? > > Thanks > >> >> cheers, >> >> >> m >> -- >> martin.langh...@gmail.com >> mar...@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 >> > > >> > > > -- > Ganesh (Dragger) > Be a FOSSERS, use GNU/Linux > -- Ganesh (Dragger) Be a FOSSERS, use GNU/Linux ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] XO Registration Failed with XS
On Thu, Jun 17, 2010 at 7:46 PM, Frederick Grose wrote: > On Thu, Jun 17, 2010 at 8:16 AM, Hamilton Chua wrote: > >> Hi Ganesh, >> >> I wrote this down a while back when I was figuring out how to get SoaS to >> register and backup with an XS, hope this helps you. >> >> The registration process begins when an XO laptop user clicks on the >> avatar and then clicks Register from the drop down menu. This action >> executes */usr/lib/python2.5/site-packages/jarabe/desktop/schoolserver.py >> *. This python script gathers the following required information from the >> XO laptop in order to register with the schoolserver : >> >>- serial number >>- nickname >>- uuid >>- SSH pubkey >> >> I had upgraded and test on the xo build OS-802. I check the given path for school server */usr/lib/python2.5/site-packages/ *there I don't find jarabe directory. Also, the registering of XO to server still big hassle for me. It's very important for me to bind all the XO to the Server. Please give me suggestion how to overcome this problem. > This data is sent via xmlrpc over port 8080 to the Identity Manager service >> on the school server. The identity manager is a python script located in >> */usr/bin/registration-server* on the school server. This service >> receives the information and validates the serial number. The information is >> then inserted into an sqlite3 database. It will then send back the following >> information to the XO laptop. >> >>- success >>- backupurl >>- backuppath >>- jabberserver >> >> Added to wiki at > http://wiki.laptop.org/go/School_Identity_Manager#XO_registration_process > . > > The other content on that page probably should be reviewed as it has not > been updated significantly since November 2008. > > > ___ > Server-devel mailing list > Server-devel@lists.laptop.org > http://lists.laptop.org/listinfo/server-devel > > -- Ganesh (Dragger) Be a FOSSERS, use GNU/Linux ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] XO Registration Failed with XS
On Thu, Jun 17, 2010 at 8:16 AM, Hamilton Chua wrote: > Hi Ganesh, > > I wrote this down a while back when I was figuring out how to get SoaS to > register and backup with an XS, hope this helps you. > > The registration process begins when an XO laptop user clicks on the avatar > and then clicks Register from the drop down menu. This action executes * > /usr/lib/python2.5/site-packages/jarabe/desktop/schoolserver.py*. This > python script gathers the following required information from the XO laptop > in order to register with the schoolserver : > >- serial number >- nickname >- uuid >- SSH pubkey > > This data is sent via xmlrpc over port 8080 to the Identity Manager service > on the school server. The identity manager is a python script located in * > /usr/bin/registration-server* on the school server. This service receives > the information and validates the serial number. The information is then > inserted into an sqlite3 database. It will then send back the following > information to the XO laptop. > >- success >- backupurl >- backuppath >- jabberserver > > Added to wiki at http://wiki.laptop.org/go/School_Identity_Manager#XO_registration_process . The other content on that page probably should be reviewed as it has not been updated significantly since November 2008. ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] XO Registration Failed with XS
Hi Ganesh, I wrote this down a while back when I was figuring out how to get SoaS to register and backup with an XS, hope this helps you. The registration process begins when an XO laptop user clicks on the avatar and then clicks Register from the drop down menu. This action executes * /usr/lib/python2.5/site-packages/jarabe/desktop/schoolserver.py*. This python script gathers the following required information from the XO laptop in order to register with the schoolserver : - serial number - nickname - uuid - SSH pubkey This data is sent via xmlrpc over port 8080 to the Identity Manager service on the school server. The identity manager is a python script located in * /usr/bin/registration-server* on the school server. This service receives the information and validates the serial number. The information is then inserted into an sqlite3 database. It will then send back the following information to the XO laptop. - success - backupurl - backuppath - jabberserver Best, Hamilton On Thu, Jun 17, 2010 at 2:32 PM, ganesh gajre wrote: > > > On Thu, Jun 17, 2010 at 12:07 AM, Martin Langhoff < > martin.langh...@gmail.com> wrote: > >> Hi Ganesh, >> >> welcome to the list, and thanks for working on a deployment! >> >> You are giving us very good info on the setup, and the steps you are >> following. >> >> First -- using a wireless router, instead of an XS with 2 network >> cards as the router is probably part of the problem. When you >> associate an XO to the Wifi signal, can you "ping schoolserver" ? >> > Yes, I can ping properly to XS. > >> >> Second -- there is a known bug in Sugar where if you try to register >> _before associating to the AP_ it fails, and then it will not see the >> XS even if you associate to the AP properly. If you reboot (or restart >> Sugar with ctr-alt-backspace) the problem disappears. >> > > Yes, there are some machines which tried to register without connecting to > AP/ Router, as you stated after restarting it disappears, but it does not, > I am still unable to register XO to server. > >> >> Third -- do NOT associate lanbond0 to eth0. It wll make a big mess of >> the network setup. Instead, use the xs-swapnics script so that the >> network card you have becomes eth1 . >> > >> >> 4. In each XO i had change the server address located at XO--> Control >> >> You should not do that -- you are going to go crazy. >> >> The XS is really designed and preconfigured to be the router of your >> network, it provides DHCP and DNS and registers specific IP addresses >> and DNS names that the XO tries to use. >> > > I agreed the XS provides DNS and DHCP, running dhcp service over a XS, I > find bit difficult as I am still learning about XS services, I used the > simple hack to solve it. I will try without giving server address in control > panel--> network. > And get back to list. > >> >> My recommendation: get the cheapest network card you can buy and put >> it in the XS. Seriously. >> >> If you absolutely cannot have the XS running the network, see the >> techniques and scripts that Jerry Vonau has posted to this list (you >> can use google to search over >> "site:lists.laptop.org/pipermail/server-devel > >> cheers, >> > > Will anyone can tell me how I can check the files which run to register XO > with XS on XO, so that I will get the idea of scripts that runs register > service. > > Thanks > >> >> >> >> m >> -- >> martin.langh...@gmail.com >> mar...@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 >> > > > -- > Ganesh (Dragger) > Be a FOSSERS, use GNU/Linux > > ___ > Server-devel mailing list > Server-devel@lists.laptop.org > http://lists.laptop.org/listinfo/server-devel > > ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] XO Registration Failed with XS
On Thu, Jun 17, 2010 at 12:07 AM, Martin Langhoff wrote: > Hi Ganesh, > > welcome to the list, and thanks for working on a deployment! > > You are giving us very good info on the setup, and the steps you are > following. > > First -- using a wireless router, instead of an XS with 2 network > cards as the router is probably part of the problem. When you > associate an XO to the Wifi signal, can you "ping schoolserver" ? > Yes, I can ping properly to XS. > > Second -- there is a known bug in Sugar where if you try to register > _before associating to the AP_ it fails, and then it will not see the > XS even if you associate to the AP properly. If you reboot (or restart > Sugar with ctr-alt-backspace) the problem disappears. > Yes, there are some machines which tried to register without connecting to AP/ Router, as you stated after restarting it disappears, but it does not, I am still unable to register XO to server. > > Third -- do NOT associate lanbond0 to eth0. It wll make a big mess of > the network setup. Instead, use the xs-swapnics script so that the > network card you have becomes eth1 . > > >> 4. In each XO i had change the server address located at XO--> Control > > You should not do that -- you are going to go crazy. > > The XS is really designed and preconfigured to be the router of your > network, it provides DHCP and DNS and registers specific IP addresses > and DNS names that the XO tries to use. > I agreed the XS provides DNS and DHCP, running dhcp service over a XS, I find bit difficult as I am still learning about XS services, I used the simple hack to solve it. I will try without giving server address in control panel--> network. And get back to list. > > My recommendation: get the cheapest network card you can buy and put > it in the XS. Seriously. > > If you absolutely cannot have the XS running the network, see the > techniques and scripts that Jerry Vonau has posted to this list (you > can use google to search over > "site:lists.laptop.org/pipermail/server-devel > cheers, > Will anyone can tell me how I can check the files which run to register XO with XS on XO, so that I will get the idea of scripts that runs register service. Thanks > > > > m > -- > martin.langh...@gmail.com > mar...@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 > -- Ganesh (Dragger) Be a FOSSERS, use GNU/Linux ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] XO Registration Failed with XS
Hi Ganesh, welcome to the list, and thanks for working on a deployment! You are giving us very good info on the setup, and the steps you are following. First -- using a wireless router, instead of an XS with 2 network cards as the router is probably part of the problem. When you associate an XO to the Wifi signal, can you "ping schoolserver" ? Second -- there is a known bug in Sugar where if you try to register _before associating to the AP_ it fails, and then it will not see the XS even if you associate to the AP properly. If you reboot (or restart Sugar with ctr-alt-backspace) the problem disappears. Third -- do NOT associate lanbond0 to eth0. It wll make a big mess of the network setup. Instead, use the xs-swapnics script so that the network card you have becomes eth1 . >> 4. In each XO i had change the server address located at XO--> Control You should not do that -- you are going to go crazy. The XS is really designed and preconfigured to be the router of your network, it provides DHCP and DNS and registers specific IP addresses and DNS names that the XO tries to use. My recommendation: get the cheapest network card you can buy and put it in the XS. Seriously. If you absolutely cannot have the XS running the network, see the techniques and scripts that Jerry Vonau has posted to this list (you can use google to search over "site:lists.laptop.org/pipermail/server-devel http://wiki.laptop.org/go/User:Martinlanghoff ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel