Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/var/lib/snapd/seccomp/bpf/snap.cups.*.bin files missing #16

Open
d3al opened this issue Jul 5, 2023 · 3 comments
Open

/var/lib/snapd/seccomp/bpf/snap.cups.*.bin files missing #16

d3al opened this issue Jul 5, 2023 · 3 comments

Comments

@d3al
Copy link

d3al commented Jul 5, 2023

All cups related bin files are missing but I do have the src files from /var/lib/snapd/seccomp/bpf/

I'm not able to compile them manually, I get "error: cannot parse line: cannot parse token "g:snap_daemon" (line "setgid g:snap_daemon"): group: unknown group snap_daemon"

I'm having a problem where snap.cups is failing on ubuntu 20.04 machines which I have many of them in production. 22.04 machines are working, bin files are there but I can't compile manually on 22.04 either.

How can I force repopulation of these bin files? I tried removing cups snap but it fails using sudo snap remove cups with this error
**# sudo snap remove cups
2023-07-05T13:58:06-07:00 INFO Waiting for "snap.cups.cupsd.service" to stop.
2023-07-05T13:58:36-07:00 INFO Waiting for "snap.cups.cups-browsed.service" to stop.
error: cannot perform the following tasks:

  • Disconnect cups:network-bind from snapd:network-bind (cannot compile /var/lib/snapd/seccomp/bpf/snap.cups.ippeveprinter.src: error: cannot parse line: cannot parse token "g:snap_daemon" (line "setgid g:snap_daemon"): group: unknown group snap_daemon)**

This is how I'm trying to manually compile a src file
sudo /usr/lib/snapd/snap-seccomp compile /var/lib/snapd/seccomp/bpf/snap.cups.cupsd.src out.bin

@tillkamppeter
Copy link
Member

I have checked in Ubuntu 23.04 and 23.10 and there the *.bin files for the CUPS Snap are correctly generated, so I am not able to reproduce the bug.

@jhenstridge @mvo5 You as Snap experts do you have an idea what is happening here?

@tillkamppeter
Copy link
Member

This bug was also mentioned in the following Ubuntu bug report on chromium-browser:

https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/2026200

Snap update broke launching and printing on 20.04 Ubuntu.

in comment #11 the original poster of the bug report, Dalik (tek2001x), makes the same observation.

@d3al, can it be that you are actually Dalik?

@d3al
Copy link
Author

d3al commented Jul 6, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants