LinuxQuestions.org
Review your favorite Linux distribution.
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-25-2017, 01:06 AM   #1
j12i
Member
 
Registered: Nov 2013
Location: UTC+1
Distribution: Slackware64 15.0
Posts: 160

Rep: Reputation: Disabled
Unhappy Old HP LaserJet stopped working after 14.2 upgrade, "filter failed", parallel port


Hello

after the 14.2 upgrade my Hewlett Packard LaserJet 4050N parallel port printer stopped working. In the CUPS web interface I get stopped "Filter failed" for all jobs. However if I request a test page from the CUPS web interface it prints fine.

Find attached a logfile from CUPS with LogLevel debug.

The first thing I should try may be downgrading the HP stuff to the Slackware 14.1 version, but how would I go about that?
Attached Files
File Type: txt cups..1.txt (8.1 KB, 49 views)
 
Old 08-25-2017, 04:00 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Parallel port? Trailing edge technology now :-). I have the impression (and only that) that when you bang stuff at the parallel port, the printer seems to handle it, but interactive dialogue fails. I don't think PnP (remember that?) was ever implemented on the parallel port. It means info is sparse.

As a first move, if you did move the /etc/*.conf.new files to /etc/*.conf, I'd try and put back the old ones, or set up the new ones again. To downgrade, only cups may need it, which you would do with
Code:
upgradepkg cups-from-14.2.txz%cups-from-14.1.txz
 
Old 08-25-2017, 11:40 AM   #3
svim
Member
 
Registered: Feb 2015
Distribution: Slackware 14.2-64bit
Posts: 62

Rep: Reputation: Disabled
The 4050N model should also have an Ethernet port and be able to used as a networked printer (note the 'N' designation). Is there a specific reason why you're still using the parallel port? Should be less 'friction' involved if you just added it into your home network as a network printer.
 
1 members found this post helpful.
Old 08-25-2017, 12:22 PM   #4
j12i
Member
 
Registered: Nov 2013
Location: UTC+1
Distribution: Slackware64 15.0
Posts: 160

Original Poster
Rep: Reputation: Disabled
Thank you two.
business_kid, I went through the .new files at some point. Edit: with special regard for this problem. I will try the downgrading later.
svim, I looked on the back of it, there's no LAN port, but a suspicious hole where one could have been. Besides, I don't think this would help for this particular problem. Re: banging stuff at the parallel port: I tried echo "foo"|lp, didn't print anything either.

Last edited by j12i; 08-25-2017 at 12:32 PM.
 
Old 08-25-2017, 09:19 PM   #5
ljb643
Member
 
Registered: Nov 2003
Posts: 526

Rep: Reputation: Disabled
For information, I have an HP LaserJet printer - even older than yours - connected to my Slackware 14.2 system over a parallel port, and it works fine. I did have to load the "lp" module before CUPS would let it work, or even allow it to be added as a printer. I added "/sbin/modprobe lp" to the file /etc/rc.d/rc.modules.local to make it load at boot time.

One the module was loaded, and the printer turned on, CUPS shows it as a local printer for selection with Add Printer, and the result is a connection URI like this: parallel:/dev/lp0

Troubleshooting CUPS issues is not easy. However, I think the log file you posted is not from printing but from something else, such as access to the CUPS web interface.
 
1 members found this post helpful.
Old 08-25-2017, 09:58 PM   #6
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,802

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
This reads like a missing library or similar. It would be useful to see the relevant section of /var/log/cups/error_log for clues about what might be failing. Do you have CUPS configured using a postscript driver, HPLIP, gutenprint, or....? The following can help determine the answer if you're not sure...
Code:
egrep "Model|Name|Filter" /etc/cups/ppd/*
There are a number of driver choices available for this HP model...

http://www.openprinting.org/printer/HP/HP-LaserJet_4050

You could watch the CUPS error_log tail with
Code:
tail f /var/log/cups/error_log
then send a print job and capture the relevant output.
 
Old 08-28-2017, 06:30 AM   #7
j12i
Member
 
Registered: Nov 2013
Location: UTC+1
Distribution: Slackware64 15.0
Posts: 160

Original Poster
Rep: Reputation: Disabled
Thanks also to you two.
Attached a logfile with the real info, from two printing attempts. (cups..2.log)


The culprit seemingly is the perl script /usr/lib64/cups/filter/foomatic-rip-hplip from the hplip package
Code:
D [28/Aug/2017:12:48:48 +0200] [Job 364] Can\'t use \'defined(@array)\' (Maybe you should just omit the defined()?) at /usr/lib64/cups/filter/foomatic-rip-hplip line 1656.
D [28/Aug/2017:12:48:48 +0200] [Job 364] PID 2130 (/usr/lib64/cups/filter/foomatic-rip-hplip) stopped with status 255 (Unknown error 155)
The respective part of the script reads
Code:
my $dontparse = 0;
if ((!defined(@{$dat->{'args'}})) ||
    ($#{$dat->{'args'}} < 0)) {
    # We don't have any options, so we do not need to parse the
    # PostScript data
    $dontparse = 1;
So, I took that defined() out, and something comes out of the printer. However, it's not what I wanted.
Code:
%PDF-1.3
%¿
Log from this: cups..3.log



Edit:
/etc/cups/ppd/HP_LaserJet_4050_Series.ppd is the single file in that directory, and I don't know where it's from.
grep "etc/cups/ppd/HP_LaserJet_4050_Series.ppd" /var/log/packages/* comes up empty.
Inside the file it says it is from *FileVersion: "hpijs 3.12.9".
Attached Files
File Type: log cups..2.log (162.6 KB, 38 views)
File Type: log cups..3.log (199.4 KB, 21 views)

Last edited by j12i; 08-28-2017 at 06:44 AM.
 
Old 08-28-2017, 07:03 AM   #8
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

Quote:
Originally Posted by someone named bert View Post
The culprit seemingly is the perl script /usr/lib64/cups/filter/foomatic-rip-hplip from the hplip package
Code:
D [28/Aug/2017:12:48:48 +0200] [Job 364] Can\'t use \'defined(@array)\' (Maybe you should just omit the defined()?) at /usr/lib64/cups/filter/foomatic-rip-hplip line 1656.
D [28/Aug/2017:12:48:48 +0200] [Job 364] PID 2130 (/usr/lib64/cups/filter/foomatic-rip-hplip) stopped with status 255 (Unknown error 155)
Maybe this patch can solve your issue...

-- SeB
 
Old 08-28-2017, 08:46 AM   #9
j12i
Member
 
Registered: Nov 2013
Location: UTC+1
Distribution: Slackware64 15.0
Posts: 160

Original Poster
Rep: Reputation: Disabled
Thanks SeB. This wasn't the solution, but I applied the patch anyways.


What I did to solve this was reinstall the printer in CUPS and select another driver (the postscript one).
 
Old 08-28-2017, 03:47 PM   #10
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,802

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
What I did to solve this was reinstall the printer in CUPS and select another driver (the postscript one).
Good move
 
Old 09-28-2017, 05:41 AM   #11
geekssem76
LQ Newbie
 
Registered: Sep 2017
Location: United States
Posts: 1

Rep: Reputation: Disabled
Red face Reinstall old one or install new

You should change your driver...Reinstall old one or install new
 
Old 09-29-2017, 04:37 AM   #12
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Welcome to LQ, geekssem76.

I would feel that one of the first rules on maintenance is:
"If it ain't broke, don't fix it!"

I would reinstall nothing if you're happy with the performance.
 
  


Reply

Tags
hplip, parallel, printer, slackware 14.2



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
[SOLVED] Slackware-current 17-JAN-2016 HP printing failed with "Filter Failed" message. cowlitzron Slackware 5 01-03-2019 11:08 AM
stopped "/usr/lib/cups/filter/pstopdf failed" in Antix 13.2 (= wheezy); howto solve the issue? floppy_stuttgart Debian 2 08-05-2015 02:50 AM
CUPS problem : "Job stopped due to filter errors" MisterBark Linux - Desktop 13 10-11-2014 10:42 PM
"/usr/lib/cups/filter/foomatic-rip failed" newbiesforever Linux - Hardware 1 12-10-2010 09:37 AM
[SOLVED] "/usr/libexec/cups/filter/hpcups failed" dpminusa Gentoo 2 07-08-2010 04:52 AM

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

All times are GMT -5. The time now is 05:36 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