LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 03-23-2017, 05:26 PM   #1
Kudzupatch
LQ Newbie
 
Registered: Mar 2017
Posts: 7

Rep: Reputation: Disabled
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.
 
Old 03-23-2017, 07:23 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

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

FWIW, I've seen hints of similar reported elswhere. For example....
https://forum.voidlinux.eu/t/cupsd-error-in-logs/1767
 
Old 03-24-2017, 03:31 PM   #3
Kudzupatch
LQ Newbie
 
Registered: Mar 2017
Posts: 7

Original Poster
Rep: Reputation: Disabled
I am at a lost and must have a printer!

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.
 
Old 03-24-2017, 04:58 PM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
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...
Code:
egrep "Name|Model|Filter" /etc/cups/ppd/*
 
Old 03-24-2017, 05:10 PM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
This looks a bit like my problem (see http://www.linuxquestions.org/questi...te-4175602339/). I recently upgraded cups in AntiX and now
Quote:
when I print, it stalls at sending to printer and just sits there
. Did you update cups recently?
 
Old 03-25-2017, 06:32 AM   #6
Kudzupatch
LQ Newbie
 
Registered: Mar 2017
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
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.
 
Old 03-25-2017, 07:41 AM   #7
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
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.
 
Old 03-25-2017, 07:59 AM   #8
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
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.
 
Old 03-25-2017, 08:59 AM   #9
Kudzupatch
LQ Newbie
 
Registered: Mar 2017
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Shadow_7 View Post
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.
I wish it was that, it's a new printer and it works perfectly under windows.
 
Old 03-25-2017, 09:00 AM   #10
Kudzupatch
LQ Newbie
 
Registered: Mar 2017
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
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!
 
Old 03-25-2017, 09:55 AM   #11
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
http://support.brother.com/g/b/downl...2300d_us_eu_as

That's kind of an ugly driver option. I think I'll avoid brother printers. I don't like EULAs that come bounded to hardware.
 
Old 03-25-2017, 02:30 PM   #12
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
"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
Code:
man classes.conf

Last edited by ferrari; 03-25-2017 at 02:31 PM.
 
Old 03-25-2017, 03:33 PM   #13
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
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.
 
Old 03-27-2017, 11:37 AM   #14
Kudzupatch
LQ Newbie
 
Registered: Mar 2017
Posts: 7

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-27-2017, 01:44 PM   #15
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
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
Code:
cancel -a
 
  


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
CUPS printing error: ="/usr/local/libexec/cups/filter/rastertosamsungspl failed ted_chou12 Linux - Software 0 08-04-2012 05:22 AM
cups printing - where do I create a print filter? OOsorio Linux - Newbie 2 05-20-2008 08:31 PM
System stopped printing with cups/hal error msg RetiredInMaine Linux - Desktop 3 02-20-2007 06:19 PM
Cups stopped printing with Epson D68 moo-cow Linux - Hardware 1 05-08-2006 08:04 AM
printing problem: cups 1.1 pstops filter broken? ac1980 Linux - Software 0 06-29-2004 11:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:15 AM.

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