From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qJtxMV0YnmM/tQAAbAwnHQ (envelope-from ) for ; Sat, 17 Dec 2022 20:28:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QFNyMV0YnmPjVwEAauVa8A (envelope-from ) for ; Sat, 17 Dec 2022 20:28:29 +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 B0EE52988B for ; Sat, 17 Dec 2022 20:28:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6cqq-0004zr-KX; Sat, 17 Dec 2022 14:28:04 -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 1p6cqo-0004zV-DN for bug-guix@gnu.org; Sat, 17 Dec 2022 14:28: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 1p6cqo-0005vV-4x for bug-guix@gnu.org; Sat, 17 Dec 2022 14:28:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p6cqn-0000o1-OQ for bug-guix@gnu.org; Sat, 17 Dec 2022 14:28: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: Sat, 17 Dec 2022 19:28: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.16713052743091 (code B ref 59784); Sat, 17 Dec 2022 19:28:01 +0000 Received: (at 59784) by debbugs.gnu.org; 17 Dec 2022 19:27:54 +0000 Received: from localhost ([127.0.0.1]:57594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6cqg-0000nn-4z for submit@debbugs.gnu.org; Sat, 17 Dec 2022 14:27:54 -0500 Received: from relay.yourmailgateway.de ([188.68.63.102]:42201) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6cqe-0000nh-4N for 59784@debbugs.gnu.org; Sat, 17 Dec 2022 14:27:52 -0500 Received: from mors-relay-2502.netcup.net (localhost [127.0.0.1]) by mors-relay-2502.netcup.net (Postfix) with ESMTPS id 4NZGFz2jF9z5wg0; Sat, 17 Dec 2022 20:27:51 +0100 (CET) Authentication-Results: mors-relay-2502.netcup.net; dkim=permerror (bad message/signature format) Received: from policy01-mors.netcup.net (unknown [46.38.225.35]) by mors-relay-2502.netcup.net (Postfix) with ESMTPS id 4NZGFz1y72z4wdy; Sat, 17 Dec 2022 20:27:51 +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 4NZGFy386Kz8tXM; Sat, 17 Dec 2022 20:27:50 +0100 (CET) Received: from florianrock64 (ip5b40a50f.dynamic.kabel-deutschland.de [91.64.165.15]) by mxe217.netcup.net (Postfix) with ESMTPSA id 07C2F7FD15; Sat, 17 Dec 2022 20:27:43 +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> <87h6xxpsil.fsf@pelzflorian.de> <87sfhhr1du.fsf@gnu.org> <871qp05zmf.fsf@pelzflorian.de> <87v8mcz9ai.fsf@pelzflorian.de> <87pmcji8wn.fsf@gnu.org> <87v8magg6e.fsf@gnu.org> Date: Sat, 17 Dec 2022 20:27:43 +0100 In-Reply-To: <87v8magg6e.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sat, 17 Dec 2022 17:15:21 +0100") Message-ID: <87zgblhlu8.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: 07C2F7FD15 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]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:+]; RCVD_COUNT_ZERO(0.00)[0]; ASN(0.00)[asn:3209, ipnet:91.64.0.0/14, country:DE]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; 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: shz/IvGWXMEpYJ8sDaf60NXi+RcqoRV29/xaz9tz37zrTsaJIslGHZ7h 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-TUID: 76OlbWlI7uWT --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > The error message that=E2=80=99s haunting us: > > opening file `/gnu/store/=E2=80=A6.drv': No such file or directory > > comes from guix-daemon. It happens while the client is doing an > =E2=80=98add-text-to-store=E2=80=99 RPC to add that .drv to the store. > =E2=80=98LocalStore::addTextToStore=E2=80=99 supposedly creates the .drv = file in > /gnu/store and then reads it back (=E2=80=98registerValidPath=E2=80=99 ->= =E2=80=98addValidPath=E2=80=99 > -> =E2=80=98readDerivation=E2=80=99 -> =E2=80=98readFile=E2=80=99): this = is where it gets ENOENT. > > It would suggest that the database is consistent, but that somehow > writes don=E2=80=99t go through the overlay FS. Most interesting. I saw a comment > void LocalStore::registerValidPaths(const ValidPathInfos & infos) > { > /* SQLite will fsync by default, but the new valid paths may not be f= sync-ed. > * So some may want to fsync them before registering the validity, at= the > * expense of some speed of the path registering operation. */ > if (settings.syncBeforeRegistering) sync(); In vain, I therefore tried --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=sync-before-registering.patch diff --git a/nix/libstore/globals.cc b/nix/libstore/globals.cc index d4f9a46a74..5f8a3a3031 100644 --- a/nix/libstore/globals.cc +++ b/nix/libstore/globals.cc @@ -40,7 +40,7 @@ Settings::Settings() reservedSize = 8 * 1024 * 1024; fsyncMetadata = true; useSQLiteWAL = true; - syncBeforeRegistering = false; + syncBeforeRegistering = true; useSubstitutes = true; useChroot = false; impersonateLinux26 = false; --=-=-= Content-Type: text/plain But it changes nothing. Regards, Florian --=-=-=--