Opened 7 days ago

Last modified 4 days ago

#32939 new defect

Python stack in sbws

Reported by: tom Owned by:
Priority: Medium Milestone:
Component: Core Tor/sbws Version:
Severity: Normal Keywords:
Cc: juga Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


Jan 10 18:23:16 WARNING MainThread - print_heartbeat_message - There is no progress measuring new unique relays.
Jan 10 18:23:16 DEBUG MainThread - main_loop - Attempted to measure 317 relays in 7.899018947283427 minutes
Jan 10 18:23:16 CRITICAL MainThread - run_speedtest - Something went wrong.
Please create a ticket in with this traceback.
Jan 10 18:23:16 ERROR MainThread - run_speedtest -
Traceback (most recent call last):
  File "/home/tom/sbws-venv/lib/python3.7/site-packages/sbws/core/", line 700, in run_speedtest
    max_pending_results, pool)
  File "/home/tom/sbws-venv/lib/python3.7/site-packages/sbws/core/", line 550, in main_loop
    if controller.get_conf('TestingTorNetwork') == '1':
  File "/home/tom/sbws-venv/lib/python3.7/site-packages/stem/", line 2170, in get_conf
    entries = self.get_conf_map(param, default, multiple)
  File "/home/tom/sbws-venv/lib/python3.7/site-packages/stem/", line 2254, in get_conf_map
    response = self.msg('GETCONF %s' % ' '.join(lookup_params))
  File "/home/tom/sbws-venv/lib/python3.7/site-packages/stem/", line 651, in msg
  File "/home/tom/sbws-venv/lib/python3.7/site-packages/stem/", line 450, in send
    self._send(message, lambda s, sf, msg: send_message(sf, msg))
  File "/home/tom/sbws-venv/lib/python3.7/site-packages/stem/", line 247, in _send
    raise stem.SocketClosed()

It seems like sometimes tor does not respond to a controller message and that causes sbws to crash...

Child Tickets

Change History (4)

comment:1 Changed 7 days ago by juga

It seems like sometimes tor does not respond to a controller message and that causes sbws to crash...

In concrete, when sending GETCONF.

Could you look which versions of stem and tor you have?.

This looks like a duplicate of #32897, i'd copy these lines there and close this one.


comment:2 Changed 6 days ago by tom

From inside the venv I did tor --version Tor version and stem.version = '1.7.1'

comment:3 Changed 4 days ago by juga

The machines was having only 512MB of RAM that have been just increased. If this error does not happen again, the problem was probably that.
We recommend at least 1.5GB

Last edited 4 days ago by juga (previous) (diff)

comment:4 Changed 4 days ago by tom

The likely theory is that tor got killed and crashed SBWS. It would be nice if sbws could handle this nicely and idle until it could reconnect to tor...

Note: See TracTickets for help on using tickets.