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

cups snap creating two server sockets on ubuntu core #22

Open
prash813 opened this issue Aug 15, 2024 · 1 comment
Open

cups snap creating two server sockets on ubuntu core #22

prash813 opened this issue Aug 15, 2024 · 1 comment

Comments

@prash813
Copy link

prash813 commented Aug 15, 2024

Two cupsd server socket files observed on Ubuntu core 22 .
Ubuntu Core doesnt have default cupsd service. But once I install snap cups I see two cups sockets
/var/run/cups/cups.sock and other /var/snap/cups/common/run/cups.sock
Since there is no default cups service running that means snapped cups service is expected to run as main service.

it is confusing as to which socket client applications suppose to connect?

what I noticed is, utilities which are part of cups snap like lpstat and lpr connect to /var/run/cups/cups.sock
and lpr seems to be printing fine.

chromium snap seems to be by default connecting to /var/snap/cups/common/run/cups.sock and printing doesnt work. please find the attached logs.

cups-printing-test-chrome.txt

@tillkamppeter
Copy link
Member

Sorry for the late reply, I was in conferences in India.

The two sockets are intended. The /var/run/cups/cups.sock is the standard socket of classic installations, which the snapped CUPS is connecting to on systems without a classic CUPS, so that classically installed packages just work. Also client Snaps plugging cups-control are connecting through this socket.

The other socket /var/snap/cups/common/run/cups.sock is part of the cups interface. It was supposed to be mounted into client Snaps which plug cups and not cups-control, to guarantee that these clients communicate with a Snap-mediating CUPS (which does not let them administrative tasks like creating or removing print queues), in this case the Snap-mediating CUPS being the CUPS of the Snap (on classically installed systems there can be also a classically installed non-Snap-mediating CUPS and then the CUPS Snap's CUPS works as proxy). This mounting does not seem to work any more. It seems that the cups interface needs some additional work or even a re-design.

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