[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #25939 [Core Tor/Tor]: A Tor commit seems to have broken creation of V3 onion services with stem
#25939: A Tor commit seems to have broken creation of V3 onion services with stem
----------------------------------------+----------------------------------
Reporter: maqp | Owner: dgoulet
Type: defect | Status:
| needs_information
Priority: High | Milestone: Tor:
| 0.3.4.x-final
Component: Core Tor/Tor | Version:
Severity: Major | Resolution:
Keywords: 034-must regression tor-hs | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor: Sponsor8
----------------------------------------+----------------------------------
Changes (by atagar):
* component: Core Tor/Stem => Core Tor/Tor
Comment:
Hi maqp, think I see the issues. When I run the following...
{{{
import stem.control
with stem.control.Controller.from_port() as controller:
controller.authenticate()
result = controller.create_ephemeral_hidden_service(80, key_content =
'ED25519-V3', await_publication = True)
print('service established at %s.onion\n' % result.service_id)
raw_input('press any key to quit...')
}}}
I get...
{{{
Exception in thread Event Notifier:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/atagar/Desktop/stem/stem/control.py", line 966, in
_event_loop
self._handle_event(event_message)
File "/home/atagar/Desktop/stem/stem/control.py", line 3830, in
_handle_event
stem.response.convert('EVENT', event_message, arrived_at =
time.time())
File "/home/atagar/Desktop/stem/stem/response/__init__.py", line 124, in
convert
message._parse_message(**kwargs)
File "/home/atagar/Desktop/stem/stem/response/events.py", line 66, in
_parse_message
self._parse()
File "/home/atagar/Desktop/stem/stem/response/events.py", line 683, in
_parse
raise stem.ProtocolError("HS_DESC's directory doesn't match a
ServerSpec: %s" % self)
ProtocolError: HS_DESC's directory doesn't match a ServerSpec: HS_DESC
CREATED UNKNOWN UNKNOWN nZ5mr9/xASJHx/Fo7JpHialB5E0kC7jFJtaAXNgkPqY
}}}
Note the two spaces between 'CREATED' and 'UNKNOWN'. The problem here is
that tor is filling in an empty string for the HS_DESC's 'Action'. It
should be...
{{{
Action = "REQUESTED" / "UPLOAD" / "RECEIVED" / "UPLOADED" / "IGNORE" /
"FAILED" / "CREATED"
}}}
This in turn causes Stem to think that the DescriptorID value is the
fourth field, and it is invalid as the HsDir.
Sending this back over to tor.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/25939#comment:12>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs