unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Caleb Herbert <csh@bluehome.net>
To: help-guix@gnu.org
Subject: shepherd: Service tor could not be started.
Date: Fri, 26 Nov 2021 19:16:23 -0600	[thread overview]
Message-ID: <3f3dfaef-32dd-1873-3b7a-bd8ab857f7b6@bluehome.net> (raw)

-*- 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	other threads:[~2021-11-27 12:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-27  1:16 Caleb Herbert [this message]
2021-11-28 11:37 ` shepherd: Service tor could not be started Wiktor Żelazny
2021-11-29 22:16   ` Caleb Herbert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3f3dfaef-32dd-1873-3b7a-bd8ab857f7b6@bluehome.net \
    --to=csh@bluehome.net \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).