HP Printer in Lx 3 printing broken

Today using a HP Photosmart 6520 printer that has been working in Lx 3 since Lx 3 was released printing appears to be broken. When I try to print something I just get no response.

$ systemctl status cups
● cups.service - CUPS Scheduler
   Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2018-11-26 10:32:24 CST; 28min ago
     Docs: man:cupsd(8)
 Main PID: 3621 (cupsd)
   Status: "Scheduler is running..."
    Tasks: 2 (limit: 4915)
   Memory: 74.2M
   CGroup: /system.slice/cups.service
           ├─ 3621 /usr/sbin/cupsd -l
           └─18049 /usr/lib/cups/notifier/dbus dbus://

Nov 26 10:32:23 ben79-pc systemd[1]: Starting CUPS Scheduler...
Nov 26 10:32:24 ben79-pc systemd[1]: Started CUPS Scheduler.
Nov 26 11:00:07 ben79-pc /hpfax[18403]: [18403]: error: Failed to create /var/spool/cups/tmp/.hplip

This is output of attempt to print test page with scp:
print_test_page_output.txt (8.9 KB)

This is ourput of attempt to print with hp-print:
$ hp-print

HP Linux Imaging and Printing System (ver. 3.17.10)
Print Utility ver. 4.0

Copyright (c) 2001-15 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.

error:  Print command failed with status code 1.  lpr -P HP-Photosmart-6520-series -o page-set=all "/home/ben79/Documents/print_test_page_output.txt"

I’m in a hurry to get to an appointment so am probably forgetting some documentation that might be helpful. Let me know and I’ll post it.

journalctl-e.txt (137.2 KB)

Something odd is that hp-toolbox will “align cartridges” so something is working it is printing specifically that is broken for some reason.

One thing I see is that there are no print jobs in print queue in hp-toobox.

This is hp-toolbox attempting to print a test page:

$ hp-toolbox

HP Linux Imaging and Printing System (ver. 3.17.10)
HP Device Manager ver. 15.0

Copyright (c) 2001-15 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.

warning: mandrake distro is not found in AUTH_TYPES
/QXcbConnection: XCB error: 3 (BadWindow), sequence: 2113, resource id: 33588696, major code: 40 (TranslateCoords), minor code: 0
/usr/bin/lpr-cups: Unsupported document-format "application/postscript".
error: Print command failed with exit code 256!

And using just lpr:

$ lpr print_test_page_output.txt
/usr/bin/lpr-cups: Unsupported document-format "text/plain".

$ lpr cpupower-ben
/usr/bin/lpr-cups: Unsupported document-format "text/plain".

And this:

$ cat print_test_page_output.txt > /dev/lp
bash: /dev/lp: Permission denied

$ sudo cat print_test_page_output.txt > /dev/lp
bash: /dev/lp: Permission denied

Even thought hp-toolbox shows no jobs in queue localhost:631 shows this:

User withheld? This is on a system where printing was working for a long time.

OK, that ought to be enough unless one or our devs needs something.

Forgot this:

    # rpm -qa | grep hplip
    hplip-hpijs-3.17.10-1-omv2015.0.x86_64
    hplip-model-data-3.17.10-1-omv2015.0.x86_64
    hplip-hpijs-ppds-3.17.10-1-omv2015.0.x86_64
    hplip-3.17.10-1-omv2015.0.x86_64
    hplip-gui-3.17.10-1-omv2015.0.x86_64

