* How to configure git to use a proxy inside guix build container
@ 2018-01-19 22:56 Jorge
2018-01-22 15:21 ` Jorge
2018-01-23 20:04 ` Jorge
0 siblings, 2 replies; 4+ messages in thread
From: Jorge @ 2018-01-19 22:56 UTC (permalink / raw)
To: Help-Guix
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
- I am Brazilian. I hope my English is correct and I welcome feedback
- Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z
- Free (as in free speech) software for Android: https://f-droid.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to configure git to use a proxy inside guix build container
2018-01-19 22:56 How to configure git to use a proxy inside guix build container Jorge
@ 2018-01-22 15:21 ` Jorge
2018-01-23 20:52 ` Ricardo Wurmus
2018-01-23 20:04 ` Jorge
1 sibling, 1 reply; 4+ messages in thread
From: Jorge @ 2018-01-22 15:21 UTC (permalink / raw)
To: Help-Guix
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to configure git to use a proxy inside guix build container
2018-01-19 22:56 How to configure git to use a proxy inside guix build container Jorge
2018-01-22 15:21 ` Jorge
@ 2018-01-23 20:04 ` Jorge
1 sibling, 0 replies; 4+ messages in thread
From: Jorge @ 2018-01-23 20:04 UTC (permalink / raw)
To: Help-Guix
I have worked around the problem by cloning
https://git.savannah.gnu.org/git/guix.git into /home/jorge/repos/guix, and
configuring /etc/systemd/system/guix-daemon.service.d/override.conf as such:
--8<---------------cut here---------------start------------->8---
[Service]
Environment="http_proxy=http://localhost:5865"
Environment="https_proxy=https://localhost:5865"
Environment="ftp_proxy=ftp://localhost:5865"
Environment="all_proxy=localhost:5865"
ExecStart=
ExecStart=/var/guix/profiles/per-user/root/guix-profile/bin/guix-daemon --build-users-group=guixbuild --chroot-directory=/home/jorge/repos/guix
--8<---------------cut here---------------end--------------->8---
I then issue guix pull with ~guix pull --url=/home/jorge/repos/guix~.
The problem is that the pull fails because of hash sum mismatches, even with
--fallback. I will start another thread.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to configure git to use a proxy inside guix build container
2018-01-22 15:21 ` Jorge
@ 2018-01-23 20:52 ` Ricardo Wurmus
0 siblings, 0 replies; 4+ messages in thread
From: Ricardo Wurmus @ 2018-01-23 20:52 UTC (permalink / raw)
To: Jorge; +Cc: Help-Guix
Hi Jorge,
> 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.
“guix pull” uses guile-git, not the git command line tool.
“guile-git” has a value “%proxy-options”, but I don’t know how it is
used.
--
Ricardo
GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
https://elephly.net
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-01-23 20:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-19 22:56 How to configure git to use a proxy inside guix build container Jorge
2018-01-22 15:21 ` Jorge
2018-01-23 20:52 ` Ricardo Wurmus
2018-01-23 20:04 ` Jorge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).