snaps break after upgrade, snapd claims meta/snap.yaml is missing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Triaged
|
High
|
Unassigned |
Bug Description
On a freshly-installed 20.10 (beta) system, I'm seeing issues with snaps showing a "broken" when snapd tries to update them.
I saw this first with the LXD snap, but looking at logs it's happening with other snaps as well.
journalctl --no-pager -u snapd: https:/
journalctl --no-pager -u snap.lxd.daemon: https:/
$ snap version
snap 2.47.1+20.10.1
snapd 2.47.1+20.10.1
series 16
ubuntu 20.10
kernel 5.8.0-25-generic
$ snap tasks 46
Status Spawn Ready Summary
Done today at 09:12 CEST today at 09:13 CEST Ensure prerequisites for "lxd" are available
Undone today at 09:12 CEST today at 09:13 CEST Prepare snap "" (17936)
Undone today at 09:12 CEST today at 09:13 CEST Run pre-refresh hook of "lxd" snap if present
Undone today at 09:12 CEST today at 09:13 CEST Stop snap "lxd" services
Undone today at 09:12 CEST today at 09:13 CEST Remove aliases for snap "lxd"
Undone today at 09:12 CEST today at 09:13 CEST Make current revision for snap "lxd" unavailable
Undone today at 09:12 CEST today at 09:13 CEST Copy snap "lxd" data
Error today at 09:12 CEST today at 09:13 CEST Setup snap "lxd" (17936) security profiles
Hold today at 09:12 CEST today at 09:13 CEST Make snap "lxd" (17936) available to the system
Hold today at 09:12 CEST today at 09:13 CEST Automatically connect eligible plugs and slots of snap "lxd"
Hold today at 09:12 CEST today at 09:13 CEST Set automatic aliases for snap "lxd"
Hold today at 09:12 CEST today at 09:13 CEST Setup snap "lxd" aliases
Hold today at 09:12 CEST today at 09:13 CEST Run post-refresh hook of "lxd" snap if present
Hold today at 09:12 CEST today at 09:13 CEST Start snap "lxd" (17936) services
Hold today at 09:12 CEST today at 09:13 CEST Clean up "lxd" (17936) install
Hold today at 09:12 CEST today at 09:13 CEST Run configure hook of "lxd" snap if present
Hold today at 09:12 CEST today at 09:13 CEST Run health check of "lxd" snap
Done today at 09:12 CEST today at 09:13 CEST Consider re-refresh of "lxd"
.......
Setup snap "lxd" (17936) security profiles
2020-10-
I currently have these 2 snaps in a weird state:
$ snap list --all h2static
Name Version Rev Tracking Publisher Notes
h2static 2.2.1+git14.0a9b9b5 275 latest/edge ack disabled
h2static 279 latest/edge ack broken
$ snap list --all lxd
Name Version Rev Tracking Publisher Notes
lxd 4.7 17886 latest/stable canonical✓ -
lxd 17936 latest/stable canonical✓ disabled,broken
Note that "h2static" still seems to work correctly, but the newer snap is not mounted:
$ mount | grep h2static
/var/lib/
nsfs on /run/snapd/
and the file is not there:
$ ll /var/lib/
-rw------- 2 root root 2.5M Oct 18 18:16 /var/lib/
I've seen the same behavior with the lxd snap, and I manually reverted it to the older revision.
Changed in snapd: | |
status: | Incomplete → New |
summary: |
- snaps fail to upgrade, snapd claims meta/snap.yaml is missing + snaps break after upgrade, snapd claims meta/snap.yaml is missing |
After a new stable snap revision was released for lxd, it automatically updated:
snap-id: J60k4JY0HppjwOj W8dZdYc8obXKxuj Ru
tracking: latest/stable
refresh-date: yesterday at 11:00 CET
channels:
latest/stable: 4.7 2020-10-26 (18013) 72MB -
latest/candidate: 4.7 2020-10-26 (18013) 72MB -
latest/beta: ↑
latest/edge: git-740526c 2020-10-28 (18034) 72MB -
...
installed: 4.7 (18013) 72MB -