None of snaps starts after upgrade to 24.04

Every snap I am trying to run after upgrading to Ubuntu 24.04 (from 23.10) hangs forever. Using strace I can see that it tries to open nonexistent bpf file:

access("/var/lib/snapd/seccomp/bpf//snap.hello-world.hello-world.bin2", F_OK) = -1 ENOENT (No such file or directory)
clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=1, tv_nsec=0}, 0x7ffeed7ced50) = 0
access("/var/lib/snapd/seccomp/bpf//snap.hello-world.hello-world.bin2", F_OK) = -1 ENOENT (No such file or directory)
clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=1, tv_nsec=0}, 0x7ffeed7ced50) = 0
access("/var/lib/snapd/seccomp/bpf//snap.hello-world.hello-world.bin2", F_OK) = -1 ENOENT (No such file or directory)
clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=1, tv_nsec=0}, 0x7ffeed7ced50) = 0
access("/var/lib/snapd/seccomp/bpf//snap.hello-world.hello-world.bin2", F_OK) = -1 ENOENT (No such file or directory)
clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=1, tv_nsec=0}, 0x7ffeed7ced50) = 0
access("/var/lib/snapd/seccomp/bpf//snap.hello-world.hello-world.bin2", F_OK) = -1 ENOENT (No such file or directory)
clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=1, tv_nsec=0}, 0x7ffeed7ced50) = 0
access("/var/lib/snapd/seccomp/bpf//snap.hello-world.hello-world.bin2", F_OK) = -1 ENOENT (No such file or directory)

The contents of /var/lib/snapd/seccomp/bpf:

global.bin                    snap.firefox.hook.configure.bin                      snap.firefox.hook.post-refresh.src  snap.hello-world.sh.bin
snap.core.hook.configure.bin  snap.firefox.hook.configure.src                      snap.hello-world.env.bin            snap.hello-world.sh.src
snap.core.hook.configure.src  snap.firefox.hook.connect-plug-host-hunspell.bin     snap.hello-world.env.src            snap.ripgrep.rg.bin
snap.firefox.firefox.bin      snap.firefox.hook.connect-plug-host-hunspell.src     snap.hello-world.evil.bin           snap.ripgrep.rg.src
snap.firefox.firefox.src      snap.firefox.hook.disconnect-plug-host-hunspell.bin  snap.hello-world.evil.src
snap.firefox.geckodriver.bin  snap.firefox.hook.disconnect-plug-host-hunspell.src  snap.hello-world.hello-world.bin
snap.firefox.geckodriver.src  snap.firefox.hook.post-refresh.bin                   snap.hello-world.hello-world.src

Any ideas?

Can you run systemctl status snapd.service and post the output? is the snapd.service reported as active?

Here you go

XXX@XXX:~$ systemctl status snapd.service 
● snapd.service - Snap Daemon
     Loaded: loaded (/usr/lib/systemd/system/snapd.service; enabled; preset: enabled)
    Drop-In: /usr/lib/systemd/system/snapd.service.d
             └─no-reexec.conf
     Active: active (running) since Sat 2024-06-08 13:18:12 PDT; 3 days ago
TriggeredBy: ● snapd.socket
   Main PID: 2815 (snapd)
      Tasks: 32 (limit: 153442)
     Memory: 166.7M (peak: 201.0M)
        CPU: 10.708s
     CGroup: /system.slice/snapd.service
             └─2815 /usr/lib/snapd/snapd

Jun 10 15:18:48 riz systemd[1]: snapd.service: Got notification message from PID 56265, but reception only permitted for main PID 2815
Jun 10 15:19:05 riz systemd[1]: snapd.service: Got notification message from PID 56307, but reception only permitted for main PID 2815
Jun 10 15:54:58 riz systemd[1]: snapd.service: Got notification message from PID 56572, but reception only permitted for main PID 2815
Jun 10 15:55:12 riz systemd[1]: snapd.service: Got notification message from PID 56621, but reception only permitted for main PID 2815
Jun 10 15:55:33 riz systemd[1]: snapd.service: Got notification message from PID 56653, but reception only permitted for main PID 2815
Jun 10 17:48:13 riz snapd[2815]: storehelpers.go:923: cannot refresh: snap has no updates available: "bare", "core", "core18", "core22", "firefox", "gnome-42-2204", "gtk-common-themes", "hello>
Jun 10 23:28:13 riz snapd[2815]: storehelpers.go:923: cannot refresh: snap has no updates available: "bare", "core", "core18", "core22", "firefox", "gnome-42-2204", "gtk-common-themes", "hello>
Jun 11 01:48:13 riz snapd[2815]: storehelpers.go:923: cannot refresh: snap has no updates available: "bare", "core", "core18", "core22", "firefox", "gnome-42-2204", "gtk-common-themes", "hello>
Jun 11 08:33:13 riz snapd[2815]: storehelpers.go:923: cannot refresh: snap has no updates available: "bare", "core", "core18", "core22", "firefox", "gnome-42-2204", "gtk-common-themes", "hello>
Jun 11 12:03:13 riz snapd[2815]: storehelpers.go:923: cannot refresh: snap has no updates available: "bare", "core", "core18", "core22", "firefox", "gnome-42-2204", "gtk-common-themes", "hello>

Apparently this just got fixed with today’s snapd update (snapd_2.63+24.04_amd64.deb). All good now