torproject / nyx

Command-line monitor for Tor.
https://nyx.torproject.org/
GNU General Public License v3.0
123 stars 26 forks source link

FreeBSD fresh install tor and nyx, nyx fails to run #71

Open Travis528 opened 5 months ago

Travis528 commented 5 months ago

I've got a fresh VM of FreeBSD. I installed tor and nyx. I had nyx working, after a few reboots to correct a few things relating to basic networking, etc. now nyx gives the following error when I try to run it.


root@tor-relay01:~ # freebsd-version
14.0-RELEASE-p6

root@tor-relay01:/var # nyx
Exception in thread Thread-5:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.9/threading.py", line 917, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.9/site-packages/nyx/__init__.py", line 745, in halt_panels
    panel.join()
  File "/usr/local/lib/python3.9/threading.py", line 1055, in join
    raise RuntimeError("cannot join thread before it is started")
RuntimeError: cannot join thread before it is started
Traceback (most recent call last):
  File "/usr/local/bin/nyx", line 33, in <module>
    sys.exit(load_entry_point('nyx==2.1.0', 'console_scripts', 'nyx')())
  File "/usr/local/lib/python3.9/site-packages/nyx/__init__.py", line 176, in main
    nyx.starter.main()
  File "/usr/local/lib/python3.9/site-packages/stem/util/conf.py", line 289, in wrapped
    return func(*args, config = config, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/nyx/starter.py", line 128, in main
    nyx.curses.start(nyx.draw_loop, acs_support = config.get('acs_support', True), transparent_background = True, cursor = False)
  File "/usr/local/lib/python3.9/site-packages/nyx/curses.py", line 219, in start
    curses.wrapper(_wrapper)
  File "/usr/local/lib/python3.9/curses/__init__.py", line 94, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/local/lib/python3.9/site-packages/nyx/curses.py", line 217, in _wrapper
    function()
  File "/usr/local/lib/python3.9/site-packages/nyx/__init__.py", line 194, in draw_loop
    interface = nyx_interface()
  File "/usr/local/lib/python3.9/site-packages/nyx/__init__.py", line 256, in nyx_interface
    Interface()  # constructor sets NYX_INTERFACE
  File "/usr/local/lib/python3.9/site-packages/nyx/__init__.py", line 601, in __init__
    first_page_panels.append(nyx.panel.log.LogPanel())
  File "/usr/local/lib/python3.9/site-packages/nyx/panel/log.py", line 110, in __init__
    log_location = nyx.log.log_file_path(tor_controller())
  File "/usr/local/lib/python3.9/site-packages/nyx/log.py", line 88, in log_file_path
    if entry_comp[1] == 'file':
IndexError: list index out of range
root@tor-relay01:/var #

I'm at a loss as to why it is failing. It ran once but since getting everything sorted related to networking/tor now it won't run. Though tor is running just fine.