[tor-bugs] #27350 [Core Tor/Nyx]: Nyx -d ignores supplied file name

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Aug 27 21:39:20 UTC 2018


#27350: Nyx -d ignores supplied file name
------------------------------+--------------------
     Reporter:  traumschule   |      Owner:  atagar
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:
    Component:  Core Tor/Nyx  |    Version:
     Severity:  Normal        |   Keywords:
Actual Points:                |  Parent ID:
       Points:                |   Reviewer:
      Sponsor:                |
------------------------------+--------------------
 Thanks for this nice tool!

 Running nyx from git without arguments destroys the interface with stem
 debug messages. One needs to
 {{{
 $ ./run_nyx 2>nyx.log
 }}}
 The offered -d option seems to fail reliably:
 {{{
 $ ./run_nyx -d nyx.log
 Traceback (most recent call last):
   File "./run_nyx", line 14, in <module>
     nyx.main()
   File "nyx/nyx/__init__.py", line 176, in main
     nyx.starter.main()
   File "/usr/lib/python2.7/dist-packages/stem/util/conf.py", line 289, in
 wrapped
     return func(*args, config = config, **kwargs)
   File "nyx/nyx/starter.py", line 67, in main
     _setup_debug_logging(args)
   File "nyx/nyx/starter.py", line 135, in _setup_debug_logging
     os.makedirs(debug_dir)
   File "/usr/lib/python2.7/os.py", line 157, in makedirs
     mkdir(name, mode)
 OSError: [Errno 2] No such file or directory: ''
 }}}
 The packaged version says
 {{{
 $ nyx -d nyx.log
 Unable to write to our debug log file (nyx.log): No such file or directory

 $ nyx --version
 nyx version 2.0.4 (released November 5, 2017)
 }}}

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


More information about the tor-bugs mailing list