Hello,
I noticed with my iMX8 device, the ‘core’ upgrade was failing, turns out I did not update the uboot.env/bootscript file to have the snap try capability.
I then updated my gadget-snap, (installing manually for now), updating the boot.scr file with the new one, with the snap try capabilities.
But what I don’t understand is, is after the core snap has been updated, and device rebooted, to boot with the new core, it boots, but fails at the connect plugs and slots change, then rolling back the changes.
Mar 04 11:18:02 imx8 snapd[1313]: stateengine.go:149: state ensure error: devicemgr: snap "core" has "refresh-snap" change in progress
Mar 04 11:18:02 imx8 snapd[1313]: taskrunner.go:271: [change 21 "Automatically connect eligible plugs and slots of snap \"core\"" task] failed: cannot finish core installation, there was a rollback across reboot
Mar 04 11:18:02 imx8 snapd[1313]: stateengine.go:149: state ensure error: devicemgr: snap "core" has "refresh-snap" change in progress
But, as far as I know and can see, the device booted with the latest core version 12726, from 11996. (after core update)
I added extra logging in my bootscript, to ensure that the correct core version is booted, before and after core upgrade. (it does)
admin@imx8:~$ snap change 21
Status Spawn Ready Summary
Undo today at 11:15 UTC today at 11:15 UTC Ensure prerequisites for "core" are available
Undo today at 11:15 UTC today at 11:15 UTC Download snap "core" (12726) from channel "latest/stable"
Undo today at 11:15 UTC today at 11:15 UTC Fetch and check assertions for snap "core" (12726)
Undo today at 11:15 UTC today at 11:15 UTC Mount snap "core" (12726)
Undo today at 11:15 UTC today at 11:15 UTC Run pre-refresh hook of "core" snap if present
Undo today at 11:15 UTC today at 11:15 UTC Stop snap "core" services
Undone today at 11:15 UTC today at 11:18 UTC Remove aliases for snap "core"
Undone today at 11:15 UTC today at 11:18 UTC Make current revision for snap "core" unavailable
Undone today at 11:15 UTC today at 11:18 UTC Copy snap "core" data
Undone today at 11:15 UTC today at 11:18 UTC Setup snap "core" (12726) security profiles
Undone today at 11:15 UTC today at 11:18 UTC Make snap "core" (12726) available to the system
Error today at 11:15 UTC today at 11:18 UTC Automatically connect eligible plugs and slots of snap "core"
Hold today at 11:15 UTC today at 11:18 UTC Set automatic aliases for snap "core"
Hold today at 11:15 UTC today at 11:18 UTC Setup snap "core" aliases
Hold today at 11:15 UTC today at 11:18 UTC Run post-refresh hook of "core" snap if present
Hold today at 11:15 UTC today at 11:18 UTC Start snap "core" (12726) services
Hold today at 11:15 UTC today at 11:18 UTC Clean up "core" (12726) install
Hold today at 11:15 UTC today at 11:18 UTC Run configure hook of "core" snap if present
Hold today at 11:15 UTC today at 11:18 UTC Run health check of "core" snap
Doing today at 11:15 UTC - Handling re-refresh of "core" as needed
admin@imx8:~$ snap list
Name Version Rev Tracking Publisher Notes
core 16-2.54.3 12726 latest/stable canonical✓ core
core18 20211028 2252 latest/stable canonical✓ base
my-test-imx8-gadget 16-2 x2 - - gadget
--snip---
Can anyone shed some light on this, how can I get more details from snapd?
I know that core/core16 is very old, but this what I have working so far, and would really appreciate some input. Thanks.
EDIT: Updated terrible formatting, and moved from snapd to device topic group