Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

No descriptor received for instance <whatever>.onion yet #47

Closed
alecmuffett opened this issue Feb 17, 2017 · 0 comments
Closed

No descriptor received for instance <whatever>.onion yet #47

alecmuffett opened this issue Feb 17, 2017 · 0 comments

Comments

@alecmuffett
Copy link
Contributor

alecmuffett commented Feb 17, 2017

I have a pool of many Tor workers, all of which support the same several virtual onion addresses; an example config is attached below.

When launching, OB eventually starts producing No descriptor received for instance errors/messages:

2017-02-17 01:26:26,139 [DEBUG]: Updated the list of Tor hidden service directories.
2017-02-17 01:26:32,804 [DEBUG]: Beginning service descriptor upload.
2017-02-17 01:26:32,809 [DEBUG]: Received new HS_DESC event: HS_DESC UPLOAD enbjkjdx53xo2di5 UNKNOWN $4E4C03DAC9CE070A0BCB3BCD25570B6A82978D3E~Unnamed jyvaxtvuc5rtbijdqceziurhzjzrwlmd
2017-02-17 01:26:39,490 [DEBUG]: Received new HS_DESC event: HS_DESC UPLOADED enbjkjdx53xo2di5 UNKNOWN $4E4C03DAC9CE070A0BCB3BCD25570B6A82978D3E~Unnamed
2017-02-17 01:26:39,519 [DEBUG]: Beginning service descriptor upload.
2017-02-17 01:26:46,200 [DEBUG]: Beginning service descriptor upload.
2017-02-17 01:26:46,202 [DEBUG]: Received new HS_DESC event: HS_DESC UPLOAD enbjkjdx53xo2di5 UNKNOWN $4E643DB8ADF2B9DCE50F87D937CE6A2E8BECAB1C~InessaJenkins jyvaxtvuc5rtbijdqceziurhzjzrwlmd
2017-02-17 01:26:46,206 [DEBUG]: Received new HS_DESC event: HS_DESC UPLOADED enbjkjdx53xo2di5 UNKNOWN $4E643DB8ADF2B9DCE50F87D937CE6A2E8BECAB1C~InessaJenkins
2017-02-17 01:26:46,208 [INFO]: Published distinct master descriptors for service enbjkjdx53xo2di5.onion under replica 0.
2017-02-17 01:26:46,209 [DEBUG]: Received new HS_DESC event: HS_DESC UPLOAD enbjkjdx53xo2di5 UNKNOWN $4E737BBFCCBE45A923CE82577E99DCFFABC5BFF4~fento jyvaxtvuc5rtbijdqceziurhzjzrwlmd
2017-02-17 01:26:52,891 [DEBUG]: Beginning service descriptor upload.
2017-02-17 01:26:52,892 [DEBUG]: Received new HS_DESC event: HS_DESC UPLOADED enbjkjdx53xo2di5 UNKNOWN $4E737BBFCCBE45A923CE82577E99DCFFABC5BFF4~fento
2017-02-17 01:26:52,897 [DEBUG]: Received new HS_DESC event: HS_DESC UPLOAD enbjkjdx53xo2di5 UNKNOWN $E8055322033610E83630D89C2B2628C1CA942431~BlueswagTor 47zw2dm5i6f5kvy2fr6gxkacomvdhghi
2017-02-17 01:26:59,536 [DEBUG]: Beginning service descriptor upload.
2017-02-17 01:26:59,537 [DEBUG]: Received new HS_DESC event: HS_DESC UPLOADED enbjkjdx53xo2di5 UNKNOWN $E8055322033610E83630D89C2B2628C1CA942431~BlueswagTor
2017-02-17 01:27:06,245 [DEBUG]: Beginning service descriptor upload.
2017-02-17 01:27:06,248 [DEBUG]: Received new HS_DESC event: HS_DESC UPLOAD enbjkjdx53xo2di5 UNKNOWN $E8106EE88C697464CBCA100E140F0F9950F808CA~dussart 47zw2dm5i6f5kvy2fr6gxkacomvdhghi
2017-02-17 01:27:06,250 [DEBUG]: Received new HS_DESC event: HS_DESC UPLOADED enbjkjdx53xo2di5 UNKNOWN $E8106EE88C697464CBCA100E140F0F9950F808CA~dussart
2017-02-17 01:27:06,254 [DEBUG]: Received new HS_DESC event: HS_DESC UPLOAD enbjkjdx53xo2di5 UNKNOWN $E81EE535A27130053FD7F8A77DB8780E90C48CB7~seadog007 47zw2dm5i6f5kvy2fr6gxkacomvdhghi
2017-02-17 01:27:06,254 [INFO]: Published distinct master descriptors for service enbjkjdx53xo2di5.onion under replica 1.
2017-02-17 01:27:06,256 [DEBUG]: Publishing a descriptor for service lawibawpbun2ey75.onion.
2017-02-17 01:27:06,256 [INFO]: No descriptor received for instance 6c6gwrmzrc5jh73b.onion yet.
2017-02-17 01:27:06,257 [INFO]: No descriptor received for instance ezictrxl7eazqf7q.onion yet.
2017-02-17 01:27:06,257 [INFO]: No descriptor received for instance gq2lawtyvwaz4i53.onion yet.
2017-02-17 01:27:06,257 [INFO]: No descriptor received for instance k3kqrbhs7bk7b27p.onion yet.
2017-02-17 01:27:06,258 [INFO]: No descriptor received for instance mawi34wbqiyyiylo.onion yet.
2017-02-17 01:27:06,258 [INFO]: No descriptor received for instance nlh7u7f6gv77343w.onion yet.
2017-02-17 01:27:06,258 [INFO]: No descriptor received for instance pp5vqoe6lplrnx7k.onion yet.
2017-02-17 01:27:06,259 [INFO]: No descriptor received for instance w4imnccvsx4klp5m.onion yet.
2017-02-17 01:27:06,259 [DEBUG]: We have 0 IPs, not using distinct descriptors.
2017-02-17 01:27:06,262 [WARNING]: Error generating descriptor: No introduction points for service lawibawpbun2ey75.onion.
2017-02-17 01:27:06,265 [WARNING]: Error generating descriptor: No introduction points for service lawibawpbun2ey75.onion.
2017-02-17 01:27:06,266 [DEBUG]: Publishing a descriptor for service hdojmtbk2vm7xoqo.onion.
2017-02-17 01:27:06,266 [INFO]: No descriptor received for instance 6c6gwrmzrc5jh73b.onion yet.
2017-02-17 01:27:06,267 [INFO]: No descriptor received for instance ezictrxl7eazqf7q.onion yet.
2017-02-17 01:27:06,267 [INFO]: No descriptor received for instance gq2lawtyvwaz4i53.onion yet.
2017-02-17 01:27:06,267 [INFO]: No descriptor received for instance k3kqrbhs7bk7b27p.onion yet.