# rpm -qa | grep cups
cups-drivers-magicolor5430dl-1.8.1-24-omv2015.0.x86_64
gutenprint-cups-5.2.11-1-omv2015.0.x86_64
cups-drivers-foo2zjs-0.0-0.20150211.1-omv2015.0.x86_64
cups-drivers-capt-0.1-19-omv2015.0.x86_64
cups-drivers-lxx74-0.8.4.2-21-omv2015.0.x86_64
python-cups-1.9.73-3-omv2015.0.x86_64
cups-drivers-pegg-0.23-22-omv2015.0.x86_64
cups-drivers-magicolor5440dl-1.2.1-23-omv2015.0.x86_64
cups-drivers-lz11-1.2-21-omv2015.0.x86_64
cups-drivers-m2300w-0.51-23-omv2015.0.x86_64
cups-drivers-foo2kyo-0.1.0a-23-omv2015.0.x86_64
cups-drivers-ptouch-1.3-18-omv2015.0.x86_64
cups-drivers-lbp660-0.3.1-16-omv2015.0.x86_64
cups-drivers-magicolor2430dl-1.6.1-24-omv2015.0.x86_64
cups-drivers-2008-22-omv2015.0.x86_64
cups-drivers-splix-2.0.0-17-omv2015.0.x86_64
lib64cups2-2.2.9-1-omv2015.0.x86_64
lib64cupsimage2-2.2.9-1-omv2015.0.x86_64
cups-common-2.2.9-1-omv2015.0.x86_64
cups-2.2.9-1-omv2015.0.x86_64

I have neither a HP printer not any remaining Lx3 boxes (please check 4), but some of this is odd:

“Failed to create /var/spool/cups/tmp/.hplip”

Probably a permissions issue. Does the directory /var/spool/cups/tmp exist? (The cups package is supposed to contain it, and it’s supposed to be owned by user root, group lp, permissions 1770)

“/dev/lp: Permission denied”

That’s trying to create a file called lp in /dev – you don’t have permissions to do that.
what you probably meant is cat print_test_page_output.txt >/dev/lp0 (but isn’t that for ancient parallel port printers only? Probably not going to work either way. This is a usb printer, right?)

The strangest things are the “Unsupported document-format” errors - application/postscript should be handled by /usr/share/cups/mime/mime.convs, text/plain should be handled by /usr/share/cups/mime/cupsfilters.convs.
Are those files there and readable?
Is the cups-filters package installed?

cups-filters is not installed, if all those other cups packages are installed shouldn’t it be installed with them? It may have been removed at some point by --auto-orphans.

# urpmi cups-filter
...
found package(s): cups-filters-1.8.3-2-omv2015.0.x86_64 cups-filters-1.20.3-2-omv2015.0.x86_64
To satisfy dependencies, the following packages are going to be installed:
 Package                        Version      Release       Dist  DEpoch Arch 
(medium "main")
 lib64qpdf13                    5.1.2        6             omv   2015.0 x86_64 
(medium "main updates")
 bc                             1.07.1       1             omv   2015.0 x86_64 
 cups-filters                   1.20.3       2             omv   2015.0 x86_64 
 lib64cupsfilters1              1.20.3       2             omv   2015.0 x86_64 
 lib64fontembed1                1.20.3       2             omv   2015.0 x86_64 
 poppler                        0.64.0       1             omv   2015.0 x86_64 
3.3MB of additional disk space will be used.
1MB of packages will be retrieved.
Proceed with the installation of the 6 packages? (Y/n)

One of those packages in has a bad signature:

The following package has bad signature:
/var/cache/urpmi/rpms/lib64qpdf13-5.1.2-6-omv2015.0.x86_64.rpm: Invalid Key ID (OK (RSA/SHA1, Sun 27 Mar 2016 06:28:20 AM CDT, Key ID 99d0efd04cf8acbe))
Do you want to continue installation ? (y/N)

Yes, printer is USB, I was copying commands from a cheat sheet trying to get printing from command line.

Missing cups-filter is what was broken. Can again print from FF, from cli with lpr, etc.

After installing the files /usr/share/cups/mime/mime.convs and /usr/share/cups/mime/cupsfilters.convs do exist.

Post-edit: I think this likely was mistake by me triggering --auto-orphans which removed the cups-filter package. :monkey_face: So the lesson kids is read the list of packages --auto-orphans is going to remove and if you have any doubt what so ever don’t do it. Ask an expert/developer if you have questions.

:monkey:

1 Like