Ubuntukylin noble install error: Failed to exclusively open path: /dev/nvme0n1p5 (partition is already mounted)

Bug #2059903 reported by xibowen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity
Incomplete
Undecided
Unassigned
peony (Ubuntu)
Fix Released
Critical
Unassigned

Bug Description

Noble Ubuntukylin Daily 2024-03-28
I'm testing to instlall Ubuntukylin ISO.Click on icon Install and it started language-select
graphical interface after long time with an empty white window. When i was in install, it reported
failed to exclusively open path: /dev/nvme0n1p5.

The detailed information is as follows:

Apr 01 17:07:33 ubuntu-kylin subiquity_log.3743[9076]: Found swap magic: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
Apr 01 17:07:33 ubuntu-kylin subiquity_log.3743[9076]: wiping superblock on /dev/nvme0n1p5
Apr 01 17:07:33 ubuntu-kylin subiquity_log.3743[9076]: wiping /dev/nvme0n1p5 attempt 1/4
Apr 01 17:07:33 ubuntu-kylin subiquity_log.3743[9076]: Running command ['wipefs', '--all', '--force', '/dev/nvme0n1p5'] with allowed return codes [0] (capture=False)
Apr 01 17:07:33 ubuntu-kylin subiquity_log.3743[9076]: /dev/nvme0n1p5: 2 bytes were erased at offset 0x00000438 (ext4): 53 ef
Apr 01 17:07:33 ubuntu-kylin subiquity_log.3743[9076]: wiping 1M on /dev/nvme0n1p5 at offsets [0, -1048576]
Apr 01 17:07:33 ubuntu-kylin subiquity_log.3743[9076]: Failed to exclusively open path: /dev/nvme0n1p5
Apr 01 17:07:33 ubuntu-kylin subiquity_log.3743[9076]: devname '/dev/nvme0n1p5' had holders: []
Apr 01 17:07:33 ubuntu-kylin subiquity_log.3743[9076]: Device holders with exclusive access: []
Apr 01 17:07:33 ubuntu-kylin subiquity_log.3743[9076]: Device mounts: ['/dev/nvme0n1p5 /media/ubuntu-kylin/7ffa49f2-4022-4635-beda-2df9c5ab535a ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0']
Apr 01 17:07:33 ubuntu-kylin subiquity_log.3743[9076]: Running command ['fuser', '--verbose', '--mount', '/dev/nvme0n1p5'] with allowed return codes [0] (capture=True)
Apr 01 17:07:33 ubuntu-kylin subiquity_log.3743[9076]: Possible users of /dev/nvme0n1p5:
Apr 01 17:07:33 ubuntu-kylin subiquity_log.3743[9076]: {'kernel': ['/dev/nvme0n1p5:', 'root', 'mount', '/media/ubuntu-kylin/7ffa49f2-4022-4635-beda-2df9c5ab535a']}
Apr 01 17:07:34 ubuntu-kylin subiquity_log.3743[9076]: Failed to exclusively open path: /dev/nvme0n1p5
Apr 01 17:07:34 ubuntu-kylin subiquity_log.3743[9076]: devname '/dev/nvme0n1p5' had holders: []
Apr 01 17:07:34 ubuntu-kylin subiquity_log.3743[9076]: Device holders with exclusive access: []
Apr 01 17:07:34 ubuntu-kylin subiquity_log.3743[9076]: Device mounts: ['/dev/nvme0n1p5 /media/ubuntu-kylin/7ffa49f2-4022-4635-beda-2df9c5ab535a ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0']
Apr 01 17:07:34 ubuntu-kylin subiquity_log.3743[9076]: Running command ['fuser', '--verbose', '--mount', '/dev/nvme0n1p5'] with allowed return codes [0] (capture=True)
Apr 01 17:07:34 ubuntu-kylin subiquity_log.3743[9076]: Possible users of /dev/nvme0n1p5:
Apr 01 17:07:34 ubuntu-kylin subiquity_log.3743[9076]: {'kernel': ['/dev/nvme0n1p5:', 'root', 'mount', '/media/ubuntu-kylin/7ffa49f2-4022-4635-beda-2df9c5ab535a']}
Apr 01 17:07:34 ubuntu-kylin subiquity_log.3743[9076]: wiping device '/dev/nvme0n1p5' failed on attempt 1/4. sleeping 1s before retry
Apr 01 17:07:35 ubuntu-kylin subiquity_log.3743[9076]: wiping /dev/nvme0n1p5 attempt 2/4
Apr 01 17:07:35 ubuntu-kylin subiquity_log.3743[9076]: Running command ['wipefs', '--all', '--force', '/dev/nvme0n1p5'] with allowed return codes [0] (capture=False)
Apr 01 17:07:35 ubuntu-kylin subiquity_log.3743[9076]: wiping 1M on /dev/nvme0n1p5 at offsets [0, -1048576]
Apr 01 17:07:35 ubuntu-kylin subiquity_log.3743[9076]: Failed to exclusively open path: /dev/nvme0n1p5
Apr 01 17:07:35 ubuntu-kylin subiquity_log.3743[9076]: devname '/dev/nvme0n1p5' had holders: []
Apr 01 17:07:35 ubuntu-kylin subiquity_log.3743[9076]: Device holders with exclusive access: []
Apr 01 17:07:35 ubuntu-kylin subiquity_log.3743[9076]: Device mounts: ['/dev/nvme0n1p5 /media/ubuntu-kylin/7ffa49f2-4022-4635-beda-2df9c5ab535a ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0']
Apr 01 17:07:35 ubuntu-kylin subiquity_log.3743[9076]: Running command ['fuser', '--verbose', '--mount', '/dev/nvme0n1p5'] with allowed return codes [0] (capture=True)
Apr 01 17:07:35 ubuntu-kylin subiquity_log.3743[9076]: Possible users of /dev/nvme0n1p5:
Apr 01 17:07:35 ubuntu-kylin subiquity_log.3743[9076]: {'kernel': ['/dev/nvme0n1p5:', 'root', 'mount', '/media/ubuntu-kylin/7ffa49f2-4022-4635-beda-2df9c5ab535a']}
Apr 01 17:07:36 ubuntu-kylin subiquity_log.3743[9076]: Failed to exclusively open path: /dev/nvme0n1p5
Apr 01 17:07:36 ubuntu-kylin subiquity_log.3743[9076]: devname '/dev/nvme0n1p5' had holders: []
Apr 01 17:07:36 ubuntu-kylin subiquity_log.3743[9076]: Device holders with exclusive access: []
Apr 01 17:07:36 ubuntu-kylin subiquity_log.3743[9076]: Device mounts: ['/dev/nvme0n1p5 /media/ubuntu-kylin/7ffa49f2-4022-4635-beda-2df9c5ab535a ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0']
Apr 01 17:07:36 ubuntu-kylin subiquity_log.3743[9076]: Running command ['fuser', '--verbose', '--mount', '/dev/nvme0n1p5'] with allowed return codes [0] (capture=True)
Apr 01 17:07:36 ubuntu-kylin subiquity_log.3743[9076]: Possible users of /dev/nvme0n1p5:
Apr 01 17:07:36 ubuntu-kylin subiquity_log.3743[9076]: {'kernel': ['/dev/nvme0n1p5:', 'root', 'mount', '/media/ubuntu-kylin/7ffa49f2-4022-4635-beda-2df9c5ab535a']}
Apr 01 17:07:36 ubuntu-kylin subiquity_log.3743[9076]: wiping device '/dev/nvme0n1p5' failed on attempt 2/4. sleeping 3s before retry
Apr 01 17:07:39 ubuntu-kylin subiquity_log.3743[9076]: wiping /dev/nvme0n1p5 attempt 3/4
Apr 01 17:07:39 ubuntu-kylin subiquity_log.3743[9076]: Running command ['wipefs', '--all', '--force', '/dev/nvme0n1p5'] with allowed return codes [0] (capture=False)
Apr 01 17:07:39 ubuntu-kylin subiquity_log.3743[9076]: wiping 1M on /dev/nvme0n1p5 at offsets [0, -1048576]
Apr 01 17:07:39 ubuntu-kylin subiquity_log.3743[9076]: Failed to exclusively open path: /dev/nvme0n1p5
Apr 01 17:07:39 ubuntu-kylin subiquity_log.3743[9076]: devname '/dev/nvme0n1p5' had holders: []
Apr 01 17:07:39 ubuntu-kylin subiquity_log.3743[9076]: Device holders with exclusive access: []
Apr 01 17:07:39 ubuntu-kylin subiquity_log.3743[9076]: Device mounts: ['/dev/nvme0n1p5 /media/ubuntu-kylin/7ffa49f2-4022-4635-beda-2df9c5ab535a ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0']
Apr 01 17:07:39 ubuntu-kylin subiquity_log.3743[9076]: Running command ['fuser', '--verbose', '--mount', '/dev/nvme0n1p5'] with allowed return codes [0] (capture=True)
Apr 01 17:07:39 ubuntu-kylin subiquity_log.3743[9076]: Possible users of /dev/nvme0n1p5:
Apr 01 17:07:39 ubuntu-kylin subiquity_log.3743[9076]: {'kernel': ['/dev/nvme0n1p5:', 'root', 'mount', '/media/ubuntu-kylin/7ffa49f2-4022-4635-beda-2df9c5ab535a']}
Apr 01 17:07:40 ubuntu-kylin subiquity_log.3743[9076]: Failed to exclusively open path: /dev/nvme0n1p5
Apr 01 17:07:40 ubuntu-kylin subiquity_log.3743[9076]: devname '/dev/nvme0n1p5' had holders: []
Apr 01 17:07:40 ubuntu-kylin subiquity_log.3743[9076]: Device holders with exclusive access: []
Apr 01 17:07:40 ubuntu-kylin subiquity_log.3743[9076]: Device mounts: ['/dev/nvme0n1p5 /media/ubuntu-kylin/7ffa49f2-4022-4635-beda-2df9c5ab535a ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0']
Apr 01 17:07:40 ubuntu-kylin subiquity_log.3743[9076]: Running command ['fuser', '--verbose', '--mount', '/dev/nvme0n1p5'] with allowed return codes [0] (capture=True)
Apr 01 17:07:40 ubuntu-kylin subiquity_log.3743[9076]: Possible users of /dev/nvme0n1p5:
Apr 01 17:07:40 ubuntu-kylin subiquity_log.3743[9076]: {'kernel': ['/dev/nvme0n1p5:', 'root', 'mount', '/media/ubuntu-kylin/7ffa49f2-4022-4635-beda-2df9c5ab535a']}
Apr 01 17:07:40 ubuntu-kylin subiquity_log.3743[9076]: wiping device '/dev/nvme0n1p5' failed on attempt 3/4. sleeping 5s before retry
Apr 01 17:07:45 ubuntu-kylin subiquity_log.3743[9076]: wiping /dev/nvme0n1p5 attempt 4/4
Apr 01 17:07:45 ubuntu-kylin subiquity_log.3743[9076]: Running command ['wipefs', '--all', '--force', '/dev/nvme0n1p5'] with allowed return codes [0] (capture=False)
Apr 01 17:07:45 ubuntu-kylin subiquity_log.3743[9076]: wiping 1M on /dev/nvme0n1p5 at offsets [0, -1048576]
Apr 01 17:07:45 ubuntu-kylin subiquity_log.3743[9076]: Failed to exclusively open path: /dev/nvme0n1p5
Apr 01 17:07:45 ubuntu-kylin subiquity_log.3743[9076]: devname '/dev/nvme0n1p5' had holders: []
Apr 01 17:07:45 ubuntu-kylin subiquity_log.3743[9076]: Device holders with exclusive access: []
Apr 01 17:07:45 ubuntu-kylin subiquity_log.3743[9076]: Device mounts: ['/dev/nvme0n1p5 /media/ubuntu-kylin/7ffa49f2-4022-4635-beda-2df9c5ab535a ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0']
Apr 01 17:07:45 ubuntu-kylin subiquity_log.3743[9076]: Running command ['fuser', '--verbose', '--mount', '/dev/nvme0n1p5'] with allowed return codes [0] (capture=True)
Apr 01 17:07:45 ubuntu-kylin subiquity_log.3743[9076]: Possible users of /dev/nvme0n1p5:
Apr 01 17:07:45 ubuntu-kylin subiquity_log.3743[9076]: {'kernel': ['/dev/nvme0n1p5:', 'root', 'mount', '/media/ubuntu-kylin/7ffa49f2-4022-4635-beda-2df9c5ab535a']}
Apr 01 17:07:46 ubuntu-kylin subiquity_log.3743[9076]: Failed to exclusively open path: /dev/nvme0n1p5
Apr 01 17:07:46 ubuntu-kylin subiquity_log.3743[9076]: devname '/dev/nvme0n1p5' had holders: []
Apr 01 17:07:46 ubuntu-kylin subiquity_log.3743[9076]: Device holders with exclusive access: []
Apr 01 17:07:46 ubuntu-kylin subiquity_log.3743[9076]: Device mounts: ['/dev/nvme0n1p5 /media/ubuntu-kylin/7ffa49f2-4022-4635-beda-2df9c5ab535a ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0']
Apr 01 17:07:46 ubuntu-kylin subiquity_log.3743[9076]: Running command ['fuser', '--verbose', '--mount', '/dev/nvme0n1p5'] with allowed return codes [0] (capture=True)
Apr 01 17:07:46 ubuntu-kylin subiquity_log.3743[9076]: Possible users of /dev/nvme0n1p5:
Apr 01 17:07:46 ubuntu-kylin subiquity_log.3743[9076]: {'kernel': ['/dev/nvme0n1p5:', 'root', 'mount', '/media/ubuntu-kylin/7ffa49f2-4022-4635-beda-2df9c5ab535a']}
Apr 01 17:07:46 ubuntu-kylin subiquity_log.3743[9076]: finish: cmd-install/stage-partitioning/builtin/cmd-block-meta/clear-holders: FAIL: removing previous storage devices
Apr 01 17:07:46 ubuntu-kylin subiquity_log.3743[9076]: TIMED BLOCK_META: 13.730
Apr 01 17:07:46 ubuntu-kylin subiquity_log.3743[9076]: finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: curtin command block-meta
Apr 01 17:07:46 ubuntu-kylin subiquity_log.3743[9076]: Traceback (most recent call last):
Apr 01 17:07:46 ubuntu-kylin subiquity_log.3743[9076]: File "/snap/ubuntu-desktop-bootstrap/81/lib/python3.10/site-packages/curtin/block/__init__.py", line 1166, in exclusive_open
Apr 01 17:07:46 ubuntu-kylin subiquity_log.3743[9076]: fd = os.open(path, flags)
Apr 01 17:07:46 ubuntu-kylin subiquity_log.3743[9076]: OSError: [Errno 16] Device or resource busy: '/dev/nvme0n1p5'

