ubuntu-24.04 install fail due to "finish: cmd-in-target: FAIL: curtin command in-target"

Bug #2060442 reported by wang
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
subiquity
Triaged
Medium
Unassigned

Bug Description

lsb_release -rd: Description:Untun Noble Numbat(development branch)
Release: 24.04

What you expected to happen:
Install os on nvme,expected to install succefully.

What happened instead:
Install os on nvme, install always failed.mount and umount operation failed and exit the installation process.
The error log:
Apr 08 07:04:28 ubuntu-server subiquity_log.2151[2923]: Reading package lists...
Apr 08 07:04:28 ubuntu-server subiquity_log.2151[2923]: E: The repository 'http://security.ubuntu.com/ubuntu noble-security Release' no longer has a Release file.
Apr 08 07:04:28 ubuntu-server subiquity_log.2151[2910]: Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
Apr 08 07:04:28 ubuntu-server subiquity_log.2151[2910]: TIMED subp(['udevadm', 'settle']): 0.007
Apr 08 07:04:28 ubuntu-server subiquity_log.2151[2910]: Running command ['mount', '--make-private', '/tmp/tmptrdn_sng/mount/usr/bin/ischroot'] with allowed return codes [0] (capture=False)
Apr 08 07:04:28 ubuntu-server subiquity_log.2151[2910]: Running command ['umount', '/tmp/tmptrdn_sng/mount/usr/bin/ischroot'] with allowed return codes [0] (capture=False)
Apr 08 07:04:28 ubuntu-server subiquity_log.2151[2910]: Running command ['mount', '--make-private', '/tmp/tmptrdn_sng/mount/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
Apr 08 07:04:28 ubuntu-server subiquity_log.2151[2910]: Running command ['umount', '/tmp/tmptrdn_sng/mount/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
Apr 08 07:04:28 ubuntu-server subiquity_log.2151[2910]: Running command ['mount', '--make-private', '/tmp/tmptrdn_sng/mount/sys'] with allowed return codes [0] (capture=False)
Apr 08 07:04:28 ubuntu-server subiquity_log.2151[2910]: Running command ['umount', '/tmp/tmptrdn_sng/mount/sys'] with allowed return codes [0] (capture=False)
Apr 08 07:04:28 ubuntu-server subiquity_log.2151[2910]: Running command ['mount', '--make-private', '/tmp/tmptrdn_sng/mount/run'] with allowed return codes [0] (capture=False)
Apr 08 07:04:28 ubuntu-server subiquity_log.2151[2910]: Running command ['umount', '/tmp/tmptrdn_sng/mount/run'] with allowed return codes [0] (capture=False)
Apr 08 07:04:28 ubuntu-server subiquity_log.2151[2910]: Running command ['mount', '--make-private', '/tmp/tmptrdn_sng/mount/proc'] with allowed return codes [0] (capture=False)
Apr 08 07:04:28 ubuntu-server subiquity_log.2151[2910]: Running command ['umount', '/tmp/tmptrdn_sng/mount/proc'] with allowed return codes [0] (capture=False)
Apr 08 07:04:28 ubuntu-server subiquity_log.2151[2910]: Running command ['mount', '--make-private', '/tmp/tmptrdn_sng/mount/dev'] with allowed return codes [0] (capture=False)
Apr 08 07:04:28 ubuntu-server subiquity_log.2151[2910]: Running command ['umount', '/tmp/tmptrdn_sng/mount/dev'] with allowed return codes [0] (capture=False)
Apr 08 07:04:28 ubuntu-server subiquity_log.2151[2910]: finish: cmd-in-target: FAIL: curtin command in-target
Apr 08 07:04:28 ubuntu-server curtin_event.2151.3[2910]: finish: cmd-in-target: FAIL: curtin command in-target
Apr 08 07:04:28 ubuntu-server systemd[1]: run-u31.service: Main process exited, code=exited, status=100/n/a

Revision history for this message
wang (dong28) wrote :

Added journalctl -xb log.

Dan Bungert (dbungert)
affects: subiquity (Ubuntu) → subiquity
Revision history for this message
Jeff Lane  (bladernr) wrote :

Wonder if this could have been related to the package rebuild for the XZ vulnerability.

Revision history for this message
wang (dong28) wrote :

Hi jeff,
i had a try on the same machine, the latest ISO daily build version has no this issue and install successfully now.
QA will double confirm tomorrow, once get result, i will update on launchpad.
Thanks

Revision history for this message
wang (dong28) wrote :

Hi Jeff,
QA did verification on the same machine and this issue occur again.
we installed 4-5times and all installtations are failed. They have same error log as before.
It is weird, yesterday i install 3 times use the same ISO and install successfully for each time...
I speculate that this issue might be triggered by some configuration or some case.

Revision history for this message
panreyes (panreyes) wrote :

I'm not sure if this is the same bug, but in my case the installer was not able to complete the installation, and kept on the same message "curtin command target-in".

I "completed" it by executing 'killall -9 unattended-upgrades'

I'm not sure if this is related to the installer being a beta debug version or not, but it didn't complete after 16 minutes. I was installing it in a VirtualBox VM on a pretty fast CPU (4x cores from a Ryzen 7 5800X), with NVME storage, 16GB of RAM and 1gbps internet connection (actually 10gbps, but I still have to upgrade a switch).

This happened selecting the 3rd party drivers option and it also happened without that option.

Here's a small excerpt of the subiquity-server-debug.log:
2024-04-22 23:20:53,297 DEBUG root:38 start: subiquity/Install/install/postinstall/run_unattended_upgrades/cmd-in-target: curtin command in-target
2024-04-22 23:36:55,887 ERROR subiquitycore.utils:209 Unattended upgrades exited with result: 1

I wonder if it just was updating my system, but because I had no feedback from the installer I couldn't tell.

Revision history for this message
Dan Bungert (dbungert) wrote :

@panreyes - in your case, it probably was legitimately installing updates. RC images should be available soon, I expect you'll see cleaner results with that.

Revision history for this message
Dan Bungert (dbungert) wrote :

@wang - for your case we'll need more than the journal. Please post a full copy of the contents of /var/log/installer (in a new private bug if you don't want that on a public one)

Changed in subiquity:
status: New → Incomplete
Revision history for this message
Josh Smith (coin-tengoku) wrote :

Same issue as @panreyes reported except I let it sit for about an 1 and a half and it successfully completed installation without error.

Revision history for this message
Josh Smith (coin-tengoku) wrote :

*Hour and a half

Revision history for this message
wang (dong28) wrote :

Tested the latest daily build version and it has the same issue.
installer log has been uploaded, you can download in attachment, thanks!

Revision history for this message
panreyes (panreyes) wrote :

For sake of confirmation, I tried again and yes: it takes a long time without any messages but it completes the installation.

2024-04-23 11:16:14,281 DEBUG root:38 start: subiquity/Install/install/postinstall/run_unattended_upgrades/cmd-in-targe>
2024-04-23 11:53:53,037 DEBUG root:38 finish: subiquity/Install/install/postinstall/run_unattended_upgrades/cmd-in-targ>

It took 37 minutes to complete unattended-upgrades, but it made it :)

Dan Bungert (dbungert)
Changed in subiquity:
status: Incomplete → Triaged
importance: Undecided → Medium
Revision history for this message
wang (dong28) wrote :

Hi panreyes,
In my case, when meet this log, it will report error and exit the installation process. i attached the shotscreen on attachment.

Revision history for this message
wang (dong28) wrote :
Revision history for this message
ehson Hussian (ehson-husain) wrote :

Same issue, RC installer not working for me...

Revision history for this message
ehson Hussian (ehson-husain) wrote :

Update: I could install by _not_ connecting to the internet

Revision history for this message
wang (dong28) wrote :

yes, don't connect internet and without cable i can install successfully too. In case of with cable and network cannot access to internet, meet this error will cause install fail.

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.