From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QASRACUnQmDALgAA0tVLHw (envelope-from ) for ; Fri, 05 Mar 2021 12:42:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id ANiGNyQnQmBaAQAAB5/wlQ (envelope-from ) for ; Fri, 05 Mar 2021 12:42:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 281CC1AFA1 for ; Fri, 5 Mar 2021 13:42:12 +0100 (CET) Received: from localhost ([::1]:49398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lI9mU-0007kr-Rv for larch@yhetil.org; Fri, 05 Mar 2021 07:42:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lI9mM-0007kg-4z for bug-guix@gnu.org; Fri, 05 Mar 2021 07:42:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49815) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lI9mL-0006SW-U7 for bug-guix@gnu.org; Fri, 05 Mar 2021 07:42:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lI9mL-0007yo-Rh for bug-guix@gnu.org; Fri, 05 Mar 2021 07:42:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#46942: ci.guix.gnu.org is slow from my system Resent-From: raid5atemyhomework Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 05 Mar 2021 12:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46942 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: "46942@debbugs.gnu.org" <46942@debbugs.gnu.org> Received: via spool by 46942-submit@debbugs.gnu.org id=B46942.161494810730654 (code B ref 46942); Fri, 05 Mar 2021 12:42:01 +0000 Received: (at 46942) by debbugs.gnu.org; 5 Mar 2021 12:41:47 +0000 Received: from localhost ([127.0.0.1]:33128 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lI9m6-0007yM-LA for submit@debbugs.gnu.org; Fri, 05 Mar 2021 07:41:46 -0500 Received: from mail-40140.protonmail.ch ([185.70.40.140]:34872) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lI9m4-0007y4-Fb for 46942@debbugs.gnu.org; Fri, 05 Mar 2021 07:41:45 -0500 Date: Fri, 05 Mar 2021 12:41:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1614948097; bh=f3wPojrDQc0PQGaiv6TcjOzL7sxS3HrKqLAySaUo0jU=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:From; b=Tz8kXiWrL+SHINmnwQ2b+GQdRQriAtyTR7hYAUoFPphYpuCy9J5JW4dwSJh9DcGmL GIK4jfy3dTvgvoxCGcz41GVorlHUu2WpFSiVESZvtDQz5zCbialYmqsgd8Y+rmWgMI uEBNOQV5b9qGesCmoLr6f/CCd8wPFsb9kbexQUqs= Message-ID: In-Reply-To: References: <87o8fxn7mr.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: raid5atemyhomework X-ACL-Warn: , raid5atemyhomework From: raid5atemyhomework via Bug reports for GNU Guix X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.86 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=Tz8kXiWr; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 281CC1AFA1 X-Spam-Score: -2.86 X-Migadu-Scanner: scn1.migadu.com X-TUID: UeA0aSJehYOL Hi all, > > - Is there a way to make `guix-daemon` use a Tor proxy? I have two sy= stems using Guix, one is a Guix System, the other is using a foreign distro= , and I'd like to adjust both to use Tor instead since it's faster. > > I saw that`guix-daemon` respects `http_proxy` and `https_proxy` envvars, = but trying it out on my foreign-distro Guix computer, adding `https_proxy= =3Dsocks5h://127.0.0.1:9050 http_proxy=3Dsocks5h://127.0.0.1:9050` to the `= systemd` service file doesn't work. > > guix substitute: error: TLS error in procedure 'handshake': The TLS c= onnection was non-properly terminated. > substitution of /gnu/store/1bdldr80p39g1mjnh76xw6hmwqrrb8lz-wine64-6.= 0 failed > guix package: error: some substitutes for the outputs of derivation `= /gnu/store/wr9kf2bgcsvwxcmhnl9lf047nr8xcklc-wine64-6.0.drv' failed (usually= happens due to networking issues); try `--fallback' to build derivation fr= om source > > > Looking at the foreign distro's syslog: > > Mar 5 19:52:03 developer guix-daemon[145182]: accepted connection fr= om pid 145190, user raid5atemyhomework > Mar 5 19:52:05 developer guix-daemon[145200]: spurious SIGPOLL > Mar 5 19:52:07 developer Tor[1029]: Socks version 67 not recognized.= (This port is not an HTTP proxy; did you want to use HTTPTunnelPort?) > > > So it looks to me that`guix-daemon` expects `https_proxy` to be an HTTPS = proxy and not a SOCKS5/SOCKS5H proxy. I'll look into Tor's HTTPTunnelPort. On the foreign distro computer, adding an `HTTPTunnelPort 9080` to `/etc/to= r/torrc` and then adding `http_proxy=3Dhttps://127.0.0.1:9080 https_proxy= =3Dhttps://127.0.0.1:9080` to `guix-daemon.service`, then restarting servic= es, seems to work. ``` ownloading from https://ci.guix.gnu.org/nar/lzip/1bdldr80p39g1mjnh76xw6hmwq= rrb8lz-wine64-6.0 ... wine64-6.0 54.4MiB = 57= 9KiB/s 01:36 [##################] 100.0% substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% The following derivation will be built: /gnu/store/7mr17xka558smr0c76crf9g727ccj76g-profile.drv 3.2 MB will be downloaded downloading from https://ci.guix.gnu.org/nar/lzip/gs3li4m0ydajm57r0qn1wvsdy= fsa68p7-font-gnu-unifont-13.0.06 ... font-gnu-unifont-13.0.06 3.0MiB = 51= 5KiB/s 00:06 [##################] 100.0% ``` The above is significantly better than the previous runs where I get 11KiB/= s, and matches the speeds I get from `torify wget`. While it's a good ***workaround*** for my problem instead of me silently we= eping at the ridiculous slowness of Guix substitutes, it doesn't solve my r= oot problem: * SOMETHING between my ISP and ci.guix.gnu.org is throttling access to the = substitutes. * Given that I have been using my ISP for a year without experiencing suc= h spurious slowdowns, and I have been using ci.guix.gnu.org for the past fe= w months only and have been hit with this slowness in the past month or so,= I am more inclined to blame ci.guix.gnu.org, but please tell me how I can = find out what is throttling the bandwidth here. The fact that Tor is ***FA= STER*** is very suspicious. Thanks raid5atemyhomework