Simon,<br><br>I think the email i send you is incomplete, my connection was poor and gmail must have saved the wrong draft. But, 1-2-3, is what i intended to send you.<br><br>I also meant to ask, How many times do you try _init_connection before you assume the connection is down?
<br><br><br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I hope so. I have a tarball with the patch, but I'm still waiting for<br>
Update.1 approval (it's unclear whether I can build RPMs for Joyride
<br>before I get Update.1 approval or not). If you're at 1CC, could you please<br>annoy the ApprovalForUpdate people in person until they either look at their<br>bugs, or confirm whether I'm still allowed to build RPMs in Koji?
</blockquote><div><br>I can definitely try to arrange this. But, can you please send me the tarball to test it in the mean time?<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

> 2. We need to be able to restart PS. As you say this is not possible, but if<br>> we restart sugar will PS restart as well?<br><br>Yes, that's right (the D-Bus session bus will exit, which causes<br>D-Bus services like PS to exit too unless they've specifically asked not to).
<br><br>I see you assigned the bug about "need to be able to cope with PS restarts" to<br>yourself. Unless you're planning to implement the necessary Python code<br>in sugar.presence yourself, please don't.
</blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I don't think it's feasible to implement correct handling of PS restarts in
<br>sugar.presence for Update.1, so unless the release engineering team<br>specifically tell me to, I won't be addressing that bug until a later<br>release.</blockquote><div><br>Ok, i will reassign the bug to presenceservice. As long as restarting sugar works, we can stick to that for now.
<br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">> 3. We need to force gabble to run. We have several instances of 4193 (almost
<br>> all XOs connected to schoolserver,AP are running salut). Or at least to<br>> force trying to connect to jabber server.<br><br>Please see my comments on #4193 regarding steps to take to debug (I think<br>it's #4193 I commented on - I can't remember bug numbers, and Trac is
<br>down at the moment).<br><br>In summary:<br><br>* try resolving the server with "getent hosts <a href="http://jabber.laptop.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jabber.laptop.org
</a>"<br>* try pinging it with "ping <a href="http://jabber.laptop.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
jabber.laptop.org</a>"<br>* try connecting via TCP with "telnet <a href="http://jabber.laptop.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jabber.laptop.org</a> 5222"<br>  (type "hello" and press Enter, if all goes well you should get disconnected
<br>  with an error message that mentions "XML not well formed")</blockquote><div><br>The bug is indeed 4193.  I have replied to your post, but as the trac is down you probably havent seen it.<br>I made all three tests:
<br><br>$getent hosts <a href="http://jabber.laptop.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jabber.laptop.org</a><br>     2001:4830:2446:ff00:201:6cff:fe07:68ec <a href="http://jabber.laptop.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
jabber.laptop.org</a>   <----- frequent reply<br>     <a href="http://18.85.46.41" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
18.85.46.41</a>     <a href="http://jabber.laptop.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jabber.laptop.org</a>  <----------rare reply<br><br>$ping <a href="http://jabber.laptop.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
jabber.laptop.org</a><br>     PING <a href="http://jabber.laptop.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
jabber.laptop.org</a> (<a href="http://18.85.46.41" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">18.85.46.41</a>) 56(84) bytes of data.<br>     64 bytes from <a href="http://jabber.laptop.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
jabber.laptop.org</a> (<a href="http://18.85.46.41" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">18.85.46.41</a>): icmp_seq=1 ttl=63 time=
67.4 ms<br>     ...<br><br>$telnet <a href="http://jabber.laptop.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jabber.laptop.org</a> 5222<br>     blabla... connected<br>hello<br>     replied with an xml packet with "xml-not-well-formed" included
<br><br>
so it seems that it is a PS issue. Perhaps it is not waiting long enough, or doesnt make enough tries when trying to connect. I have reassigned the bug to presenceservice.<br><br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

If any of these steps fail, Gabble won't be able to connect either, and<br>there's nothing Gabble can do about it - talk to the Network Manager<br>maintainer instead, since that's the component responsible for getting
<br>network connectivity and DNS on the XO.<br><br>If you check the Gabble log you'll probably find that Gabble is trying<br>to connect, but failing because either it can't resolve<br><a href="http://jabber.laptop.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

jabber.laptop.org</a> in DNS, or it can't get a TCP connection there. That was my<br>diagnosis of two of the cases you mentioned in your bug with 3 sets of logs<br>(which may have been #4193?). In the third case it looked as though you hadn't
<br>waited long enough for the log to indicate success or failure.<br><br>> 4. The process of trying to connect to the jabber server, is done by<br>> telepathy-gabble, or by the presence</blockquote><div><br><br>What I meant here is, Does the PS check if jabber server is accessible, and then runs telepathy-gabble?, or this is one of the tasks of telepathy-gabble?, which as I see you replied to
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Depends what you mean. The Presence Service is responsible for choosing when
<br>to try to connect (at which time it calls the Connect() D-Bus method<br>on Gabble), but it's Gabble that actually opens a TCP socket to the Jabber<br>server and tries to talk to it. You can see this in the PS log, for
<br>instance:<br><br>1194431620.966651 DEBUG s-p-s.telepathy_plugin: <ServerPlugin object at<br>0x85f1e14 (telepathy_plugin+TelepathyPlugin at 0x82c8fb0)>: connecting...<br>1194431620.967008 DEBUG s-p-s.telepathy_plugin:

 <ServerPlugin object at<br>0x85f1e14 (telepathy_plugin+TelepathyPlugin at 0x82c8fb0)>: Connect()<br>succeeded<br><br>(note that "Connect() succeeded" is a bit misleading - it just means<br>that the connection manager has said "OK, I'll try", rather than that it
<br>has actually been able to connect.)<br><br>In the telepathy-gabble log you'll then see something like this:<br><br>** (telepathy-gabble:25330): DEBUG: do_connect: calling lm_connection_open<br>Going to connect to 
<a href="http://olpc.collabora.co.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">olpc.collabora.co.uk</a><br>Trying <a href="http://195.10.223.134" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
195.10.223.134</a> port 5222...<br>** (telepathy-gabble:25330): DEBUG: tp_base_connection_change_status:<br>was 4294967295, now 1, for reason 1
<br>** (telepathy-gabble:25330): DEBUG: tp_base_connection_change_status:<br>emitting status-changed to 1, for reason 1<br><br>(here status 4294967295 means "haven't tried to connect yet", status 1 means<br>

"connecting", reason 1 means "by user request")</blockquote><div><br>so at this point is where the common bug is?<br><br>have you tried to check connecting to gabble with the laptops available there? Does it work fine? 
<br>Perhaps you can connect to an XO here with ssh, and debug real time what is exactly happening.<br><br>it was suggested (i think bug 4700) that it is possible that the jabber server might have a limit in number of users. Is this possible?
<br><br>yani<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">If the TCP connection succeeds, in the telepathy-gabble log you'll see:
<br><br>Connection success.<br>SEND:<br>- -----------------------------------
<br><?xml version='1.0' encoding='UTF-8'?><br>- -----------------------------------<br><br>Some XMPP handshaking will follow.<br><br>Finally, when Gabble has finished doing its initial setup on the<br>

connection, it will signal that it's become connected:<br><br>** (telepathy-gabble:25330): DEBUG: tp_base_connection_change_status:<br>was 1, now 0, for reason 1<br>** (telepathy-gabble:25330): DEBUG: tp_base_connection_change_status:
<br> emitting status-changed to 0, for reason 1<br><br>(here status 0 means "connected")<br><br>and the Presence Service will receive the StatusChanged signal via D-Bus:<br><br>1194431621.473412 DEBUG s-p-s.telepathy_plugin:

 <ServerPlugin object at<br>0x85f1e14 (telepathy_plugin+TelepathyPlugin at 0x82c8fb0)>: connected<br><br>    Simon<br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.6 (GNU/Linux)<br>Comment: OpenPGP key: <a href="http://www.pseudorandom.co.uk/2003/contact/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://www.pseudorandom.co.uk/2003/contact/</a> or <a href="http://pgp.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">pgp.net</a><br><br>iD8DBQFHMaGcWSc8zVUw7HYRAjPOAKDuLi+Vp04s8aGs9pbGQ8Lkr8fwzgCgxaza
<br>ipqZMRnw9vKHTYTJT+e96qg=<br>=vEu4<br>-----END PGP SIGNATURE-----
<br>_______________________________________________<br>Devel mailing list<br><a href="mailto:Devel@lists.laptop.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Devel@lists.laptop.org</a><br><a href="http://lists.laptop.org/listinfo/devel" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.laptop.org/listinfo/devel
</a><br></blockquote></div><br>