Raspberry Pi 2: edge core snap seems broken


#1

I’m currently running the edge rpi2 image (since that’s the only place GPIO works), and I’m trying to connect an interface. It won’t let me, saying core has “changes in progress”:

kyrofa@localhost:~$ snap changes
ID   Status  Spawn                 Ready                 Summary
78   Do      2017-12-04T20:46:22Z  -                     Refresh snap "core"
79   Done    2017-12-05T23:54:37Z  2017-12-05T23:54:46Z  Remove "my-snap-name" snap
80   Done    2017-12-05T23:54:51Z  2017-12-05T23:54:51Z  Refresh all snaps: no updates
81   Done    2017-12-05T23:55:06Z  2017-12-05T23:55:21Z  Install "my-snap-name" snap from file "my-snap-name_0.1_armhf.snap"

kyrofa@localhost:~$ snap change 78
Status  Spawn                 Ready                 Summary
Done    2017-12-04T20:46:22Z  2017-12-04T20:46:26Z  Ensure prerequisites for "core" are available
Done    2017-12-04T20:46:22Z  2017-12-04T20:47:47Z  Download snap "core" (3636) from channel "edge"
Done    2017-12-04T20:46:22Z  2017-12-04T20:48:17Z  Fetch and check assertions for snap "core" (3636)
Done    2017-12-04T20:46:22Z  2017-12-04T20:48:21Z  Mount snap "core" (3636)
Done    2017-12-04T20:46:22Z  2017-12-04T20:48:22Z  Stop snap "core" services
Done    2017-12-04T20:46:22Z  2017-12-04T20:48:23Z  Remove aliases for snap "core"
Done    2017-12-04T20:46:22Z  2017-12-04T20:48:24Z  Make current revision for snap "core" unavailable
Done    2017-12-04T20:46:22Z  2017-12-04T20:48:25Z  Copy snap "core" data
Done    2017-12-04T20:46:22Z  2017-12-04T20:48:28Z  Setup snap "core" (3636) security profiles
Done    2017-12-04T20:46:22Z  2017-12-04T20:48:29Z  Make snap "core" (3636) available to the system
Done    2017-12-04T20:46:22Z  2017-11-28T08:41:53Z  Setup snap "core" (3636) security profiles (phase 2)
Done    2017-12-04T20:46:22Z  2017-11-28T08:41:54Z  Set automatic aliases for snap "core"
Done    2017-12-04T20:46:22Z  2017-11-28T08:41:55Z  Setup snap "core" aliases
Done    2017-12-04T20:46:22Z  2017-11-28T08:41:56Z  Run post-refresh hook of "core" snap if present
Done    2017-12-04T20:46:22Z  2017-11-28T08:41:56Z  Start snap "core" (3636) services
Done    2017-12-04T20:46:22Z  2017-11-28T08:41:57Z  Clean up "core" (3636) install
Do      2017-12-04T20:46:22Z  -                     Run configuration of "core" snap

......................................................................
Make snap "core" (3636) available to the system

2017-12-04T20:48:29Z INFO Requested system restart.

......................................................................
Setup snap "core" (3636) security profiles (phase 2)

2017-12-04T20:48:29Z INFO Waiting for restart...

kyrofa@localhost:~$ snap list core
Name  Version                     Rev   Developer  Notes
core  16-2.30~rc1+git467.c2f9631  3636  canonical  core

Something seems wrong with the configure hook, is that right? Also, preventing me from connecting interfaces while core is refreshing seems silly, no?


#2

Huh. I aborted that change, but I can’t seem to be able to refresh to stable either:

kyrofa@localhost:~$ snap change 82
Status  Spawn                 Ready                 Summary
Done    2017-12-06T00:04:15Z  2017-12-06T00:04:15Z  Ensure prerequisites for "core" are available
Done    2017-12-06T00:04:15Z  2017-12-06T00:05:29Z  Download snap "core" (3443) from channel "stable"
Done    2017-12-06T00:04:15Z  2017-12-06T00:05:59Z  Fetch and check assertions for snap "core" (3443)
Done    2017-12-06T00:04:15Z  2017-12-06T00:06:02Z  Mount snap "core" (3443)
Done    2017-12-06T00:04:15Z  2017-12-06T00:06:02Z  Run pre-refresh hook of "core" snap if present
Done    2017-12-06T00:04:15Z  2017-12-06T00:06:02Z  Stop snap "core" services
Done    2017-12-06T00:04:15Z  2017-12-06T00:06:03Z  Remove aliases for snap "core"
Done    2017-12-06T00:04:15Z  2017-12-06T00:06:03Z  Make current revision for snap "core" unavailable
Done    2017-12-06T00:04:15Z  2017-12-06T00:06:03Z  Copy snap "core" data
Done    2017-12-06T00:04:15Z  2017-12-06T00:06:05Z  Setup snap "core" (3443) security profiles
Done    2017-12-06T00:04:15Z  2017-12-06T00:06:05Z  Make snap "core" (3443) available to the system
Doing   2017-12-06T00:04:15Z  -                     Setup snap "core" (3443) security profiles (phase 2)
Do      2017-12-06T00:04:15Z  -                     Set automatic aliases for snap "core"
Do      2017-12-06T00:04:15Z  -                     Setup snap "core" aliases
Do      2017-12-06T00:04:15Z  -                     Run post-refresh hook of "core" snap if present
Do      2017-12-06T00:04:15Z  -                     Start snap "core" (3443) services
Do      2017-12-06T00:04:15Z  -                     Clean up "core" (3443) install
Do      2017-12-06T00:04:15Z  -                     Run configure hook of "core" snap if present

......................................................................
Make snap "core" (3443) available to the system

2017-12-06T00:06:05Z INFO Requested system restart.

......................................................................
Setup snap "core" (3443) security profiles (phase 2)

2017-12-06T00:06:06Z INFO Waiting for restart...

#3

I ended up rebooting after a few minutes and then the update (to stable) went the rest of the way through. How odd.


#4

There was a bug with core in edge where you had to “snap abort” the “Doing” bit (learned about it on IRC yesterday) … i assume your reboot caused the same as a “snap abort” here …

The newer core snap should have this behaviour fixed now i was told.