[Bug 860481] New: Printer sharing stopped working after installing cups-1.5.4-12.4.1
https://bugzilla.novell.com/show_bug.cgi?id=860481 https://bugzilla.novell.com/show_bug.cgi?id=860481#c0 Summary: Printer sharing stopped working after installing cups-1.5.4-12.4.1 Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Major Priority: P5 - None Component: Printing AssignedTo: jsmeix@suse.com ReportedBy: ptesarik@suse.com QAContact: jsmeix@suse.com Found By: L3 Blocker: --- The fix for bnc 857372 broke printer announcements on my box. I ran strace on the cupsd process and got: baltazar:~ # strace -p 3739 Process 3739 attached epoll_wait(8, {}, 4096, 21000) = 0 sendto(7, "829056 5 ipp://192.168.84.69:631"..., 233, 0, {sa_family=AF_INET, sin_port=htons(631), sin_addr=inet_addr("192.168.84.255")}, 16) = -1 ENETUNREACH (Network is unreachable) epoll_wait(8, Then I did the following: 1. I copied /usr/lib/systemd/system/cups.socket to /etc/systemd/system/cups.socket 2. I reverted cups-0002-systemd-listen-only-on-localhost-for-socket-activation.patch on this copy 3. I restarted cups and cups.socket 4. Printer announcement works again. This is the output from strace after the change: baltazar:~ # strace -p 3810 Process 3810 attached epoll_wait(3, {}, 4096, 16000) = 0 sendto(10, "829056 5 ipp://192.168.84.69:631"..., 233, 0, {sa_family=AF_INET, sin_port=htons(631), sin_addr=inet_addr("192.168.84.255")}, 16) = 233 epoll_wait(3, {{EPOLLIN, {u32=3217210880, u64=140693460925952}}}, 4096, 31000) = 1 recvfrom(10, "829056 5 ipp://192.168.84.69:631"..., 1540, 0, {sa_family=AF_INET, sin_port=htons(631), sin_addr=inet_addr("192.168.84.69")}, [16]) = 233 epoll_wait(3, Alternatively, I was also able to get this to work by stopping the cups.socket systemd service completely. This has the added benefit of stopping these messages in /var/log/cups/error_log: E [25/Jan/2014:14:43:36 +0100] Unable to bind socket for address 0.0.0.0:631 - Address already in use. E [25/Jan/2014:14:43:36 +0100] Unable to bind socket for address [v1.::]:631 - Address already in use. So, it seems somehow related to bnc 857778, but I'm not sure because that one was reported before the last cups maintenance update was released. Honestly, I don't fully understand the handling of cups sockets under systemd, but breaking existing features sounds wrong to me. You may say it's a configuration issue, but please consider the following questions: 1. How does the configuration of cups.socket correspond to the web interface, particularly http://localhost:631/admin/ option [ ] Share printers connected to this system ? 2. If you suggest that cups.socket is not needed on a typical system, then why is it enabled by default? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=860481
https://bugzilla.novell.com/show_bug.cgi?id=860481#c1
Christoph Wurst
https://bugzilla.novell.com/show_bug.cgi?id=860481
https://bugzilla.novell.com/show_bug.cgi?id=860481#c2
--- Comment #2 from Petr Tesařík
https://bugzilla.novell.com/show_bug.cgi?id=860481
https://bugzilla.novell.com/show_bug.cgi?id=860481#c3
Sebastian Kuhne
I fixed it by changing /usr/lib/systemd/system/cups.socket from
[Unit] Description=CUPS Printing Service Sockets
[Socket] ListenStream=/var/run/cups/cups.sock ListenStream=127.0.0.1:631 ListenStream=[::1]:631 ListenDatagram=127.0.0.1:631 ListenDatagram=[::1]:631 BindIPv6Only=ipv6-only
[Install] WantedBy=sockets.target
to:
[Unit] Description=CUPS Printing Service Sockets
[Socket] ListenStream=/var/run/cups/cups.sock ListenStream=127.0.0.1:631 ListenDatagram=127.0.0.1:631 BindIPv6Only=ipv6-only
[Install] WantedBy=sockets.target
Those two lines were added after updating cups from 1.5.4-12.1.3 to 1.5.4-12.4.1
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=860481
https://bugzilla.novell.com/show_bug.cgi?id=860481#c
Sebastian Kuhne
https://bugzilla.novell.com/show_bug.cgi?id=860481
https://bugzilla.novell.com/show_bug.cgi?id=860481#c4
Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=860481
https://bugzilla.novell.com/show_bug.cgi?id=860481#c5
Johannes Meixner
participants (1)
-
bugzilla_noreply@novell.com