Tags: iso-testing
Revision history for this message
xibowen (xbwxibowen) wrote :

The error log file

summary: Ubuntukylin noble install error: Failed to exclusively open path:
- /dev/nvme0n1p6
+ /dev/nvme0n1p5
Revision history for this message
xibowen (xbwxibowen) wrote : Re: Ubuntukylin noble install error: Failed to exclusively open path: /dev/nvme0n1p5

It is buzy on other system partition.

It need to umount the partition to get normal install.

information type: Public → Public Security
information type: Public Security → Private Security
information type: Private Security → Private
information type: Private → Public
Changed in ubuntu-desktop-provision:
status: New → Fix Committed
Changed in subiquity:
status: New → Fix Committed
Changed in peony (Ubuntu):
importance: Undecided → Critical
status: New → In Progress
xibowen (xbwxibowen)
no longer affects: ubuntu-desktop-provision
Changed in subiquity:
status: Fix Committed → New
Changed in peony (Ubuntu):
milestone: none → ubuntu-24.04-beta
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/2059903

tags: added: iso-testing
Revision history for this message
Olivier Gayot (ogayot) wrote :

Hello and thank you for your bug report,

The logs show that the partition nvme0n1p5 was already mounted. Do you remember mounting the partition yourself (possibly using the file explorer) or did it get mounted automatically?

Thank you,
Olivier

summary: Ubuntukylin noble install error: Failed to exclusively open path:
- /dev/nvme0n1p5
+ /dev/nvme0n1p5 (partition is already mounted)
Changed in subiquity:
status: New → Incomplete
Revision history for this message
handsome_feng (feng-kylin) wrote :

Hi, ogayot, It mounted automatically by peony, and we have removed this feature in the new version.

Changed in peony (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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