From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kLshBpxEmmP5dQAAbAwnHQ (envelope-from ) for ; Wed, 14 Dec 2022 22:48:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oJotBpxEmmMdbwAA9RJhRA (envelope-from ) for ; Wed, 14 Dec 2022 22:48:12 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BAC0EB00D for ; Wed, 14 Dec 2022 22:48:11 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5Zbf-0001uT-NA; Wed, 14 Dec 2022 16:48:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5Zbe-0001uL-3e for bug-guix@gnu.org; Wed, 14 Dec 2022 16:48:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p5Zbd-0005WD-Rm for bug-guix@gnu.org; Wed, 14 Dec 2022 16:48:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5Zbd-0007BL-Nc for bug-guix@gnu.org; Wed, 14 Dec 2022 16:48:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#59784: [version 1.4.0rc1] Retrying a failed install fails Resent-From: "pelzflorian (Florian Pelz)" Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 14 Dec 2022 21:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59784 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Mathieu Othacehe , 59784@debbugs.gnu.org Received: via spool by 59784-submit@debbugs.gnu.org id=B59784.167105444727493 (code B ref 59784); Wed, 14 Dec 2022 21:48:01 +0000 Received: (at 59784) by debbugs.gnu.org; 14 Dec 2022 21:47:27 +0000 Received: from localhost ([127.0.0.1]:41901 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5Zb4-00079N-O4 for submit@debbugs.gnu.org; Wed, 14 Dec 2022 16:47:27 -0500 Received: from relay.yourmailgateway.de ([185.244.194.184]:47289) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5Zb2-00079H-Jm for 59784@debbugs.gnu.org; Wed, 14 Dec 2022 16:47:25 -0500 Received: from relay01-mors.netcup.net (localhost [127.0.0.1]) by relay01-mors.netcup.net (Postfix) with ESMTPS id 4NXTVM0dLjz8tKq; Wed, 14 Dec 2022 22:47:23 +0100 (CET) Received: from policy01-mors.netcup.net (unknown [46.38.225.35]) by relay01-mors.netcup.net (Postfix) with ESMTPS id 4NXTVM0DvKz82r0; Wed, 14 Dec 2022 22:47:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at policy01-mors.netcup.net Received: from mxe217.netcup.net (unknown [10.243.12.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by policy01-mors.netcup.net (Postfix) with ESMTPS id 4NXTVL2WMmz8sXK; Wed, 14 Dec 2022 22:47:22 +0100 (CET) Received: from florianrock64 (ip5b40a50f.dynamic.kabel-deutschland.de [91.64.165.15]) by mxe217.netcup.net (Postfix) with ESMTPSA id BCE037FC3D; Wed, 14 Dec 2022 22:47:15 +0100 (CET) From: "pelzflorian (Florian Pelz)" References: <87y1rpy9p4.fsf@pelzflorian.de> <87mt7wap6v.fsf@gnu.org> <87y1rf649x.fsf@pelzflorian.de> <87pmcny73z.fsf@gnu.org> <87k02vy6pw.fsf@gnu.org> <87ilifeyg1.fsf@pelzflorian.de> <87h6xyvqr6.fsf@gnu.org> <878rja150v.fsf@pelzflorian.de> Date: Wed, 14 Dec 2022 22:47:14 +0100 In-Reply-To: <878rja150v.fsf@pelzflorian.de> (pelzflorian@pelzflorian.de's message of "Wed, 14 Dec 2022 14:36:16 +0100") Message-ID: <87h6xxpsil.fsf@pelzflorian.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Rspamd-Queue-Id: BCE037FC3D X-Spamd-Result: default: False [-5.60 / 15.00]; BAYES_HAM(-5.50)[99.99%]; MIME_GOOD(-0.10)[multipart/mixed,text/plain,text/x-patch]; RCPT_COUNT_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:+]; ASN(0.00)[asn:3209, ipnet:91.64.0.0/14, country:DE]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[] X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: 90f38mBOqnMbJPMh5/m2ms+zHvw0QZcj+o6ZjeJJJgxD8IyziacK3mt4 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671054491; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=KaBmfBDFaAYJkEyqLIzHSWO0mFsoijJpA3+3Ow5aQYs=; b=ImIP3Sz9g76lZ0pHvTOBvmscUuiusPOFXooePl7lIzT9Zjqq3QBXfO/8FC0wmWqQqw3t2H Prpff3Y9WCBVph+wPqycRYnYSoRzweWcgLZFgx6ymwMoBtcd/zOBMEi05o1lH+IPCGwnoA 8GYqHLm0C1VnsLdZy/iBgnvf4jdiFTHV/grYJrGbqTZkK7H0hm5OHW+3PLgaAKVRjFxX+h lAqCQWMeAFw4ssvUA6hf1ChRDIB4TF13woSdrgpxFEzjSxF20iNWVNK9tRqFwENOs0iRWX L8dxA2NXfxh0RVzZrvRSFpx9LsD5qnFZXbjOP1iZYKVChkrIfDpGaMumpuOSZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671054491; a=rsa-sha256; cv=none; b=hSK0q7/HjXbmZMxTqAxfDXYqLmI2EfywEffyHkqs8Ohz3lpEFXoVH6v6ZDP2auhv8KPJ9C Nch7TEPeSpP/snYUjelEE0qGOWhteLCSCkNs7M9h1Y725huwCCOSWNEQsbEmzLQGnkKAUr 3DVeS2sEQ1foOTfUTuH4rNyKJxTr0sGdPt/j2/FRUPMUFAxR/ckV/T6UjIboGsEEC4Cr9b mI/VBx9dWP9DLRUzAwgosKJgXic5G0wDcWahYmuM9gxK9EqAX2MeZvvqQlEL9+UMeceDAf TnoFt348aj/s2x8ha/kzDZJXj+W/mvivO7D4L41sOd1THg7IpBQ9BXKcEXOxfg== X-Migadu-Spam-Score: -2.97 X-Spam-Score: -2.97 X-Migadu-Queue-Id: BAC0EB00D X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-TUID: HZhuifnxT593 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable "pelzflorian (Florian Pelz)" writes: > I shall try with fsync now. fsyncing the database had no effect. (In addition to Ludo=E2=80=99s 'stop-service', I had done --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=fsync.patch 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. --=-=-= Content-Type: text/plain 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 --=-=-=--