block probing crashed with RuntimeError (missing ptable entry)

Bug #2068914 reported by Ovidiu Moraru
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity
Triaged
Medium
Unassigned

Bug Description

Installation from live disk fails on Ubuntu 24.04

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: subiquity (unknown)
ProcVersionSignature: Ubuntu 6.8.0-31.31-generic 6.8.1
Uname: Linux 6.8.0-31-generic x86_64
NonfreeKernelModules: zfs
ApportVersion: 2.28.1-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CasperVersion: 1.498
CloudArchitecture: x86_64
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSubPlatform: seed-dir (/var/lib/cloud/seed/nocloud)
Date: Mon Jun 10 14:55:35 2024
DesktopInstallerRev: 171
ExecutablePath: /snap/ubuntu-desktop-bootstrap/171/bin/subiquity/subiquity/cmd/server.py
InterpreterPath: /snap/ubuntu-desktop-bootstrap/171/usr/bin/python3.10
LiveMediaBuild: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
MachineType: ASUS System Product Name
ProcAttrCurrent: snap.hostname-desktop-bootstrap.subiquity-server (complain)
ProcCmdline: /snap/hostname-desktop-bootstrap/171/usr/bin/python3.10 -m subiquity.cmd.server --use-os-prober --storage-version=2 --postinst-hooks-dir=/snap/hostname-desktop-bootstrap/171/etc/subiquity/postinst.d
ProcEnviron:
 LANG=C.UTF-8
 LD_LIBRARY_PATH=<set>
 PATH=(custom, no user)
ProcKernelCmdLine: BOOT_IMAGE=/casper/vmlinuz --- quiet splash
Python3Details: /usr/bin/python3.12, Python 3.12.3, python3-minimal, 3.12.3-0ubuntu1
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
SnapChannel:

SnapRevision: 171
SnapUpdated: False
SnapVersion: 0+git.2d119e1b3
SourcePackage: subiquity
Title: block probing crashed with RuntimeError
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/27/2022
dmi.bios.release: 5.17
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 2803
dmi.board.asset.tag: Default string
dmi.board.name: TUF GAMING B550M-PLUS
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: Rev X.0x
dmi.chassis.asset.tag: Default string
dmi.chassis.type: 3
dmi.chassis.vendor: Default string
dmi.chassis.version: Default string
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr2803:bd04/27/2022:br5.17:svnASUS:pnSystemProductName:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnTUFGAMINGB550M-PLUS:rvrRevX.0x:cvnDefaultstring:ct3:cvrDefaultstring:skuSKU:
dmi.product.family: To be filled by O.E.M.
dmi.product.name: System Product Name
dmi.product.sku: SKU
dmi.product.version: System Version
dmi.sys.vendor: ASUS

Revision history for this message
Ovidiu Moraru (ovidiumoraru) wrote :
information type: Private → Public
Revision history for this message
Ovidiu Moraru (ovidiumoraru) wrote :

Updated ubuntu_bootstrap.log

Revision history for this message
Ovidiu Moraru (ovidiumoraru) wrote :

