Package: python-launchpadlib Version: 1.9.12-2 Severity: normal Control: affects -1 wiki.debian.org X-Debbugs-CC: w...@debian.org, Paul Tagliamonte <paul...@debian.org>
The Debian wiki uses some JavaScript and a WSGI script to detect Launchpad bugs listed on Debian wiki pages and annotate them with closed/open and other information. http://anonscm.debian.org/gitweb/?p=collab-maint/wiki.debian.org.git;a=blob;f=usr/htdocs/bugstatus.js;hb=HEAD http://anonscm.debian.org/gitweb/?p=collab-maint/wiki.debian.org.git;a=blob;f=bin/launchpad;hb=HEAD http://anonscm.debian.org/gitweb/?p=collab-maint/wiki.debian.org.git;a=blob;f=etc/apache2/apache2.conf;hb=HEAD The WSGI uses python-launchpadlib and occasionally we notice that it fails with 500 Internal Server Error. The error is logged to the apache2 error log file, see below for the full dump. The issue appears to be that the wadl file sometimes gets corrupted, when I remove it, the error stops showing up. Looking at the file when it is broken, I see that it is truncated. /srv/wiki.debian.org/var/launchpad/api.launchpad.net/cache/api.launchpad.net,1.0,-application,vnd.sun.wadl+xml,fc06437932a618a4b30d0d0417f9234c I'm not entirely sure which package this issue needs to be fixed in, please reassign it to python-wadlib or another package if appropriate. For now I've added a workaround to the script. mod_wsgi (pid=1234): Target WSGI script '/srv/wiki.debian.org/bin/launchpad' can not be loaded as Python module. mod_wsgi (pid=1234): Exception occurred processing WSGI script '/srv/wiki.debian.org/bin/launchpad'. Traceback (most recent call last): File "/srv/wiki.debian.org/bin/launchpad", line 18, in <module> launchpad = Launchpad.login_anonymously('debian-wiki', 'production', cachedir) File "/usr/lib/python2.7/dist-packages/launchpadlib/launchpad.py", line 373, in login_anonymously version=version) File "/usr/lib/python2.7/dist-packages/launchpadlib/launchpad.py", line 198, in __init__ credentials, service_root, cache, timeout, proxy_info, version) File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/resource.py", line 460, in __init__ self._wadl = self._browser.get_wadl_application(self._root_uri) File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/_browser.py", line 300, in get_wadl_application return Application(str(url), content) File "/usr/lib/python2.7/dist-packages/wadllib/application.py", line 1071, in __init__ self.doc = self._from_string(markup) File "/usr/lib/python2.7/dist-packages/wadllib/application.py", line 1108, in _from_string return self._from_stream(BytesIO(markup)) File "/usr/lib/python2.7/dist-packages/wadllib/application.py", line 1095, in _from_stream for event, elem in ET.iterparse(stream, events): File "<string>", line 107, in next ParseError: unclosed token: line 33223, column 6 -- System Information: Debian Release: 7.0 APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages python-launchpadlib depends on: ii python 2.7.3~rc2-1 ii python-httplib2 0.7.4-2 ii python-keyring 0.7.1-1+deb7u1 ii python-lazr.restfulclient 0.12.0-2 ii python-lazr.uri 1.0.3-1 ii python-oauth 1.0.1-3 ii python-simplejson 2.5.2-1 ii python-wadllib 1.3.0-2 ii python2.6 2.6.8-1.1 ii python2.7 2.7.3-6 Versions of packages python-launchpadlib suggests: ii python-pkg-resources 0.6.24-1 un python-testresources <none> -- bye, pabs http://wiki.debian.org/PaulWise
signature.asc
Description: This is a digitally signed message part