From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id LDB+On1Csl8RPgAA0tVLHw (envelope-from ) for ; Mon, 16 Nov 2020 09:12:29 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id MPX0NX1Csl86GgAAB5/wlQ (envelope-from ) for ; Mon, 16 Nov 2020 09:12:29 +0000 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 B10ED9403AD for ; Mon, 16 Nov 2020 09:12:29 +0000 (UTC) Received: from localhost ([::1]:52718 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1keaYm-0003ha-Ix for larch@yhetil.org; Mon, 16 Nov 2020 04:12:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37058) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1keaYZ-0003h7-0x for guix-devel@gnu.org; Mon, 16 Nov 2020 04:12:15 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59044) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1keaYX-0000KW-W9; Mon, 16 Nov 2020 04:12:14 -0500 Received: from [2a01:e0a:19b:d9a0:e47a:2f88:af18:cc15] (port=46784 helo=cervin) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1keaYV-00065E-8E; Mon, 16 Nov 2020 04:12:12 -0500 From: Mathieu Othacehe To: "pelzflorian (Florian Pelz)" Subject: Re: GNU Guix 1.2.0rc1 available for testing! References: <87d00hchij.fsf@gnu.org> <20201115191618.zuvkz65o3kcahfoz@pelzflorian.localdomain> <874klqb82u.fsf@gnu.org> <20201115231643.7mslq2sjzliv4nfd@pelzflorian.localdomain> Date: Mon, 16 Nov 2020 10:12:09 +0100 In-Reply-To: <20201115231643.7mslq2sjzliv4nfd@pelzflorian.localdomain> (pelzflorian@pelzflorian.de's message of "Mon, 16 Nov 2020 00:16:43 +0100") Message-ID: <87v9e5ll7a.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -1.51 X-TUID: wwh7lCmsPBzk --=-=-= Content-Type: text/plain Hello Florian, > Nov 15 23:53:03 localhost installer[259]: crashing due to uncaught exception: misc-error (#f "~A" ("Device /dev/sda is still in use.") #f) > Nov 15 23:53:03 localhost installer[259]: running form # ("Unexpected problem") with 0 clients Many thanks (again) for your help here! According to the backtrace you sent earlier in this thread, it looks like the crash occurs in the "free-parted" procedure. This procedure tries to unallocate Parted resources and waits for the partition table changes to be synchronized to disk. The "with-delay-device-in-use?" tries 4 times every 250ms to detect if the device is still in use. Maybe it takes longer on your HW to synchronize the partition tables. If you could test the attached patch on top of 1.2.0 it would be terrific. Thanks, Mathieu --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Increase-device-use-delay.patch >From 6fec27303d0f8767ed48c507af67908a0fcf17a0 Mon Sep 17 00:00:00 2001 From: Mathieu Othacehe Date: Mon, 16 Nov 2020 10:10:56 +0100 Subject: [PATCH] Increase device use delay. --- gnu/installer/parted.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/installer/parted.scm b/gnu/installer/parted.scm index f2352c5779..ed3af6af85 100644 --- a/gnu/installer/parted.scm +++ b/gnu/installer/parted.scm @@ -318,7 +318,7 @@ PARTED-OBJECT field equals PARTITION, return #f if not found." fail. See rereadpt function in wipefs.c of util-linux for an explanation." ;; Kernel always return EINVAL for BLKRRPART on loopdevices. (and (not (string-match "/dev/loop*" file-name)) - (let loop ((try 4)) + (let loop ((try 16)) (usleep 250000) (let ((in-use? (device-in-use? file-name))) (if (and in-use? (> try 0)) -- 2.29.2 --=-=-=--