LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-20-2018, 02:57 PM   #1
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Rep: Reputation: Disabled
HP LaserJet will not print in LibreOffice


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
 
Old 08-20-2018, 06:03 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,862

Rep: Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152
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.
 
Old 08-21-2018, 09:56 AM   #3
sombragris
Member
 
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 927

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
That is the exact same message I kept getting with my HP LJ 1020.

Your best bet should be reverting to hplip-3.18.6.

Check my topic on the matter:
https://www.linuxquestions.org/quest...de-4175635625/
 
Old 08-21-2018, 02:49 PM   #4
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sombragris View Post
That is the exact same message I kept getting with my HP LJ 1020.

Your best bet should be reverting to hplip-3.18.6.

Check my topic on the matter:
https://www.linuxquestions.org/quest...de-4175635625/
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.
 
Old 08-24-2018, 04:52 PM   #5
bbKid
LQ Newbie
 
Registered: Jul 2018
Location: Moldova
Distribution: linuxslackware
Posts: 23

Rep: Reputation: Disabled
Quote:
Originally Posted by TSquaredF View Post
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).
 
Old 08-25-2018, 01:11 PM   #6
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Original Poster
Rep: Reputation: Disabled
I've been sidetracked.

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
 
Old 08-25-2018, 03:26 PM   #7
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Original Poster
Rep: Reputation: Disabled
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:

https://pastebin.com/U7DemujT

I am truly appreciative of any & all suggestions.
Bill
 
Old 08-25-2018, 04:53 PM   #8
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,862

Rep: Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152
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.

Last edited by ferrari; 08-25-2018 at 04:58 PM.
 
Old 08-25-2018, 07:39 PM   #9
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Original Poster
Rep: Reputation: Disabled
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:

https://pastebin.com/2BKN72ru

Again, all suggestions appreciated.
Bill
 
Old 08-25-2018, 08:07 PM   #10
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,862

Rep: Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152
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)
 
Old 09-03-2018, 02:58 PM   #11
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot print envelopes with LibreOffice Writer, HP LaserJet 5M pwabrahams Linux - General 2 06-22-2011 08:00 AM
HP laserjet 1320n printer can't print emunguya Linux - Hardware 1 11-17-2008 01:49 AM
can't get my HP LaserJet 6L to install/print ./usr/stevo Fedora 10 03-30-2005 11:03 AM
HP Laserjet 5p with Mandrake 10 does not print florencecm Linux - Hardware 3 02-24-2005 03:11 PM
HP LaserJet 6L + RH 7.2 = unable to print Lanny Linux - Hardware 0 05-06-2002 09:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration