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 EEkiKvoHmWMUGgAAbAwnHQ (envelope-from ) for ; Wed, 14 Dec 2022 00:17:14 +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 6CUiKvoHmWMMPgEAauVa8A (envelope-from ) for ; Wed, 14 Dec 2022 00:17:14 +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 06A913E4D5 for ; Wed, 14 Dec 2022 00:17:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5EWG-0008Ti-La; Tue, 13 Dec 2022 18:17: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 1p5EWF-0008Ta-9z for bug-guix@gnu.org; Tue, 13 Dec 2022 18:17:03 -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 1p5EWF-0004Fx-2d for bug-guix@gnu.org; Tue, 13 Dec 2022 18:17:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5EWE-00072v-9x for bug-guix@gnu.org; Tue, 13 Dec 2022 18:17:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#59784: [version 1.4.0rc1] Retrying a failed install fails Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 13 Dec 2022 23:17:02 +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: "pelzflorian (Florian Pelz)" Cc: Mathieu Othacehe , 59784@debbugs.gnu.org Received: via spool by 59784-submit@debbugs.gnu.org id=B59784.167097340527075 (code B ref 59784); Tue, 13 Dec 2022 23:17:02 +0000 Received: (at 59784) by debbugs.gnu.org; 13 Dec 2022 23:16:45 +0000 Received: from localhost ([127.0.0.1]:35230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5EVw-00072d-Oa for submit@debbugs.gnu.org; Tue, 13 Dec 2022 18:16:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5EVv-00072W-DS for 59784@debbugs.gnu.org; Tue, 13 Dec 2022 18:16:43 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5EVp-0004Bp-7m; Tue, 13 Dec 2022 18:16:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=KfHnTM4BKnuiFvMpc/tTNWGE8NFIlYVnfyY3dd2UiDs=; b=lhS6hkXLKf4wqjeOcY4V WK86brV3I+lUsttsFZPnRB39vmo2mv3sViWZWQICspZEu96QLqoZy6V0hZUpzj3XsLi7ePd1ou3Sf PIVnI6v0ZNb4uWKs1zTdNRbk/sXD1nH/B16VTbOdrFv+Y+wvhFHP/ixMkzbQ70YSTEL1x+9zzUlTB PECy++29VXtut9BWovINef+CT5eB5Ktt8WEplYO2OEw30sNS187O3OcZ4TbGnFKRLaCW5ijSj9S7S LJXhL6n8kuxArKK0ddtT/PbSMNAb6stfY6g2yrHstJQiN559thyEmfGWfZ1Gilm6wZbEMDXea00GX QC3GcwNL1DOMBQ==; Received: from vpn-0-27.aquilenet.fr ([2a0c:e300:4:27::] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5EVl-00066H-SA; Tue, 13 Dec 2022 18:16:35 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= 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> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quartidi 24 Frimaire an 231 de la =?UTF-8?Q?R=C3=A9volution, ?= jour de l'Oseille X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 14 Dec 2022 00:16:29 +0100 In-Reply-To: <87ilifeyg1.fsf@pelzflorian.de> (pelzflorian@pelzflorian.de's message of "Tue, 13 Dec 2022 23:22:22 +0100") Message-ID: <87h6xyvqr6.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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=1670973434; 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: dkim-signature; bh=KfHnTM4BKnuiFvMpc/tTNWGE8NFIlYVnfyY3dd2UiDs=; b=ch9w0jgkivK5XAZbZgpAGfcCitfY0JSfXjMkCM9dnE0928/ZN3qXpGX9pBVAUHsyaNE6ai S6TjrL905R8cYC4JM2VT5afvzu97Jib/1+UspgzPXZ6gZ3QhQMIgqcJoSEMX0K2webfNIw ALc/hVdawbPrvkuDETupQBP9FlKYOZ2hr1Xg4YOSTAZHoi2d8igVuXqNJe8cGSsfp493lf ChlKAZ/3poi2gaGab/JU41CvEeTWoZ9kN4q0a1E/o8DhbT4P6fuwmtWGWM7k9NXOZJFUVn G9lgpU7io7n0TeYLjvkaBH8SpauspZMNx0Z5a8Mwob/xnFeSjqCE6uObFDMNxA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=lhS6hkXL; 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=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670973434; a=rsa-sha256; cv=none; b=RnuvTKzxBD9COaNcTE17tHwAbB16z/lLdCLt3Ymzd+ZTKEOMBRYbgl3dgH102O81QqIlNm cah9idNCA04wJKrSBvx/fhD3oqQkYubxcXTFVDDc5qLZKsRogv7Yta2uyyA1xLh9yFmj44 oREcvPkz4UvGP41IlAioa6Kcs3yPX9LnuJzftYlYnsILxLVP3f7DQkjkDgjKR4ZoOX6VbM blGlHi6Y78uhN4s0T4gpb6qZwVaS7Ij7/3ZlyTeEwdI3ljEfRSS5ETIHhfBNvfULuvC6YQ 5RI12sL7poExQOOFAMAly1LlC/CmdnYhg3rEIcpwUnV09afpQkuJwzBnmsV83A== X-Migadu-Spam-Score: -3.77 X-Spam-Score: -3.77 X-Migadu-Queue-Id: 06A913E4D5 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=lhS6hkXL; 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=pass (policy=none) header.from=gnu.org X-TUID: qKX5mX+T6lB9 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable "pelzflorian (Florian Pelz)" skribis: > Ludovic Court=C3=A8s writes: >> So my guess is that things will be much better if we swap these two >> lines. > > This was helpful, but not enough. Sorry, I think I wasn=E2=80=99t thinking at full speed. There needs to be = zero daemons running while we copy the database. So the real fix is more like this: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/installer/final.scm b/gnu/installer/final.scm index 044f79372b..9a6bbad122 100644 --- a/gnu/installer/final.scm +++ b/gnu/installer/final.scm @@ -213,10 +213,13 @@ (define (assert-exit x) (set! ret (run-command install-command #:tty? #t))) (lambda () - ;; Restart guix-daemon so that it does no keep the MNT namespace + ;; Stop guix-daemon so that it does no keep the MNT namespace ;; alive. - (restart-service 'guix-daemon) + (stop-service 'guix-daemon) + + ;; Restore the database and restart it. (copy-file saved-database database-file) + (start-service 'guix-daemon) ;; Finally umount the cow-store and exit the container. (unmount-cow-store (%installer-target-dir) backing-directory) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable >> ./pre-inst-env guix system image -t iso9660 --label=3DGuix \ >> gnu/system/install.scm > > Additionally, I had to do =E2=80=9CGUIX_ALLOW_ME_TO_USE_PRIVATE_COMMIT=3Dy > make update-guix-package=E2=80=9D. Or else the installer was using a Gui= x that > did not have the lines swapped. Hmm this is surprising because we=E2=80=99re already using (current-guix) in (gnu installer). > Also before I did the GPG authorization dance (my x86 machine isn=E2=80= =99t > worth getting my actual commiter GPG keys, so I make sure its dummy GPG > key is in the keyring branch, .guix-authorizations file, that > guix/channels.scm=E2=80=99s default guix channel points to the url > /home/florian/src/guix and to the commit with the new authorization). > Then I guix pulled. So that building the installer succeeds. I did > *not* use ./pre-inst-env. Ah yes, apologies. You should be able to disable authentication with this: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm index 5a09b1fcf8..374b187d8c 100644 --- a/gnu/packages/package-management.scm +++ b/gnu/packages/package-management.scm @@ -625,6 +625,7 @@ (define-public current-guix-package (inherit guix) (source source) (build-system channel-build-system) + (arguments '(#:authenticate? #f)) (inputs '()) (native-inputs '()) (propagated-inputs '()))) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks a lot for patiently testing, this is very helpful! Ludo=E2=80=99. --=-=-=--