...however, to pick an example onion like nlh7u7f6gv77343w we can tell that OB is not correct, that is has received a descriptor:

01:32:24 rig0:onionbalance.d $ grep nlh7u7f6gv77343w onionbalance.log  | less
...
...
2017-02-17 01:25:18,423 [DEBUG]: Received new HS_DESC_CONTENT event for nlh7u7f6gv77343w.onion
2017-02-17 01:25:18,430 [DEBUG]: Received a descriptor for instance nlh7u7f6gv77343w.onion.
2017-02-17 01:25:18,433 [DEBUG]: Introduction points for instance nlh7u7f6gv77343w.onion matched the cached set.
2017-02-17 01:25:20,390 [DEBUG]: Received new HS_DESC event: HS_DESC RECEIVED nlh7u7f6gv77343w NO_AUTH $5A083945E4635BF3EE9378390E04AC689DB51535~tatsulingTorRelay lhrcprndbm75osvtwkzuo5pdj7666cz7
2017-02-17 01:25:20,396 [DEBUG]: Received new HS_DESC_CONTENT event for nlh7u7f6gv77343w.onion
2017-02-17 01:25:20,404 [DEBUG]: Received a descriptor for instance nlh7u7f6gv77343w.onion.
2017-02-17 01:25:20,407 [DEBUG]: Introduction points for instance nlh7u7f6gv77343w.onion matched the cached set.
2017-02-17 01:25:28,449 [DEBUG]: Received new HS_DESC event: HS_DESC RECEIVED nlh7u7f6gv77343w NO_AUTH $E70972F8229623017581044BB10B2CEE1B7EB158~Necto4 jndz6hsljjvy3tbjiuht2ceoq6fbqb4k
2017-02-17 01:25:28,454 [DEBUG]: Received new HS_DESC_CONTENT event for nlh7u7f6gv77343w.onion
2017-02-17 01:25:28,461 [DEBUG]: Received a descriptor for instance nlh7u7f6gv77343w.onion.
2017-02-17 01:25:28,464 [DEBUG]: Introduction points for instance nlh7u7f6gv77343w.onion matched the cached set.
2017-02-17 01:25:28,759 [DEBUG]: Received new HS_DESC event: HS_DESC RECEIVED nlh7u7f6gv77343w NO_AUTH $59F16177E3B3D1979DA56642E6044E266473EF2A~meeseeksanddestroy lhrcprndbm75osvtwkzuo5pdj7666cz7
2017-02-17 01:25:28,763 [DEBUG]: Received new HS_DESC_CONTENT event for nlh7u7f6gv77343w.onion
2017-02-17 01:25:28,770 [DEBUG]: Received a descriptor for instance nlh7u7f6gv77343w.onion.
2017-02-17 01:25:28,773 [DEBUG]: Introduction points for instance nlh7u7f6gv77343w.onion matched the cached set.
2017-02-17 01:27:06,258 [INFO]: No descriptor received for instance nlh7u7f6gv77343w.onion yet.
2017-02-17 01:27:06,268 [INFO]: No descriptor received for instance nlh7u7f6gv77343w.onion yet.
2017-02-17 01:27:06,277 [INFO]: No descriptor received for instance nlh7u7f6gv77343w.onion yet.
2017-02-17 01:27:06,287 [INFO]: No descriptor received for instance nlh7u7f6gv77343w.onion yet.
...

