From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Cournoyer Subject: Re: Multiple substitute servers question Date: Sun, 07 May 2017 00:24:30 -0700 Message-ID: <878tm93z9t.fsf@gmail.com> References: <87fugyeifc.fsf@gmail.com> <87tw5epqdh.fsf@gmail.com> <878tmfk0mo.fsf@gnu.org> <87bmrbp84b.fsf@gmail.com> 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]:56762) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7GYY-0007SJ-PA for guix-devel@gnu.org; Sun, 07 May 2017 03:24:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7GYV-0003y4-Kx for guix-devel@gnu.org; Sun, 07 May 2017 03:24:38 -0400 In-Reply-To: <87bmrbp84b.fsf@gmail.com> (Maxim Cournoyer's message of "Tue, 02 May 2017 08:54:12 -0700") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel Hi, Maxim Cournoyer writes: > Hi Ludovic! > > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> Hello! >> >> Maxim Cournoyer skribis: >> >>> Maxim Cournoyer writes: >> >> [...] >> >>> The substitute URI should be "https://mirror.hydra.gnu.org". When using >>> such URI it works without an error. >>> >>> My original question still holds though (why is an unresolvable >>> substitute-url able to bring the guix command down when at least one >>> working alternative substitute server exists? -- it should just warn >>> about it and push through). >> >> That=E2=80=99s what it does, except for URL syntax errors. >> >> >> --substitute-urls=3D"http://example.org/does-not-work https://mirror.h= ydra.gnu.org" >> >> then the first one is ignored. >> >> Does that make sense? > >[...] > > I'll keep this thread around for the next time a 'guix package' command > fails in an unexpected way. It seems to come everytime bayfront is in a > broken/semi-broken state (my regular url-substitutes list is made up of > 1st bayfront, 2nd mirror.hydra.gnu.org). I had this problem again now. --8<---------------cut here---------------start------------->8--- guix package -i emacs-dvc ;;; note: source file /home/maxim/.config/guix/latest/gnu/packages/emacs.scm ;;; newer than compiled /home/maxim/.config/guix/latest/gnu/packages/= emacs.go ;;; note: source file /home/maxim/.config/guix/latest/gnu/packages/emacs.scm ;;; newer than compiled /gnu/store/nqy9m6hhnkkfwr5wyq5bac96v9s9hc9i-g= uix-0.12.0-9.25a4/lib/guile/2.0/site-ccache/gnu/packages/emacs.go ;;; note: source file /home/maxim/.config/guix/latest/gnu/packages/emacs.scm ;;; newer than compiled /run/current-system/profile/lib/guile/2.0/sit= e-ccache/gnu/packages/emacs.go ;;; note: source file /home/maxim/.config/guix/latest/gnu/packages/emacs.scm ;;; newer than compiled /home/maxim/.cache/guile/ccache/2.0-LE-8-2.0/= home/maxim/src/guix/gnu/packages/emacs.scm.go The following package will be installed: emacs-dvc trunk-1.591 /gnu/store/sraxmg5qz9i4338s4ks7asgy4v68dgqs= -emacs-dvc-trunk-1.591 substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org= '... 100.0% substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org= '... 100.0% Downloading https://bayfront.guixsd.org/nar/gzip/6h7ym07plwxfn4zq53ld8zfpbx= 3a09al-at-spi2-core-2.22.0 (1.1MiB installed)... guix substitute: error: connect: No route to host killing process 13896 killing process 13896: No such process ^C --8<---------------cut here---------------end--------------->8--- Q1: Why did it not fallback automatically to mirror.hydra.gnu.org, which pings, and instead aborted (no, hung) attempting to kill an (inexistant?) process? :) Here are the ping checks: --8<---------------cut here---------------start------------->8--- ping bayfront.guixsd.org PING bayfront.guixsd.org (141.255.128.56): 56 data bytes 36 bytes from aquilenet.demarc.cogentco.com (149.6.44.18): Destination Host= Unreachable 36 bytes from aquilenet.demarc.cogentco.com (149.6.44.18): Destination Host= Unreachable 36 bytes from aquilenet.demarc.cogentco.com (149.6.44.18): Destination Host= Unreachable 36 bytes from aquilenet.demarc.cogentco.com (149.6.44.18): Destination Host= Unreachable ^C--- bayfront.guixsd.org ping statistics --- 5 packets transmitted, 0 packets received, 100% packet loss ping mirror.hydra.gnu.org PING hydra.net.in.tum.de (131.159.14.26): 56 data bytes 64 bytes from 131.159.14.26: icmp_seq=3D0 ttl=3D52 time=3D164.453 ms 64 bytes from 131.159.14.26: icmp_seq=3D1 ttl=3D52 time=3D175.964 ms 64 bytes from 131.159.14.26: icmp_seq=3D2 ttl=3D52 time=3D167.195 ms ^C--- hydra.net.in.tum.de ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev =3D 164.453/169.204/175.964/4.909 ms --8<---------------cut here---------------end--------------->8--- And some more information regarding which guix-daemon process(es) were running at that time: --8<---------------cut here---------------start------------->8--- ps aux | grep guix-daemon root 254 0.0 0.0 34584 3436 ? Ss May01 0:00 /gnu/store= /nqy9m6hhnkkfwr5wyq5bac96v9s9hc9i-guix-0.12.0-9.25a4/bin/guix-daemon --buil= d-users-group guixbuild --substitute-urls https://bayfront.guixsd.org https= ://mirror.hydra.gnu.org root 14347 3.0 0.1 37212 7568 ? Ss 00:20 0:00 /gnu/store= /nqy9m6hhnkkfwr5wyq5bac96v9s9hc9i-guix-0.12.0-9.25a4/bin/guix-daemon 14344 = guixbuild --substitute-urls https://bayfront.guixsd.org https= ://mirror.hydra.gnu.org maxim 14368 0.0 0.0 8168 1636 pts/4 S+ 00:20 0:00 grep guix-= daemon root 30454 0.0 0.1 37056 7384 ? Ss May04 0:00 /gnu/store= /nqy9m6hhnkkfwr5wyq5bac96v9s9hc9i-guix-0.12.0-9.25a4/bin/guix-daemon 30400 = guixbuild --substitute-urls https://bayfront.guixsd.org https= ://mirror.hydra.gnu.org --8<---------------cut here---------------end--------------->8---