From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jorge" Subject: Re: How to configure git to use a proxy inside guix build container Date: Mon, 22 Jan 2018 15:21:08 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edduX-0005hj-62 for Help-Guix@gnu.org; Mon, 22 Jan 2018 10:21:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edduS-0006yI-NV for Help-Guix@gnu.org; Mon, 22 Jan 2018 10:21:25 -0500 Received: from bs-one.disroot.org ([178.21.23.139]:35610 helo=disroot.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1edduS-0006vL-B8 for Help-Guix@gnu.org; Mon, 22 Jan 2018 10:21:20 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 73E7C2B158 for ; Mon, 22 Jan 2018 16:21:16 +0100 (CET) Received: from disroot.org ([127.0.0.1]) by localhost (mail01.disroot.lan [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Dsl_IlfHoCF6 for ; Mon, 22 Jan 2018 16:21:08 +0100 (CET) In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Help-Guix@gnu.org First, sorry for the previous double posting. I thought my first email= =0Ahad been rejected. Second, I created=0A~/etc/systemd/system/guix-daem= on.service.d/override.conf~ with the=0Afollowing content:=0A [Service]= =0A Environment=3D"http_proxy=3Dhttp://localhost:5865"=0A Environme= nt=3D"ftp_proxy=3Dftp://localhost:5865"=0A Environment=3D"all_proxy=3D= localhost:5865"=0A Environment=3D"GIT_CURL_VERBOSE=3D1"=0A Environm= ent=3D"GIT_TRACE=3D1"=0A=0AI then issued=0A $ sudo systemctl daemon-re= load; sudo systemctl restart guix-daemon=0Aand then verified that these e= nv vars are in the environment of guix-daemon:=0A $ pgrep -a guix-daem= on=0A 14366 /var/guix/profiles/per-user/root/guix-profile/bin/guix-dae= mon --build-users-group=3Dguixbuild=0A $ sudo bash -c "xargs --null -n= 1 < /proc/14366/environ"=0A LANG=3Dpt_BR.UTF-8=0A LC_COLLATE=3Den_U= S.UTF-8=0A LC_CTYPE=3Den_US.UTF-8=0A LC_MESSAGES=3Den_US.UTF-8=0A = LC_TIME=3Den_DK.UTF-8=0A PATH=3D/usr/local/sbin:/usr/local/bin:/usr/= sbin:/usr/bin:/sbin:/bin=0A INVOCATION_ID=3D1b15326b9fae4fd08777b0a9ff= 73d8ca=0A JOURNAL_STREAM=3D9:688617=0A GUIX_LOCPATH=3D/root/.guix-p= rofile/lib/locale=0A http_proxy=3Dhttp://localhost:5865=0A ftp_prox= y=3Dftp://localhost:5865=0A all_proxy=3Dlocalhost:5865=0A GIT_CURL_= VERBOSE=3D1=0A GIT_TRACE=3D1=0A=0AIt has not worked:=0A $ guix pull= =0A guile: warning: failed to install locale=0A warning: failed to = install locale: Invalid argument=0A Updating from Git repository at 'h= ttps://git.savannah.gnu.org/git/guix.git'...=0A guix pull: error: Git = error: failed to connect to git.savannah.gnu.org: Connection timed out=0A= =0AAnd as you can see, git has been laconic, indicating that, for some=0A= unknown reason, GIT_CURL_VERBOSE and GIT_TRACE have had no effect. Last= =0Aweek Guix was able to download files (e.g. source tarballs) over the= =0AInternet, indicating the proxy is accessible in Guix build container.= =0AThe problem is with git.=0A=0AI took hours studying SystemD, Guix, Git= and cURL. Help will be=0Aappreciated.=0A=0AJanuary 19, 2018 8:56 PM, "J= orge" wrote:=0A=0A> Hi. guix pull fails:=0A> Upd= ating from Git repository at 'https://git.savannah.gnu.org/git/guix.git'.= ..=0A> guix pull: error: Git error: failed to connect to git.savannah.gnu= .org: Connection timed out=0A> =0A> I suspect git inside the guix build c= ontainer tries to connect directly=0A> to the Internet instead of using t= he proxy. Outside guix I can=0A> successfully run ~git clone https://git.= savannah.gnu.org/git/guix.git~=0A> =0A> So how do I configure a proxy for= git inside guix?=0A> =0A> Regards