LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Need cups help, Stopped printing and gives filter error (https://www.linuxquestions.org/questions/linux-software-2/need-cups-help-stopped-printing-and-gives-filter-error-4175602424/)

Kudzupatch 03-23-2017 06:26 PM

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.

ferrari 03-23-2017 08:23 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.

FWIW, I've seen hints of similar reported elswhere. For example....
https://forum.voidlinux.eu/t/cupsd-error-in-logs/1767

Kudzupatch 03-24-2017 04:31 PM

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.

ferrari 03-24-2017 05:58 PM

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/*

hazel 03-24-2017 06:10 PM

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?

Kudzupatch 03-25-2017 07:32 AM

Quote:

Originally Posted by ferrari (Post 5687903)
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.

hazel 03-25-2017 08:41 AM

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.

Shadow_7 03-25-2017 08:59 AM

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.

Kudzupatch 03-25-2017 09:59 AM

Quote:

Originally Posted by Shadow_7 (Post 5688069)
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.

Kudzupatch 03-25-2017 10:00 AM

Quote:

Originally Posted by hazel (Post 5688064)
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!

Shadow_7 03-25-2017 10:55 AM

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.

ferrari 03-25-2017 03:30 PM

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

Shadow_7 03-25-2017 04:33 PM

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.

Kudzupatch 03-27-2017 12:37 PM

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.

ferrari 03-27-2017 02:44 PM

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


All times are GMT -5. The time now is 05:10 PM.