guix pull - maybe a bug

  • Done
  • quality assurance status badge
Details
3 participants
  • Sarah Morgensen
  • Ludovic Courtès
  • Thibaut Brandscheid
Owner
unassigned
Submitted by
Thibaut Brandscheid
Severity
normal
T
T
Thibaut Brandscheid wrote on 1 Feb 2019 21:14
(address . bug-guix@gnu.org)
CALwiZw5ZfGZNDdxQSHhj+j2G5mVMDwTv-3tMn3Pq+6j3TCuBUg@mail.gmail.com
Hi,

I use openSUSE Tumbleweed and got n the last days a faulty update. This
happens maybe ones or twice a year. So I did what I always do, I revert the
non-user file system to an older btrfs snapshot. The thing is, that guix
pull does no longer work after the system rollback.
Since this kind of problem might be new to Guix, I decided to write you an
email.

I guess my local profile has some soft-links to non-existing folders or
files.
Any hint on how to resolve this?

If you need more info, I'm glad to help.

Greetings
Thibaut
Attachment: file
~> guix pull
Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
Building from this channel:
Computing Guix derivation for 'x86_64-linux'... /Backtrace:
In ./guix/gexp.scm:
703:2 19 (_ _)
In ./guix/monads.scm:
471:9 18 (_ _)
In ./guix/gexp.scm:
573:13 17 (_ _)
In ./guix/store.scm:
1610:8 16 (_ _)
1610:8 15 (_ _)
In ./guix/gexp.scm:
703:2 14 (_ _)
In ./guix/monads.scm:
471:9 13 (_ _)
In ./guix/gexp.scm:
573:13 12 (_ _)
In ./guix/store.scm:
1610:8 11 (_ _)
In ./guix/gexp.scm:
703:2 10 (_ _)
In ./guix/monads.scm:
471:9 9 (_ _)
In ./guix/gexp.scm:
573:13 8 (_ _)
In ./guix/store.scm:
1610:8 7 (_ _)
In ./guix/gexp.scm:
703:2 6 (_ _)
In ./guix/monads.scm:
471:9 5 (_ _)
In ./guix/gexp.scm:
573:13 4 (_ _)
In ./guix/store.scm:
1610:8 3 (_ _)
1633:38 2 (_ #<store-connection 256.99 94fb960>)
In ./guix/derivations.scm:
847:17 1 (derivation #<store-connection 256.99 94fb960> _ _ _ # _ ?)
In ./guix/store.scm:
982:9 0 (_ #<store-connection 256.99 94fb960> _ #vu8(68 101 # ?) ?)

./guix/store.scm:982:9: Throw to key `srfi-34' with args `(#<condition &store-protocol-error [message: "opening file `/gnu/store/vncqqf1nzbbc4hkaib5mkpzr4vn61qdl-guile-git-0.2.0.drv': No such file or directory" status: 1] 5549720>)'.
guix pull: error: You found a bug: the program '/gnu/store/31i9n611q290rm60zfglpw6ki0gfbafg-compute-guix-derivation'
failed to compute the derivation for Guix (version: "43af5f9d1961a89430d19a2e1509615586bc5dbd"; system: "x86_64-linux";
host version: "0.16.0"; pull-version: 1).
Please report it by email to <bug-guix@gnu.org>.
L
L
Ludovic Courtès wrote on 4 Feb 2019 22:30
(name . Thibaut Brandscheid)(address . randaltor@web.de)(address . 34281@debbugs.gnu.org)
87bm3rp7hd.fsf@gnu.org
Hello,

Thibaut Brandscheid <randaltor@web.de> skribis:

Toggle quote (5 lines)
> I use openSUSE Tumbleweed and got n the last days a faulty update. This
> happens maybe ones or twice a year. So I did what I always do, I revert the
> non-user file system to an older btrfs snapshot. The thing is, that guix
> pull does no longer work after the system rollback.

[...]

Toggle quote (2 lines)
> ./guix/store.scm:982:9: Throw to key `srfi-34' with args `(#<condition &store-protocol-error [message: "opening file `/gnu/store/vncqqf1nzbbc4hkaib5mkpzr4vn61qdl-guile-git-0.2.0.drv': No such file or directory" status: 1] 5549720>)'.

By reverting to an earlier Btrfs snapshot, you ended up with a corrupt
store. The store actually consists of two things: the files under
/gnu/store, and the /var/guix/db/db.sqlite database that contains
metadata about those files. Presumably, after you reverted to an
earlier snapshot, those two bits got out of sync, leading to the error
above.

At this point you may have to reinstall Guix. The take-away is that you
should never rely on file-system-level rollbacks for Guix; instead use
the mechanisms that Guix provides, such as ‘--roll-back’.

Thanks,
Ludo’.
S
S
Sarah Morgensen wrote on 26 Sep 2021 02:23
control message for bug #34281
(address . control@debbugs.gnu.org)
E1mUHxR-0001gl-Lq@debbugs.gnu.org
close 34281
quit
?