GNU bug report logs - #74925
failed to compute the derivation for Guix

Previous Next

Package: guix;

Reported by: Simon Josefsson <simon <at> josefsson.org>

Date: Tue, 17 Dec 2024 10:22:01 UTC

Severity: normal

Done: Simon Josefsson <simon <at> josefsson.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 74925 in the body.
You can then email your comments to 74925 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#74925; Package guix. (Tue, 17 Dec 2024 10:22:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Simon Josefsson <simon <at> josefsson.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Tue, 17 Dec 2024 10:22:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Simon Josefsson <simon <at> josefsson.org>
To: bug-guix <at> gnu.org
Subject: failed to compute the derivation for Guix
Date: Tue, 17 Dec 2024 11:15:05 +0100
[Message part 1 (text/plain, inline)]
Hi

I am running 'guix pull' on arm64 from Debian, and ran into the
backtrace below.

The following commands reproduce it inside a fresh Debian trixie
container in a GitLab shared runner:

apt-get update
apt-get install -y guix podman ca-certificates
(guix-daemon --disable-chroot --build-users-group=_guixbuild &)
guix pull --url=https://gitlab.com/debdistutils/guix/mirror.git

Complete output can be shown here:

https://gitlab.com/debdistutils/guix/container/-/jobs/8661689121

GitLab job code here:

https://gitlab.com/debdistutils/guix/container/-/blob/a50ac13449cab37c8eafa88ad0537ecf8051b4e5/.gitlab-ci.yml#L35

Any ideas?  Some reources problem isn't impossible, the node should have
8 vCPUs, 32GB RAM and 100GB disk.

/Simon

