[Top][All Lists]

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

Using git-annex with tor on guix system

From: TakeV
Subject: Using git-annex with tor on guix system
Date: Fri, 12 Jan 2024 12:58:50 -0500

Hi there!

I am trying to get git-annex working with tor on my guix system install. I had been following this guide, but using the guix equivalents in my system config:

The command itself (i.e. "sudo git annex enable-tor $(id -u)") seems to fail due to trying to call systemd, yet it is able to update the torrc (I had to manually create the initial /etc/tor/torrc for it to update, however).

The resulting torrc is:

HiddenServiceDir /var/lib/tor/tor-annex_1001_54d5b4b2-7325-43f9-b1be-1c1e8481eca4 HiddenServicePort 24166 unix:/var/lib/tor-annex/1001_54d5b4b2-7325-43f9-b1be-1c1e8481eca4/s

I then updated my system config with the generated data from running the command (Other onion sites have been removed from this code):

(service tor-service-type
                      (list (tor-onion-service-configuration
                             (name "tor-annex_1001_54d5b4b2-7325-43f9-b1be-1c1e8481eca4")                              (mapping '((24166 . "unix:/var/lib/tor-annex/1001_54d5b4b2-7325-43f9-b1be-1c1e8481eca4/s"))))))
                     (socks-socket-type 'unix)
                     (control-socket? #t)))

When I attempt to build it though, I am getting:

building /gnu/store/d84j0m7shr73qii9sdmvg62xbbj4j4ij-torrc.drv...
           4 (primitive-load "/gnu/store/c3nm27il4snwbmm5l2bfzgriw8g?")
In ice-9/ports.scm:
   433:17  3 (call-with-output-file _ _ #:binary _ #:encoding _)
In ice-9/eval.scm:
    619:8  2 (_ #(#(#<directory (guile-user) 7ffff77f7c80>) #<outp?>))
In ice-9/boot-9.scm:
   260:13  1 (for-each #<procedure 7ffff0f09240 at ice-9/eval.scm:3?> ?)
In ice-9/eval.scm:
    619:8  0 (_ #(#(#<directory (guile-user) 7ffff77f7c80> ("t?" ?))))

ice-9/eval.scm:619:8: Throw to key `match-error' with args `("match" "no matching pattern" ("tor-annex_1001_54d5b4b2-7325-43f9-b1be-1c1e8481eca4" (24166 . "unix:/var/lib/tor-annex/1001_54d5b4b2-7325-43f9-b1be-1c1e8481eca4/s")))'.

Having a very difficult time figuring out what is going on here. I am not seeing the socket file in /var/lib/tor-annex/1001_54d5b4b2-7325-43f9-b1be-1c1e8481eca4, could it be erroring there? Or does it not work with socket mappings? Has anyone been able to get git-annex's tor functionality working on a guix system?


Attachment: OpenPGP_signature
Description: OpenPGP digital signature

reply via email to

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