`guix substitute' occasionally crashes while looking for substitutes

  • Open
  • quality assurance status badge
Details
3 participants
  • 45mg
  • Timo Wilken
  • Ludovic Courtès
Owner
unassigned
Submitted by
Timo Wilken
Severity
important
Merged with

Debbugs page

T
T
Timo Wilken wrote on 22 Feb 07:00 -0800
(address . bug-guix@gnu.org)
D7Z2C20OLQIH.2HDYI5AVE2ZMM@twilken.net
Sometimes, apparently randomly, `guix substitute' crashes as follows for me:

substitute: looking for substitutes on 'https://bordeaux.guix.gnu.org'... 0.0%guix substitute: error: TLS error in procedure 'write_to_session_record_port': Error in the push function.
guix system: error: `/gnu/store/jpbjljfva1hqspw1kd6hgnl63sgvw966-guix-1.4.0-32.5f6fdad/bin/guix substitute' died unexpectedly

This seems to happen while looking for substitutes, usually (always?) at
"0.0%" progress.

This happens rarely enough that a re-run of the crashing "guix system
reconfigure" or "guix home reconfigure" will succeed.

For completeness' sake:

$ guix describe
Generation 114 Feb 21 2025 17:59:33 (current)
tw 028ba0e
branch: master
commit: 028ba0ea65bc1d2b5a8c59bc336908a161c65e7c
guix dfabaa8
branch: master
commit: dfabaa8a6faa58612a069eb47ee3f35a94b146fb
[non-free channels redacted]

Cheers,
Timo
4
87wmdgg4lj.fsf@gmail.com
Hi Timo,

"Timo Wilken" <guix@twilken.net> writes:

Toggle quote (3 lines)
> substitute: looking for substitutes on 'https://bordeaux.guix.gnu.org'... 0.0%guix substitute: error: TLS error in procedure 'write_to_session_record_port': Error in the push function.
> guix system: error: `/gnu/store/jpbjljfva1hqspw1kd6hgnl63sgvw966-guix-1.4.0-32.5f6fdad/bin/guix substitute' died unexpectedly

This issue has been around for a while:

I and others I know also face it.
L
L
Ludovic Courtès wrote on 25 Feb 07:52 -0800
control message for bug #76486
(address . control@debbugs.gnu.org)
87r03mnhra.fsf@gnu.org
severity 76486 important
quit
L
L
Ludovic Courtès wrote on 25 Feb 07:53 -0800
control message for bug #75679
(address . control@debbugs.gnu.org)
87plj6nhqn.fsf@gnu.org
merge 75679 76486
quit
L
L
Ludovic Courtès wrote on 25 Feb 08:04 -0800
Re: bug#76486: `guix substitute' occasionally crashes while looking for substitutes
(name . Timo Wilken)(address . guix@twilken.net)
87bjuqnh78.fsf@gnu.org
Hi,

"Timo Wilken" <guix@twilken.net> skribis:

Toggle quote (5 lines)
> Sometimes, apparently randomly, `guix substitute' crashes as follows for me:
>
> substitute: looking for substitutes on 'https://bordeaux.guix.gnu.org'... 0.0%guix substitute: error: TLS error in procedure 'write_to_session_record_port': Error in the push function.
> guix system: error: `/gnu/store/jpbjljfva1hqspw1kd6hgnl63sgvw966-guix-1.4.0-32.5f6fdad/bin/guix substitute' died unexpectedly

I’ve sent patch fixing the client-side issue:


Now, I think this only happens with bordeaux.guix.gnu.org, and started
to happen more frequently lately.

Substitutes there are served by nar-herder so I wonder what’s special
about it compared to ‘guix publish’ (used on ci.guix).

Looking at the logs, the nar-herder doesn’t crash (i.e., shepherd never
has to respawn it). The only thing I see in its own log file that might
be suspicious is this:

Toggle snippet (17 lines)
2025-02-23 21:33:00 error: #<procedure 7fba1010cc60 at nar-herder/storage.scm:433:13 ()>:
2025-02-23 21:33:00 #<&port-read-timeout thunk: #<procedure 7fba1010cc80 at nar-herder/storage.scm:431:10 ()> port: #<closed: file 7fb9512eb700>>,
2025-02-23 21:33:00 attempt 1 of 3, retrying in 5
2025-02-23 21:33:01 2025-02-23 21:33:01 (INFO ): processing 1 recent changes
2025-02-23 21:33:11 2025-02-23 21:33:11 (INFO ): processing 1 recent changes
2025-02-23 21:33:21 2025-02-23 21:33:21 (INFO ): processing 1 recent changes
2025-02-23 21:33:31 2025-02-23 21:33:31 (INFO ): processing 1 recent changes
2025-02-23 21:33:35 error: #<procedure 7fba1010cc60 at nar-herder/storage.scm:433:13 ()>:
2025-02-23 21:33:35 #<&port-read-timeout thunk: #<procedure 7fba1010cc80 at nar-herder/storage.scm:431:10 ()> port: #<closed: file 7fb946607070>>,
2025-02-23 21:33:35 attempt 2 of 3, last retry in 5
2025-02-23 21:33:40 running last retry of #<procedure 7fba1010cc60 at nar-herder/storage.scm:433:13 ()> after 2 failed attempts
2025-02-23 21:33:51 2025-02-23 21:33:51 (INFO ): processing 1 recent changes
2025-02-23 21:33:58 error: #<procedure 7fb95e06b640 at nar-herder/storage.scm:433:13 ()>:
2025-02-23 21:33:58 #<&compound-exception components: (#<&error> #<&irritants irritants: (read-header-line #<eof>)> #<&exception-with-kind-and-args kind: bad-header args: (read-header-line #<eof>)>)>,
2025-02-23 21:33:58 attempt 1 of 3, retrying in 5

WDYT, Chris?

Thanks,
Ludo’.
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 76486@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 76486
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch