Snapd caching seems a bit agressive

I’m trying to clean up some of my ‘hello world’ snaps by closing the channel they’re in. Unfortunately, it looks like I can’t seem to close them. Looking at the store, it does actually close the channel for the snap, but snap info doesn’t seem to reflect that.

alan@hal:~$ snap find popey
Name                Version  Publisher  Notes  Summary
hello-world2-popey  0.1      popey      -      Just testing
hello-world-popey   0.1      popey      -      Just testing

Discovered I have a couple of ‘hello world’ snaps.

alan@hal:~$ snap info hello-world-popey
name:      hello-world-popey
summary:   Just testing
publisher: Alan Pope 🐧 (popey)
license:   Proprietary
description: |
  What more can I say?
snap-id: cK6rEUBahN1NiL5EjamrYEfUIi6k9fEN
channels:
  stable:    –
  candidate: –
  beta:      –
  edge:      0.1 (1) 4kB -

Ok, it’s in the edge channel, lets make sure I’m logged in as me in snapcraft and then close the channel.

alan@hal:~$ snapcraft whoami
email:        alan@popey.com
developer-id: ekRMaarzOfN1Vu3sDY0Bt1aGnM8Cd4kG
alan@hal:~$ snapcraft close hello-world-popey edge
Track    Arch    Channel    Version    Revision

The edge channel is now closed.

image

alan@hal:~$ snap info hello-world-popey
name:      hello-world-popey
summary:   Just testing
publisher: Alan Pope 🐧 (popey)
license:   Proprietary
description: |
  What more can I say?
snap-id: cK6rEUBahN1NiL5EjamrYEfUIi6k9fEN
channels:
  stable:    –
  candidate: –
  beta:      –
  edge:      0.1 (1) 4kB -

It does look like it worked though?!?!?!

I’m tempted to blindly say this is a store issue and not a snapd issue, but I’m going to first ask that you look at the output of http https://api.snapcraft.io/v2/snaps/info/hello-world-popey Snap-Device-Series:16.

1 Like

I’m looking at that. What am I looking for when I’m looking at that?

If you closed a channel, you’re looking at it not being in the channel-map. This is what snapd fills out the channels list in snap info with.

Probably a CDN issue.

the CDN is only used for downloads

That answers that then. FWIW, I did see the channel open querying the public API for the snap and from just right now

So very much not a snapd issue at least.

@sparkiegeek ^ store issue?

Could you post the output that @chipaca asked for, showing the JSON response from the store after you close a channel?

Scratch that, just found https://bugs.launchpad.net/snapstore/+bug/1804507 which I think is the issue you’re hitting

1 Like