I guess I found a bug in "guix pull" ?

  • Done
  • quality assurance status badge
Details
2 participants
  • Josselin Poiret
  • jbranso
Owner
unassigned
Submitted by
jbranso
Severity
normal
J
J
jbranso wrote on 27 Jan 17:12 +0100
(address . bug-guix@gnu.org)
a21040efe27907cfbc74f1d0454efc9662e6a761@dismail.de
This is the output that I got from guix pull just now:

#+BEGIN_SRC shell
joshua@dobby ~ (master)> guix pull
Updating channel 'nonguix' from Git repository at 'https://gitlab.com/nonguix/nonguix'...
Authenticating channel 'nonguix', commits 897c1a4 to 3857d86 (5 new commits)...
Updating channel 'guixrus' from Git repository at 'https://git.sr.ht/~whereiseveryone/guixrus'...
Authenticating channel 'guixrus', commits 7c67c3a to 0d35538 (1 new commits)...
Updating channel 'dthompson' from Git repository at 'https://git.dthompson.us/guix-channel.git'...
Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
Authenticating channel 'guix', commits 9edb3f6 to 836d608 (238 new commits)...
Building from these channels:
substitute: updating substitutes from 'https://guix.tobias.gr'/... 100.0%
substitute: updating substitutes from 'https://substitutes.nonguix.org'/... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'/... 100.0%
substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'/... 100.0%
building /gnu/store/jpql07qa2kqw9b70h9yc5kcn66190grl-compute-guix-derivation.drv...
Computing Guix derivation for 'x86_64-linux'... |Backtrace:
In ./guix/gexp.scm:
299:22 19 (_ #<store-connection 256.99 78b6419ca0a0>)
1201:2 18 (_ #<store-connection 256.99 78b6419ca0a0>)
1068:2 17 (_ #<store-connection 256.99 78b6419ca0a0>)
909:4 16 (_ #<store-connection 256.99 78b6419ca0a0>)
In ./guix/store.scm:
2065:12 15 (_ #<store-connection 256.99 78b6419ca0a0>)
1377:6 14 (map/accumulate-builds #<store-connection 256.99 78b6419ca0a0> #<procedure 78b63cbbd800 at ./guix/stor?> ?)
1382:11 13 (loop (#<gexp-input native #<<file-mapping> name: "guix-config-source" alist: (("guix/config.scm" #<<?>) ?)
1295:4 12 (call-with-build-handler #<procedure 78b63cbbd740 at ./guix/store.scm:1335:2 (continue store things mo?> ?)
2180:24 11 (run-with-store #<store-connection 256.99 78b6419ca0a0> #<procedure 78b63cbbd340 at ./guix/gexp.scm:91?> ?)
In ./guix/gexp.scm:
914:13 10 (_ #<store-connection 256.99 78b6419ca0a0>)
In ./guix/store.scm:
2008:8 9 (_ #<store-connection 256.99 78b6419ca0a0>)
In ./guix/gexp.scm:
299:22 8 (_ #<store-connection 256.99 78b6419ca0a0>)
1569:2 7 (_ #<store-connection 256.99 78b6419ca0a0>)
In ./guix/monads.scm:
487:9 6 (_ #<store-connection 256.99 78b6419ca0a0>)
In ./guix/gexp.scm:
1566:6 5 (_ #<store-connection 256.99 78b6419ca0a0>)
In ./guix/store.scm:
2008:8 4 (_ #<store-connection 256.99 78b6419ca0a0>)
In ./guix/gexp.scm:
299:22 3 (_ #<store-connection 256.99 78b6419ca0a0>)
In ./guix/store.scm:
2052:38 2 (_ #<store-connection 256.99 78b6419ca0a0>)
In ./guix/derivations.scm:
965:17 1 (derivation #<store-connection 256.99 78b6419ca0a0> "config.scm" "/gnu/store/1gd9nsy4cps8fnrd1avkc9l01?" ?)
In ./guix/store.scm:
1038:9 0 (_ #<store-connection 256.99 78b6419ca0a0> "config.scm.drv" #vu8(68 101 114 105 118 101 40 91 40 34 # ?) ?)

./guix/store.scm:1038:9: ERROR:
1. &store-protocol-error:
message: "error parsing derivation `/gnu/store/3nppfdxy9vgg9ls6qi8j8pkzw2khi98h-git-minimal-2.41.0.drv': expected string `Derive(['"
status: 1
guix pull: error: You found a bug: the program '/gnu/store/m9z876jpmpbslc6qaikbp9fk5dv01y3n-compute-guix-derivation'
failed to compute the derivation for Guix (version: "836d608a56bc798fff0cda507f3c1010bbe1f914"; system: "x86_64-linux";
host version: "b150c546b04c9ebb09de9f2c39789221054f5eea"; pull-version: 1).
Please report the COMPLETE output above by email to <bug-guix@gnu.org>.

#+END_SRC

Some more info: I am using a librebooted T400 on Guix System.

#+BEGIN_SRC shell
joshua@dobby ~ (master) [1]> guix system describe
Generation 59 Dec 25 2023 18:53:48 (current)
file name: /var/guix/profiles/system-59-link
canonical file name: /gnu/store/17ydivxng9ndrv0gljm1970662s7kaig-system
label: GNU with Linux-Libre 6.5.12
bootloader: grub
root device: /dev/mapper/cryptroot
kernel: /gnu/store/3vf0n2dcd63m62r9gn7yf1pcynkx8qpr-linux-libre-6.5.12/bzImage
channels:
guix:
branch: master
commit: b150c546b04c9ebb09de9f2c39789221054f5eea
dthompson:
branch: main
commit: 9a0d291f8d2ce2cfb443773f2dcce2097218aa9f
guixrus:
branch: master
commit: 36b9f066d9a1df9b02d574ee5647c46b1a9b1194
nonguix:
branch: master
commit: 639b70063b73cb9ff553b77d51d42c07eb208d91
configuration file: /gnu/store/pqvwwwyknkgpxg2lriv2r7vgv7agasga-configuration.scm

#+END_SRC

#+BEGIN_SRC shell
joshua@dobby ~ (master)> guix describe
Generation 84 Nov 22 2023 16:19:36 (current)
guix b150c54
branch: master
commit: b150c546b04c9ebb09de9f2c39789221054f5eea
dthompson 9a0d291
branch: main
commit: 9a0d291f8d2ce2cfb443773f2dcce2097218aa9f
guixrus 36b9f06
branch: master
commit: 36b9f066d9a1df9b02d574ee5647c46b1a9b1194
nonguix 639b700
branch: master
commit: 639b70063b73cb9ff553b77d51d42c07eb208d91

#+END_SRC


I suppose that I will try removing some packages (git), removing some
channels and pulling again.

Thanks,

Joshua
J
J
Josselin Poiret wrote on 30 Jan 23:08 +0100
87sf2ezd6s.fsf@jpoiret.xyz
Hi,

jbranso--- via Bug reports for GNU Guix <bug-guix@gnu.org> writes:

Toggle quote (4 lines)
> message: "error parsing derivation `/gnu/store/3nppfdxy9vgg9ls6qi8j8pkzw2khi98h-git-minimal-2.41.0.drv': expected string `Derive(['"
> status: 1
> guix pull: error: You found a bug: the program '/gnu/store/m9z876jpmpbslc6qaikbp9fk5dv01y3n-compute-guix-derivation'

Looks like the elusive "empty drv" bug (maybe caused by fs corruption?).
Can you `guix gc -D` that drv and retry?

Best,
--
Josselin Poiret
-----BEGIN PGP SIGNATURE-----

iQHEBAEBCAAuFiEEOSSM2EHGPMM23K8vUF5AuRYXGooFAmW5c3sQHGRldkBqcG9p
cmV0Lnh5egAKCRBQXkC5FhcaigfxC/4hxdlianK0IEPCVstEE9wn7I+XFeqdt3+r
Kg0Udn1F7/GfN5dYUr8TQ90Uu+BNvGeh5r0KpsyHYIlpcDYPwvexPK+WgfjTxsoh
UZ3QBmd0SDiO/Wb8WE15ev5DEXO3VuSAA9JaEGJnWVs46UTKH08odo3vMSQPoIgt
YT+Sqyor4gAhCgkSo0QXG+cyzgBZZRxyUxZ8TGiL/O2shkuOZj8IMOyLN6cEPsP0
5Z8FRFpRv8HAqqJahTXTlsO3EeNcQssKv3tlmQZho7/PqKzepjevSdnmDTL/Cls+
zfEeSaqVkjWTHkpKzVsI+AsciW85CxbvN7RDop8yByH342Ir52XmlkpMJ2xN48Vs
a+xDxOEkGG1yQD11A4qzW/4PCAjoYUUJX7iQkNuFNNIU3X44ISV+e9Ky7XXJDINW
qRqewJ42Fyd6B+D/O6xoc+YaHIAL7LksvGx/xhhW1HFJ0687gW7HfNM5oRrbF/lY
P8jSRIkIHprL8oDJb4BsEQ04IEYbhms=
=TOca
-----END PGP SIGNATURE-----

J
J
Joshua Branson wrote on 31 Mar 23:26 +0200
(name . Josselin Poiret)(address . dev@jpoiret.xyz)(address . 68760@debbugs.gnu.org)
87sf06rt3o.fsf@dismail.de
Josselin Poiret <dev@jpoiret.xyz> writes:

Toggle quote (13 lines)
> Hi,
>
> jbranso--- via Bug reports for GNU Guix <bug-guix@gnu.org> writes:
>
>> message: "error parsing derivation `/gnu/store/3nppfdxy9vgg9ls6qi8j8pkzw2khi98h-git-minimal-2.41.0.drv': expected string `Derive(['"
>> status: 1
>> guix pull: error: You found a bug: the program '/gnu/store/m9z876jpmpbslc6qaikbp9fk5dv01y3n-compute-guix-derivation'
>
> Looks like the elusive "empty drv" bug (maybe caused by fs corruption?).
> Can you `guix gc -D` that drv and retry?
>
> Best,

Thanks for the quick reply. I was able to fix the issues that I had by
the following:

# guix system delete-generations
$ guix package -d
$ guix gc


Then I git cloned guix source, compiled from source, and

# sudo -E ./pre-inst-env guix system reconfigure \
../../guix-config/bare-bones-sway.scm

I was able to update guix pretty smoothly after that!

Thanks,

Joshua

P.S. I'll close this bug report as well.
J
J
Joshua Branson wrote on 1 Apr 15:00 +0200
control message for bug #68760
(address . control@debbugs.gnu.org)
a052f3ec2942058daeb26c224c25a0db@dismail.de
close 68760
quit
?