adding printer with IPP network printer via DNS-DS fails due to "There was an error during the CUPS operation: 'server-error-internal-error'"

Bug #1707193 reported by Karl-Philipp Richter
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
system-config-printer (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Adding a Hewlett-Packard HP Color LaserJet MFP M476dn as IPP network printer via DNS-DS fails due to "There was an error during the CUPS operation: 'server-error-internal-error'". The error message is unhelpful and can't be copied. The output of the console is

    > system-config-printer

    (system-config-printer.py:21002): Gtk-CRITICAL **: gtk_tree_store_insert_after: assertion 'G_NODE (sibling->user_data)->parent == G_NODE (parent->user_data)' failed

    (system-config-printer.py:21002): Gtk-CRITICAL **: gtk_tree_store_set_value: assertion 'VALID_ITER (iter, tree_store)' failed

    (system-config-printer.py:21002): Gtk-CRITICAL **: gtk_tree_store_set_value: assertion 'VALID_ITER (iter, tree_store)' failed

    (system-config-printer.py:21002): Gtk-WARNING **: Failed to fetch network locations: Timeout was reached
    Caught non-fatal exception. Traceback:
    File "/usr/share/system-config-printer/newprinter.py", line 4196, in getNPPPD
        ppd = cups.PPD(f)
    RuntimeError: ppdOpenFile failed
    Continuing anyway..

which looks like the error message could be improved dramatically.

The same issue happens for Driverless IPP.

ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: system-config-printer 1.5.7+20160812-0ubuntu9
ProcVersionSignature: Ubuntu 4.10.0-28.32-generic 4.10.17
Uname: Linux 4.10.0-28-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.4-0ubuntu4.5
Architecture: amd64
CurrentDesktop: XFCE
Date: Fri Jul 28 14:40:51 2017
InstallationDate: Installed on 2015-12-12 (594 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
Lpstat:
 Gerät für HP_Color_LaserJet_MFP_M476dn: hp:/usb/HP_Color_LaserJet_MFP_M476dn?serial=CNB8H415Z5
 Gerät für QL-570: usb://Brother/QL-570?serial=F4Z735525
MachineType: LENOVO 20221
PackageArchitecture: all
Papersize: a4
PpdFiles:
 QL-570: Brother QL-570 CUPS v1.1
 HP_Color_LaserJet_MFP_M476dn: HP Color LaserJet Pro MFP M476 Postscript (recommended)
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.10.0-28-generic root=UUID=791b47e7-915d-4d5a-bce0-d7e9b660a2ab ro rootflags=subvol=ubuntu-main-root
SourcePackage: system-config-printer
UpgradeStatus: Upgraded to zesty on 2017-05-01 (88 days ago)
dmi.bios.date: 07/12/2013
dmi.bios.vendor: LENOVO
dmi.bios.version: 71CN51WW(V1.21)
dmi.board.asset.tag: No Asset Tag
dmi.board.name: INVALID
dmi.board.vendor: LENOVO
dmi.board.version: 31900003WIN8 STD MLT
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Lenovo IdeaPad Z500 Touch
dmi.modalias: dmi:bvnLENOVO:bvr71CN51WW(V1.21):bd07/12/2013:svnLENOVO:pn20221:pvrLenovoIdeaPadZ500Touch:rvnLENOVO:rnINVALID:rvr31900003WIN8STDMLT:cvnLENOVO:ct10:cvrLenovoIdeaPadZ500Touch:
dmi.product.name: 20221
dmi.product.version: Lenovo IdeaPad Z500 Touch
dmi.sys.vendor: LENOVO

Revision history for this message
Karl-Philipp Richter (krichter722) wrote :
description: updated
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Please start system-config-printer using the command line

system-config-printer --debug 2>&1 | tee log.txt

and do the same attempts to set up your printer as before, one with the DNS-SD/IPP choice and once with IPP driverless.

After that please attach log.txt (do not compress) to this bug report.

Try also the following:

Run the command

driverless

You get some lines of output. Each line is the URI (Unified Resource Identifier) of one of the printers in your network which supports driverless printing.

Is there one corresponding to your HP Color LaserJet MFP M476dn? You recognize it if it by whether it contains the host name, IP address, make, or model name of the printer.

Have you found the correct URI? Then run

lpadmin -p LJM476IPP -E -v URI -m everywhere

replacing URI by the URI you have found with the "driverless" command. This creates a print queue for your printer, using driverless IPP network printing.

Please post all screen output here.

Does this print queue work? Can you also attach (in a separate comment) your /etc/cups/ppd/LJM476IPP.ppd file?

Please run also
ipptool -tv URI get-printer-attributes.test > ipp-attrs.txt

replacing URI again by your printer's URI and attach (in another comment) ipp-attrs.txt.

Please do not compress any of your attachments nor package them together. Attach them one-by-one.

Changed in system-config-printer (Ubuntu):
status: New → Incomplete
Revision history for this message
Duncan Bayne (dhgbayne) wrote :

The same problem effects me; Ubuntu 17.04 on Lenovo ThinkPad
X220. Previous versions of Ubuntu, other distros, and FreeBSD have
worked fine w/ this printer.

I've attached the --debug log from system-config-printer as requested.

Revision history for this message
Duncan Bayne (dhgbayne) wrote :

Sorry, forgot to mention that my printer is a Fuji Xerox CM115W.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Ducan, thnks for your log, but can you please also follow the other instructions in comment #2? Thanks.

Revision history for this message
Antony Jones (wrh) wrote :

Having the same issue as listed on this bug, so working through #2 to give the information required.

Revision history for this message
Antony Jones (wrh) wrote :

➜ ~ driverless
ipp://printer.local:631/ipp/print
➜ ~ lpadmin -p LJM476IPP -E -v ipp://printer.local:631/ipp/print -m everywhere
lpadmin: Unable to connect to "printer.local:631": Name or service not known
➜ ~ ls -als /etc/cups/ppd/LJM476IPP.ppd
ls: cannot access '/etc/cups/ppd/LJM476IPP.ppd': No such file or directory

Revision history for this message
Antony Jones (wrh) wrote :

➜ ~ ipptool -tv URI get-printer-attributes.test > ipp://printer.local:631/ipp/print
zsh: no such file or directory: ipp://printer.local:631/ipp/print

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Antony, the correct call for ipptool for you is

ipptool -tv ipp://printer.local:631/ipp/print get-printer-attributes.test > printer-ipp-attrs.txt

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Antony, can you find out what the IP address of your printer is and run the following commands with <IP> replaced by the actual IP address:

lpadmin -p LJM476IPP -E -v ipp://<IP>:631/ipp/print -m everywhere
ls -als /etc/cups/ppd/LJM476IPP.ppd
ipptool -tv ipp://<IP>:631/ipp/print get-printer-attributes.test > printer-ipp-attrs.txt

Please post the screen output of the commands here.

Please attach /etc/cups/ppd/LJM476IPP.ppd and printer-ipp-attrs.txt

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for system-config-printer (Ubuntu) because there has been no activity for 60 days.]

Changed in system-config-printer (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Kevin (kkd) wrote :

I am affected by the same issue on Ubuntu 18.04.3

$ driverless
ipp://SAMSUNGC410W.local:631/ipp/printer

Logs are attachd. How can I futher investigate?

Revision history for this message
Kevin (kkd) wrote :
Revision history for this message
dennis (dennisschneck) wrote :
Revision history for this message
dennis (dennisschneck) wrote :

[heidi@heidi-pc log]$ hp-setup -u

HP Linux Imaging and Printing System (ver. 3.19.8)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Searching... (bus=usb, search=(None), desc=0)
error: Printer queue setup failed. Error : successful-ok-ignored-or-substituted-attributes

Revision history for this message
dennis (dennisschneck) wrote :

Hi Kevin

[heidi@heidi-pc log]$ driverless
ipp://HPE4E7498BF1E5.local:631/ipp/print

Kevin (kkd)
Changed in system-config-printer (Ubuntu):
status: Expired → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in system-config-printer (Ubuntu):
status: New → Confirmed
Revision history for this message
Kevin (kkd) wrote :

Workaround: Solved for me by using Generic Driver "Generic IPP Everywhere Printer"

To post a comment you must log in.