'guix substitute' crashes while running 'guix pull'

  • Open
  • quality assurance status badge
Details
3 participants
  • bo0od
  • Ludovic Courtès
  • Maxime Devos
Owner
unassigned
Submitted by
bo0od
Severity
important
Merged with
B
guix pull: error: You found a bug: compute-guix-derivation
(address . bug-guix@gnu.org)
842920dd-7aae-4f73-8805-e332a316de5a@riseup.net
Hi There,

Running guix pull lead to the bug attached in .txt file.

ThX!
user@host ~$ guix pull
Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
Authenticating channel 'guix', commits 9edb3f6 to 050be36 (65 new commits)...
Building from this channel:
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
compute-guix-derivation 1005B 77KiB/s 00:00 [##################] 100.0%
Computing Guix derivation for 'x86_64-linux'... /Backtrace:
15 (primitive-load "/gnu/store/0s55qkdcgpbirx39g94wlsyfp79nmmvl-compute-guix-derivation")
In ice-9/eval.scm:
155:9 14 (_ _)
159:9 13 (_ #(#(#(#(#(#(#(#(#(#(#(#(#(#(#(#(#<directory (guile-u?> ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?))
In ice-9/boot-9.scm:
152:2 12 (with-fluid* _ _ _)
152:2 11 (with-fluid* _ _ _)
In ./guix/store.scm:
2066:24 10 (run-with-store #<store-connection 256.99 7fa3758b23c0> _ #:guile-for-build _ #:system _ #:target _)
1900:8 9 (_ _)
In ./guix/gexp.scm:
256:18 8 (_ _)
1137:2 7 (_ _)
1003:2 6 (_ _)
849:4 5 (_ _)
In ./guix/store.scm:
1948:12 4 (_ #<store-connection 256.99 7fa3758b23c0>)
1362:5 3 (map/accumulate-builds #<store-connection 256.99 7fa3758b23c0> _ _)
1373:15 2 (_ #<store-connection 256.99 7fa3758b23c0> _ _)
719:11 1 (process-stderr #<store-connection 256.99 7fa3758b23c0> _)
In ./guix/serialization.scm:
80:6 0 (read-int #<input-output: file 10>)

./guix/serialization.scm:80:6: In procedure read-int:
ERROR:
1. &nar-error:
file: #f
port: #<input-output: file 10>
guix pull: error: You found a bug: the program '/gnu/store/0s55qkdcgpbirx39g94wlsyfp79nmmvl-compute-guix-derivation'
failed to compute the derivation for Guix (version: "050be36cbf3a42199f64f2e44c59f1cb1b3afab5"; system: "x86_64-linux";
host version: "995f685e4de49683399715932792e730f918d2a2"; pull-version: 1).
Please report it by email to <bug-guix@gnu.org>.

user@host ~$
L
L
Ludovic Courtès wrote on 18 Apr 2021 12:20
(name . bo0od)(address . bo0od@riseup.net)(address . 47782@debbugs.gnu.org)
8735vnnbc3.fsf@gnu.org
Hi,

bo0od <bo0od@riseup.net> skribis:

Toggle quote (31 lines)
> Computing Guix derivation for 'x86_64-linux'... /Backtrace:
> 15 (primitive-load "/gnu/store/0s55qkdcgpbirx39g94wlsyfp79nmmvl-compute-guix-derivation")
> In ice-9/eval.scm:
> 155:9 14 (_ _)
> 159:9 13 (_ #(#(#(#(#(#(#(#(#(#(#(#(#(#(#(#(#<directory (guile-u?> ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?))
> In ice-9/boot-9.scm:
> 152:2 12 (with-fluid* _ _ _)
> 152:2 11 (with-fluid* _ _ _)
> In ./guix/store.scm:
> 2066:24 10 (run-with-store #<store-connection 256.99 7fa3758b23c0> _ #:guile-for-build _ #:system _ #:target _)
> 1900:8 9 (_ _)
> In ./guix/gexp.scm:
> 256:18 8 (_ _)
> 1137:2 7 (_ _)
> 1003:2 6 (_ _)
> 849:4 5 (_ _)
> In ./guix/store.scm:
> 1948:12 4 (_ #<store-connection 256.99 7fa3758b23c0>)
> 1362:5 3 (map/accumulate-builds #<store-connection 256.99 7fa3758b23c0> _ _)
> 1373:15 2 (_ #<store-connection 256.99 7fa3758b23c0> _ _)
> 719:11 1 (process-stderr #<store-connection 256.99 7fa3758b23c0> _)
> In ./guix/serialization.scm:
> 80:6 0 (read-int #<input-output: file 10>)
>
> ./guix/serialization.scm:80:6: In procedure read-int:
> ERROR:
> 1. &nar-error:
> file: #f
> port: #<input-output: file 10>
> guix pull: error: You found a bug: the program '/gnu/store/0s55qkdcgpbirx39g94wlsyfp79nmmvl-compute-guix-derivation'

Looks as if the connection to the daemon had been dropped. Could it be
that guix-daemon was restarted while ‘guix pull’ was running?

If you run ‘guix pull’ again, does that problem occur?

Thanks,
Ludo’.
L
L
Ludovic Courtès wrote on 18 Apr 2021 12:20
control message for bug #47764
(address . control@debbugs.gnu.org)
871rb7nbb4.fsf@gnu.org
merge 47764 47782
quit
L
L
Ludovic Courtès wrote on 18 Apr 2021 12:20
(address . control@debbugs.gnu.org)
87zgxvlwqk.fsf@gnu.org
severity 47764 important
quit
L
L
Ludovic Courtès wrote on 18 Apr 2021 12:28
(address . control@debbugs.gnu.org)
87mttvlwdv.fsf@gnu.org
retitle 47764 'guix substitute' crashes while running 'guix pull'
quit
B
Re: bug#47782: guix pull: error: You found a bug: compute-guix-derivation
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 47782@debbugs.gnu.org)
e00bf782-af9d-2d17-c3e9-e5613e65f4ec@riseup.net
Toggle quote (2 lines)
> If you run ‘guix pull’ again, does that problem occur?

Nope, one time got this error.

Ludovic Courtès:
Toggle quote (43 lines)
> Hi,
>
> bo0od <bo0od@riseup.net> skribis:
>
>> Computing Guix derivation for 'x86_64-linux'... /Backtrace:
>> 15 (primitive-load "/gnu/store/0s55qkdcgpbirx39g94wlsyfp79nmmvl-compute-guix-derivation")
>> In ice-9/eval.scm:
>> 155:9 14 (_ _)
>> 159:9 13 (_ #(#(#(#(#(#(#(#(#(#(#(#(#(#(#(#(#<directory (guile-u?> ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?))
>> In ice-9/boot-9.scm:
>> 152:2 12 (with-fluid* _ _ _)
>> 152:2 11 (with-fluid* _ _ _)
>> In ./guix/store.scm:
>> 2066:24 10 (run-with-store #<store-connection 256.99 7fa3758b23c0> _ #:guile-for-build _ #:system _ #:target _)
>> 1900:8 9 (_ _)
>> In ./guix/gexp.scm:
>> 256:18 8 (_ _)
>> 1137:2 7 (_ _)
>> 1003:2 6 (_ _)
>> 849:4 5 (_ _)
>> In ./guix/store.scm:
>> 1948:12 4 (_ #<store-connection 256.99 7fa3758b23c0>)
>> 1362:5 3 (map/accumulate-builds #<store-connection 256.99 7fa3758b23c0> _ _)
>> 1373:15 2 (_ #<store-connection 256.99 7fa3758b23c0> _ _)
>> 719:11 1 (process-stderr #<store-connection 256.99 7fa3758b23c0> _)
>> In ./guix/serialization.scm:
>> 80:6 0 (read-int #<input-output: file 10>)
>>
>> ./guix/serialization.scm:80:6: In procedure read-int:
>> ERROR:
>> 1. &nar-error:
>> file: #f
>> port: #<input-output: file 10>
>> guix pull: error: You found a bug: the program '/gnu/store/0s55qkdcgpbirx39g94wlsyfp79nmmvl-compute-guix-derivation'
>
> Looks as if the connection to the daemon had been dropped. Could it be
> that guix-daemon was restarted while ‘guix pull’ was running?
>
> If you run ‘guix pull’ again, does that problem occur?
>
> Thanks,
> Ludo’.
>
M
M
Maxime Devos wrote on 1 Sep 2022 19:07
Re: bug#57527: compute-guix-derivation has an error
59cb7f24-d9c8-5394-cdbd-605d5addd03a@telenet.be
severity 57527 important
merge 47764 57527
severity 53802 important
merge 47764 53802
severity 56466 important
merge 47764 56466
thanks
Found a few apparent duplicates (they are all about a &nar-error,
read-int and process-stderror).
On second thought, I don't think the patch I referred to #56466 will
help here, though it could hardly harm here.
For now, you can try working-around by retrying "guix pull".
There are two hypotheses on the cause in
The second seems most plausible to me, and the first seems the simplest
to test (and even if it's not the cause, it would still add some
robustness).
Greetings,
Maxime.
Attachment: file
Attachment: OpenPGP_signature
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 47782@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 47782
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