From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Cournoyer Subject: Re: Multiple substitute servers question Date: Tue, 02 May 2017 08:54:12 -0700 Message-ID: <87bmrbp84b.fsf@gmail.com> References: <87fugyeifc.fsf@gmail.com> <87tw5epqdh.fsf@gmail.com> <878tmfk0mo.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5a86-0003F0-GX for guix-devel@gnu.org; Tue, 02 May 2017 11:54:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d5a83-0001qO-Eb for guix-devel@gnu.org; Tue, 02 May 2017 11:54:22 -0400 In-Reply-To: <878tmfk0mo.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 02 May 2017 12:34:55 +0200") 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 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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.hy= dra.gnu.org" > > then the first one is ignored. > > Does that make sense? What do you mean by "URL syntax errors"? Like, wrong protocol prefix or non-ascii characters? Otherwise, I don't see the difference between a "syn= tax" error in a URL and a URL pointing to a dead server :). Otherwise yes, that makes sense; that's exactly what I would expect to happen. > >>> substitute: In unknown file: >>> substitute: ?: 1 [primitive-load "/gnu/store/v83285dvjy923ikq1dddnci= xb6kfba0k-guix-0.12.0-5.1162/bin/.guix-real"] >>> substitute: In guix/ui.scm: >>> substitute: 1228: 0 [run-guix-command substitute "--query"] >>> substitute:=20 >>> substitute: guix/ui.scm:1228:8: In procedure run-guix-command: >>> substitute: guix/ui.scm:1228:8: In procedure struct_vtable: Wrong type = argument in position 1 (expecting struct): #f >>> guix environment: error: corrupt input while restoring archive from # >>> >> >> Also, this error message is very cryptic; it didn't provided much that >> would have helped me to realize about my error (wrong URI) earlier. > > Indeed. Fixed in 8a2105078b5845e31768da06b360676352b1f3e9 (you won=E2=80= =99t > get the fix until you run an updated guix-daemon.) > > Thanks! > > Ludo=E2=80=99. Thanks for fixing it! 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). Maxim --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJ9WGpPiQCFQyn/CfEmDkZILmNWIFAlkIq6QACgkQEmDkZILm NWKWug/+KUmftyXVrKHFpaheWILs7S5lT9zLXIsVDUdW6vp7KEaUdeBalGIGOfZM LV/ejj4qKwZLNtJPninN1wkhhx9SyYcW/MMzp4f6gkmvRvGfrGmA0z2EjXfrL4cS SHGjg2Pv1DxxUISoZHNprKjEJTgCa9eKPnoNYbkYSGe5pSx3K/y+qGqzHG5uRsu8 0N5pqwNUK8xPPx4qWftB6B368Ua961XMZjsdXtY+Mc//+XxLFlhvI5JL3TG4GYAv xy4UxchwMg0pLOzkYHsWh2/zJrb9vuzHrpdM0ACdR4QyS406NjmP2D+UB+tPWz9e FGrH69RvE2mHLaBkerslKaWwztVyHp6cOkkCI+Uo1lUIX97S0fso/ur0p2VACTA8 e5mJAVLikYwL1v6JZxXUiMXSQTAT+3Q/gGe6iYXUCSKaIVfiUfOe+YaqF19iuEGz Qh3fKaCu6jYnkqNF8npi8oQAR5LKAxOvgycQUbgN8wfXlJ3f8x5NK2Jhi+RhYh2s T3Pvrd2oOqIQwdWdYRQ3bYae2clWNSV4+rMK5pa5YfKpEsUGooYGWKFzV7IQEaHL RyXGYAgq4ZrES8G6NrxMApyawvPj0vzcvXCEyp/9esY+UbBSbIxGxZnDb1QmdJCJ DWDxIoJrhf2FopQLbpUAqqTLrobMkV21DmEO3mUgGeeayDGX+MI= =O917 -----END PGP SIGNATURE----- --=-=-=--