Subiquity crashes on refresh

Bug #1913417 reported by Paride Legovini
48
This bug affects 11 people
Affects Status Importance Assigned to Milestone
subiquity
Fix Released
Undecided
Unassigned

Bug Description

Scenario:

 - Focal ISO image with subiquity 21.01.1
 - Stable channel has 21.01.2 available
 - Subiquity asks to update (refresh) the installer
 - If asked to update, subiquity crashes
 - The snap gets refreshed despite the crash

Traceback:

2021-01-27 10:45:05,552 DEBUG subiquity.server.server:293 request to /refresh crashed
Traceback (most recent call last):
  File "/snap/subiquity/2255/lib/python3.6/site-packages/subiquity/common/api/server.py", line 123, in handler
    serializer.serialize(def_ret_ann, result),
  File "/snap/subiquity/2255/lib/python3.6/site-packages/subiquity/common/serialize.py", line 101, in serialize
    annotation, value, metadata, path)
  File "/snap/subiquity/2255/lib/python3.6/site-packages/subiquity/common/serialize.py", line 46, in _scalar
    path, value, annotation)
AssertionError: at , 5 is not a <class 'int'>

I'm going to attach the logs tarball in a moment.

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

/var/log/installer tarball.

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

I'm not sure if this is specific to this kind of crash, but I noticed that the generated /var/crash/*.crash files are empty.

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

I'm not sure it still affects subiquity 21.01.2 (there's no newer version in the stable channel so this is not straightforward to test), but it likely does.

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

Oh whoops a change id is not an integer in the snapd api but rather a string (which happens to represent an integer). I had it wrong in the fake data used in dry runs :(

The annoying part about this is that all updates from 20.04.2 media will hit this and there's no way to fix that. Ah well -- I think this is mpstly cosmetic, right? You choose to update and instead of seeing the nice progress bar, you get to see an error dialog and then everything restarts? A bad experience but not fatally so, if so.

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

Yes this is cosmetic, the refresh works fine, but it's pretty ugly.

We can't fix the already released 20.04.2 ISOs, however we could wait for the Focal 20.04.3 RCs before publishing anything in the stable channel, so users of the 20.04.3 ISOs won't hit the bug, and users of 20.04.2 ISOs concerned by the crash have a newer ISO to download. Would it make sense from the subiquity release plans point of view?

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

Thanks for confirming.

6 months is a pretty long time to wait between releases. I guess we can see how much we get implemented how soon!

Changed in subiquity:
status: New → Fix Committed
Revision history for this message
George P Brown (ramakin) wrote :

why are the fixes from 2021

Dan Bungert (dbungert)
Changed in subiquity:
status: Fix Committed → Fix Released
affects: subiquity → ubuntu
Changed in ubuntu:
assignee: nobody → Johnfrandes s (johnfrandes12)
summary: - Subiquity crashes on refresh
+ johnfrandes
Revision history for this message
Dan Bungert (dbungert) wrote :

@johnfrandes - for the second time, why are you changing state on old fixed bugs?

affects: ubuntu → subiquity
Changed in subiquity:
assignee: Johnfrandes s (johnfrandes12) → nobody
summary: - johnfrandes
+ Subiquity crashes on refresh
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.