help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

shepherd: Service tor could not be started.


From: Caleb Herbert
Subject: shepherd: Service tor could not be started.
Date: Fri, 26 Nov 2021 19:16:23 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Icedove/78.9.0

-*- org -*-

I cannot for the life of me get Tor to work. I tried following the instructions for "tor-service-type" at <https://guix.gnu.org/manual/en/html_node/Networking-Services.html>.

Please write back if I have failed to include any important information. I have tried to provide as much as I can.

* System Declaration

** Source

;; This is an operating system configuration generated
;; by the graphical installer.

(use-modules (gnu))
(use-service-modules desktop networking ssh xorg syncthing)

(operating-system
(locale "en_US.utf8")
(timezone "America/Chicago")
(keyboard-layout (keyboard-layout "gb" #:options '("compose:caps"))) ;; Does not work in i3 or Sway, uses U.S. QWERTY!
(host-name "bender")
(users (cons* (user-account
(name "caleb")
(comment "Caleb Herbert")
(group "users")
(home-directory "/home/caleb")
(supplementary-groups
'("wheel" "netdev" "audio" "video")))
(user-account
(name "rusty")
(comment "Rusty Shackleford")
(group "users")
(home-directory "/home/rusty")
(supplementary-groups
'("netdev" "audio" "video")))
%base-user-accounts))
(packages
(append
(list (specification->package "i3-wm") (specification->package "sway")
(specification->package "i3status") (specification->package "waybar")
(specification->package "dmenu") (specification->package "bemenu")
(specification->package "st") (specification->package "foot")
(specification->package "nss-certs"))
%base-packages))
(services
(append
(list (service syncthing-service-type (syncthing-configuration (user "caleb")))
;; (service gnome-desktop-service-type)
(service openssh-service-type) ;; rekado, does not work
;; (service tor-service-type (tor-configuration (control-socket? #t))) ;; Noisytoot, does not work
(service tor-service-type)
(set-xorg-configuration
(xorg-configuration
(keyboard-layout keyboard-layout))))
%desktop-services))
(bootloader
(bootloader-configuration
(bootloader grub-bootloader)
(target "/dev/sda")
(keyboard-layout keyboard-layout)))
(mapped-devices
(list (mapped-device
(source
(uuid "0d678a4e-f9f4-4589-8ac1-12e4d15d297c"))
(target "cryptroot")
(type luks-device-mapping))))
(file-systems
(cons* (file-system
(mount-point "/")
(device "/dev/mapper/cryptroot")
(type "ext4")
(dependencies mapped-devices))
%base-file-systems)))

** Error

[...]
building /gnu/store/p5wcd625yp09qvkjiacywspaxb6x4jg5-upgrade-shepherd-services.scm.drv...
shepherd: Service host-name has been started.
shepherd: Service user-homes has been started.
shepherd: Service sysctl has been started.
shepherd: Service host-name has been started.
shepherd: Service term-auto could not be started.
shepherd: Service tor could not be started.
To complete the upgrade, run 'herd restart SERVICE' to stop,
upgrade, and restart each service that was not automatically restarted.
Run 'herd status' to view the list of services on your system.
root@bender ~# herd restart tor
Service tor is not running.
Service tor could not be started.

* Running Tor manually

caleb@bender ~]> which tor
/home/caleb/.guix-profile/bin/tor
[caleb@bender ~]> whereis tor
tor: /gnu/store/yg9zc6hs5cr2i1nkl9xsni7lia71wbcf-profile/bin/tor
[caleb@bender ~]> tor
Nov 26 19:01:57.100 [notice] Tor 0.4.6.8 running on Linux with Libevent 2.1.11-stable, OpenSSL 1.1.1l, Zlib 1.2.11, Liblzma 5.2.4, Libzstd 1.4.4 and Glibc 2.31 as libc. Nov 26 19:01:57.100 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning Nov 26 19:01:57.100 [notice] Configuration file "/gnu/store/1mhwr7i2a0hrx2w8kzg2g2lw0xg9np3x-tor-0.4.6.8/etc/tor/torrc" not present, using reasonable defaults.
Nov 26 19:01:57.107 [notice] Opening Socks listener on 127.0.0.1:9050
Nov 26 19:01:57.107 [warn] Could not bind to 127.0.0.1:9050: Address already in use. Is Tor already running? Nov 26 19:01:57.108 [warn] Failed to parse/validate config: Failed to bind one of the listener ports.
Nov 26 19:01:57.108 [err] Reading config failed--see warnings above.
[caleb@bender ~]>

* Files and Logs

** Ownership of /var/run/tor/

root@bender ~# ls -Fla /var/run/tor/

total 8
drwxr-x--- 2 tor tor 4096 Nov 26 11:11 ./
drwxr-xr-x 13 root root 4096 Nov 26 09:55 ../
root@bender ~#

** No /var/log/tor

root@bender ~# ls -Fla /var/log
total 284
drwxr-xr-x 4 root root 4096 Nov 26 09:52 ./
drwxr-xr-x 11 root root 4096 Nov 25 22:35 ../
-rw-r----- 1 root root 80499 Nov 26 18:56 debug
-rw-r--r-- 1 root root 35643 Nov 26 08:57 debug.1.gz
drwx--x--x 2 root gdm 4096 Nov 25 22:37 gdm/
drwxr-xr-x 3 root root 4096 Nov 26 09:52 guix/
-rw-r----- 1 root root 1520 Nov 26 18:15 guix-daemon.log
-rw-r--r-- 1 root root 0 Nov 25 22:35 lastlog
-rw-r----- 1 root root 0 Nov 25 22:35 maillog
-rw-r----- 1 root root 210 Nov 26 08:57 mcron.log
-rw-r--r-- 1 root root 104 Nov 26 08:57 mcron.log.1.gz
-rw-r----- 1 root root 75336 Nov 26 18:56 messages
-rw-r--r-- 1 root root 33341 Nov 26 08:57 messages.1.gz
-rw-r--r-- 1 root root 0 Nov 25 22:35 nscd.log
-rw-r----- 1 root root 8044 Nov 26 18:08 secure
-rw-r--r-- 1 root root 617 Nov 26 08:57 secure.1.gz
-rw-r--r-- 1 root root 7296 Nov 26 18:08 wtmp
root@bender ~#

--
Caleb Herbert
https://bluehome.net/csh/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]