#24409 closed defect (fixed)

nyx crashed when trying to write to the torrc

Reported by: Dbryrtfbcbhgf Owned by: atagar
Priority: Medium Milestone:
Component: Core Tor/Nyx Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

nyx crashed when trying to write to the torrc. Here are the crash logs

[WARN] Couldn't rename configuration file "/etc/tor/torrc" to "/etc/tor/torrc.orig.1": Read-only file system

Traceback (most recent call last):

  File "/usr/local/bin/nyx", line 11, in <module>

    sys.exit(main())

  File "/usr/local/lib/python3.5/dist-packages/nyx/__init__.py", line 176, in main

    nyx.starter.main()

  File "/usr/local/lib/python3.5/dist-packages/stem/util/conf.py", line 289, in wrapped

    return func(*args, config = config, **kwargs)

  File "/usr/local/lib/python3.5/dist-packages/nyx/starter.py", line 118, 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.5/dist-packages/nyx/curses.py", line 217, in start

    curses.wrapper(_wrapper)

  File "/usr/lib/python3.5/curses/__init__.py", line 94, in wrapper

    return func(stdscr, *args, **kwds)

  File "/usr/local/lib/python3.5/dist-packages/nyx/curses.py", line 215, in _wrapper

    function()

  File "/usr/local/lib/python3.5/dist-packages/nyx/__init__.py", line 243, in draw_loop

    keybinding.handle(key)

  File "/usr/local/lib/python3.5/dist-packages/nyx/panel/__init__.py", line 84, in handle

    self._action()

  File "/usr/local/lib/python3.5/dist-packages/nyx/panel/config.py", line 219, in _show_write_dialog

    controller.save_conf()

  File "/usr/local/lib/python3.5/dist-packages/stem/control.py", line 3220, in save_conf

    raise stem.OperationFailed(response.code, response.message)

stem.OperationFailed: Unable to write configuration to disk.

Child Tickets

Change History (1)

comment:1 Changed 13 months ago by atagar

Resolution: fixed
Status: newclosed

Thanks Dbryrtfbcbhgf! Great catch, fix pushed...

https://gitweb.torproject.org/nyx.git/commit/?id=5378d75

Note: See TracTickets for help on using tickets.