Bug 861411

Summary: Printing/cups: Bug - latest CUPS' network printing and web admin broken; missing cups.socket
Product: [openSUSE] openSUSE 13.1 Reporter: Forgotten User o5N6HWuMhD <forgotten_o5N6HWuMhD>
Component: OtherAssignee: Cristian Rodríguez <crrodriguez>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <opensuse-communityscreening>
Severity: Major    
Priority: P5 - None CC: jsmeix, werner
Version: Final   
Target Milestone: ---   
Hardware: All   
OS: openSUSE 13.1   
Whiteboard:
Found By: Community User Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User o5N6HWuMhD 2014-01-30 21:45:44 UTC
on system 12.3 & 13.1, with latest updates

	rpm -qa | grep -i cups | sort
		cups-1.5.4-137.1.x86_64
		cups-backends-1.0-286.1.x86_64
		cups-client-1.5.4-137.1.x86_64
		cups-devel-1.5.4-137.1.x86_64
		cups-libs-1.5.4-137.1.x86_64
		cups-pk-helper-0.2.5-2.1.3.x86_64
		python-cups-1.9.66-37.1.x86_64
		python-cupshelpers-1.4.2-2.4.1.noarch

CUPS admin at localhost:631 is no longer functional, and network printers are not available in dialogs

in syslogs,

	2014-01-30T13:23:57.412921-08:00 test systemd[1]: Cannot add dependency job for unit cups.socket, ignoring: Unit cups.socket failed to load: No such file or directory.

checking

	grep -rlni cups.socket /usr/lib/systemd /etc/systemd
		/usr/lib/systemd/system-preset/90-default-openSUSE.preset

	grep cups.socket /usr/lib/systemd/system-preset/90-default-openSUSE.preset
		enable cups.socket

	rpm -ql `rpm -qa | grep -i cups` | grep cups.socket
		/usr/share/doc/packages/cups/systemd/cups.socket

	ls -al /usr/share/doc/packages/cups/systemd/cups.socket
		-r--r--r-- 1 root root 254 Jan 29 07:08 /usr/share/doc/packages/cups/systemd/cups.socket

	rpm -q --whatprovides \
	 /usr/lib/systemd/system-preset/90-default-openSUSE.preset \
	 /usr/share/doc/packages/cups/systemd/cups.socket

		systemd-presets-branding-openSUSE-0.3.0-3.1.2.noarch
		cups-1.5.4-137.1.x86_64


this clearly fails

	systemctl enable cups.socket
		Failed to issue method call: No such file or directory

	systemctl status cups.socket
		cups.socket                                                                                                          
		   Loaded: not-found (Reason: No such file or directory)                                                             
		   Active: inactive (dead)                                                                                           
	                             

manually

cp -af \
 /usr/share/doc/packages/cups/systemd/cups.socket \
 /etc/systemd/system

then

	systemctl enable cups.socket
		ln -s '/etc/systemd/system/cups.socket' '/etc/systemd/system/sockets.target.wants/cups.socket'
	systemctl start cups.socket
		cups.socket - CUPS Printing Service Sockets
		   Loaded: loaded (/etc/systemd/system/cups.socket; enabled)
		   Active: active (listening) since Thu 2014-01-30 13:40:00 PST; 1s ago
		   Listen: /run/cups/cups.sock (Stream)
		           127.0.0.1:631 (Stream)
		           [::1]:631 (Stream)
		           127.0.0.1:631 (Datagram)
		           [::1]:631 (Datagram)

and nav to

	http://localhost:631

once again is up, and priners @ print dialog are, again, available
Comment 1 Johannes Meixner 2014-02-04 09:21:47 UTC
We have various repositories wherefrom one can donwload and
install packages so that RPM version numbers are no longer
really meaningful for me to know what exact package version
somene has installed. In contrast "rpm -q --changelog cups | head"
shows really meaningful information for me.

From the information in comment#0 in particular
"Unit cups.socket failed to load: No such file or directory."
I guess this one is a duplicate of bnc#861734 see in particular
https://bugzilla.novell.com/show_bug.cgi?id=861734#c3

*** This bug has been marked as a duplicate of bug 861734 ***