[tor-bugs] #16330 [BridgeDB]: BridgeDB isn't parsing server descriptors because Stem is choking on a line
Tor Bug Tracker & Wiki
blackhole at torproject.org
Wed Jun 10 05:38:29 UTC 2015
#16330: BridgeDB isn't parsing server descriptors because Stem is choking on a line
------------------------------+----------------------
Reporter: isis | Owner: isis
Type: defect | Status: new
Priority: critical | Milestone:
Component: BridgeDB | Version:
Keywords: bridgedb-parsers | Actual Points:
Parent ID: | Points:
------------------------------+----------------------
{{{
WARNING:root:This Python version is too old! It doesn't support new-style
buffer interfaces: https://mail.python.org/pipermail/python-
dev/2010-October/104917.html
Traceback (most recent call last):
File "/home/bridgedb/virtualenvs/bridgedb/bin/bridgedb", line 5, in
<module>
pkg_resources.run_script('bridgedb==0.3.2-dirty', 'bridgedb')
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 499, in
run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1235, in
run_script
execfile(script_filename, namespace, namespace)
File
"/srv/bridges.torproject.org/home/virtualenvs/bridgedb/lib/python2.7/site-
packages/bridgedb-0.3.2_dirty-py2.7.egg/EGG-INFO/scripts/bridgedb", line
31, in <module>
run(option)
File "/home/bridgedb/virtualenvs/bridgedb/local/lib/python2.7/site-
packages/bridgedb-0.3.2_dirty-py2.7.egg/bridgedb/Main.py", line 499, in
run
emailDistributor, ipDistributor = reload(False)
File "/home/bridgedb/virtualenvs/bridgedb/local/lib/python2.7/site-
packages/bridgedb-0.3.2_dirty-py2.7.egg/bridgedb/Main.py", line 425, in
reload
load(state, splitter, clear=False)
File "/home/bridgedb/virtualenvs/bridgedb/local/lib/python2.7/site-
packages/bridgedb-0.3.2_dirty-py2.7.egg/bridgedb/Main.py", line 137, in
load
serverdescriptors = descriptors.parseServerDescriptorsFile(filename)
File "/home/bridgedb/virtualenvs/bridgedb/local/lib/python2.7/site-
packages/bridgedb-0.3.2_dirty-py2.7.egg/bridgedb/parse/descriptors.py",
line 144, in parseServerDescriptorsFile
routers = list(document)
File "/home/bridgedb/virtualenvs/bridgedb/lib/python2.7/site-
packages/stem/descriptor/__init__.py", line 169, in parse_file
for desc in handler(descriptor_file, descriptor_type, validate,
document_handler, **kwargs):
File "/home/bridgedb/virtualenvs/bridgedb/lib/python2.7/site-
packages/stem/descriptor/__init__.py", line 234, in _parse_file_for_path
for desc in parse_file(desc_file, *args, **kwargs):
File "/home/bridgedb/virtualenvs/bridgedb/lib/python2.7/site-
packages/stem/descriptor/__init__.py", line 219, in parse_file
for desc in file_parser(descriptor_file):
File "/home/bridgedb/virtualenvs/bridgedb/lib/python2.7/site-
packages/stem/descriptor/__init__.py", line 269, in _parse_metrics_file
for desc in
stem.descriptor.server_descriptor._parse_file(descriptor_file, is_bridge =
False, validate = validate, **kwargs):
File "/home/bridgedb/virtualenvs/bridgedb/lib/python2.7/site-
packages/stem/descriptor/server_descriptor.py", line 170, in _parse_file
yield RelayDescriptor(descriptor_text, validate, annotations,
**kwargs)
File "/home/bridgedb/virtualenvs/bridgedb/lib/python2.7/site-
packages/stem/descriptor/server_descriptor.py", line 674, in __init__
super(RelayDescriptor, self).__init__(raw_contents, validate,
annotations)
File "/home/bridgedb/virtualenvs/bridgedb/lib/python2.7/site-
packages/stem/descriptor/server_descriptor.py", line 539, in __init__
self._parse(entries, validate)
File "/home/bridgedb/virtualenvs/bridgedb/lib/python2.7/site-
packages/stem/descriptor/__init__.py", line 494, in _parse
raise exc
ValueError: extra-info-digest line had an invalid value (should be 40 hex
characters): extra-info-digest 24EAF6D76B81EF9DC51B5B913812EBCFA8535639
BlGu+TfQKcL46aQ/PZvnsub6ki+YvO9iEagu6jZHpA0
}}}
This also means that BridgeDB won't start/restart.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/16330>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list