Bug 1171874

Summary: s-c-p is unable to find appropriate driver for network-connected printer (HP-LJ-400-M451dn)
Product: [Fedora] Fedora Reporter: MaxiPunkt <maxantispam>
Component: system-config-printerAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: jpopelka, maxantispam, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: system-config-printer-1.5.6-1.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-21 05:02:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
s-c-p does see network-connected printer
none
s-c-p fails to setup driver (German error-message)
none
s-c-p lets me pick driver manually none

Description MaxiPunkt 2014-12-08 20:05:15 UTC
Created attachment 965991 [details]
s-c-p does see network-connected printer

Description of problem:

This bug is a follow-up of bug #1159380

I have an HP LaserJet 400 Color M451dn, connected to network (RJ45).
But s-c-p fails to setup appropriate printer-driver (hpijs) automatically, although the printer seems to be correctly identified by s-c-p first.

I'll get a error-message (German) saying s-c-p could not find driver.
Then I have to pick the appropriate (and installed) driver manually.


Actually used components (FC20):

$ rpm -qa | grep system-config-printer
system-config-printer-udev-1.4.7-1.fc20.x86_64
system-config-printer-libs-1.4.7-1.fc20.noarch
system-config-printer-1.4.7-1.fc20.x86_64

$ rpm -qa | grep hplip
hplip-common-3.14.10-3.fc20.x86_64
hplip-3.14.10-3.fc20.x86_64
hplip-libs-3.14.10-3.fc20.x86_64
hplip-gui-3.14.10-3.fc20.x86_64

hpijs is from testing-repo, as it adds missing IEEE-1284-Device-ID to ppd-file.


There should be no problems with the network-connection itself, as:
* the printer can be accessed via web-interface
* s-c-p is able to see the printer during configuration
* the printer is able to print via network after manual setup of driver


Output of s-c-p started from console:
$ LC_ALL=C system-config-printer
ERROR:dbus.proxies:Introspect error on :1.92:/org/freedesktop/PackageKit: dbus.exceptions.IntrospectionParserException: Error parsing introspect data: <class 'xml.parsers.expat.ExpatError'>: unbound prefix: line 5, column 4


You'll find some screenshots with s-c-p in action attached.

Comment 1 MaxiPunkt 2014-12-08 20:06:23 UTC
Created attachment 965993 [details]
s-c-p fails to setup driver (German error-message)

Comment 2 MaxiPunkt 2014-12-08 20:09:42 UTC
Created attachment 965994 [details]
s-c-p lets me pick driver manually

Comment 3 Tim Waugh 2015-02-23 16:04:56 UTC
Please attach the output of 'lpinfo -l -v', run as root.

Comment 4 MaxiPunkt 2015-02-28 17:21:33 UTC
# lpinfo -l -v
Device: uri = ipp
        class = network
        info = Internet-Druckerprotokoll (ipp)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = smb
        class = network
        info = Windows Printer via SAMBA
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = serial:/dev/ttyS0?baud=115200
        class = serial
        info = Serial Port #1
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = hp
        class = direct
        info = HP Printer (HPLIP)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = lpd
        class = network
        info = LPD/LPR-Host oder -Drucker
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = ipps
        class = network
        info = Internet-Druckerprotokoll (ipps)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = beh
        class = network
        info = Backend Error Handler
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = socket
        class = network
        info = AppSocket/HP JetDirect
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = http
        class = network
        info = Internet-Druckerprotokoll (http)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = https
        class = network
        info = Internet-Druckerprotokoll (https)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = hpfax
        class = direct
        info = HP Fax (HPLIP)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = dnssd://HP%20LaserJet%20400%20color%20M451dn%20(276E05)._ipp._tcp.local/
        class = network
        info = HP LaserJet 400 color M451dn (276E05)
        make-and-model = Hewlett-Packard HP LaserJet 400 color M451dn
        device-id = MFG:Hewlett-Packard;MDL:HP LaserJet 400 color M451dn;FZY:0;CMD:PDF,PS,PCL,URF;
        location =

Comment 5 Tim Waugh 2015-03-02 11:54:35 UTC
This is why the correct printer is removed from the matches:

Removed {'lsb/usr/HP/hp-lj_300_400_color_m351_m451-ps.ppd.gz'} due to CMD mis-match

Should be fixed upstream now:
  https://git.fedorahosted.org/cgit/system-config-printer.git/commit/?h=1.4.x&id=fab18dbaa893689bdfc2579553697900dd0f83ce

Comment 6 MaxiPunkt 2015-03-02 18:07:21 UTC
Cool - thank you for your quick reaction on this bug!

Will there be a chance to get this s-c-p fix into testing/official FC20-updates as well, to be able to test it?

Comment 7 Fedora Update System 2015-03-17 17:35:30 UTC
system-config-printer-1.4.8-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/system-config-printer-1.4.8-1.fc20

Comment 8 Fedora Update System 2015-03-17 17:51:44 UTC
system-config-printer-1.5.6-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/system-config-printer-1.5.6-1.fc22

Comment 9 Fedora Update System 2015-03-17 17:53:35 UTC
system-config-printer-1.5.6-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/system-config-printer-1.5.6-1.fc21

Comment 10 Fedora Update System 2015-03-18 10:21:53 UTC
Package system-config-printer-1.5.6-1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing system-config-printer-1.5.6-1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-4027/system-config-printer-1.5.6-1.fc21
then log in and leave karma (feedback).

Comment 11 Fedora Update System 2015-03-21 05:02:57 UTC
system-config-printer-1.5.6-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2015-04-26 12:47:28 UTC
system-config-printer-1.5.6-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.