Backtrace:
In guix/scripts/substitute.scm:
   856:15 19 (_)
    650:2 18 (process-substitution _ _ _ #:cache-urls _ #:acl _ # _ # ?)
In ice-9/boot-9.scm:
  1752:10 17 (with-exception-handler _ _ #:unwind? _ # _)
In guix/scripts/substitute.scm:
    525:9 16 (download-nar #<<narinfo> path: "/gnu/store/kplxgw9yzz?> ?)
In guix/serialization.scm:
    424:4 15 (fold-archive _ _ _ _)
   468:33 14 (read "/gnu/store/kplxgw9yzzf09d6vx564fwc316vicwjb-lib?" ?)
   468:33 13 (read "/gnu/store/kplxgw9yzzf09d6vx564fwc316vicwjb-lib?" ?)
   468:33 12 (read "/gnu/store/kplxgw9yzzf09d6vx564fwc316vicwjb-lib?" ?)
   468:33 11 (read "/gnu/store/kplxgw9yzzf09d6vx564fwc316vicwjb-lib?" ?)
   442:24 10 (read "/gnu/store/kplxgw9yzzf09d6vx564fwc316vicwjb-lib?" ?)
   525:24  9 (_ "/gnu/store/kplxgw9yzzf09d6vx564fwc316vicwjb-libgit?" ?)
In ice-9/ports.scm:
   467:11  8 (call-with-output-file "/gnu/store/kplxgw9yzzf09d6vx56?" ?)
In unknown file:
           7 (open-file "/gnu/store/kplxgw9yzzf09d6vx564fwc316vicwj?" ?)
In ice-9/boot-9.scm:
  1685:16  6 (raise-exception _ #:continuable? _)
  1683:16  5 (raise-exception _ #:continuable? _)
  1685:16  4 (raise-exception _ #:continuable? _)
  1780:13  3 (_ #<&compound-exception components: (#<&error> #<&orig?>)
Backtrace:
          18 (primitive-load "/gnu/store/y0a6ck768ixr4zwdn3zg2wvwzn1j2kf6-compute-guix-derivation")
In ice-9/eval.scm:
    155:9 17 (_ _)
    159:9 16 (_ #(#(#(#(#(#(#(#(#(#(#(#(#(#(#(#(#<directory (guile-u?> ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?))
In ice-9/boot-9.scm:
    152:2 15 (with-fluid* _ _ _)
    152:2 14 (with-fluid* _ _ _)
In ./guix/store.scm:
  2210:24 13 (run-with-store #<store-connection 256.99 1e7edc80> #<procedure 2b25cbe0 at ./guix/self.scm:1365:2 (st?> ?)
   2038:8 12 (_ #<store-connection 256.99 1e7edc80>)
In ./guix/gexp.scm:
   300:22 11 (_ #<store-connection 256.99 1e7edc80>)
   1218:2 10 (_ #<store-connection 256.99 1e7edc80>)
   1085:2  9 (_ #<store-connection 256.99 1e7edc80>)
    926:4  8 (_ #<store-connection 256.99 1e7edc80>)
In ./guix/store.scm:
  2095:12  7 (_ #<store-connection 256.99 1e7edc80>)
  1437:13  6 (map/accumulate-builds #<store-connection 256.99 1e7edc80> #<procedure 25cd1c20 at ./guix/store.scm:20?> ?)
   1433:5  5 (map/accumulate-builds #<store-connection 256.99 1e7edc80> #<procedure 3614d880 at ./guix/store.scm:14?> ?)
  1449:15  4 (_ #<store-connection 256.99 1e7edc80> ("/gnu/store/vsv3dax6czpp5xnvks4zm1a2yg694hqv-guix-daemon-1.?" ?) ?)
  1449:15  3 (loop #f)
   746:11  2 (process-stderr #<store-connection 256.99 1e7edc80> _)
In ./guix/serialization.scm:
   101:11  1 (read-int #<input-output: file 10>)
     79:6  0 (get-bytevector-n* #<input-output: file 10> 8)
./guix/serialization.scm:79:6: In procedure get-bytevector-n*:
ERROR:
  1. &nar-error:
      file: #f
      port: #<input-output: file 10>
guix pull: error: You found a bug: the program '/gnu/store/y0a6ck768ixr4zwdn3zg2wvwzn1j2kf6-compute-guix-derivation'
failed to compute the derivation for Guix (version: "c3290cee6add60b7e56f5f919d9498d78542790a"; system: "aarch64-linux";
host version: "1.4.0"; pull-version: 1).
Please report the COMPLETE output above by email to <bug-guix <at> gnu.org>.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#74925; Package guix. (Sat, 21 Dec 2024 15:33:01 GMT) Full text and rfc822 format available.

Message #8 received at 74925 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Simon Josefsson <simon <at> josefsson.org>
Cc: 74925 <at> debbugs.gnu.org
Subject: Re: bug#74925: failed to compute the derivation for Guix
Date: Sat, 21 Dec 2024 16:29:51 +0100
Hello,

Simon Josefsson <simon <at> josefsson.org> skribis:

> (guix-daemon --disable-chroot --build-users-group=_guixbuild &)
> guix pull --url=https://gitlab.com/debdistutils/guix/mirror.git

[...]

> In ./guix/store.scm:
>   2095:12  7 (_ #<store-connection 256.99 1e7edc80>)
>   1437:13  6 (map/accumulate-builds #<store-connection 256.99 1e7edc80> #<procedure 25cd1c20 at ./guix/store.scm:20?> ?)
>    1433:5  5 (map/accumulate-builds #<store-connection 256.99 1e7edc80> #<procedure 3614d880 at ./guix/store.scm:14?> ?)
>   1449:15  4 (_ #<store-connection 256.99 1e7edc80> ("/gnu/store/vsv3dax6czpp5xnvks4zm1a2yg694hqv-guix-daemon-1.?" ?) ?)
>   1449:15  3 (loop #f)
>    746:11  2 (process-stderr #<store-connection 256.99 1e7edc80> _)
> In ./guix/serialization.scm:
>    101:11  1 (read-int #<input-output: file 10>)
>      79:6  0 (get-bytevector-n* #<input-output: file 10> 8)
> ./guix/serialization.scm:79:6: In procedure get-bytevector-n*:
> ERROR:
>   1. &nar-error:
>       file: #f
>       port: #<input-output: file 10>
> guix pull: error: You found a bug: the program '/gnu/store/y0a6ck768ixr4zwdn3zg2wvwzn1j2kf6-compute-guix-derivation'

Could it be due to guix-daemon not running in a UTF-8 locale?

IOW, does it help if you run:

  LC_ALL=C.UTF-8 guix-daemon …

?

Ludo’.




Reply sent to Simon Josefsson <simon <at> josefsson.org>:
You have taken responsibility. (Mon, 23 Dec 2024 21:10:02 GMT) Full text and rfc822 format available.

Notification sent to Simon Josefsson <simon <at> josefsson.org>:
bug acknowledged by developer. (Mon, 23 Dec 2024 21:10:02 GMT) Full text and rfc822 format available.

Message #13 received at 74925-done <at> debbugs.gnu.org (full text, mbox):

From: Simon Josefsson <simon <at> josefsson.org>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 74925-done <at> debbugs.gnu.org
Subject: Re: bug#74925: failed to compute the derivation for Guix
Date: Mon, 23 Dec 2024 22:07:06 +0100
[Message part 1 (text/plain, inline)]
Ludovic Courtès <ludo <at> gnu.org> writes:

> Hello,
>
> Simon Josefsson <simon <at> josefsson.org> skribis:
>
>> (guix-daemon --disable-chroot --build-users-group=_guixbuild &)
>> guix pull --url=https://gitlab.com/debdistutils/guix/mirror.git
>
> [...]
>
>> In ./guix/store.scm:
>>   2095:12  7 (_ #<store-connection 256.99 1e7edc80>)
>>   1437:13  6 (map/accumulate-builds #<store-connection 256.99 1e7edc80> #<procedure 25cd1c20 at ./guix/store.scm:20?> ?)
>>    1433:5  5 (map/accumulate-builds #<store-connection 256.99 1e7edc80> #<procedure 3614d880 at ./guix/store.scm:14?> ?)
>>   1449:15  4 (_ #<store-connection 256.99 1e7edc80> ("/gnu/store/vsv3dax6czpp5xnvks4zm1a2yg694hqv-guix-daemon-1.?" ?) ?)
>>   1449:15  3 (loop #f)
>>    746:11  2 (process-stderr #<store-connection 256.99 1e7edc80> _)
>> In ./guix/serialization.scm:
>>    101:11  1 (read-int #<input-output: file 10>)
>>      79:6  0 (get-bytevector-n* #<input-output: file 10> 8)
>> ./guix/serialization.scm:79:6: In procedure get-bytevector-n*:
>> ERROR:
>>   1. &nar-error:
>>       file: #f
>>       port: #<input-output: file 10>
>> guix pull: error: You found a bug: the program '/gnu/store/y0a6ck768ixr4zwdn3zg2wvwzn1j2kf6-compute-guix-derivation'
>
> Could it be due to guix-daemon not running in a UTF-8 locale?
>
> IOW, does it help if you run:
>
>   LC_ALL=C.UTF-8 guix-daemon …
>
> ?

Yes, thank you!  I get other backtraces now, but I believe this
particular bug can be closed.

Although maybe 'guix-daemon' want to set LC_ALL=C.UTF-8 internally if it
is known that things won't work with it...

/Simon
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#74925; Package guix. (Thu, 26 Dec 2024 11:30:02 GMT) Full text and rfc822 format available.

Message #16 received at 74925-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Simon Josefsson <simon <at> josefsson.org>
Cc: 74925-done <at> debbugs.gnu.org
Subject: Re: bug#74925: failed to compute the derivation for Guix
Date: Thu, 26 Dec 2024 12:29:07 +0100
Simon Josefsson <simon <at> josefsson.org> skribis:

> Although maybe 'guix-daemon' want to set LC_ALL=C.UTF-8 internally if it
> is known that things won't work with it...

Yes, see <https://issues.guix.gnu.org/75007>.

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 23 Jan 2025 12:24:19 GMT) Full text and rfc822 format available.

This bug report was last modified 202 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.