all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Multiple substitute servers question
Date: Tue, 02 May 2017 08:54:12 -0700	[thread overview]
Message-ID: <87bmrbp84b.fsf@gmail.com> (raw)
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")

[-- Attachment #1: Type: text/plain, Size: 2251 bytes --]

Hi Ludovic!

ludo@gnu.org (Ludovic Courtès) writes:

> Hello!
>
> Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
>
>> Maxim Cournoyer <maxim.cournoyer@gmail.com> 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’s what it does, except for URL syntax errors.
>
>
>   --substitute-urls="http://example.org/does-not-work https://mirror.hydra.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 "syntax"
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/v83285dvjy923ikq1dddncixb6kfba0k-guix-0.12.0-5.1162/bin/.guix-real"]
>>> substitute: In guix/ui.scm:
>>> substitute: 1228: 0 [run-guix-command substitute "--query"]
>>> substitute: 
>>> 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 #<closed: file 0>
>>>
>>
>> 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’t
> get the fix until you run an updated guix-daemon.)
>
> Thanks!
>
> Ludo’.

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  reply	other threads:[~2017-05-02 15:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-24  0:52 Multiple substitute servers question Maxim Cournoyer
2017-04-24  1:04 ` Maxim Cournoyer
2017-05-02 10:34   ` Ludovic Courtès
2017-05-02 15:54     ` Maxim Cournoyer [this message]
2017-05-02 21:14       ` Ludovic Courtès
2017-05-07  7:24       ` Maxim Cournoyer
2017-05-08 14:10         ` Ludovic Courtès
2017-05-08 15:44           ` Maxim Cournoyer

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=87bmrbp84b.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=ludo@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.