[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#59784: [version 1.4.0rc1] Retrying a failed install fails
From: |
pelzflorian (Florian Pelz) |
Subject: |
bug#59784: [version 1.4.0rc1] Retrying a failed install fails |
Date: |
Wed, 14 Dec 2022 22:47:14 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
"pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de> writes:
> I shall try with fsync now.
fsyncing the database had no effect. (In addition to Ludo’s
'stop-service', I had done
diff --git a/gnu/installer/final.scm b/gnu/installer/final.scm
index ef487805f0..13deffef85 100644
--- a/gnu/installer/final.scm
+++ b/gnu/installer/final.scm
@@ -217,8 +217,16 @@ (define (assert-exit x)
;; alive.
(stop-service 'guix-daemon)
- ;; Restore the database and restart it.
+ ;; Restore the database.
(copy-file saved-database database-file)
+
+ ;; Sync it to the filesystem.
+ (let* ((flags O_RDONLY)
+ (fd (open database-file flags)))
+ (fsync fd)
+ (close fd))
+
+ ;; And restart guix-daemon.
(start-service 'guix-daemon)
;; Finally umount the cow-store and exit the container.
The same two problems:
* If I resume a crashed installer, I need to resume twice because the
first resume always fails immediately.
* With bad luck, it permanently fails, even a second, third, fourth,
fifth time fail.
This is the same as without the fsync. Fsync had no effect. Still I
uploaded installer-dump-194618fa.
Regards,
Florian
- 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, 2022/12/13
- 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) <=
- 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
- bug#59784: [version 1.4.0rc1] Retrying a failed install fails, pelzflorian (Florian Pelz), 2022/12/17
- bug#59784: [version 1.4.0rc1] Retrying a failed install fails, Ludovic Courtès, 2022/12/17
- bug#59784: [version 1.4.0rc1] Retrying a failed install fails, pelzflorian (Florian Pelz), 2022/12/17
- bug#59784: [version 1.4.0rc1] Retrying a failed install fails, Ludovic Courtès, 2022/12/17