Cannot safely refresh from edge to stable with ubuntu-core

Bug #1629425 reported by Evan on 2016-09-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
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.

Michael Vogt (mvo) on 2016-11-30
Changed in snappy:
status: New → Triaged
importance: Undecided → High
Evan (ev) on 2017-01-18
tags: added: eco-team
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.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers