From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 01 09:08:38 2015 Received: (at 20402) by debbugs.gnu.org; 1 Jul 2015 13:08:38 +0000 Received: from localhost ([127.0.0.1]:35443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAHkj-0005sm-PN for submit@debbugs.gnu.org; Wed, 01 Jul 2015 09:08:38 -0400 Received: from mail.lysator.liu.se ([130.236.254.3]:33113) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAHkh-0005sb-HK for 20402@debbugs.gnu.org; Wed, 01 Jul 2015 09:08:36 -0400 Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 48F4D4007E for <20402@debbugs.gnu.org>; Wed, 1 Jul 2015 15:08:34 +0200 (CEST) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id 37E574007F; Wed, 1 Jul 2015 15:08:34 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on bernadotte.lysator.liu.se X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.3.2 X-Spam-Score: -1.0 Received: from mail-oi0-f51.google.com (mail-oi0-f51.google.com [209.85.218.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id 628174007D for <20402@debbugs.gnu.org>; Wed, 1 Jul 2015 15:08:33 +0200 (CEST) Received: by oiyy130 with SMTP id y130so31263793oiy.0 for <20402@debbugs.gnu.org>; Wed, 01 Jul 2015 06:08:31 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.60.92.131 with SMTP id cm3mr24442917oeb.23.1435756111767; Wed, 01 Jul 2015 06:08:31 -0700 (PDT) Received: by 10.202.175.65 with HTTP; Wed, 1 Jul 2015 06:08:31 -0700 (PDT) In-Reply-To: <87pp4cxpbx.fsf@gnu.org> References: <87381zicgg.fsf@gnu.org> <87616uzfd8.fsf@gnu.org> <87d20zbj03.fsf@gnu.org> <87pp4cxpbx.fsf@gnu.org> Date: Wed, 1 Jul 2015 15:08:31 +0200 Message-ID: Subject: Re: HTTP and FTP proxies for guix package / guix-daemon From: =?UTF-8?B?Q2xhZXMgV2FsbGluICjpn4vlmInoqqAp?= To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 20402 Cc: 20402@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) On Wed, Jul 1, 2015 at 10:19 AM, Ludovic Court=C3=A8s wrote: > To test, I first run the daemon like this: > > sudo sh -c 'export http_proxy=3Dfoobar ; ./pre-inst-env guix-daemon --b= uild-users-group=3Dguixbuild' Could there be a difference because you are testing with the checked-out, semi-manually built guix and I was checking with a freshly packaged (pull, package -i guix) guix? Like I said in http://lists.gnu.org/archive/html/bug-guix/2015-06/msg00036.html , guix-daemon as compiled by guix seems to be using guile-2.0.9. Maybe that only happens due to guix rewriting hashbangs etc, and on a build outside guix (even when using guix environment) it uses whatever guile happens to be in the paths? When I have the time again I will check it exactly the way you are doing it= . > Here the error message comes from the fact that $http_proxy is a > malformed URL, showing that it *is* honored. Since the http URL fails, > the download logic falls back to the next URL, which happens to be an > ftp URL, which is unaffected by =E2=80=98http_proxy=E2=80=99. Ok, that's maybe a clearer way of testing it. > Please let me know if you have evidence that something works differently > for you. I would say that both of us have evidence that it's working and not working. The conclusion must be that we are not testing the exact same program. >> No. Whenever the daemon is doing the downloading, http_proxy is >> ignored and I get "Temporary failure in name resolution" because the >> VM doesn't have an internet DNS. > > [...] > >> `/gnu/store/2zkyyw4bq0wzsxdysncrf9lmwl44w5wh-binutils-2.25.tar.bz2' >> from `http://ftpmirror.gnu.org/binutils/binutils-2.25.tar.bz2'... >> ERROR: In procedure getaddrinfo: Temporary failure in name resolution > > That=E2=80=99s another, unrelated issue, probably in your network or on y= our > machine. Yes. This is why the proxy is required. There is no internet DNS for the VM, because it is on an isolated lab network. When it does go through the proxy, like when running guix download, no name lookup is done and everything works.