I have build a snap and it’s on the store (privately available), on the board when I run “snap refresh” my snap is getting updated. However it doesn’t happen automatically as I expected it.
If I push a new version of my snap to the store, the board doesn’t update it automatically but the board is rebooting on a daily basis (without updating my snap).
So my question is; is it safe to run this image and if so how can I troubleshoot a snap not being updated ?
no, refreshes should happen a few times during the day IIRC (so while not “immediately” it should definitely update within a day) … reboots do not really matter though.
I don’t know what’s causing the reboot, I’d think the refresh is causing the reboot, is this possible ?
Here’s the requested output:
~$ snap version
snap 2.38.1
snapd 2.38.1
series 16
kernel 4.9-orangepi-zero
~$ snap changes
ID Status Spawn Ready Summary
83 Error yesterday at 16:24 UTC yesterday at 16:24 UTC Install "orangepi-zero-ogra" snap from "edge" channel
84 Error yesterday at 16:25 UTC yesterday at 16:25 UTC Install "orangepi-zero-ogra" snap from "edge" channel
$ snap refresh --time
timer: 00:00~24:00/4
last: yesterday at 13:06 UTC
next: yesterday at 22:24 UTC
~$ snap refresh --list
Name Version Rev Publisher Notes
voilaiot 0.9 37 benny007 private
oh, wow … i was not aware they are using my gadget snap in their image, i created this one for my developer images at
feel free to try the orangepi image from there instead (it also uses a kernel based on the generic 4.15 Ubuntu tree), note though that it is set up to be completely configured via a single USB connection … (attach the USB cable to your PC and to the pi, wait until dmesg shows you a ttyACM device coming up on the PC, attach via minicom or screen to that device and configure the system)
Thank you Ogra, I’ve installed your image and it’s booting (faster and the wlan iface is working, really nice), I have small issue which I think I can fix myself (hopefully) but the biggest change I can see, is in the “snap interfaces” where I used to have the following interfaces available:
the interfaces are a matter of definition in the gadget … i have updated the gadget snap to include the interfaces above … the next refresh should bring them to you …
if you have any issues please let me know, the images are called developer images for a reason and live from the user feedback i get (i dont use them a lot which is for example the reason i didnt add gpio interfaces yet)
one other thing to note is that you probably want to run:
snap refresh core --stable
so you dont get the core snap from daily builds of the snapd master tree (and dont get daily reboots due to that)
EDIT: one other thing … while i added the i2c interface definitions, there seem to be no i2c interfaces enabled in my kernel yet, that will take a bit of work … so currently dont use i2c, there is nothing behind the interface.
this is indeed very weird, does /home/benny007/voilaiot.cfg have proper permissions ? (alternatively you could just let your app use “$SNAP_USER_DATA” which points to /home/benny007/snap/voilaiot/current by default … your snap will definitely have read/write permission there … (as long as you executed the app as benny07 at least … snap daemons are always running as root under confinement and fall under slightly different rules))