snap install fails with 'cannot update disabled snap "core"' after 'snap refresh core'

Bug #1766248 reported by Cris Dywan
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
snapd
Triaged
Medium
Unassigned

Bug Description

In the case where a snap is refreshed while there's an on-going refresh already happening, I get different error messages depending on my timing. This is easiest reproduced by using "--no-wait" and doing several refresh calls. If the bug is triggered, it looks like so:

# snap refresh core --stable --no-wait
41
# snap refresh core --edge --no-wait
error: cannot refresh "core": refreshing disabled snap "core" not supported
# snap refresh core --edge --no-wait
error: cannot refresh "core": snap "core" has "refresh-snap" change in progress

I've not disabled the snap in question, so the error is somewhat unexpected here.

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

This error occurs because during the refresh we disable the old core snap for a brief moment. I agree that it should not surface to the user this way but I'm unsure how to fix it yet.

Changed in snapd:
status: New → Triaged
importance: Undecided → Medium
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.