Need cups help, Stopped printing and gives filter error
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Need cups help, Stopped printing and gives filter error
I am still fairly new to Linux but learning quickly. Running Mint, cinnamon 18. Cups... 2.2 I think it was. Printer was working fine and then for no apparent reason in stopped printing.
Printer works fine in Windows, just not Linux.
I have uninstalled and reinstalled cups.
Double checked to make sure I have the right driver.
Printer is Brother hl-l2300d
I am using the Default Config file
When I print it stops and the diagnosis, printer returns a filter failure.
I cleared out the error logs so I could start fresh and now it starts showing errors at this point in the file:
I [23/Mar/2017:17:18:38 -0500] Listening to [v1.::1]:631 (IPv6)
I [23/Mar/2017:17:18:38 -0500] Listening to 127.0.0.1:631 (IPv4)
W [23/Mar/2017:17:18:38 -0500] No JobPrivateAccess defined in policy default - using defaults.
W [23/Mar/2017:17:18:38 -0500] No JobPrivateValues defined in policy default - using defaults.
W [23/Mar/2017:17:18:38 -0500] No SubscriptionPrivateAccess defined in policy default - using defaults.
W [23/Mar/2017:17:18:38 -0500] No SubscriptionPrivateValues defined in policy default - using defaults.
E [23/Mar/2017:17:18:38 -0500] Unknown directive <Limit on line 57 of /etc/cups/cupsd.conf.
and repeats all the way to this line.
E [23/Mar/2017:17:18:38 -0500] Missing value for </Policy> on line 80 of /etc/cups/cupsd.conf.
This is the config file starting at line 57 where it says the errors start.
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
ANY Help would appreciated. I am totally out of my league and while I am new to Linux I really like it. I do not want to have to go back to Windows but that is where I headed if I can't get this figured out.
Last edited by Kudzupatch; 03-23-2017 at 05:28 PM.
From the snippet you posted, I didn't spot anything obvious. If you didn't edit cupsd.conf yourself, that might imply a problem with the installed CUPS package itself IMHO, and therefore a bug report might be needed.
After posting this I did find an error in the default config file, it had an open </policy> without an <policy> command. Removed that and solved the above issues of filter failure. Now when I print, it stalls at sending to printer and just sits there. So I am still dead in the water, just for a different reason.
I might try installing an older version of cups, I am really desperate. If you can recommend a simpler printer server I would appreciate that. I am only using a laser printer and plotter and I plot from windows.
Well done with finding that. It is concerning that Mint is shipping the cups package with a broken file though. It will impact others (hence my suggestion to submit a bug report). Back to your printer problem - anything obvious reported in the cups error log?
Which printer driver is configured? This command will help confirm if you're not sure...
Which printer driver is configured? This command will help confirm if you're not sure...
Code:
egrep "Name|Model|Filter" /etc/cups/ppd/*
"HLL2300D.PPD" is the driver. It was working perfectly, then just stopped for no apparent reason.
Got something new in the errors that I have not seen before;
E [24/Mar/2017:07:35:01 -0500] Syntax error on line 1 of classes.conf.
E [24/Mar/2017:07:35:01 -0500] Syntax error on line 11 of classes.conf.
E [24/Mar/2017:07:35:01 -0500] Syntax error on line 14 of classes.conf.
E [24/Mar/2017:07:35:01 -0500] Syntax error on line 18 of classes.conf.
hazel - After it quit working I did an update but I not before. I don't know what version it had but it would have been recent. I have only been working with Linux 3(?) months now.
No, it's a different problem. I didn't get those errors. You need to google and find the correct format for the classes.conf file, then sudo edit it. At least it tells you which lines are wrong. I just checked mine on LFS and Debian; neither has anything in it except comments.
In the early days of hplip, was actually hpoj and hpinkjet back in those days, I had a print issue like yours. Turns out the printer was out of ink. And I also needed pnm2ppa or the printer just pretended to print with no failures.
No, it's a different problem. I didn't get those errors. You need to google and find the correct format for the classes.conf file, then sudo edit it. At least it tells you which lines are wrong. I just checked mine on LFS and Debian; neither has anything in it except comments.
I will work on this latter. This is new and errors are for nearly every line in the file. I am really liking Linux but this is really discouraging!
"HLL2300D.PPD" is the driver. It was working perfectly, then just stopped for no apparent reason.
No, that isn't the driver. It's tells CUPS which filter(s) to use, (and the underlying printer capabilities). That's why I gave the command to provide that information. Anyway, this doesn't appear to be driver-related.
Quote:
Got something new in the errors that I have not seen before;
E [24/Mar/2017:07:35:01 -0500] Syntax error on line 1 of classes.conf.
E [24/Mar/2017:07:35:01 -0500] Syntax error on line 11 of classes.conf.
E [24/Mar/2017:07:35:01 -0500] Syntax error on line 14 of classes.conf.
E [24/Mar/2017:07:35:01 -0500] Syntax error on line 18 of classes.conf.
It appears that you have /etc/cups/classes.conf present. Did you perhaps unintentionally create a printer class and add your printer to it? If not, you can safely remove this file completely. (That has to be done as root of course.)
Quote:
NAME
classes.conf - class configuration file for cups
DESCRIPTION
The classes.conf file defines the local printer classes that are available. It is normally located in the /etc/cups directory and is
maintained by the cupsd(8) program. This file is not intended to be edited or managed manually.
Read the man page for more info about this configuration file
Have you tried a fresh install? To rule out the printer as the issue / verify a configuration issue. A lot of times it's faster than trying to figure out the magic words that broke it in the first place.
I deleted the /etc/cups/classes.conf file and rebooted. Still wouldn't print. Cleared the error log, tried again and it stalls with the message 'sending data. I have two files sitting in the que with "filter failed' messages.
I print from my store in Firefox so I decided to try it with Chrome. It worked. Went back to Firefox and it worked. Still those two files sitting there in the que.
I had it set to debug so lots of data in the error log but doesn't appear to be any errors.
I have to print receipts and mailing labels so I will report back how it works .... or doesn't. Very confusing.
Removing classes.conf is a good move since the syntax errors just add another problem to the mix. The failed print jobs can be removed via the cUPS web interface, or just run the following command from a terminal window
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.