guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple substitute servers question


From: Maxim Cournoyer
Subject: Re: Multiple substitute servers question
Date: Tue, 02 May 2017 08:54:12 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Hi Ludovic!

address@hidden (Ludovic Courtès) writes:

> Hello!
>
> Maxim Cournoyer <address@hidden> skribis:
>
>> Maxim Cournoyer <address@hidden> 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: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]