[SOLVED] HP LaserJet will not print in LibreOffice
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm in SlackWare64-current with Eric's "ktown", updated yesterday. LibreOffice is version 6.1.0, from Eric's repository. I have a HP p2055dn LaserJet on a network connection. When I try to print from any application, the job is halted with the "filter failed" message. Taking a hint from a recent LQo post, I downgraded hplip-3.18.7 to hplip-3.18.6. This allowed me to print a test page from the PC; kate was also able to print at this point. LibreOffice also tried to print, but it produced a blank page (or as many blank pages as the document was long). I've beat my head against this so often my peanut sized brain is beginning to hurt. Has anyone any ideas, please?
Thanks,
Bill
You could try diagnosing further by increasing CUPS logging verbosity with
Code:
cupsctl --debug-logging
then send another print job, and observe the output generated for the job. The log can be lengthy, so if necessary delete the existing error log first
Code:
rm -f /var/log/cups/error_log
and restart CUPS (which will regenerate the log file again).
Hopefully, this will provide more clues about why the filter is failing. If you want to share that output here, consider pasting it at https://pastebin.com/ and post the link that it generate here so that others can review it and advise further.
Thanks for the suggestion, but as noted in my original post, I did downgrade to 3.18.6. With that done the printer would work in everything except LibreOffice. I have currently upgraded to hplip-3.18.7 & will try ferrari's suggestions in post #2.
Thanks again.
I'm in SlackWare64-current with Eric's "ktown", updated yesterday. LibreOffice is version 6.1.0, from Eric's repository. I have a HP p2055dn LaserJet on a network connection. When I try to print from any application, the job is halted with the "filter failed" message. Taking a hint from a recent LQo post, I downgraded hplip-3.18.7 to hplip-3.18.6. This allowed me to print a test page from the PC; kate was also able to print at this point. LibreOffice also tried to print, but it produced a blank page (or as many blank pages as the document was long). I've beat my head against this so often my peanut sized brain is beginning to hurt. Has anyone any ideas, please?
Thanks,
Bill
Can you try this way. Install current version of printer driver. Be sure, the driver are loaded/runned. Add printer driver to CUPS. Printing from any app through CUPS.
P.S. I had issue with HP LaserJet 6L (the printer are too old).
Thanks for the suggestions. I have been detoured for the past couple of days by a problem with the HF ham rig in my car. Now that I have settled that problem, I will get back to this one.
Bill
Well,the printer does not work with any of the three drivers that are listed for it. In the cups Administration page, the Printer Status page lists "Idle - "Rendering completed" & in the Jobs page it says 'stopped "Filter Failed"'. I see nothing in the error log, but I am not good at reading these logs. Here is the link to the log:
The log does show some problems with the both your configured printer URI anf the hpcups filter. The log reports
Code:
DEVICE_URI=socket://192.168.0.4:9100
If you're using an HPLIP driver, the 'hp' backend should be in use rather than the 'socket' backend. Examine /etc/cups/printers.conf, or run
Code:
lpstat -t
to see this. This will need to be corrected independent of the other issues encountered. Reconfigure CUPS manually via the CUPS web interface or with the 'hp-setup' utility.
The hpcups filter is having problems starting with this message...
Code:
D [25/Aug/2018:14:59:16 -0500] [Job 162] prnt/hpcups/HPCupsFilter.cpp 644: DEBUG: SHIVA inside the while loopprnt/hpcups/HPCupsFilter.cpp 648: DEBUG: imageProcessorStartPage failed result = 2
and finally it crashes...
Code:
D [25/Aug/2018:14:59:16 -0500] [Job 162] PID 23150 (/usr/lib64/cups/filter/hpcups) crashed on signal 11.
It's not clear to me what might be causing these issues, but the HPLIP 'hp-doctor' and 'hp-check -t' utilities can be used to find dependency issues etc. As you're using Slackware though, there's likely to be packaging quirks more readily solved/understood by Slackware users, so I'll leave others to advise further.
Okay. Some progress. Thanks, ferrari. Based on ferrari's advice above about the backend, I removed the printer & reinstalled it using "hp-setup". I did have to give the program the URI of the printer, but once it had that, the printer was automatically installed. It now prints test pages like a champ, it also prints from Kate. However, I'm back to getting blank pages from LibreOffice. I made the mistake of trying to print the same page 10 times the first time I tried LibreOffice. The CUPS error log is here:
Can you post your defined printers as reported by the following?
Code:
lpstat -t
I suspect that you have more than one CUPS printer configuration in existence.
Quote:
However, I'm back to getting blank pages from LibreOffice. I made the mistake of trying to print the same page 10 times the first time I tried LibreOffice. The CUPS error log is here:
Ok, but the log suggests that it's trying to use the wrong driver ie you've selecting the wrong printer when trying to print. You probably need to identify and remove the inappropriate configuration.
As you can see the postscript driver is in use here...
Code:
D [25/Aug/2018:18:44:15 -0500] [Job 174] 2 filters for job:
D [25/Aug/2018:18:44:15 -0500] [Job 174] pstops (application/postscript to application/vnd.cups-postscript, cost 66)
D [25/Aug/2018:18:44:15 -0500] [Job 174] - (application/vnd.cups-postscript to printer/HP_LaserJet_P2055dn, cost 0)
Well, I have fixed the problem, & while I know what I did, I have no idea of what the cure actually was. I attempted to load another distribution on my second hdd, & set the new distribution to use the entire hdd. Of course, the second hdd was identical to the first, so I mistakenly installed the new distribution on my first hdd, wiping out my Slackware-current partition. I could have recovered via my backup, but for various, irrelevant reasons I decided to start from scratch. After I got the system installed, including the printer & LibreOffice, the printer worked perfectly. There was most likely a glitch in my LibreOffice installation, but I'll probably never know.
Thanks to all who responded.
Bill
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.