[fde] boot of the live session - a terminal with "waiting for snapd" is displayed for a very long time

Bug #2032647 reported by Jean-Baptiste Lallement
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-desktop-installer
Invalid
High
Unassigned
livecd-rootfs (Ubuntu)
Fix Released
Undecided
Michael Hudson-Doyle

Bug Description

=Test Case=
1. Boot the iso to the live session

=Actual Result=
A terminal is displayed with the text "waiting for snapd" for several minutes (cf screenshot)

It disappears after a while and the following message is displayed in the logs

Aug 22 11:54:06 ubuntu systemd[1274]: subiquity-tui.service: Main process exited, code=exited, status=1/FAILURE
Aug 22 11:54:06 ubuntu systemd[1274]: subiquity-tui.service: Failed with result 'exit-code'.

=Expected result=
There is no such terminal

Tags: fde

Related branches

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
tags: added: fde
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Changed in ubuntu-desktop-installer:
status: New → Confirmed
Revision history for this message
Brian Murray (brian-murray) wrote :

I also saw this with the image with serial 20230822.1.

Changed in ubuntu-desktop-installer:
importance: Undecided → High
Revision history for this message
Brian Murray (brian-murray) wrote :

Dimitri brought up the preseeding of snaps we did with the classic image and I wonder if waiting for snapd is a consequence of them not being preseeded.

https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/2028888/comments/8

Revision history for this message
Steve Langasek (vorlon) wrote :

With 20230824 this seems to be much worse. Instead of the terminal appearing for a brief period and then going away, the terminal never goes away.

snap changes shows

ID Status Spawn Ready Summary
1 Error today at 23:05 UTC today at 23:05 UTC Initialize system state
2 Done today at 23:05 UTC today at 23:05 UTC Change configuration of "core" snap
3 Error today at 23:05 UTC today at 23:05 UTC Initialize device

/var/lib/snapd/seed/snaps shows snaps. /var/lib/snapd/snaps does not.

It also looks to me like there's something wrong with the snap deduplication between the squashfs layers in this image.

$ sudo mount /mnt/casper/standard.live.squashfs /mnt
$ ls -l /mnt/var/lib/snapd/snaps/
total 0
c--------- 1 root root 0, 0 Aug 24 05:59 bare_5.snap
c--------- 1 root root 0, 0 Aug 24 05:59 core22_858.snap
c--------- 1 root root 0, 0 Aug 24 05:59 firefox_2993.snap
c--------- 1 root root 0, 0 Aug 24 05:59 gnome-42-2204_126.snap
c--------- 1 root root 0, 0 Aug 24 05:59 gtk-common-themes_1535.snap
c--------- 1 root root 0, 0 Aug 24 05:59 snapd_19993.snap
c--------- 1 root root 0, 0 Aug 24 05:59 snapd-desktop-integration_83.snap
c--------- 1 root root 0, 0 Aug 24 05:59 snap-store_959.snap
$

that looks wrong?

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

I think reset_snapd_state needs to do more (specifically call snap-preseed --reset). I'm testing a change now.

Revision history for this message
Steve Langasek (vorlon) wrote :

Fixed in livecd-rootfs 23.10.22

Changed in livecd-rootfs (Ubuntu):
assignee: nobody → Michael Hudson-Doyle (mwhudson)
status: New → Fix Committed
Changed in ubuntu-desktop-installer:
status: Confirmed → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package livecd-rootfs - 23.10.22

---------------
livecd-rootfs (23.10.22) mantic; urgency=medium

  * Undo preseeding in reset_snapd_state.
  * update-source-catalog: work better when we want a variation to point
    at the base layer.
  * Stop launching a gnome-terminal at startup of the canary live session.
    (LP: #2032647)

 -- Michael Hudson-Doyle <email address hidden> Fri, 25 Aug 2023 18:45:03 +1200

Changed in livecd-rootfs (Ubuntu):
status: Fix Committed → Fix Released
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.