[Olpc-sysadmin] jabber.laptop.org not working?

Martin Dengler martin at martindengler.com
Sun Oct 31 12:52:46 EDT 2010


Hi,

I'm testing with this simple python-xmpp script[1] that has worked
reliably for a few years now, and it's reporting that
jabber.laptop.org is down (insofar as the jabber server goes).  Is
this really correct?

Martin

1. From http://wiki.laptop.org/go/Community_Jabber_Servers :

#!/usr/bin/python
import socket, sys
socket.setdefaulttimeout(5.0)
from xmpp import *
success = None
def test_alive(server, port):
    retval = None
    try:
        cl = Client(server)
        retval = cl.connect(server=(server, port))
    except (ValueError, StreamError), msg:
        if isinstance(msg, (ValueError, HostGone,
        RemoteConnectionFailed, UndefinedCondition)):
            retval = False
        else:
            retval = True
    return retval
success = test_alive(sys.argv[1], 5222)
success = success or test_alive(sys.argv[1], 5223)
sys.exit(0 if success else 1)

$ ./xmpp_alive.py jabber.laptop.org
/usr/lib/python2.6/site-packages/xmpp/auth.py:24: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha,base64,random,dispatcher,re
/usr/lib/python2.6/site-packages/xmpp/auth.py:26: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
Invalid debugflag given: always
Invalid debugflag given: nodebuilder
DEBUG:
DEBUG: Debug created for /usr/lib/python2.6/site-packages/xmpp/client.py
DEBUG:  flags defined: always,nodebuilder
DEBUG: socket       start Plugging <xmpp.transports.TCPsocket instance at 0x2643f80> into <xmpp.client.Client instance at 0x2643e18>
DEBUG: socket       warn  An error occurred while looking up _xmpp-client._tcp.jabber.laptop.org
Invalid debugflag given: always
Invalid debugflag given: nodebuilder
DEBUG:
DEBUG: Debug created for /usr/lib/python2.6/site-packages/xmpp/client.py
DEBUG:  flags defined: always,nodebuilder
DEBUG: socket       start Plugging <xmpp.transports.TCPsocket instance at 0x26594d0> into <xmpp.client.Client instance at 0x2659518>
DEBUG: socket       warn  An error occurred while looking up _xmpp-client._tcp.jabber.laptop.org
$ echo $?
1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
Url : http://lists.laptop.org/pipermail/olpc-sysadmin/attachments/20101031/8028a392/attachment.pgp 


More information about the Olpc-sysadmin mailing list