"running 'curtin hook'" spinner keeps spinning forever

Bug #1912957 reported by Paride Legovini
76
This bug affects 16 people
Affects Status Importance Assigned to Milestone
subiquity
Fix Released
Low
Unassigned

Bug Description

Last seen in subiquity 21.01.1 (amd64, build 2255), but I think this little issue was present even before. In the last stage of the install process, when Subiquity shows "Install complete!", the "running 'curtin hook'" spinner ('| / - \' loop) in the install log keeps spinning forever. This can be a bit confusing.

This is always reproducible just by finishing an installation.
Screenshot attached.

Tags: iso-testing
Revision history for this message
Paride Legovini (paride) wrote :
Changed in curtin:
importance: Undecided → Low
Paride Legovini (paride)
affects: curtin → subiquity
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Yeah I've seen this occasionally too. It seems the subiquity process isn't getting all the curtin events from the journal somehow -- I don't really know what's going on though.

Changed in subiquity:
status: New → Triaged
Revision history for this message
dann frazier (dannf) wrote :

I just ran into this with the focal RC installer on arm64 (20210201.2)

Revision history for this message
dann frazier (dannf) wrote :

I've now seen this 3/3 of times on Cavium ThunderX CRB installs.

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/1912957

tags: added: iso-testing
Revision history for this message
Taihsiang Ho (tai271828) wrote :

Interesting, I did not see this on ThunderX2 Sabre (20210201.2) via CD installation.

Revision history for this message
Paride Legovini (paride) wrote :

In qemu installs I see this almost always, if now always.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

So I did have a quick look at this. What should happen is that curtin sends an event to the journal to report that the curthooks stage has stopped. The subiquity server reads this from the journal and sends out another journal event so that the clients can report that this stage has stopped. I see all the curtin events I expect to see, but not the one the subiquity server should be sending to its clients. I don't know whether the subiquity server is not receiving the curtin event or if its attempt to send the event is failing. There is nothing in the journal about events being dropped that I can see.

It's strange to me that this is so consistent. Maybe one of the curthooks does something to disrupt the journal on the host? Seems unlikely...

Revision history for this message
Balint Reczey (rbalint) wrote :

Observed in QEMU after setting up custom partition layout with encrypted LVM and btrfs partition + swap partition in it. I'm not sure it the details matter if it it almost always seen in QEMU anyway.

Revision history for this message
Balint Reczey (rbalint) wrote :

I think this is quit confusing, because the spinning / catches the eye earlier than the 'Installation complete!' text on top.

I think I concluded that the installer was still running and left it running for the night, despite it actually finished already. :-)

Revision history for this message
Dan Kegel (dank) wrote :

Affects Virtualbox installs too, even though I let the installer autoupdate itself.

Rebooted after a few minutes and the install seems to have worked.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Oh turns out this was something silly (subiquity stops listening for events from curtin the instant the curtin process exits, but it can take a while for journal events to make it through so we could miss the last few). Working on a fix now.

Changed in subiquity:
status: Triaged → Fix Committed
Revision history for this message
enrigp (enrgarc) wrote :

Same problem here with ubuntu server 20.04.2 lts install on proxmox vm (qemu)

Revision history for this message
enrigp (enrgarc) wrote :

Capture

Revision history for this message
Scott Stubbs (sastubbs84) wrote :

So I had this same thing happen to me while installing server 20.04.2, running curtin hook just kept spinning. However at the top of the screen it stated "installation complete", I went to reboot now and it indeed installed itself successfully.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Yes, this affects the version on 20.04.2 and is just cosmetic. Fixed in hirsute, current focal dailies and will be fixed in 20.04.3.

Changed in subiquity:
status: Fix Committed → Fix Released
Revision history for this message
Uqbar (uqbar) wrote :

Still here as of 20.04.2

Revision history for this message
Ketil Malde (ketil-ii) wrote :

Seen here on 20.10 server install iso.

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.