This is flaky. Is there some prohibition on reuse of worker onions between master ones?

Config File

STATUS_SOCKET_LOCATION: /home/pi/eotk.d/onionbalance.d/ob-status.sock
INITIAL_DELAY: 60
REFRESH_INTERVAL: 600
DESCRIPTOR_UPLOAD_PERIOD: 600
DESCRIPTOR_VALIDITY_PERIOD: 1800
PUBLISH_CHECK_INTERVAL: 900
LOG_LEVEL: debug
services:
# PROJECT wiki
  # mediawiki.org => enbjkjdx53xo2di5.onion
  - key: /home/pi/eotk.d/secrets.d/enbjkjdx53xo2di5.key
    instances:
      - address: '6c6gwrmzrc5jh73b'
      - address: 'ezictrxl7eazqf7q'
      - address: 'gq2lawtyvwaz4i53'
      - address: 'k3kqrbhs7bk7b27p'
      - address: 'mawi34wbqiyyiylo'
      - address: 'nlh7u7f6gv77343w'
      - address: 'pp5vqoe6lplrnx7k'
      - address: 'w4imnccvsx4klp5m'
  # wikibooks.org => lawibawpbun2ey75.onion
  - key: /home/pi/eotk.d/secrets.d/lawibawpbun2ey75.key
    instances:
      - address: '6c6gwrmzrc5jh73b'
      - address: 'ezictrxl7eazqf7q'
      - address: 'gq2lawtyvwaz4i53'
      - address: 'k3kqrbhs7bk7b27p'
      - address: 'mawi34wbqiyyiylo'
      - address: 'nlh7u7f6gv77343w'
      - address: 'pp5vqoe6lplrnx7k'
      - address: 'w4imnccvsx4klp5m'
  # wikidata.org => hdojmtbk2vm7xoqo.onion
  - key: /home/pi/eotk.d/secrets.d/hdojmtbk2vm7xoqo.key
    instances:
      - address: '6c6gwrmzrc5jh73b'
      - address: 'ezictrxl7eazqf7q'
      - address: 'gq2lawtyvwaz4i53'
      - address: 'k3kqrbhs7bk7b27p'
      - address: 'mawi34wbqiyyiylo'
      - address: 'nlh7u7f6gv77343w'
      - address: 'pp5vqoe6lplrnx7k'
      - address: 'w4imnccvsx4klp5m'
  # wikimedia.org => nlslsxqknhvfuq5y.onion
  - key: /home/pi/eotk.d/secrets.d/nlslsxqknhvfuq5y.key
    instances:
...continues
DonnchaC added a commit that referenced this issue Feb 17, 2017
Some users would like to have multiple master services backed by
the same set of instance addresses. This is equivalent to having multiple
unique domains served by one set of load balancers.

There was a bug where OnionBalance would discard a newly received instance
descriptor after finding the first matching instance object. Other master
services would not have their copy of that instance updated. This resulted
in those other instances producing a "No descriptor received for instance"
error.

Thank you to Alec Muffett for reporting this issue.

Resolves #47.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant