guix system reconfigure hangs silently when substitute server is unreachable

  • Open
  • quality assurance status badge
Details
2 participants
  • Ludovic Courtès
  • Maxim Cournoyer
Owner
unassigned
Submitted by
Maxim Cournoyer
Severity
normal
M
M
Maxim Cournoyer wrote on 30 Sep 2022 23:15
(name . bug-guix)(address . bug-guix@gnu.org)
87k05klg23.fsf@gmail.com
Hi,

While fixing up Berlin today, I had to use '--no-substitutes' on the
daemon started per 'info (guix)Chrooting', otherwise it'd hang up
without printing any of the warnings (totally silent). Using strace, I
could see:

Toggle snippet (3 lines)
guix substitute: warning: ci.guix.gnu.org: host not found: System error

It'd be nice if these warnings were propagated all the way up so the
user would realize what is happening and take action.

--
Thanks,
Maxim
L
L
Ludovic Courtès wrote on 3 Oct 2022 23:29
(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)(address . 58204@debbugs.gnu.org)
87o7uswq7e.fsf@gnu.org
Hi,

Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:

Toggle quote (10 lines)
> While fixing up Berlin today, I had to use '--no-substitutes' on the
> daemon started per 'info (guix)Chrooting', otherwise it'd hang up
> without printing any of the warnings (totally silent). Using strace, I
> could see:
>
> guix substitute: warning: ci.guix.gnu.org: host not found: System error
>
> It'd be nice if these warnings were propagated all the way up so the
> user would realize what is happening and take action.

I think it’s supposed to be propagated.

In the example above, I guess there were cached ci.guix.gnu.org narinfos
for those substitutes and the “host not found” error arose when actually
trying to substitute these, right?

I’m surprised substitution didn’t just crash.

Thanks,
Ludo’.
M
M
Maxim Cournoyer wrote on 4 Oct 2022 03:46
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 58204@debbugs.gnu.org)
87pmf8icmr.fsf@gmail.com
Hi,

Ludovic Courtès <ludo@gnu.org> writes:

Toggle quote (16 lines)
> Hi,
>
> Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
>
>> While fixing up Berlin today, I had to use '--no-substitutes' on the
>> daemon started per 'info (guix)Chrooting', otherwise it'd hang up
>> without printing any of the warnings (totally silent). Using strace, I
>> could see:
>>
>> guix substitute: warning: ci.guix.gnu.org: host not found: System error
>>
>> It'd be nice if these warnings were propagated all the way up so the
>> user would realize what is happening and take action.
>
> I think it’s supposed to be propagated.

It wasn't :-/.

Toggle quote (4 lines)
> In the example above, I guess there were cached ci.guix.gnu.org narinfos
> for those substitutes and the “host not found” error arose when actually
> trying to substitute these, right?

I guess so! It's not an easily situation to reproduce, so perhaps the
best we can do is assume this was the case and validate the
corresponding code path.

Thanks,

--
Maxim
?