snapd didn't initialize all the seeded snaps

Bug #1772844 reported by Chen-Han Hsiao (Stanley) on 2018-05-23
32
This bug affects 5 people
Affects Status Importance Assigned to Milestone
OEM Priority Project
Medium
Chen-Han Hsiao (Stanley)
snapd
High
Unassigned
livecd-rootfs (Ubuntu)
Undecided
Unassigned
Bionic
Undecided
Unassigned
ubuntu-meta (Ubuntu)
Undecided
Unassigned
Bionic
Undecided
Unassigned

Bug Description

snapd didn't initialize all the seeded snaps

bionic-desktop-amd64.iso (20180522)

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: snapd 2.32.9+18.04
ProcVersionSignature: Ubuntu 4.15.0-22.24-generic 4.15.17
Uname: Linux 4.15.0-22-generic x86_64
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue May 22 22:59:18 2018
InstallationDate: Installed on 2018-05-23 (0 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180522)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: snapd
UpgradeStatus: No upgrade log present (probably fresh install)

Chen-Han Hsiao (Stanley) (swem) wrote :
Changed in oem-priority:
assignee: nobody → Chen-Han Hsiao (Stanley) (swem)
Chen-Han Hsiao (Stanley) (swem) wrote :

output of

snap tasks --last=seed

Chen-Han Hsiao (Stanley) (swem) wrote :

$ ll /var/lib/snapd/seed/snaps/
total 305668
drwxr-xr-x 2 root root 4096 May 22 04:17 ./
drwxr-xr-x 4 root root 4096 May 22 04:17 ../
-rw-r--r-- 2 root root 90812416 May 22 04:15 core_4650.snap
-rw-r--r-- 2 root root 146276352 May 22 04:15 gnome-3-26-1604_64.snap
-rw-r--r-- 2 root root 2428928 May 22 04:15 gnome-calculator_167.snap
-rw-r--r-- 1 root root 13594624 May 22 04:16 gnome-characters_86.snap
-rw-r--r-- 1 root root 22609920 May 22 04:16 gnome-logs_31.snap
-rw-r--r-- 1 root root 3813376 May 22 04:16 gnome-system-monitor_39.snap
-rw-r--r-- 1 root root 33460224 May 22 04:17 gtk-common-themes_3.snap

Chen-Han Hsiao (Stanley) (swem) wrote :

output of:

snap list

John Lenton (chipaca) wrote :

What are the contents of seed.yaml?

Chen-Han Hsiao (Stanley) (swem) wrote :
John Lenton (chipaca) wrote :

