all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* shepherd: Service tor could not be started.
@ 2021-11-27  1:16 Caleb Herbert
  2021-11-28 11:37 ` Wiktor Żelazny
  0 siblings, 1 reply; 3+ messages in thread
From: Caleb Herbert @ 2021-11-27  1:16 UTC (permalink / raw)
  To: help-guix

-*- 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/



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: shepherd: Service tor could not be started.
  2021-11-27  1:16 shepherd: Service tor could not be started Caleb Herbert
@ 2021-11-28 11:37 ` Wiktor Żelazny
  2021-11-29 22:16   ` Caleb Herbert
  0 siblings, 1 reply; 3+ messages in thread
From: Wiktor Żelazny @ 2021-11-28 11:37 UTC (permalink / raw)
  To: Caleb Herbert; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 1050 bytes --]

On Fri, Nov 26, 2021 at 07:16:23PM -0600, Caleb Herbert wrote:

> 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.

Hi Celeb,

To my understanding for some reason one cannot stop a tor service using
GNU Shepherd. When I need to restart, I kill the tor process using `kill
<PID>`, and only then run `herd restart tor`.

> * Running Tor manually

> Nov 26 19:01:57.107 [warn] Could not bind to 127.0.0.1:9050: Address
> already in use. Is Tor already running?

Apparently, tor is running. It tends to happen to me after reconnecting
to the Internet that I cannot use tor, anymore, although the process is
still running. I need to perform the above procedure to make it usable
again.

Not sure if that addresses your problem, but you can try this poor-man’s
method.

WŻ

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: shepherd: Service tor could not be started.
  2021-11-28 11:37 ` Wiktor Żelazny
@ 2021-11-29 22:16   ` Caleb Herbert
  0 siblings, 0 replies; 3+ messages in thread
From: Caleb Herbert @ 2021-11-29 22:16 UTC (permalink / raw)
  To: help-guix


On 11/28/21 5:37 AM, Wiktor Żelazny wrote:
> To my understanding for some reason one cannot stop a tor service using
> GNU Shepherd. When I need to restart, I kill the tor process using `kill
> <PID>`, and only then run `herd restart tor`.

This worked. Thanks.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-29 22:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-27  1:16 shepherd: Service tor could not be started Caleb Herbert
2021-11-28 11:37 ` Wiktor Żelazny
2021-11-29 22:16   ` Caleb Herbert

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.