installed snaps are gone after a reboot

Bug #1572125 reported by Jean-Baptiste Lallement
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
Undecided
Unassigned
snapd (Ubuntu)
Fix Released
High
Michael Vogt

Bug Description

snapd 2.0.1

Test case:
1. Install several snaps
2. Reboot the host
3. Run: snap list

Expected result
Installed snaps are listed

Actual result
Empty output but the snaps are still on disk.

Tags: sdoc
summary: - install snaps are gone after a reboot
+ installed snaps are gone after a reboot
Zygmunt Krynicki (zyga)
Changed in ubuntu-snappy (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I've reproduced this with my freshly made "links" snap (in the store @ revision 1). After rebooting I saw this:

The snap is not registered in snap list (other snaps were not registered as well, I had many snaps prior to reboot)

zyga@zyga-thinkpad-w510:~$ snap list
Name Version Developer
ubuntu-core 16.04.0-24 canonical

The mount unit for the snap I've installed looks like this:

zyga@zyga-thinkpad-w510:~$ systemctl status snap-links-1.mount
● snap-links-1.mount - Squashfs mount unit for links
   Loaded: loaded (/etc/systemd/system/snap-links-1.mount; static; vendor preset
   Active: inactive (dead)
    Where: /snap/links/1
     What: /var/lib/snapd/snaps/links_1.snap

I don't see anything in syslog yet.

Revision history for this message
Daniel Holbach (dholbach) wrote :

I can confirm this. It looks like the apps which are sideloaded are not part of 'snap list'.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :
Download full text (4.1 KiB)

Syslog has a few obvious failures for snapd related to the fact that the snaps did not mount correctly.

zyga@zyga-thinkpad-w510:~$ journalctl -u snapd
-- Logs begin at wto 2016-04-19 14:52:46 CEST, end at wto 2016-04-19 15:09:43 CEST. --
kwi 19 14:55:39 zyga-thinkpad-w510 systemd[1]: Started Snappy daemon.
kwi 19 14:55:44 zyga-thinkpad-w510 /usr/lib/snapd/snapd[3780]: snapstate.go:374: cannot retrieve info for snap "hello-world": cannot find mounted snap "hello-world" at revisi
kwi 19 14:55:44 zyga-thinkpad-w510 snapd[3780]: 2016/04/19 14:55:44.026609 snapstate.go:374: cannot retrieve info for snap "hello-world": cannot find mounted snap "hello-worl
kwi 19 14:55:44 zyga-thinkpad-w510 snapd[3780]: 2016/04/19 14:55:44.026701 snapstate.go:374: cannot retrieve info for snap "links": cannot find mounted snap "links" at revisi
kwi 19 14:55:44 zyga-thinkpad-w510 /usr/lib/snapd/snapd[3780]: snapstate.go:374: cannot retrieve info for snap "links": cannot find mounted snap "links" at revision 1
kwi 19 14:55:44 zyga-thinkpad-w510 /usr/lib/snapd/snapd[3780]: ifacemgr.go:134: cannot connect plug "unity7" from snap "hello-unity", no such plug
kwi 19 14:55:44 zyga-thinkpad-w510 snapd[3780]: 2016/04/19 14:55:44.087397 ifacemgr.go:134: cannot connect plug "unity7" from snap "hello-unity", no such plug
kwi 19 14:55:44 zyga-thinkpad-w510 snapd[3780]: 2016/04/19 14:55:44.087447 ifacemgr.go:134: cannot connect plug "network" from snap "links", no such plug
kwi 19 14:55:44 zyga-thinkpad-w510 snapd[3780]: 2016/04/19 14:55:44.087488 ifacemgr.go:134: cannot connect plug "network-bind" from snap "links", no such plug
kwi 19 14:55:44 zyga-thinkpad-w510 /usr/lib/snapd/snapd[3780]: ifacemgr.go:134: cannot connect plug "network" from snap "links", no such plug
kwi 19 14:55:44 zyga-thinkpad-w510 /usr/lib/snapd/snapd[3780]: ifacemgr.go:134: cannot connect plug "network-bind" from snap "links", no such plug
kwi 19 14:55:44 zyga-thinkpad-w510 /usr/lib/snapd/snapd[3780]: daemon.go:202: DEBUG: adding /
kwi 19 14:55:44 zyga-thinkpad-w510 /usr/lib/snapd/snapd[3780]: daemon.go:202: DEBUG: adding /v2/system-info
kwi 19 14:55:44 zyga-thinkpad-w510 /usr/lib/snapd/snapd[3780]: daemon.go:202: DEBUG: adding /v2/login
kwi 19 14:55:44 zyga-thinkpad-w510 /usr/lib/snapd/snapd[3780]: daemon.go:202: DEBUG: adding /v2/logout
kwi 19 14:55:44 zyga-thinkpad-w510 /usr/lib/snapd/snapd[3780]: daemon.go:202: DEBUG: adding /v2/icons/{name}/icon
kwi 19 14:55:44 zyga-thinkpad-w510 /usr/lib/snapd/snapd[3780]: daemon.go:202: DEBUG: adding /v2/snaps
kwi 19 14:55:44 zyga-thinkpad-w510 /usr/lib/snapd/snapd[3780]: daemon.go:202: DEBUG: adding /v2/snaps/{name}
kwi 19 14:55:44 zyga-thinkpad-w510 /usr/lib/snapd/snapd[3780]: daemon.go:202: DEBUG: adding /v2/interfaces
kwi 19 14:55:44 zyga-thinkpad-w510 /usr/lib/snapd/snapd[3780]: daemon.go:202: DEBUG: adding /v2/assertions
kwi 19 14:55:44 zyga-thinkpad-w510 /usr/lib/snapd/snapd[3780]: daemon.go:202: DEBUG: adding /v2/assertions/{assertType}
kwi 19 14:55:44 zyga-thinkpad-w510 /usr/lib/snapd/snapd[3780]: daemon.go:202: DEBUG: adding /v2/events
kwi 19 14:55:44 zyga-thinkpad-w510 /usr/lib/snapd/snapd[3780]: daemon.go:202: DEBUG: adding /v2/changes/{id}
kwi 19 14:55:...

Read more...

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

This is addressed by https://github.com/ubuntu-core/snappy/pull/1042

After this lands all snaps should be reinstalled.

Changed in ubuntu-snappy (Ubuntu):
assignee: nobody → Michael Vogt (mvo)
tags: added: sdoc
Revision history for this message
Michael Vogt (mvo) wrote :

This is fixed with the released snapd 2.0.2

Changed in ubuntu-snappy (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Michael Vogt (mvo) wrote :

This is fixed with the released snapd 2.0.2

Changed in snappy:
status: New → Fix Released
Mathew Hodson (mhodson)
affects: ubuntu-snappy (Ubuntu) → snapd (Ubuntu)
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.