Note that seed change is still ongoing (it's still got tasks in Doing state). You can watch the progress with 'snap watch --last=seed'.

Chen-Han Hsiao (Stanley) (swem) wrote :

The snapd stuck here:

$ snap watch --last=seed
Automatically connect eligible plugs and slots of snap "gnome-calculator"

Michael Vogt (mvo) wrote :

Hey Chen, could you please try to reoder the seed.yaml so that gtk-common-themes is listed before all the application snaps, i.e. before gnome-calculator?

John Lenton (chipaca) wrote :

As a workaround, in seed.yaml, ensure content providers are before the snaps that need them; the seeding step does not sort things.

It's unclear whether it should, but at least we should warn about it.

affects: snapd (Ubuntu) → ubuntu-meta (Ubuntu)
Changed in oem-priority:
status: New → Confirmed
importance: Undecided → High
Paweł Stołowski (stolowski) wrote :

The problem is still affecting current Cosmic image (from 11th of June) and has been reported on the https://forum.snapcraft.io/t/gnome-calculator-failed-to-create-symbolic-link/5742/22 ; any reason the re-order seed.yaml hasn't landed?

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-meta (Ubuntu):
status: New → Confirmed
Changed in oem-priority:
importance: High → Medium

after changing /var/lib/snapd/seed/seed.yaml moving
name: gtk-common-themes
    channel: stable/ubuntu-18.10
    file: gtk-common-themes_319.snap
before the calculator entry as suggested in https://ubuntuforums.org/showthread.php?t=2393347&page=3
now all the snaps are initialized
corrado@corrado-HP-p4-cc-0620:~$ snap abort 3
corrado@corrado-HP-p4-cc-0620:~$ snap changes
ID Status Spawn Ready Summary
1 Undone 4 days ago, at 09:33 CEST today at 07:14 CEST Initialize system state
3 Undone today at 07:14 CEST today at 16:22 CEST Initialize system state
4 Doing today at 16:22 CEST - Initialize system state

corrado@corrado-HP-p4-cc-0620:~$ snap changes
ID Status Spawn Ready Summary
1 Undone 4 days ago, at 09:33 CEST today at 07:14 CEST Initialize system state
3 Undone today at 07:14 CEST today at 16:22 CEST Initialize system state
4 Done today at 16:22 CEST today at 16:23 CEST Initialize system state

corrado@corrado-HP-p4-cc-0620:~$ snap list
Name Version Rev Tracking Developer Notes
core 16-2.33 4830 stable canonical core
gnome-3-26-1604 3.26.0 64 stable/… canonical -
gnome-calculator 3.28.1 178 stable/… canonical -
gnome-characters 3.28.2 101 stable/… canonical -
gnome-logs 3.28.2 37 stable/… canonical -
gnome-system-monitor 3.26.0 45 stable/… canonical -
gtk-common-themes 0.1 319 stable/… canonical -
corrado@corrado-HP-p4-cc-0620:~$

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

tags: added: iso-testing
Changed in oem-priority:
status: Confirmed → Fix Released

Hello Chen-Han, or anyone else affected,

Accepted livecd-rootfs into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/livecd-rootfs/2.525.3 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in livecd-rootfs (Ubuntu Bionic):
status: New → Fix Committed
tags: added: verification-needed verification-needed-bionic
Launchpad Janitor (janitor) wrote :

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

---------------
livecd-rootfs (2.525.3) bionic; urgency=medium

  * live-build/auto/config: Add nasty hack to order gtk-common-themese snap
    first in snapd's seed.yaml to work around the snapd bug in LP: #1772844

 -- Adam Conrad <email address hidden> Mon, 23 Jul 2018 10:02:04 -0600

Changed in livecd-rootfs (Ubuntu Bionic):
status: Fix Committed → Fix Released

problem disappeared in Ubuntu Bionic 18.04.1

corrado@corrado-HP-p3-bionic:~$ apt policy livecd-rootfs
livecd-rootfs:
  Installed: (none)
  Candidate: 2.525.5
  Version table:
     2.525.5 500
        500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
     2.525 500
        500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
corrado@corrado-HP-p3-bionic:~$ cat /var/log/installer/media-info
Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
corrado@corrado-HP-p3-bionic:~$ snap list
Name Version Rev Tracking Publisher Notes
core 16-2.33.1 4917 stable canonical core
gnome-3-26-1604 3.26.0 70 stable/… canonical -
gnome-calculator 3.28.2 180 stable/… canonical -
gnome-characters 3.28.2 103 stable/… canonical -
gnome-logs 3.28.2 37 stable/… canonical -
gnome-system-monitor 3.28.2 51 stable/… canonical -
gtk-common-themes 0.1 319 stable/… canonical -
corrado@corrado-HP-p3-bionic:~$

but still present on Cosmic from last ISO:

corrado@corrado-HP-p5-cc-0731:~$ snap list
Name Version Rev Tracking Publisher Notes
core 16-2.33.1 4917 stable canonical core
gnome-3-26-1604 3.26.0 70 stable/… canonical -
gnome-calculator 3.28.2 180 stable/… canonical -
corrado@corrado-HP-p5-cc-0731:~$ cat /var/log/installer/media-info
Ubuntu 18.10 "Cosmic Cuttlefish" - Alpha amd64 (20180731)
corrado@corrado-HP-p5-cc-0731:~$ apt policy livecd-rootfs
livecd-rootfs:
  Installed: (none)
  Candidate: 2.533
  Version table:
     2.533 500
        500 http://archive.ubuntu.com/ubuntu cosmic/main amd64 Packages
corrado@corrado-HP-p5-cc-0731:~$

Adam Conrad (adconrad) wrote :

Indeed, fixed on 18.04 and broken on 18.10 is intentional, as the 18.04 "fix" was a horrible hack in livecd-rootfs to work around the bug in time for the point release, while I've been assured that 18.10 will get a proper fix in snapd instead.

Changed in livecd-rootfs (Ubuntu):
status: New → Won't Fix
Changed in ubuntu-meta (Ubuntu):
status: Confirmed → Fix Released
Changed in ubuntu-meta (Ubuntu Bionic):
status: New → Fix Released
Changed in snapd:
importance: Undecided → High

Still broken on Ubuntu 18.10 "Cosmic Cuttlefish" - Alpha amd64 (20180903)

also with proposed

Setting up snapd (2.35.1+18.10) ...
Installing new version of config file /etc/apparmor.d/usr.lib.snapd.snap-confine.real ...
snapd.failure.service is a disabled or a static unit, not starting it.
snapd.snap-repair.service is a disabled or a static unit, not starting it.

Per-Inge (per-inge-hallin) wrote :

Still not fixed in the ISO from 8/9
Not able to run gnome-calculator.

On a new install from Ubuntu 18.10 "Cosmic Cuttlefish" - Alpha amd64 (20180913) the update+upgrade installed the new snapd (2.35.2+18.10) over (2.35.1+18.10)
and now i have all the default snap working

corrado@corrado-HP-p4-cc-0913:~$ snap list
Name Version Rev Tracking Publisher Notes
core 16-2.35 5328 stable canonical✓ core
gnome-3-26-1604 3.26.0 70 stable/… canonical✓ -
gnome-calculator 3.30.0 222 stable/… canonical✓ -
gnome-characters 3.28.2 117 stable/… canonical✓ -
gnome-logs 3.28.2 40 stable/… canonical✓ -
gnome-system-monitor 3.28.2 54 stable/… canonical✓ -
gtk-common-themes 0.1 319 stable/… canonical✓ -
corrado@corrado-HP-p4-cc-0913:~$

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers