Ubuntu Core 16: Error: cannot refresh "pi2-kernel": snap "pi2-kernel" has changes in progress

Bug #1722882 reported by Giovanni Minniti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
Undecided
Unassigned

Bug Description

Question: How can I remove pending tasks with state undo and retry the failed refresh operation again?

Action:
The trial to snap refresh pi2-kernel ended without completion, after a reboot I tried
snap refresh pi2-kernel, got response ""error: cannot refresh "pi2-kernel": snap "pi2-kernel" has changes in progress"

snap version
-------------------------
snap 2.28.3
snapd 2.28.3
series 16
kernel 4.4.0-1074-raspi2

snap list
---------------------------------------------------
Name Version Rev Developer Notes
classic 16.04 26 canonical devmode
core 16-2.28.3 3190 canonical core
docker 17.06.2-ce 181 docker-inc devmode
pi2-kernel 4.4.0.1074.74 42 canonical kernel
pi3 16.04-0.5 22 canonical gadget

snap changes
----------------------------------------------------------------------------------------------
ID Status Spawn Ready Summary
217 Done 2017-10-09T18:22:50Z 2017-10-10T19:14:19Z Auto-refresh snap "core"
219 Done 2017-10-10T19:19:17Z 2017-10-10T19:32:54Z Auto-refresh snap "core"
220 Done 2017-10-10T21:29:26Z 2017-10-10T21:29:26Z Refresh all snaps: no updates
221 Error 2017-10-11T07:42:45Z 2017-10-11T15:57:50Z Auto-refresh snap "core"
222 Undo 2017-10-11T14:19:22Z - Refresh snap "pi2-kernel"
223 Done 2017-10-11T15:24:35Z 2017-10-11T15:24:35Z Refresh all snaps: no updates
224 Done 2017-10-11T15:57:51Z 2017-10-11T16:11:37Z Auto-refresh snap "core"
225 Done 2017-10-11T17:16:05Z 2017-10-11T17:16:05Z Refresh all snaps: no updates
226 Done 2017-10-11T17:28:42Z 2017-10-11T17:28:42Z Switch "pi2-kernel" snap to edge
227 Done 2017-10-11T18:06:12Z 2017-10-11T18:06:12Z Refresh all snaps: no updates

snap tasks 222
----------------------------------------------------------------------------------------------
Status Spawn Ready Summary
Undo 2017-10-11T14:19:22Z 2017-10-11T14:19:22Z Ensure prerequisites for "pi2-kernel" are available
Undone 2017-10-11T14:19:22Z 2017-10-11T15:57:44Z Download snap "pi2-kernel" (43) from channel "edge"
Done 2017-10-11T14:19:22Z 2017-10-11T17:41:42Z Fetch and check assertions for snap "pi2-kernel" (43)
Undone 2017-10-11T14:19:22Z 2017-10-11T15:57:47Z Mount snap "pi2-kernel" (43)
Undone 2017-10-11T14:19:22Z 2017-10-11T15:57:44Z Stop snap "pi2-kernel" services
Undone 2017-10-11T14:19:22Z 2017-10-11T15:57:44Z Remove aliases for snap "pi2-kernel"
Undone 2017-10-11T14:19:22Z 2017-10-11T15:57:44Z Make current revision for snap "pi2-kernel" unavailable
Undone 2017-10-11T14:19:22Z 2017-10-11T15:57:43Z Copy snap "pi2-kernel" data
Error 2017-10-11T14:19:22Z 2017-10-11T15:56:19Z Setup snap "pi2-kernel" (43) security profiles
Hold 2017-10-11T14:19:22Z 2017-10-11T15:56:19Z Make snap "pi2-kernel" (43) available to the system
Hold 2017-10-11T14:19:22Z 2017-10-11T15:56:19Z Set automatic aliases for snap "pi2-kernel"
Hold 2017-10-11T14:19:22Z 2017-10-11T15:56:19Z Setup snap "pi2-kernel" aliases
Hold 2017-10-11T14:19:22Z 2017-10-11T15:56:19Z Run post-refresh hook of "pi2-kernel" snap if present
Hold 2017-10-11T14:19:22Z 2017-10-11T15:56:19Z Start snap "pi2-kernel" (43) services
Hold 2017-10-11T14:19:22Z 2017-10-11T15:56:19Z Clean up "pi2-kernel" (43) install
Hold 2017-10-11T14:19:22Z 2017-10-11T15:56:19Z Run configure hook of "pi2-kernel" snap if present

snap info pi2-kernel
---------------------------------------------
name: pi2-kernel
summary: The canonical raspi2 armhf kernel
publisher: canonical
contact: <email address hidden>
description: |
  The Ubuntu linux-raspi2 kernel package as a snap
type: kernel
snap-id: m0rvvnmRdDgexonz1XSP9a9U4K7vUbiy
tracking: edge
installed: 4.4.0.1074.74 (42) 105MB kernel
refreshed: 2017-09-18 14:10:10 +0000 UTC
channels:
  stable: 4.4.0-1030-3 (22) 89MB -
  candidate: 4.4.0.1075.75 (43) 105MB -
  beta: 4.4.0.1075.75 (43) 105MB -
  edge: 4.4.0.1075.75 (43) 105MB -

description: updated
Revision history for this message
Zygmunt Krynicki (zyga) wrote : Re: [Bug 1722882] Re: Ubuntu Core 16: Error: cannot refresh "pi2-kernel": snap "pi2-kernel" has changes in progress
Download full text (5.3 KiB)

You can use "snap abort" to abort any individual change.

Best regards
ZK

On Thu, Oct 12, 2017 at 3:40 AM, gi-minni <email address hidden> wrote:
> ** Description changed:
>
> - Question: How can I remove pending tasks with state error and retry the
> + Question: How can I remove pending tasks with state undo and retry the
> failed refresh operation again?
>
> - Action:
> - The trial to snap refresh pi2-kernel ended without completion, after a reboot I tried
> + Action:
> + The trial to snap refresh pi2-kernel ended without completion, after a reboot I tried
> snap refresh pi2-kernel, got response ""error: cannot refresh "pi2-kernel": snap "pi2-kernel" has changes in progress"
>
> snap version
> -------------------------
> snap 2.28.3
> snapd 2.28.3
> series 16
> kernel 4.4.0-1074-raspi2
>
> snap list
> ---------------------------------------------------
> Name Version Rev Developer Notes
> classic 16.04 26 canonical devmode
> core 16-2.28.3 3190 canonical core
> docker 17.06.2-ce 181 docker-inc devmode
> pi2-kernel 4.4.0.1074.74 42 canonical kernel
> pi3 16.04-0.5 22 canonical gadget
>
> snap changes
> ----------------------------------------------------------------------------------------------
> ID Status Spawn Ready Summary
> 217 Done 2017-10-09T18:22:50Z 2017-10-10T19:14:19Z Auto-refresh snap "core"
> 219 Done 2017-10-10T19:19:17Z 2017-10-10T19:32:54Z Auto-refresh snap "core"
> 220 Done 2017-10-10T21:29:26Z 2017-10-10T21:29:26Z Refresh all snaps: no updates
> 221 Error 2017-10-11T07:42:45Z 2017-10-11T15:57:50Z Auto-refresh snap "core"
> 222 Undo 2017-10-11T14:19:22Z - Refresh snap "pi2-kernel"
> 223 Done 2017-10-11T15:24:35Z 2017-10-11T15:24:35Z Refresh all snaps: no updates
> 224 Done 2017-10-11T15:57:51Z 2017-10-11T16:11:37Z Auto-refresh snap "core"
> 225 Done 2017-10-11T17:16:05Z 2017-10-11T17:16:05Z Refresh all snaps: no updates
> 226 Done 2017-10-11T17:28:42Z 2017-10-11T17:28:42Z Switch "pi2-kernel" snap to edge
> 227 Done 2017-10-11T18:06:12Z 2017-10-11T18:06:12Z Refresh all snaps: no updates
>
> snap tasks 222
> ----------------------------------------------------------------------------------------------
> Status Spawn Ready Summary
> Undo 2017-10-11T14:19:22Z 2017-10-11T14:19:22Z Ensure prerequisites for "pi2-kernel" are available
> Undone 2017-10-11T14:19:22Z 2017-10-11T15:57:44Z Download snap "pi2-kernel" (43) from channel "edge"
> Done 2017-10-11T14:19:22Z 2017-10-11T17:41:42Z Fetch and check assertions for snap "pi2-kernel" (43)
> Undone 2017-10-11T14:19:22Z 2017-10-11T15:57:47Z Mount snap "pi2-kernel" (43)
> Undone 2017-10-11T14:19:22Z 2017-10-11T15:57:44Z Stop snap "pi2-kernel" services
> Undone 2017-10-11T14:19:22Z 2017-10-11T15:57:44Z Remove aliases for snap "pi2-kernel"
> Undone 2017-10-11T14:19:22Z 2017-10-11T15:57:44Z Make current revision for snap "pi2-kernel" unavailable
...

Read more...

Revision history for this message
Giovanni Minniti (giminni) wrote :

@zyga

answer:
I tried snap abort 222, I got no response back and nothing happens.

resolution:
-----------------------------------------------------
Today after re-executing snap list, I saw the update to edge: 4.4.0.1075.75 (43) was successful.

state: snap list
-----------------------------------------------------
Name Version Rev Developer Notes
classic 16.04 26 canonical devmode
core 16-2.28.5 3220 canonical core
docker 17.06.2-ce 181 docker-inc devmode
pi2-kernel 4.4.0.1075.75 43 canonical kernel
pi3 16.04-0.5 22 canonical gadget

question
-----------------------------------------------------
Can you please tell me where I can read how kernel, core works with auto-refresh, refresh, remove
system a/b and can I adapt uboot for pxeboot

action:
-----------------------------------------------------
Close this bug

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

Thanks for your bugreport. From reading your last reply it looks like the problem fixed itself and you ask for the bug to be closed. I'm doing that now.

As for the question about adding pxeboot> please open a topic on forum.snapcraft.io - there are more people participating in this forum and it is more suitable for questions like this. Thank you.

Changed in snappy:
status: New → Fix Released
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.