* bug#53541: backtrace during fresh Guix System install after during formatting
@ 2022-01-26 3:21 bdju via Bug reports for GNU Guix
2022-01-26 3:42 ` bug#53541: backtrace during fresh Guix System install " bdju via Bug reports for GNU Guix
2022-02-03 18:34 ` bug#53541: backtrace during fresh Guix System install after " Leo Famulari
0 siblings, 2 replies; 10+ messages in thread
From: bdju via Bug reports for GNU Guix @ 2022-01-26 3:21 UTC (permalink / raw)
To: 53541
[-- Attachment #1.1: Type: text/plain, Size: 213 bytes --]
Using a "latest" installer image from the last day or two
Picture of error taken with my phone attached (eh, what can ya do?)
>Device /dev/sdc is still in use.
This sticks out and appears in a couple spots.
[-- Attachment #1.2: Type: text/html, Size: 267 bytes --]
[-- Attachment #2: IMG_20220125_211802.jpg --]
[-- Type: image/jpeg, Size: 2949860 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#53541: backtrace during fresh Guix System install during formatting
2022-01-26 3:21 bug#53541: backtrace during fresh Guix System install after during formatting bdju via Bug reports for GNU Guix
@ 2022-01-26 3:42 ` bdju via Bug reports for GNU Guix
2022-01-26 4:08 ` bdju via Bug reports for GNU Guix
2022-02-03 18:34 ` bug#53541: backtrace during fresh Guix System install after " Leo Famulari
1 sibling, 1 reply; 10+ messages in thread
From: bdju via Bug reports for GNU Guix @ 2022-01-26 3:42 UTC (permalink / raw)
To: bdju, 53541
On Tue Jan 25, 2022 at 9:21 PM CST, bdju via Bug reports for GNU Guix wrote:
> Using a "latest" installer image from the last day or two
> Picture of error taken with my phone attached (eh, what can ya do?)
>
> >Device /dev/sdc is still in use.
>
> This sticks out and appears in a couple spots.
if I don't view the details of /boot it tells me it can't read
/dev/sda1 and to format it, then if I select it, it
becomes ext4 by default and format is set to no
Should the boot partition be fat32, ext4, or could it even be btrfs? I'm
doing an encrypted install and I want btrfs for the root partition.
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#53541: backtrace during fresh Guix System install during formatting
2022-01-26 3:42 ` bug#53541: backtrace during fresh Guix System install " bdju via Bug reports for GNU Guix
@ 2022-01-26 4:08 ` bdju via Bug reports for GNU Guix
2022-01-26 4:14 ` bdju via Bug reports for GNU Guix
0 siblings, 1 reply; 10+ messages in thread
From: bdju via Bug reports for GNU Guix @ 2022-01-26 4:08 UTC (permalink / raw)
To: bdju, 53541
[-- Attachment #1.1: Type: text/plain, Size: 991 bytes --]
First drive was using Ventoy. Tried a regular dd'd drive in case that worked better. Got past formatting. Pressed edit on the system config preview screen and got a new/different backtrace. Picture attached.
Sorry if this top-posts after bottom-posting, have to send the pics from my phone.
On January 25, 2022 9:42:35 PM CST, bdju <bdju@tilde.team> wrote:
>On Tue Jan 25, 2022 at 9:21 PM CST, bdju via Bug reports for GNU Guix wrote:
>> Using a "latest" installer image from the last day or two
>> Picture of error taken with my phone attached (eh, what can ya do?)
>>
>> >Device /dev/sdc is still in use.
>>
>> This sticks out and appears in a couple spots.
>if I don't view the details of /boot it tells me it can't read
>/dev/sda1 and to format it, then if I select it, it
>becomes ext4 by default and format is set to no
>
>Should the boot partition be fat32, ext4, or could it even be btrfs? I'm
>doing an encrypted install and I want btrfs for the root partition.
[-- Attachment #1.2: Type: text/html, Size: 1521 bytes --]
[-- Attachment #2: IMG_20220125_220553.jpg --]
[-- Type: image/jpeg, Size: 5769879 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#53541: backtrace during fresh Guix System install during formatting
2022-01-26 4:08 ` bdju via Bug reports for GNU Guix
@ 2022-01-26 4:14 ` bdju via Bug reports for GNU Guix
0 siblings, 0 replies; 10+ messages in thread
From: bdju via Bug reports for GNU Guix @ 2022-01-26 4:14 UTC (permalink / raw)
To: bdju, 53541
[-- Attachment #1.1: Type: text/plain, Size: 1276 bytes --]
Tried to use the same settings as before, but didn't get past formatting this time. Similar backtrace to with the Ventoy drive, just says sda instead of sdc now for which device is "still in use"
On January 25, 2022 10:08:07 PM CST, bdju <bdju@tilde.team> wrote:
>First drive was using Ventoy. Tried a regular dd'd drive in case that worked better. Got past formatting. Pressed edit on the system config preview screen and got a new/different backtrace. Picture attached.
>
>Sorry if this top-posts after bottom-posting, have to send the pics from my phone.
>
>On January 25, 2022 9:42:35 PM CST, bdju <bdju@tilde.team> wrote:
>>On Tue Jan 25, 2022 at 9:21 PM CST, bdju via Bug reports for GNU Guix wrote:
>>> Using a "latest" installer image from the last day or two
>>> Picture of error taken with my phone attached (eh, what can ya do?)
>>>
>>> >Device /dev/sdc is still in use.
>>>
>>> This sticks out and appears in a couple spots.
>>if I don't view the details of /boot it tells me it can't read
>>/dev/sda1 and to format it, then if I select it, it
>>becomes ext4 by default and format is set to no
>>
>>Should the boot partition be fat32, ext4, or could it even be btrfs? I'm
>>doing an encrypted install and I want btrfs for the root partition.
[-- Attachment #1.2: Type: text/html, Size: 1971 bytes --]
[-- Attachment #2: IMG_20220125_221328.jpg --]
[-- Type: image/jpeg, Size: 5841939 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#53541: backtrace during fresh Guix System install after during formatting
2022-01-26 3:21 bug#53541: backtrace during fresh Guix System install after during formatting bdju via Bug reports for GNU Guix
2022-01-26 3:42 ` bug#53541: backtrace during fresh Guix System install " bdju via Bug reports for GNU Guix
@ 2022-02-03 18:34 ` Leo Famulari
2022-02-04 3:34 ` bdju via Bug reports for GNU Guix
1 sibling, 1 reply; 10+ messages in thread
From: Leo Famulari @ 2022-02-03 18:34 UTC (permalink / raw)
To: 53541
On Tue, Jan 25, 2022 at 09:21:00PM -0600, bdju via Bug reports for GNU Guix wrote:
> Using a "latest" installer image from the last day or two
> Picture of error taken with my phone attached (eh, what can ya do?)
>
> >Device /dev/sdc is still in use.
>
> This sticks out and appears in a couple spots.
We made many changes to the installer code today:
------
$ git log --oneline 0d37a5df7e709cadca97cfbbf9c680dfe54b8302^..4943ac86e4f95a2e14fd209f3fdaac74a0d9ca2e
4943ac86e4 installer: Use system-wide guix for system init.
ad55ccf9b1 installer: Make dump archive creation optional and selective.
112ef30b84 installer: Turn passwords into opaque records.
41eb0f01fc installer: Use dynamic-wind to setup installer.
7cbd95a9f6 installer: Add error page when running external commands.
726d0bd2f3 installer: Use named prompt to abort or break installer steps.
59fec4a1a2 installer: Add nano to PATH.
ed6567abbf installer: Replace run-command by invoke in newt/page.scm.
dad9a1c0b2 installer: Fix run-file-textbox-page when edit-button is #f.
0a74509a69 installer: Raise condition when mklabel fails.
af59e53631 installer: Use run-command-in-installer in (gnu installer parted).
408427a36c installer: Add installer-specific run command process.
0b9fbbb4dd installer: Capture external commands output.
c57ec6ed1e installer: Remove specific logging code.
2f7f1d11e9 installer: Keep PATH inside the install container.
438bf9b840 installer: Un-export syslog syntax.
4f2fd33b4f installer: Use new installer-log-line everywhere.
7251b15d30 installer: Generalize logging facility.
4a68a00c8b installer: Use define instead of let at top-level.
0d37a5df7e installer: Add crash dump upload support.
------
Your report doesn't explain how to reproduce the bug. Can you test the
latest installer again and see if the bug still exists?
Here is the installer image that contains these changes:
https://ci.guix.gnu.org/build/460051/details
Or get it from here:
https://guix.gnu.org/en/download/latest/
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#53541: backtrace during fresh Guix System install after during formatting
2022-02-03 18:34 ` bug#53541: backtrace during fresh Guix System install after " Leo Famulari
@ 2022-02-04 3:34 ` bdju via Bug reports for GNU Guix
2022-02-04 4:15 ` Leo Famulari
[not found] ` <877d0uebt9.fsf_-_@gnu.org>
0 siblings, 2 replies; 10+ messages in thread
From: bdju via Bug reports for GNU Guix @ 2022-02-04 3:34 UTC (permalink / raw)
To: Leo Famulari, 53541
On Thu Feb 3, 2022 at 12:34 PM CST, Leo Famulari wrote:
> We made many changes to the installer code today:
>
> ------
> $ git log --oneline 0d37a5df7e709cadca97cfbbf9c680dfe54b8302^..4943ac86e4f95a2e14fd209f3fdaac74a0d9ca2e
> 4943ac86e4 installer: Use system-wide guix for system init.
> ad55ccf9b1 installer: Make dump archive creation optional and selective.
> 112ef30b84 installer: Turn passwords into opaque records.
> 41eb0f01fc installer: Use dynamic-wind to setup installer.
> 7cbd95a9f6 installer: Add error page when running external commands.
> 726d0bd2f3 installer: Use named prompt to abort or break installer steps.
> 59fec4a1a2 installer: Add nano to PATH.
> ed6567abbf installer: Replace run-command by invoke in newt/page.scm.
> dad9a1c0b2 installer: Fix run-file-textbox-page when edit-button is #f.
> 0a74509a69 installer: Raise condition when mklabel fails.
> af59e53631 installer: Use run-command-in-installer in (gnu installer parted).
> 408427a36c installer: Add installer-specific run command process.
> 0b9fbbb4dd installer: Capture external commands output.
> c57ec6ed1e installer: Remove specific logging code.
> 2f7f1d11e9 installer: Keep PATH inside the install container.
> 438bf9b840 installer: Un-export syslog syntax.
> 4f2fd33b4f installer: Use new installer-log-line everywhere.
> 7251b15d30 installer: Generalize logging facility.
> 4a68a00c8b installer: Use define instead of let at top-level.
> 0d37a5df7e installer: Add crash dump upload support.
> ------
>
> Your report doesn't explain how to reproduce the bug. Can you test the
> latest installer again and see if the bug still exists?
>
> Here is the installer image that contains these changes:
> https://ci.guix.gnu.org/build/460051/details
>
> Or get it from here:
> https://guix.gnu.org/en/download/latest/
It would be difficult to test now, I no longer have an empty SSD waiting
to be installed on in the same PC. I ended up getting through an install
with the last stable release using the same settings.
From memory, it was set up for EFI, btrfs root partition, encryption
enabled, boot partition was fat32, I chose no environment (wanted to use
sway), accepted networkmanager, tor, cups... I kept the default
generated config.scm because it often crashed when trying to edit and I
was sick of starting over. I think the crash was either right before the
screen where you can edit the config or right after you tell it to apply
the config. I had a second HDD (not touched by the installer) in
addition to the SSD being installed on, and /dev/sdc/ was the flash
drive with the installer image on it.
I am glad to hear it's (maybe) fixed. I'll download a new ISO, but I
don't have a hypervisor configured to test this sort of thing. I could
maybe try it with a different computer, but still it would be hard to
find one I'm willing to wipe I think. Sorry I can't be more help.
I have still only ever done 3 full Guix System installs, all years
apart. Unfortunately I never considered the experience fun enough to do
besides when absolutely necessary.
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#53541: backtrace during fresh Guix System install after during formatting
2022-02-04 3:34 ` bdju via Bug reports for GNU Guix
@ 2022-02-04 4:15 ` Leo Famulari
[not found] ` <877d0uebt9.fsf_-_@gnu.org>
1 sibling, 0 replies; 10+ messages in thread
From: Leo Famulari @ 2022-02-04 4:15 UTC (permalink / raw)
To: bdju; +Cc: 53541
On Thu, Feb 03, 2022 at 09:34:11PM -0600, bdju wrote:
> It would be difficult to test now, I no longer have an empty SSD waiting
> to be installed on in the same PC.
Understood.
> I ended up getting through an install
> with the last stable release using the same settings.
> From memory, it was set up for EFI, btrfs root partition, encryption
> enabled, boot partition was fat32, I chose no environment (wanted to use
> sway), accepted networkmanager, tor, cups... I kept the default
> generated config.scm because it often crashed when trying to edit and I
> was sick of starting over. I think the crash was either right before the
> screen where you can edit the config or right after you tell it to apply
> the config.
Okay. The crash when you do edit the config has been fixed, based on our
testing:
https://issues.guix.gnu.org/53544
I know this report was about a different issue, but not as clearly
defined.
> I had a second HDD (not touched by the installer) in
> addition to the SSD being installed on, and /dev/sdc/ was the flash
> drive with the installer image on it.
> I am glad to hear it's (maybe) fixed. I'll download a new ISO, but I
> don't have a hypervisor configured to test this sort of thing. I could
> maybe try it with a different computer, but still it would be hard to
> find one I'm willing to wipe I think. Sorry I can't be more help.
> I have still only ever done 3 full Guix System installs, all years
> apart. Unfortunately I never considered the experience fun enough to do
> besides when absolutely necessary.
No worries! You already helped a lot by reporting the bug and giving us
all the details you can. I will do some tests in a VM, choosing
non-default filesystems and partitioning.
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#53541: [installer] backtrace during fresh Guix System install after during formatting
[not found] ` <877d0uebt9.fsf_-_@gnu.org>
@ 2022-10-22 17:00 ` Mathieu Othacehe
2022-10-22 20:34 ` Mathieu Othacehe
0 siblings, 1 reply; 10+ messages in thread
From: Mathieu Othacehe @ 2022-10-22 17:00 UTC (permalink / raw)
To: bdju; +Cc: 53541, Leo Famulari
Hey,
> I was able to reproduce it on real hardware, following those
> instructions. The dump is available here if people want to join the
> party: dump.guix.gnu.org/download/installer-dump-304492ff.
So the backtrace suggests that we are trying to open /dev/nvme0n1p1 to
read its superblock:
--8<---------------cut here---------------start------------->8---
9 (open "/dev/nvme0n1p1" 524288 #<undefined>)
--8<---------------cut here---------------end--------------->8---
and that it fails because the file does not exist:
--8<---------------cut here---------------start------------->8---
1780:13 6 (_ #<&compound-exception components: (#<&external-error> #<&origin origin: "open-fdes"> #<&message message: "~A"> #<&irritants irritants: ("No such file or directory")> #<&exception-w…>)
--8<---------------cut here---------------end--------------->8---
This open call originates from check-user-partitions in (gnu installer
parted). If we arrive here, it means that the file *should* exist.
Looking at the kernel trace, the two last lines are:
--8<---------------cut here---------------start------------->8---
[ 72.271204] nvme0n1: p1 p2 p3 p4
[ 127.415648] nvme0n1: p1 p2
--8<---------------cut here---------------end--------------->8---
so the disk partition table is updated because we move from 4 to 2
partitions. Could it be possible that during a brief period of time the
/dev/nvme0n1p1 file disappears then re-appears?
I'll try to reproduce it a VM to conduct more testing.
Mathieu
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#53541: [installer] backtrace during fresh Guix System install after during formatting
2022-10-22 17:00 ` bug#53541: [installer] " Mathieu Othacehe
@ 2022-10-22 20:34 ` Mathieu Othacehe
2022-10-31 8:35 ` Mathieu Othacehe
0 siblings, 1 reply; 10+ messages in thread
From: Mathieu Othacehe @ 2022-10-22 20:34 UTC (permalink / raw)
To: bdju; +Cc: Josselin Poiret, 53541, Leo Famulari
[-- Attachment #1: Type: text/plain, Size: 663 bytes --]
Hey,
> so the disk partition table is updated because we move from 4 to 2
> partitions. Could it be possible that during a brief period of time the
> /dev/nvme0n1p1 file disappears then re-appears?
Looks like that's what happening. I'm not able to reproduce it on a
VM. I guess that's because my hardware is slower.
Anyway having a few retries of read-partition-uuid fixes it for me. This
is a bit dirty but that's how we usually deal with that kind of
problems. A patch is attached.
Running those tests I experienced a segmentation fault in libparted and
then in libblkid, but that's another story. I'll open a ticket about
that later on.
Thanks,
Mathieu
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-installer-parted-Retry-failing-read-partition-uuid-c.patch --]
[-- Type: text/x-patch, Size: 1854 bytes --]
From 4407374ff4087772bd8226824cf4883537752f01 Mon Sep 17 00:00:00 2001
From: Mathieu Othacehe <othacehe@gnu.org>
Date: Sat, 22 Oct 2022 22:27:57 +0200
Subject: [PATCH 1/1] installer: parted: Retry failing read-partition-uuid
call.
Fixes: <https://issues.guix.gnu.org/53541>.
* gnu/installer/parted.scm (read-partition-uuid/retry): New procedure.
(check-user-partitions): Use it.
---
gnu/installer/parted.scm | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/gnu/installer/parted.scm b/gnu/installer/parted.scm
index fcc936a391..82375d29e3 100644
--- a/gnu/installer/parted.scm
+++ b/gnu/installer/parted.scm
@@ -319,6 +319,25 @@ (define (find-user-partition-by-parted-object user-partitions
partition))
user-partitions))
+(define (read-partition-uuid/retry file-name)
+ "Call READ-PARTITION-UUID with 5 retries spaced by 1 second. This is useful
+if the partition table is updated by the kernel at the time this function is
+called, causing the underlying /dev to be absent."
+ (define max-retries 5)
+
+ (let loop ((retry max-retries))
+ (catch #t
+ (lambda ()
+ (read-partition-uuid file-name))
+ (lambda _
+ (if (> retry 0)
+ (begin
+ (sleep 1)
+ (loop (- retry 1)))
+ (error
+ (format #f (G_ "Could not open ~a after ~a retries~%.")
+ file-name max-retries)))))))
+
\f
;;
;; Devices
@@ -1108,7 +1127,7 @@ (define (check-uuid)
(need-formatting?
(user-partition-need-formatting? user-partition)))
(or need-formatting?
- (read-partition-uuid file-name)
+ (read-partition-uuid/retry file-name)
(raise
(condition
(&cannot-read-uuid
--
2.38.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* bug#53541: [installer] backtrace during fresh Guix System install after during formatting
2022-10-22 20:34 ` Mathieu Othacehe
@ 2022-10-31 8:35 ` Mathieu Othacehe
0 siblings, 0 replies; 10+ messages in thread
From: Mathieu Othacehe @ 2022-10-31 8:35 UTC (permalink / raw)
To: bdju; +Cc: Josselin Poiret, 53541-done, Leo Famulari
> Fixes: <https://issues.guix.gnu.org/53541>.
>
> * gnu/installer/parted.scm (read-partition-uuid/retry): New procedure.
> (check-user-partitions): Use it.
Pushed as ab974ed709976d34917c8f6f9e5cc0004547af45.
Mathieu
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2022-10-31 8:36 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-26 3:21 bug#53541: backtrace during fresh Guix System install after during formatting bdju via Bug reports for GNU Guix
2022-01-26 3:42 ` bug#53541: backtrace during fresh Guix System install " bdju via Bug reports for GNU Guix
2022-01-26 4:08 ` bdju via Bug reports for GNU Guix
2022-01-26 4:14 ` bdju via Bug reports for GNU Guix
2022-02-03 18:34 ` bug#53541: backtrace during fresh Guix System install after " Leo Famulari
2022-02-04 3:34 ` bdju via Bug reports for GNU Guix
2022-02-04 4:15 ` Leo Famulari
[not found] ` <877d0uebt9.fsf_-_@gnu.org>
2022-10-22 17:00 ` bug#53541: [installer] " Mathieu Othacehe
2022-10-22 20:34 ` Mathieu Othacehe
2022-10-31 8:35 ` Mathieu Othacehe
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).