From: "Jorge" <jorge+list@disroot.org>
To: Help-Guix@gnu.org
Subject: Re: How to configure git to use a proxy inside guix build container
Date: Mon, 22 Jan 2018 15:21:08 +0000 [thread overview]
Message-ID: <e8b776290f34cae8bb14b184f0ae84c9@disroot.org> (raw)
In-Reply-To: <eb37d487b7840f5207149140a428135e@disroot.org>
First, sorry for the previous double posting. I thought my first email
had been rejected. Second, I created
~/etc/systemd/system/guix-daemon.service.d/override.conf~ with the
following content:
[Service]
Environment="http_proxy=http://localhost:5865"
Environment="ftp_proxy=ftp://localhost:5865"
Environment="all_proxy=localhost:5865"
Environment="GIT_CURL_VERBOSE=1"
Environment="GIT_TRACE=1"
I then issued
$ sudo systemctl daemon-reload; sudo systemctl restart guix-daemon
and then verified that these env vars are in the environment of guix-daemon:
$ pgrep -a guix-daemon
14366 /var/guix/profiles/per-user/root/guix-profile/bin/guix-daemon --build-users-group=guixbuild
$ sudo bash -c "xargs --null -n1 < /proc/14366/environ"
LANG=pt_BR.UTF-8
LC_COLLATE=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_TIME=en_DK.UTF-8
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
INVOCATION_ID=1b15326b9fae4fd08777b0a9ff73d8ca
JOURNAL_STREAM=9:688617
GUIX_LOCPATH=/root/.guix-profile/lib/locale
http_proxy=http://localhost:5865
ftp_proxy=ftp://localhost:5865
all_proxy=localhost:5865
GIT_CURL_VERBOSE=1
GIT_TRACE=1
It has not worked:
$ guix pull
guile: warning: failed to install locale
warning: failed to install locale: Invalid argument
Updating from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
guix pull: error: Git error: failed to connect to git.savannah.gnu.org: Connection timed out
And as you can see, git has been laconic, indicating that, for some
unknown reason, GIT_CURL_VERBOSE and GIT_TRACE have had no effect. Last
week Guix was able to download files (e.g. source tarballs) over the
Internet, indicating the proxy is accessible in Guix build container.
The problem is with git.
I took hours studying SystemD, Guix, Git and cURL. Help will be
appreciated.
January 19, 2018 8:56 PM, "Jorge" <jorge+list@disroot.org> wrote:
> Hi. guix pull fails:
> Updating from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
> guix pull: error: Git error: failed to connect to git.savannah.gnu.org: Connection timed out
>
> I suspect git inside the guix build container tries to connect directly
> to the Internet instead of using the proxy. Outside guix I can
> successfully run ~git clone https://git.savannah.gnu.org/git/guix.git~
>
> So how do I configure a proxy for git inside guix?
>
> Regards
next prev parent reply other threads:[~2018-01-22 15:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-19 22:56 How to configure git to use a proxy inside guix build container Jorge
2018-01-22 15:21 ` Jorge [this message]
2018-01-23 20:52 ` Ricardo Wurmus
2018-01-23 20:04 ` Jorge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e8b776290f34cae8bb14b184f0ae84c9@disroot.org \
--to=jorge+list@disroot.org \
--cc=Help-Guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.