Snap refresh pc-kernel files with unexpected HTTP response code 404

I’m having issues updating Canonical snaps, especially pc-kernel, core18 and docker:

snap list
Name                      Version         Rev    Tracking       Publisher     Notes
core18                    20210128        1988   latest/stable  canonical✓    base
docker                    19.03.13        804    latest/edge    canonical✓    -
pc-kernel                 4.15.0-135.139  711    18/stable      canonical✓    kernel
snapd                     2.49.1          11402  latest/stable  canonical✓    snapd

When I try to refresh I get the following error messages:

snap refresh
error: cannot perform the following tasks:
- Download snap "pc-kernel" (733) from channel "18/stable" (received an unexpected http response code (404) when trying to download https://api.snapcraft.io/api/v1/snaps/download/pYVQrBcKmBa0mZ4CCN7ExT6jH8rY1hza_733.snap)
- Download snap "docker" (852) from channel "latest/edge" (received an unexpected http response code (404) when trying to download https://api.snapcraft.io/api/v1/snaps/download/sLCsFAO8PKM5Z0fAKNszUOX0YASjQfeZ_852.snap)

Checked if name resolution is working and nothing stands out:

systemd-resolve api.snapcraft.io
api.snapcraft.io: 91.189.92.20
                  91.189.92.39
                  91.189.92.40
                  91.189.92.38
                  91.189.92.41
                  91.189.92.19

-- Information acquired via protocol DNS in 76.7ms.
-- Data is authenticated: no

I’m not logged in with snap to an account

snap logout
error: not logged in

The systems kernel is 4.15 on x86_64 architecture

uname -a
Linux mybox 4.15.0-135-generic #139-Ubuntu SMP Mon Jan 18 17:38:24 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Any hints appreciated

1 Like

looks like https://status.snapcraft.io/ agrees that there is a problem currently …

2 Likes

It seems ubuntu-image runs snap prepare-image x.assert /tmp/xxx and failed with 404. I also gave the command snap download a try and it can download the pc-kernel snap file.