From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CDpFCq6jnGN68wAAbAwnHQ (envelope-from ) for ; Fri, 16 Dec 2022 17:58:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id qIrSCa6jnGNCEgEA9RJhRA (envelope-from ) for ; Fri, 16 Dec 2022 17:58:22 +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 A41AB10CC6 for ; Fri, 16 Dec 2022 17:58:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6E28-0003Q4-1Z; Fri, 16 Dec 2022 11:58: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 1p6E26-0003Pb-OL for bug-guix@gnu.org; Fri, 16 Dec 2022 11:58: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 1p6E26-0000vv-Gs for bug-guix@gnu.org; Fri, 16 Dec 2022 11:58:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p6E26-0001kw-Ah for bug-guix@gnu.org; Fri, 16 Dec 2022 11:58: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: Fri, 16 Dec 2022 16:58: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.16712098466739 (code B ref 59784); Fri, 16 Dec 2022 16:58:02 +0000 Received: (at 59784) by debbugs.gnu.org; 16 Dec 2022 16:57:26 +0000 Received: from localhost ([127.0.0.1]:50414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6E1W-0001kd-A6 for submit@debbugs.gnu.org; Fri, 16 Dec 2022 11:57:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6E1R-0001kX-Ee for 59784@debbugs.gnu.org; Fri, 16 Dec 2022 11:57:25 -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 1p6E1L-0000px-HF; Fri, 16 Dec 2022 11:57:15 -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=qq4FTKQ+qq/pTV2qDMSJPW8jOG6XyyJtJwgnbYMEnfs=; b=SpBvZ8uLRk43upmo/M4r 9Kde9TRsHKtyr6vGOFLn6RMLC+CB1iJcz0Shh9v6PNlbBCSONHNsF/4HrFb48cu55IC9/W/ajMF7b p+7XR8cvjKIrfv9qI360wQacP2yiqEbpafEzDnn0ShMIijh0W1H3o8uKJdQ9qwfovaFhURGlrdZZW UBKgsVuie9HrJb0Lwx6SkjyHt/ms2R0JHvmE4PgGj4QBbuIqheYPXIseEcZCae2fpRFVExI9keIye KfbnDAT6f+WW5sjTpasvlehB+7FJoOKZ2WzWUQFVpF59NWT0X0TykAS64cPteDzyfeIGt/8oJgwYE DBos2bHNxYUAsQ==; Received: from [193.50.110.60] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p6E1L-0004ms-3S; Fri, 16 Dec 2022 11:57:15 -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> <87h6xyvqr6.fsf@gnu.org> <878rja150v.fsf@pelzflorian.de> <87h6xxpsil.fsf@pelzflorian.de> <87sfhhr1du.fsf@gnu.org> <871qp05zmf.fsf@pelzflorian.de> <87v8mcz9ai.fsf@pelzflorian.de> Date: Fri, 16 Dec 2022 17:57:12 +0100 In-Reply-To: <87v8mcz9ai.fsf@pelzflorian.de> (pelzflorian@pelzflorian.de's message of "Thu, 15 Dec 2022 21:44:37 +0100") Message-ID: <87pmcji8wn.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=1671209901; 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: content-transfer-encoding:content-transfer-encoding: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=qq4FTKQ+qq/pTV2qDMSJPW8jOG6XyyJtJwgnbYMEnfs=; b=e7HbW+wvQlr/31j9SBkEw8GjfZnTiD7CgUoWryxKuBf05Sa8pYTuxfRq8vS1yNwabVpQl6 XZDvIDQx6/w19K0Y92S/YQBD3zmib5HBMsaawGPA1x1Dzs5Mui+JUHe7B8tG8V6wvDpdob 1zR8rdV20Tp/7cSotlu3wxoCR1VxEyr1FmXieQtPpM96YjyMy9RQ7MfatqKXt8DSyCugIw 1aAkGYzRRdokGIWV8dyGtAi/hf5zOWNkhQxlVdp8fKQf1SdYAOYXdDgwSjuFNiX0KIGZRy 3qyGogZ+3+HPS6pUb5OzU+CcpmqH5CIP5FePdczTKq1azTSkj/iWzsg1AhFnjQ== 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=SpBvZ8uL; 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=1671209901; a=rsa-sha256; cv=none; b=WzGIr4PECX7696yOMSGgqMuOgRNXMwdveG6q8cyOu11WzLLeUOaXpxxX/5kSCIc6ePX/6C bE2edY6A24f5u/Hx96beL1X4HQ7kty0VNY/1qNYpo7TqZ0eDoB7c9eYN+MsFhDn3hHPcOc RASZZ5sepZRqRmcvTzXvQvp5zM0mkmIoAgxaT/R6hLOUv4Rwfan1TE1zFp7ZdVVmokqKWc Jz/vwUNIL28ank5ysdAKIk865O8Rzev6hiZO5b/dTYRxRA1tN0W95YG7J+z0WsS4hR+WqS nFXCsMNrSPQ/zP6PWMKjx4POVX5ZgxJ6KXTdJ+JA7+cvoqu3Y2pUZHvulOqPnA== X-Migadu-Spam-Score: -4.67 X-Spam-Score: -4.67 X-Migadu-Queue-Id: A41AB10CC6 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=SpBvZ8uL; 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: G0ZgJGfhPUGn Hi, "pelzflorian (Florian Pelz)" skribis: > Desperately I tried also adding fsync, to no avail, both issues remain. > Non-working patch attached. > > Maybe dynamic-wind is an inappropriate pattern here? > > If I interrupt installation using Ctrl-C (which I normally don=E2=80=99t, > instead I unplug Ethernet), then I have to press Ctrl-C twice. Maybe > that could be related to why I need to resume twice? One finding: when hitting C-c, the dynamic-wind exit handler (the one that restores the database and umounts the cow store) is *not* executed. This is because =E2=80=98call-with-mnt-container=E2=80=99 sets a SIGINT han= dler that terminates that process with SIGKILL (I=E2=80=99m not entirely sure of the rationale, but said process cannot handle signals in Scheme while it=E2=80= =99s in =E2=80=98waitpid=E2=80=99, called from =E2=80=98run-command=E2=80=99). I did reproduce the issue in a VM by running =E2=80=9Cifconfig ens3 down=E2= =80=9D in a tty, or by killing the =E2=80=98guix substitute=E2=80=99 process, to cause = failure of =E2=80=98guix system init=E2=80=99. In that case the database is indeed re= stored, but I occasionally get errors like =E2=80=9C/gnu/store/=E2=80=A6.drv: No such fil= e or directory=E2=80=9D. Ludo=E2=80=99.