Closed realSConway closed 3 years ago
Path: /var/run/tor/control/var/run/tor/control.authcookie
Hi, that is certainly odd. Unless I'm missing something this can only arise if nyx believes tor is running within a chroot. Are you running FreeBSD or does your non-root user have a '~/.nyx/config' with a 'tor_chroot' field?
https://gitweb.torproject.org/nyx.git/tree/nyx/__init__.py#n383
If not, please run 'nyx --debug' with your non-root user and provide the debug output (minus anything you feel is sensitive).
Thanks!
Hi @atagar, thanks for the reply!
ok, so in '~/.nyx/config' I had tor_chroot with value: tor_chroot /var/run/tor/control
This was the reason for Path: /var/run/tor/control/var/run/tor/control.authcookie
Then I commented that line out, nyx -debug
, this returned
Saving a debug log to ebug, please check it for sensitive information before sharing it.
We were unable to read tor's authentication cookie...
Path: /var/run/tor/control.authcookie
Issue: Authentication failed: unable to read '/var/run/tor/control.authcookie' ([Errno 13] Permission denied: '/var/run/tor/control.authcookie')
Does this mean it's not possible to use nyx as non-root user on a root service?
Does this mean it's not possible to use nyx as non-root user on a root service?
Hi, it means that your authentication cookie isn't readable by your user. Tor obnoxiously requires some additional setup (#24). Please check your cookie's filesystem permissions, then adjust torrc options like CookieAuthFileGroupReadable so your nyx user can read it.
Ok, I'm not sure I quite understand.
But I got it working,
for file /etc/tor/torrc, I added:
ControlPort 9051
CookieAuthentication 1
CookieAuthFileGroupReadable 1
Added group tor to $USER.
Then chowned: chown $USER:tor /var/run/tor/control.authcookie
Restarted tor service: sudo systemctl restart tor
nyx is now run without sudo, displaying real-time information.
nyx - PC_NAME (Linux 5.xx.x-x-default) Tor 0.4.4.6 (recommended)
Relaying Disabled, Control Port (cookie): 9051
cpu: 1.9% tor, 0.4% nyx mem: 46 MB (0.3%) pid: 5430 uptime: 07:28
page 1 / 5 - m: menu, p: pause, h: page help, q: quit Bandwidth (limit: 1 GB/s, burst: 1 GB/s): Download (307.1 KB/sec - avg: 37.7 KB/sec): Upload (9.5 KB/sec - avg: 1.3 KB/sec): 1 MB 46 KB
969 KB 30 KB
485 KB 15 KB
12 KB 543 B 5s 10 15 20 25 30 35 5s 10 15 20 25 30 35
Great, glad it's working. :)
May I ask something although it's closed?
I'm facing the same error. Could you pls clarify what to do on step 2 Added group tor to $USER
?
In my installation, there's no group or user tor
. Should I create one or even both of them?
May I ask something although it's closed?
I'm facing the same error. Could you pls clarify what to do on step 2
Added group tor to $USER
?In my installation, there's no group or user
tor
. Should I create one or even both of them?
On debian-based system, the group is called debian-tor
. IDK about the other distros like Arch.
Hello everybody, I have a questing using nyx to monitor my tor service;
/usr/lib/systemd/system/tor.service
This service is run with sudo, when I attempt to run nyx, I get error.
Editing /etc/tor/torrc, by adding
Then restart tor service with sudo systemctl restart tor and attempt to start nyx. New error:
The paths above seem to be concatenated, but they do exist.
Running sudo nyx works but, but expect this is not a good idea: