Snapd has failed

I installed snap a few days ago and it was running. Now I have hit problems and discovered that it has failed, no idea what to do. Running on Raspberry Pi OS just updated.

pi@pi-test:~ $ systemctl status snapd
ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
● snapd.service - Snappy daemon
   Loaded: loaded (/lib/systemd/system/snapd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2020-12-03 15:39:25 GMT; 13min ago
 Main PID: 1018 (code=exited, status=1/FAILURE)

Dec 03 15:39:25 pi-test systemd[1]: snapd.service: Failed with result 'exit-code'.
Dec 03 15:39:25 pi-test systemd[1]: Failed to start Snappy daemon.
Dec 03 15:39:25 pi-test systemd[1]: snapd.service: Service RestartSec=100ms expired, scheduling restart.
Dec 03 15:39:25 pi-test systemd[1]: snapd.service: Scheduled restart job, restart counter is at 9.
Dec 03 15:39:25 pi-test systemd[1]: Stopped Snappy daemon.
Dec 03 15:39:25 pi-test systemd[1]: snapd.service: Start request repeated too quickly.
Dec 03 15:39:25 pi-test systemd[1]: snapd.service: Failed with result 'exit-code'.
Dec 03 15:39:25 pi-test systemd[1]: Failed to start Snappy daemon.
Dec 03 15:39:25 pi-test systemd[1]: snapd.service: Triggering OnFailure= dependencies.
Dec 03 15:39:25 pi-test systemd[1]: snapd.service: Failed to enqueue OnFailure= job, ignoring: Unit snapd.failure.service not found.
pi@pi-test:~ $

What is the output of these commands:

snap version
journalctl --no-pager -u snapd

Here is the output, snap version took about 2 minutes to complete.

pi@pi-test:~ $ snap version
ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
snap    2.48
snapd   unavailable
series  -
pi@pi-test:~ $ journalctl --no-pager -u snapd
ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
-- Logs begin at Thu 2020-12-03 15:38:59 GMT, end at Thu 2020-12-03 21:39:15 GMT. --
Dec 03 15:39:03 pi-test systemd[1]: Starting Snappy daemon...
Dec 03 15:39:03 pi-test snapd[386]: ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Dec 03 15:39:05 pi-test snapd[386]: AppArmor status: apparmor not enabled
Dec 03 15:39:05 pi-test snapd[386]: ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Dec 03 15:39:08 pi-test snapd[386]: AppArmor status: apparmor not enabled
Dec 03 15:39:09 pi-test snapd[386]: daemon.go:347: started snapd/2.48 (series 16; classic; devmode) raspbian/10 (armhf) linux/5.4.72-v7.
Dec 03 15:39:09 pi-test snapd[386]: daemon.go:440: adjusting startup timeout by 45s (pessimistic estimate of 30s plus 5s per snap)
Dec 03 15:39:09 pi-test snapd[386]: cannot run daemon: state startup errors: [cannot obtain snap-seccomp version information: invalid format of version-info: "ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.\n0528cb62afe0b3d7be81b1ea0b9e60361ec8fd80 2.4.3 9b218ef9a4e508dd8a7f848095cb8875d10a4bf28428ad81fdc3f8dac89108f7 bpf-actlog"]
Dec 03 15:39:09 pi-test systemd[1]: snapd.service: Main process exited, code=exited, status=1/FAILURE
Dec 03 15:39:09 pi-test systemd[1]: snapd.service: Failed with result 'exit-code'.
Dec 03 15:39:09 pi-test systemd[1]: Failed to start Snappy daemon.
Dec 03 15:39:09 pi-test systemd[1]: snapd.service: Service RestartSec=100ms expired, scheduling restart.
Dec 03 15:39:09 pi-test systemd[1]: snapd.service: Scheduled restart job, restart counter is at 1.
Dec 03 15:39:09 pi-test systemd[1]: Stopped Snappy daemon.
Dec 03 15:39:10 pi-test systemd[1]: Starting Snappy daemon...
Dec 03 15:39:10 pi-test snapd[590]: ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Dec 03 15:39:10 pi-test snapd[590]: AppArmor status: apparmor not enabled
Dec 03 15:39:10 pi-test snapd[590]: ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Dec 03 15:39:10 pi-test snapd[590]: AppArmor status: apparmor not enabled
Dec 03 15:39:10 pi-test snapd[590]: daemon.go:347: started snapd/2.48 (series 16; classic; devmode) raspbian/10 (armhf) linux/5.4.72-v7.
Dec 03 15:39:10 pi-test snapd[590]: daemon.go:440: adjusting startup timeout by 45s (pessimistic estimate of 30s plus 5s per snap)
Dec 03 15:39:10 pi-test snapd[590]: cannot run daemon: state startup errors: [cannot obtain snap-seccomp version information: invalid format of version-info: "ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.\n0528cb62afe0b3d7be81b1ea0b9e60361ec8fd80 2.4.3 9b218ef9a4e508dd8a7f848095cb8875d10a4bf28428ad81fdc3f8dac89108f7 bpf-actlog"]
Dec 03 15:39:10 pi-test systemd[1]: snapd.service: Main process exited, code=exited, status=1/FAILURE
Dec 03 15:39:10 pi-test systemd[1]: snapd.service: Failed with result 'exit-code'.
Dec 03 15:39:10 pi-test systemd[1]: Failed to start Snappy daemon.
Dec 03 15:39:11 pi-test systemd[1]: snapd.service: Service RestartSec=100ms expired, scheduling restart.
Dec 03 15:39:11 pi-test systemd[1]: snapd.service: Scheduled restart job, restart counter is at 2.
Dec 03 15:39:11 pi-test systemd[1]: Stopped Snappy daemon.
Dec 03 15:39:11 pi-test systemd[1]: Starting Snappy daemon...
Dec 03 15:39:11 pi-test snapd[636]: ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Dec 03 15:39:11 pi-test snapd[636]: AppArmor status: apparmor not enabled
Dec 03 15:39:11 pi-test snapd[636]: ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Dec 03 15:39:11 pi-test snapd[636]: AppArmor status: apparmor not enabled
Dec 03 15:39:11 pi-test snapd[636]: daemon.go:347: started snapd/2.48 (series 16; classic; devmode) raspbian/10 (armhf) linux/5.4.72-v7.
Dec 03 15:39:11 pi-test snapd[636]: daemon.go:440: adjusting startup timeout by 45s (pessimistic estimate of 30s plus 5s per snap)
Dec 03 15:39:11 pi-test snapd[636]: cannot run daemon: state startup errors: [cannot obtain snap-seccomp version information: invalid format of version-info: "ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.\n0528cb62afe0b3d7be81b1ea0b9e60361ec8fd80 2.4.3 9b218ef9a4e508dd8a7f848095cb8875d10a4bf28428ad81fdc3f8dac89108f7 bpf-actlog"]
Dec 03 15:39:11 pi-test systemd[1]: snapd.service: Main process exited, code=exited, status=1/FAILURE
Dec 03 15:39:11 pi-test systemd[1]: snapd.service: Failed with result 'exit-code'.
Dec 03 15:39:11 pi-test systemd[1]: Failed to start Snappy daemon.
Dec 03 15:39:12 pi-test systemd[1]: snapd.service: Service RestartSec=100ms expired, scheduling restart.
Dec 03 15:39:12 pi-test systemd[1]: snapd.service: Scheduled restart job, restart counter is at 3.
Dec 03 15:39:12 pi-test systemd[1]: Stopped Snappy daemon.
Dec 03 15:39:12 pi-test systemd[1]: Starting Snappy daemon...
Dec 03 15:39:12 pi-test snapd[682]: ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Dec 03 15:39:12 pi-test snapd[682]: AppArmor status: apparmor not enabled
Dec 03 15:39:12 pi-test snapd[682]: ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Dec 03 15:39:12 pi-test snapd[682]: AppArmor status: apparmor not enabled
Dec 03 15:39:14 pi-test snapd[682]: daemon.go:347: started snapd/2.48 (series 16; classic; devmode) raspbian/10 (armhf) linux/5.4.72-v7.
Dec 03 15:39:15 pi-test snapd[682]: daemon.go:440: adjusting startup timeout by 45s (pessimistic estimate of 30s plus 5s per snap)
Dec 03 15:39:15 pi-test snapd[682]: cannot run daemon: state startup errors: [cannot obtain snap-seccomp version information: invalid format of version-info: "ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.\n0528cb62afe0b3d7be81b1ea0b9e60361ec8fd80 2.4.3 9b218ef9a4e508dd8a7f848095cb8875d10a4bf28428ad81fdc3f8dac89108f7 bpf-actlog"]
Dec 03 15:39:15 pi-test systemd[1]: snapd.service: Main process exited, code=exited, status=1/FAILURE
Dec 03 15:39:15 pi-test systemd[1]: snapd.service: Failed with result 'exit-code'.
Dec 03 15:39:15 pi-test systemd[1]: Failed to start Snappy daemon.
Dec 03 15:39:15 pi-test systemd[1]: snapd.service: Service RestartSec=100ms expired, scheduling restart.
Dec 03 15:39:15 pi-test systemd[1]: snapd.service: Scheduled restart job, restart counter is at 4.
Dec 03 15:39:15 pi-test systemd[1]: Stopped Snappy daemon.
Dec 03 15:39:15 pi-test systemd[1]: Starting Snappy daemon...
Dec 03 15:39:15 pi-test snapd[777]: ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Dec 03 15:39:15 pi-test snapd[777]: AppArmor status: apparmor not enabled
Dec 03 15:39:15 pi-test snapd[777]: ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Dec 03 15:39:15 pi-test snapd[777]: AppArmor status: apparmor not enabled
Dec 03 15:39:18 pi-test snapd[777]: daemon.go:347: started snapd/2.48 (series 16; classic; devmode) raspbian/10 (armhf) linux/5.4.72-v7.
Dec 03 15:39:18 pi-test snapd[777]: daemon.go:440: adjusting startup timeout by 45s (pessimistic estimate of 30s plus 5s per snap)
Dec 03 15:39:18 pi-test snapd[777]: cannot run daemon: state startup errors: [cannot obtain snap-seccomp version information: invalid format of version-info: "ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.\n0528cb62afe0b3d7be81b1ea0b9e60361ec8fd80 2.4.3 9b218ef9a4e508dd8a7f848095cb8875d10a4bf28428ad81fdc3f8dac89108f7 bpf-actlog"]
Dec 03 15:39:18 pi-test systemd[1]: snapd.service: Main process exited, code=exited, status=1/FAILURE
Dec 03 15:39:18 pi-test systemd[1]: snapd.service: Failed with result 'exit-code'.
Dec 03 15:39:18 pi-test systemd[1]: Failed to start Snappy daemon.
Dec 03 15:39:19 pi-test systemd[1]: snapd.service: Service RestartSec=100ms expired, scheduling restart.
Dec 03 15:39:19 pi-test systemd[1]: snapd.service: Scheduled restart job, restart counter is at 5.
Dec 03 15:39:19 pi-test systemd[1]: Stopped Snappy daemon.
Dec 03 15:39:19 pi-test systemd[1]: Starting Snappy daemon...
Dec 03 15:39:19 pi-test snapd[837]: ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Dec 03 15:39:19 pi-test snapd[837]: AppArmor status: apparmor not enabled
Dec 03 15:39:19 pi-test snapd[837]: ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Dec 03 15:39:19 pi-test snapd[837]: AppArmor status: apparmor not enabled
Dec 03 15:39:19 pi-test snapd[837]: daemon.go:347: started snapd/2.48 (series 16; classic; devmode) raspbian/10 (armhf) linux/5.4.72-v7.
Dec 03 15:39:19 pi-test snapd[837]: daemon.go:440: adjusting startup timeout by 45s (pessimistic estimate of 30s plus 5s per snap)
Dec 03 15:39:19 pi-test snapd[837]: cannot run daemon: state startup errors: [cannot obtain snap-seccomp version information: invalid format of version-info: "ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.\n0528cb62afe0b3d7be81b1ea0b9e60361ec8fd80 2.4.3 9b218ef9a4e508dd8a7f848095cb8875d10a4bf28428ad81fdc3f8dac89108f7 bpf-actlog"]
Dec 03 15:39:19 pi-test systemd[1]: snapd.service: Main process exited, code=exited, status=1/FAILURE
Dec 03 15:39:19 pi-test systemd[1]: snapd.service: Failed with result 'exit-code'.
Dec 03 15:39:19 pi-test systemd[1]: Failed to start Snappy daemon.
Dec 03 15:39:20 pi-test systemd[1]: snapd.service: Service RestartSec=100ms expired, scheduling restart.
Dec 03 15:39:20 pi-test systemd[1]: snapd.service: Scheduled restart job, restart counter is at 6.
Dec 03 15:39:20 pi-test systemd[1]: Stopped Snappy daemon.
Dec 03 15:39:20 pi-test systemd[1]: Starting Snappy daemon...
Dec 03 15:39:20 pi-test snapd[925]: ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Dec 03 15:39:20 pi-test snapd[925]: AppArmor status: apparmor not enabled
Dec 03 15:39:20 pi-test snapd[925]: ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Dec 03 15:39:20 pi-test snapd[925]: AppArmor status: apparmor not enabled
Dec 03 15:39:21 pi-test snapd[925]: daemon.go:347: started snapd/2.48 (series 16; classic; devmode) raspbian/10 (armhf) linux/5.4.72-v7.
Dec 03 15:39:22 pi-test snapd[925]: daemon.go:440: adjusting startup timeout by 45s (pessimistic estimate of 30s plus 5s per snap)
Dec 03 15:39:22 pi-test snapd[925]: cannot run daemon: state startup errors: [cannot obtain snap-seccomp version information: invalid format of version-info: "ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.\n0528cb62afe0b3d7be81b1ea0b9e60361ec8fd80 2.4.3 9b218ef9a4e508dd8a7f848095cb8875d10a4bf28428ad81fdc3f8dac89108f7 bpf-actlog"]
Dec 03 15:39:22 pi-test systemd[1]: snapd.service: Main process exited, code=exited, status=1/FAILURE
Dec 03 15:39:22 pi-test systemd[1]: snapd.service: Failed with result 'exit-code'.
Dec 03 15:39:22 pi-test systemd[1]: Failed to start Snappy daemon.
Dec 03 15:39:22 pi-test systemd[1]: snapd.service: Service RestartSec=100ms expired, scheduling restart.
Dec 03 15:39:22 pi-test systemd[1]: snapd.service: Scheduled restart job, restart counter is at 7.
Dec 03 15:39:22 pi-test systemd[1]: Stopped Snappy daemon.
Dec 03 15:39:22 pi-test systemd[1]: Starting Snappy daemon...
Dec 03 15:39:22 pi-test snapd[971]: ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Dec 03 15:39:22 pi-test snapd[971]: AppArmor status: apparmor not enabled
Dec 03 15:39:22 pi-test snapd[971]: ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Dec 03 15:39:22 pi-test snapd[971]: AppArmor status: apparmor not enabled
Dec 03 15:39:22 pi-test snapd[971]: daemon.go:347: started snapd/2.48 (series 16; classic; devmode) raspbian/10 (armhf) linux/5.4.72-v7.
Dec 03 15:39:23 pi-test snapd[971]: daemon.go:440: adjusting startup timeout by 45s (pessimistic estimate of 30s plus 5s per snap)
Dec 03 15:39:23 pi-test snapd[971]: cannot run daemon: state startup errors: [cannot obtain snap-seccomp version information: invalid format of version-info: "ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.\n0528cb62afe0b3d7be81b1ea0b9e60361ec8fd80 2.4.3 9b218ef9a4e508dd8a7f848095cb8875d10a4bf28428ad81fdc3f8dac89108f7 bpf-actlog"]
Dec 03 15:39:23 pi-test systemd[1]: snapd.service: Main process exited, code=exited, status=1/FAILURE
Dec 03 15:39:23 pi-test systemd[1]: snapd.service: Failed with result 'exit-code'.
Dec 03 15:39:23 pi-test systemd[1]: Failed to start Snappy daemon.
Dec 03 15:39:23 pi-test systemd[1]: snapd.service: Service RestartSec=100ms expired, scheduling restart.
Dec 03 15:39:23 pi-test systemd[1]: snapd.service: Scheduled restart job, restart counter is at 8.
Dec 03 15:39:23 pi-test systemd[1]: Stopped Snappy daemon.
Dec 03 15:39:23 pi-test systemd[1]: Starting Snappy daemon...
Dec 03 15:39:23 pi-test snapd[1018]: ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Dec 03 15:39:23 pi-test snapd[1018]: AppArmor status: apparmor not enabled
Dec 03 15:39:23 pi-test snapd[1018]: ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Dec 03 15:39:23 pi-test snapd[1018]: AppArmor status: apparmor not enabled
Dec 03 15:39:24 pi-test snapd[1018]: daemon.go:347: started snapd/2.48 (series 16; classic; devmode) raspbian/10 (armhf) linux/5.4.72-v7.
Dec 03 15:39:24 pi-test snapd[1018]: daemon.go:440: adjusting startup timeout by 45s (pessimistic estimate of 30s plus 5s per snap)
Dec 03 15:39:25 pi-test snapd[1018]: cannot run daemon: state startup errors: [cannot obtain snap-seccomp version information: invalid format of version-info: "ERROR: ld.so: object '#/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.\n0528cb62afe0b3d7be81b1ea0b9e60361ec8fd80 2.4.3 9b218ef9a4e508dd8a7f848095cb8875d10a4bf28428ad81fdc3f8dac89108f7 bpf-actlog"]
Dec 03 15:39:25 pi-test systemd[1]: snapd.service: Main process exited, code=exited, status=1/FAILURE
Dec 03 15:39:25 pi-test systemd[1]: snapd.service: Failed with result 'exit-code'.
Dec 03 15:39:25 pi-test systemd[1]: Failed to start Snappy daemon.
Dec 03 15:39:25 pi-test systemd[1]: snapd.service: Service RestartSec=100ms expired, scheduling restart.
Dec 03 15:39:25 pi-test systemd[1]: snapd.service: Scheduled restart job, restart counter is at 9.
Dec 03 15:39:25 pi-test systemd[1]: Stopped Snappy daemon.
Dec 03 15:39:25 pi-test systemd[1]: snapd.service: Start request repeated too quickly.
Dec 03 15:39:25 pi-test systemd[1]: snapd.service: Failed with result 'exit-code'.
Dec 03 15:39:25 pi-test systemd[1]: Failed to start Snappy daemon.
Dec 03 15:39:25 pi-test systemd[1]: snapd.service: Triggering OnFailure= dependencies.
Dec 03 15:39:25 pi-test systemd[1]: snapd.service: Failed to enqueue OnFailure= job, ignoring: Unit snapd.failure.service not found.
pi@pi-test:~ $

This seems to be the smoking gun here and smells like a bug in snapd, could you file a bug on bugs.launchpad.net with this output? Thanks

I fixed it by removing snapd and re-installing, seems to be working now. Is it still worth filing a bug?

Yes, please file one. It’s not exactly a bug in snapd since there’s apparently a random LD_PRELOAD set in /etc/environment which causes the output to be generated by ld.so (that happens even before the actual binary starts). However, snapd or snap-seccomp should do a better job of using stdout instead of stderr here.

This seems to be the from Raspbian’s /etc/ld.so.preload file rather than the environment.

I don’t think the problem is in snap-seccomp, but rather how snapd interprets its output. It uses exec.Cmd.CombinedOutput to collect its output, which mixes stdout and stderr:

The information snapd wants is on stdout, and the dynamic linker errors are on stderr, so using Output() instead might be enough to address this.

On the bright side snap-seccomp writes the version info the stdout, while ld.so outputs to stderr only.

Opened a quick PR addressing the stdout/stderr problem: https://github.com/snapcore/snapd/pull/9767