unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Mathieu Othacehe <othacehe@gnu.org>
To: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
Cc: guix-devel@gnu.org
Subject: Re: GNU Guix 1.2.0rc1 available for testing!
Date: Mon, 16 Nov 2020 10:12:09 +0100	[thread overview]
Message-ID: <87v9e5ll7a.fsf@gnu.org> (raw)
In-Reply-To: <20201115231643.7mslq2sjzliv4nfd@pelzflorian.localdomain> (pelzflorian@pelzflorian.de's message of "Mon, 16 Nov 2020 00:16:43 +0100")

[-- Attachment #1: Type: text/plain, Size: 825 bytes --]


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 #<newt-form 865370> ("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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Increase-device-use-delay.patch --]
[-- Type: text/x-diff, Size: 908 bytes --]

From 6fec27303d0f8767ed48c507af67908a0fcf17a0 Mon Sep 17 00:00:00 2001
From: Mathieu Othacehe <othacehe@gnu.org>
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


  reply	other threads:[~2020-11-16  9:12 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-13 17:07 GNU Guix 1.2.0rc1 available for testing! Ludovic Courtès
2020-11-15 16:19 ` zimoun
2020-11-15 19:16 ` pelzflorian (Florian Pelz)
2020-11-15 21:53   ` Marius Bakke
2020-11-15 23:16     ` pelzflorian (Florian Pelz)
2020-11-16  9:12       ` Mathieu Othacehe [this message]
2020-11-16 11:47         ` pelzflorian (Florian Pelz)
2020-11-17  9:02           ` Mathieu Othacehe
2020-11-17 12:13             ` pelzflorian (Florian Pelz)
2020-11-16 15:49         ` Miguel Ángel Arruga Vivas
2020-11-17  9:06           ` Mathieu Othacehe
2020-11-17  9:30         ` Ludovic Courtès
2020-11-17  9:38           ` Mathieu Othacehe
2020-11-17 14:41             ` Ludovic Courtès
2020-11-17 15:26               ` zimoun
2020-11-17 21:19                 ` Ludovic Courtès
2020-11-17 15:41               ` pelzflorian (Florian Pelz)
2020-11-17 18:13               ` Mathieu Othacehe
2020-11-25 18:26                 ` Tobias Platen
2020-11-27 10:10                   ` Ludovic Courtès
2020-11-27 11:09                     ` Ricardo Wurmus
2020-11-17 23:12               ` Mark H Weaver
2020-11-16 15:39       ` Miguel Ángel Arruga Vivas
2020-11-16  0:10 ` Oleg Pykhalov
2020-11-16  9:06   ` Ludovic Courtès
2020-11-16 16:24     ` John Soo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v9e5ll7a.fsf@gnu.org \
    --to=othacehe@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=pelzflorian@pelzflorian.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).