Cannot safely refresh from edge to stable with ubuntu-core

Bug #1629425 reported by Evan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Triaged
High
Unassigned

Bug Description

It's possible to wedge your system by switching the ubuntu-core snap from edge to stable snap:

$ sudo snap refresh --channel=edge ubuntu-core
74.70 MB / 74.70 MB [========================================] 100.00 % 448.67 KB/s

ubuntu-core (edge) 16.04.1 from 'canonical' upgraded

$ sudo snap refresh ubuntu-core --channel=stable
error: cannot communicate with server: Get http://localhost/v2/changes/996: dial unix /run/snapd.socket: connect: connection refused

$ journalctl -xe

-- The start-up result is done.
Sep 30 14:01:15 elsa /usr/lib/snapd/snapd[13610]: cmd.go:81: DEBUG: restarting into "/snap/ubuntu-core/current/usr/lib/snapd/snapd"
Sep 30 14:01:15 elsa snapd[13610]: error: cannot downgrade: snapd is too old for the current system state (patch level 4)
Sep 30 14:01:15 elsa systemd[1]: snapd.service: Main process exited, code=exited, status=1/FAILURE
Sep 30 14:01:15 elsa systemd[1]: snapd.service: Unit entered failed state.
Sep 30 14:01:15 elsa systemd[1]: snapd.service: Failed with result 'exit-code'.
Sep 30 14:01:16 elsa systemd[1]: snapd.service: Service hold-off time over, scheduling restart.
Sep 30 14:01:16 elsa systemd[1]: Stopped Snappy daemon.
-- Subject: Unit snapd.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit snapd.service has finished shutting down.
Sep 30 14:01:16 elsa systemd[1]: snapd.service: Start request repeated too quickly.
Sep 30 14:01:16 elsa systemd[1]: Failed to start Snappy daemon.
-- Subject: Unit snapd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit snapd.service has failed.
--
-- The result is failed.

Tags: eco-team
Michael Vogt (mvo)
Changed in snappy:
status: New → Triaged
importance: Undecided → High
Evan (ev)
tags: added: eco-team
Revision history for this message
Michael Vogt (mvo) wrote :

This should actually be mostly ok now. Only if you have a really old local ubuntu-core snap and revert to it things will break. But stable/edge should be fine nowdays.

Michael Vogt (mvo)
affects: snappy → snapd
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.