[tor-bugs] #27342 [Core Tor/sbws]: sbws poor error handling

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Aug 27 03:11:36 UTC 2018


#27342: sbws poor error handling
-------------------------------+--------------------
     Reporter:  gabe           |      Owner:  (none)
         Type:  defect         |     Status:  new
     Priority:  Medium         |  Milestone:
    Component:  Core Tor/sbws  |    Version:
     Severity:  Normal         |   Keywords:
Actual Points:                 |  Parent ID:
       Points:                 |   Reviewer:
      Sponsor:                 |
-------------------------------+--------------------
 sbws first run states file not found, but gives no indication as to what
 file is not found.


 {{{
 test at 26e7731456d9:~$ sbws scanner
 Traceback (most recent call last):
   File "/usr/lib/python3.5/logging/handlers.py", line 823, in
 _connect_unixsocket
     self.socket.connect(address)
 FileNotFoundError: [Errno 2] No such file or directory

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "/usr/local/bin/sbws", line 11, in <module>
     sys.exit(main())
   File "/usr/local/lib/python3.5/dist-packages/sbws/sbws.py", line 53, in
 main
     configure_logging(args, conf)
   File "/usr/local/lib/python3.5/dist-packages/sbws/util/config.py", line
 160, in configure_logging
     logging.config.fileConfig(fd.name)
   File "/usr/lib/python3.5/logging/config.py", line 84, in fileConfig
     handlers = _install_handlers(cp, formatters)
   File "/usr/lib/python3.5/logging/config.py", line 148, in
 _install_handlers
     h = klass(*args)
   File "/usr/lib/python3.5/logging/handlers.py", line 806, in __init__
     self._connect_unixsocket(address)
   File "/usr/lib/python3.5/logging/handlers.py", line 834, in
 _connect_unixsocket
     self.socket.connect(address)
 FileNotFoundError: [Errno 2] No such file or directory

 }}}

 I assume the config file is missing, but don't know for sure.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/27342>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list