--- Begin Message ---
Hi,
On Mon, 01 Jun 2015, Christophe Siraut wrote:
> The attached patch adds an exception for these entries.
I committed a different patch that just ignores invalid UTF-8 charaters:
--- a/distro_tracker/vendor/debian/tracker_tasks.py
+++ b/distro_tracker/vendor/debian/tracker_tasks.py
@@ -409,7 +409,7 @@ class UpdatePackageBugStats(BaseTask):
# Each line in the response should be bug stats for a single package
bug_stats = {}
for line in response_content.splitlines():
- line = line.decode('utf-8')
+ line = line.decode('utf-8', 'ignore')
package_name, bug_counts = line.split(':', 1)
# Merged counts are in parentheses so remove those before splitting
# the numbers
This is enough to bring back the bug statistics but we still have the bug
that we can't access the Soap interface of the BTS:
2015-06-03 08:32:23,889 [tracker_tasks/27961/139959848625920] ERROR: Could not get bugs tagged help
Traceback (most recent call last):
File "/srv/tracker.debian.org/distro-tracker/distro_tracker/vendor/debian/tracker_tasks.py", line 463, in update_source_and_pseudo_bugs
help_bugs = self._get_tagged_bug_stats('help')
File "/srv/tracker.debian.org/distro-tracker/distro_tracker/vendor/debian/tracker_tasks.py", line 249, in _get_tagged_bug_stats
statuses = server.get_status(bugs)
File "/usr/lib/python2.7/dist-packages/SOAPpy/Client.py", line 545, in __call__
return self.__r_call(*args, **kw)
File "/usr/lib/python2.7/dist-packages/SOAPpy/Client.py", line 567, in __r_call
self.__hd, self.__ma)
File "/usr/lib/python2.7/dist-packages/SOAPpy/Client.py", line 430, in __call
timeout = self.timeout)
File "/usr/lib/python2.7/dist-packages/SOAPpy/Client.py", line 244, in call
r.endheaders()
File "/usr/lib/python2.7/httplib.py", line 997, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 850, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 812, in send
self.connect()
File "/usr/lib/python2.7/httplib.py", line 1212, in connect
server_hostname=server_hostname)
File "/usr/lib/python2.7/ssl.py", line 350, in wrap_socket
_context=self)
File "/usr/lib/python2.7/ssl.py", line 566, in __init__
self.do_handshake()
File "/usr/lib/python2.7/ssl.py", line 788, in do_handshake
self._sslobj.do_handshake()
SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)
I could not find a way to get it working. I even tried to override
the ssl._create_default_https_context() function that is called
in the process to return a custom SSLContext pointing
to /etc/ssl/ca-debian but could not get it to work.
Cheers,
PS: Christophe, I added you to the qa group on alioth.debian.org.
--
Raphaël Hertzog ◈ Debian Developer
Support Debian LTS: http://www.freexian.com/services/debian-lts.html
Learn to master Debian: http://debian-handbook.info/get/
--- End Message ---