[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#59784: [version 1.4.0rc1] Retrying a failed install fails
From: |
Ludovic Courtès |
Subject: |
bug#59784: [version 1.4.0rc1] Retrying a failed install fails |
Date: |
Tue, 13 Dec 2022 10:48:43 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Hi again,
Ludovic Courtès <ludo@gnu.org> skribis:
> It looks like the store is in a broken state, with its database not
> matching its actual contents. The ‘install-system’ procedure is
> supposed to protect against that by making a backup of the database
> before starting the installation and restoring it afterwards. (It
> apparently worked for me when I interrupted ‘guix system init’ by
> hitting C-c.)
Actually, look at the excerpt from final.scm:
;; Restart guix-daemon so that it does no keep the MNT namespace
;; alive.
(restart-service 'guix-daemon)
(copy-file saved-database database-file)
We’re restarting the daemon *before* we have restored the database,
which is wrong: depending on how lucky you are, guix-daemon might load
the old database (all this depends on what exactly happens when sqlite
opens the database, but I think there’s a possibility that it will load
or cache a few things and thus fail to see the changes ‘copy-file’
introduces.)
So my guess is that things will be much better if we swap these two
lines.
Florian, it would be great if you could try that and run a new image
generated version ‘version-1.4.0’ with these two lines changed. To
produce the image, run:
./pre-inst-env guix system image -t iso9660 --label=Guix \
gnu/system/install.scm
Ludo’.
- bug#59784: [version 1.4.0rc1] Retrying a failed install fails, pelzflorian (Florian Pelz), 2022/12/02
- bug#59784: [version 1.4.0rc1] Retrying a failed install fails, Ludovic Courtès, 2022/12/09
- bug#59784: [version 1.4.0rc1] Retrying a failed install fails, Ludovic Courtès, 2022/12/09
- bug#59784: [version 1.4.0rc1] Retrying a failed install fails, pelzflorian (Florian Pelz), 2022/12/10
- bug#59784: [version 1.4.0rc1] Retrying a failed install fails, Ludovic Courtès, 2022/12/13
- bug#59784: [version 1.4.0rc1] Retrying a failed install fails,
Ludovic Courtès <=
- bug#59784: [version 1.4.0rc1] Retrying a failed install fails, pelzflorian (Florian Pelz), 2022/12/13
- bug#59784: [version 1.4.0rc1] Retrying a failed install fails, Ludovic Courtès, 2022/12/13
- bug#59784: [version 1.4.0rc1] Retrying a failed install fails, pelzflorian (Florian Pelz), 2022/12/14
- bug#59784: [version 1.4.0rc1] Retrying a failed install fails, pelzflorian (Florian Pelz), 2022/12/14
- bug#59784: [version 1.4.0rc1] Retrying a failed install fails, Ludovic Courtès, 2022/12/14
- bug#59784: [version 1.4.0rc1] Retrying a failed install fails, pelzflorian (Florian Pelz), 2022/12/15
- bug#59784: [version 1.4.0rc1] Retrying a failed install fails, pelzflorian (Florian Pelz), 2022/12/15
- bug#59784: [version 1.4.0rc1] Retrying a failed install fails, Ludovic Courtès, 2022/12/16
- bug#59784: [version 1.4.0rc1] Retrying a failed install fails, pelzflorian (Florian Pelz), 2022/12/16
- bug#59784: [version 1.4.0rc1] Retrying a failed install fails, Ludovic Courtès, 2022/12/17