2024-06-10 18:37:51.414746 DEBUG subiquity_client: ==> getStorageV2() {"status": "FAILED", "error_report": {"state": "DONE", "base": "1718033864.673951387.disk_probe_fail", "kind": "DISK_PROBE_FAIL", "seen": false, "oops_id": null}, "disks": [], "need_root": null, "need_boot": null, "install_minimum_size": null}
2024-06-10 18:37:51.414852 DEBUG storage: Update storage: StorageResponseV2(status: ProbeStatus.FAILED, errorReport: ErrorReportRef(state: ErrorReportState.DONE, base: 1718033864.673951387.disk_probe_fail, kind: ErrorReportKind.DISK_PROBE_FAIL, seen: false, oopsId: null), disks: [], needRoot: null, needBoot: null, installMinimumSize: null)
2024-06-10 18:37:51.415010 DEBUG subiquity_client: GET http://localhost/storage/v2?wait=true
2024-06-10 18:37:51.415982 DEBUG subiquity_client: ==> getStorageV2() {"status": "FAILED", "error_report": {"state": "DONE", "base": "1718033864.673951387.disk_probe_fail", "kind": "DISK_PROBE_FAIL", "seen": false, "oops_id": null}, "disks": [], "need_root": null, "need_boot": null, "install_minimum_size": null}
2024-06-10 18:37:51.416073 DEBUG storage: Update storage: StorageResponseV2(status: ProbeStatus.FAILED, errorReport: ErrorReportRef(state: ErrorReportState.DONE, base: 1718033864.673951387.disk_probe_fail, kind: ErrorReportKind.DISK_PROBE_FAIL, seen: false, oopsId: null), disks: [], needRoot: null, needBoot: null, installMinimumSize: null)
2024-06-10 18:37:51.416172 DEBUG subiquity_client: GET http://localhost/storage/v2/guided?wait=true
2024-06-10 18:37:51.416846 DEBUG subiquity_client: ==> getGuidedStorageV2(true) {"status": "FAILED", "error_report": {"state": "DONE", "base": "1718033864.673951387.disk_probe_fail", "kind": "DISK_PROBE_FAIL", "seen": false, "oops_id": null}, "configured": null, "targets": []}
2024-06-10 18:37:51.416949 DEBUG storage: select guided capability: null
2024-06-10 18:37:51.416987 DEBUG subiquity_client: GET http://localhost/storage/has_bitlocker
2024-06-10 18:37:51.417559 DEBUG subiquity_client: ==> hasBitLocker() []

Revision history for this message
Chris Peterson (cpete) wrote :

Hi and thank you for your bug report,

it's likely the installer failed due to the following error:

2024-06-10 14:55:27,953 DEBUG probert.utils:85 Command `/snap/ubuntu-desktop-bootstrap/171/sbin/ntfsresize --no-action --force --no-progress-bar --info /dev/sda2` exited with result: 1
2024-06-10 14:55:27,953 DEBUG probert.utils:48 stdout: ------------------------------------------
2024-06-10 14:55:27,953 DEBUG probert.utils:50 ntfsresize v2021.8.22 (libntfs-3g)
2024-06-10 14:55:27,954 DEBUG probert.utils:50 Failed to read last sector (976766974): Invalid argument
2024-06-10 14:55:27,954 DEBUG probert.utils:50 HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
2024-06-10 14:55:27,954 DEBUG probert.utils:50 or it was not setup correctly (e.g. by not using mdadm --build ...),
2024-06-10 14:55:27,954 DEBUG probert.utils:50 or a wrong device is tried to be mounted,
2024-06-10 14:55:27,954 DEBUG probert.utils:50 or the partition table is corrupt (partition is smaller than NTFS),
2024-06-10 14:55:27,954 DEBUG probert.utils:50 or the NTFS boot sector is corrupt (NTFS size is not valid).
2024-06-10 14:55:27,954 DEBUG probert.utils:50 ERROR(22): Opening '/dev/sda2' as NTFS failed: Invalid argument
2024-06-10 14:55:27,954 DEBUG probert.utils:50 The device '/dev/sda2' doesn't have a valid NTFS.
2024-06-10 14:55:27,954 DEBUG probert.utils:50 Maybe you selected the wrong partition? Or the whole disk instead of a
2024-06-10 14:55:27,954 DEBUG probert.utils:50 partition (e.g. /dev/hda, not /dev/hda1)? This error might also occur
2024-06-10 14:55:27,954 DEBUG probert.utils:50 if the disk was incorrectly repartitioned (see the ntfsresize FAQ).
2024-06-10 14:55:27,954 DEBUG probert.utils:52 <empty stderr>
2024-06-10 14:55:27,954 DEBUG probert.utils:88 --------------------------------------------------
2024-06-10 14:55:27,954 DEBUG probert.filesystems:103 ntfs volume size not found: ntfsresize failure

and curtin's handling of the device's partition table data after the failure.

tags: added: block-probing dos ntfs
Changed in subiquity:
status: New → Triaged
importance: Undecided → Medium
summary: - block probing crashed with RuntimeError
+ block probing crashed with RuntimeError (missing ptable entry)
Revision history for this message
Ovidiu Moraru (ovidiumoraru) wrote :

The disk is a Windows dynamic disks with two partitions using the same drive letter, as attached in the screenshot. Removing this disk allowed me to proceed with the installation.

Revision history for this message
Ovidiu Moraru (ovidiumoraru) wrote :

Gparted doesn't seem to be able to identify the partitions on the disk.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.