snap-preseed hangs indefinitely with firefox snap
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
livecd-rootfs (Ubuntu) |
Fix Released
|
High
|
Brian Murray | ||
Jammy |
Won't Fix
|
Undecided
|
Unassigned | ||
snapd (Ubuntu) |
Fix Released
|
Critical
|
Philip Meulengracht | ||
Jammy |
Fix Released
|
Critical
|
Unassigned |
Bug Description
During our automated image builds, we found a scenario where `snap-preseed` was hanging indefinitely. The logs are as follows:
```
sudo /usr/lib/
ubuntu classic preseedingstarting to preseed root: /home/jawn-
using snapd binary: /usr/lib/
AppArmor status: apparmor is enabled and all features are available
2022/09/26 19:56:40.922864 main.go:57: running for preseeding
2022/09/26 19:56:40.923469 overlord.go:263: Acquiring state lock file
2022/09/26 19:56:40.923655 overlord.go:268: Acquired state lock file
2022/09/26 19:56:40.930761 daemon.go:247: started snapd/2.
2022/09/26 19:56:40.936802 daemon.go:340: adjusting startup timeout by 30s (pessimistic estimate of 30s plus 5s per snap)
2022/09/26 19:56:41.116159 helpers.go:147: error trying to compare the snap system key: system-key missing on disk
```
I was able to reproduce the behavior by running the following commands on a kinetic system:
```
sudo debootstrap --variant=minbase --arch=amd64 kinetic chroot
sudo snap prepare-image --arch=amd64 --snap=core --snap=firefox --snap=core20 --snap=
for mountpoint in /dev /proc /sys /sys/kernel/
sudo chroot chroot apt install -y squashfs-tools snapd
sudo /usr/lib/
sudo /usr/lib/
```
In this scenario I am using the following generic.model:
```
type: model
authority-id: generic
series: 16
brand-id: generic
model: generic-classic
classic: true
timestamp: 2017-07-
sign-key-sha3-384: d-JcZF9nD9eBw7b
AcLBXAQAAQoABgU
KvEWYvzOWNhNlVS
4/vYyfyvEYavhF0
2rxl3Dw8XarYBmq
+zTA7RB3384YQVe
g1XxJet4IP0stZH
nRaz6VBm09RJTuw
AINNQB4g2fpfet4
ER4UvKnR7hcVI26
l+6AMtrS4gDGHkt
```
Related branches
- Gauthier Jolly (community): Approve
- Andrew Cloke (community): Approve
- Ubuntu Core Development Team: Pending requested
-
Diff: 30 lines (+8/-3)2 files modifieddebian/changelog (+6/-0)
live-build/functions (+2/-3)
Changed in snapd (Ubuntu): | |
importance: | Undecided → High |
description: | updated |
Changed in snapd (Ubuntu): | |
status: | New → Confirmed |
Changed in livecd-rootfs (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in snapd (Ubuntu): | |
milestone: | none → ubuntu-22.10-beta |
Changed in snapd (Ubuntu): | |
status: | Confirmed → In Progress |
assignee: | nobody → Philip Meulengracht (the-meulengracht) |
Changed in snapd (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in snapd (Ubuntu): | |
importance: | High → Critical |
Changed in snapd (Ubuntu Jammy): | |
importance: | Undecided → Critical |
status: | New → Triaged |
Changed in livecd-rootfs (Ubuntu Jammy): | |
status: | New → Won't Fix |
Changed in snapd (Ubuntu Jammy): | |
status: | Triaged → Fix Released |
Here's a full stack trace from the hanging command: https:/ /paste. ubuntu. com/p/TbNmDBGHS r/