UC16 devices ending up with snaps in broken state

Bug #1951147 reported by Jonathan Cave
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Expired
Undecided
Unassigned

Bug Description

We have encountered a couple of devices that have ended up in state where multiple snaps have three revisions on the system with the oldest one in broken state and not mounted. This seems to prevent the device from refreshing the snap to a newer revision:

admin@1234567:~$ sudo snap refresh core --stable
error: cannot perform the following tasks:
- Setup snap "core" (11993) security profiles (cannot find installed snap "core" at revision 11993: missing file /snap/core/11993/meta/snap.yaml)

Revision history for this message
Jonathan Cave (jocave) wrote :
Revision history for this message
Jonathan Cave (jocave) wrote :
Revision history for this message
Jonathan Cave (jocave) wrote :

At this point I had started trying to recover the device so the core snap 11993 had been removed from the system. Here are the contents of:

/var/lib/snapd/snaps
/etc/systemd/system/*.mount

Revision history for this message
Michael Vogt (mvo) wrote :

So this looks like the mount unit and the snap file for the core 11993 snap got removed but it was not removed from the state. This is puzzling and worrying.

Revision history for this message
Jonathan Cave (jocave) wrote :
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks! could you also (just for completes) attach /var/lib/snapd/state.json ?

Revision history for this message
Maciej Borzecki (maciek-borzecki) wrote :

Can you attach the output of `sudo cat /var/lib/snapd/state.json | jq '.data.snaps["core"]' or if it's not possible to install jq snap on the device, download state.json to your local host and run the jq command there. Please do not attach the whole state.json as it contains sensitive data.

Changed in snappy:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Snappy because there has been no activity for 60 days.]

Changed in snappy:
status: Incomplete → Expired
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.