You are not logged in.

#1 2019-12-05 09:51:58

Recolic Keghart
Member
Registered: 2017-01-05
Posts: 21

[solved] CUPS printing with IPP/DNSSD server: Filter failed

I've setup an IPP+DNSSD printing server with ArchLinux+hplip+cups+avahi in my LAN. The architecture graph is here:

https://recolic.net/tmp/arch.png

I'm trying to make my Linux Desktop using this printing server. I installed and enabled cups, hplip, and avahi-daemon. However, it's still not
using my server. Both IPP and DNSSD printing fails with the same error message:

processing since
Thu 05 Dec 2019 05:23:09 PM CST 
"Filter failed"
/var/log/cups/error_log:
...
E [05/Dec/2019:17:47:02 +0800] [CGI] Saw EOF, expected \'}\'!
E [05/Dec/2019:17:47:13 +0800] [CGI] Saw EOF, expected \':\'!
E [05/Dec/2019:17:47:13 +0800] [CGI] Saw EOF, expected \'}\'!
E [05/Dec/2019:17:47:13 +0800] [CGI] Saw EOF, expected \'}\'!
E [05/Dec/2019:17:47:13 +0800] [CGI] Saw EOF, expected \'}\'!
E [05/Dec/2019:17:47:24 +0800] [CGI] Saw EOF, expected \':\'!
E [05/Dec/2019:17:47:24 +0800] [CGI] Saw EOF, expected \'}\'!
E [05/Dec/2019:17:47:24 +0800] [CGI] Saw EOF, expected \'}\'!
E [05/Dec/2019:17:47:24 +0800] [CGI] Saw EOF, expected \'}\'!
E [05/Dec/2019:17:47:35 +0800] [CGI] Saw EOF, expected \':\'!
E [05/Dec/2019:17:47:35 +0800] [CGI] Saw EOF, expected \'}\'!
E [05/Dec/2019:17:47:35 +0800] [CGI] Saw EOF, expected \'}\'!
E [05/Dec/2019:17:47:35 +0800] [CGI] Saw EOF, expected \'}\'!
E [05/Dec/2019:17:47:46 +0800] [CGI] Saw EOF, expected \':\'!
E [05/Dec/2019:17:47:46 +0800] [CGI] Saw EOF, expected \'}\'!
E [05/Dec/2019:17:47:46 +0800] [CGI] Saw EOF, expected \'}\'!
E [05/Dec/2019:17:47:46 +0800] [CGI] Saw EOF, expected \'}\'!
E [05/Dec/2019:17:47:57 +0800] [CGI] Saw EOF, expected \':\'!
E [05/Dec/2019:17:47:57 +0800] [CGI] Saw EOF, expected \'}\'!
...

I tried to re-install hplip, un-install hplip, re-install cups. Tried to add printer through DNSSD, IPP+PPD_file, IPP+hplip.
None of them works...

Could you provide some suggestions?


moderator edit -- replaced oversized image with link.
Pasting pictures and code

Last edited by Recolic Keghart (2019-12-25 16:30:45)

Offline

#2 2019-12-05 15:06:01

seth
Member
Registered: 2012-09-03
Posts: 49,961

Re: [solved] CUPS printing with IPP/DNSSD server: Filter failed

https://aur.archlinux.org/packages/hplip-plugin/ ?

Please replace the image w/ a thumbnail/link - the board max is 200x200px

Online

#3 2019-12-05 17:19:25

Recolic Keghart
Member
Registered: 2017-01-05
Posts: 21

Re: [solved] CUPS printing with IPP/DNSSD server: Filter failed

seth wrote:

https://aur.archlinux.org/packages/hplip-plugin/ ?

Please replace the image w/ a thumbnail/link - the board max is 200x200px

1. I installed hplip-plugin and restarted cupsd, still no lucky.

2. I resized the image to make it easier for read..

Offline

#4 2019-12-05 22:48:53

seth
Member
Registered: 2012-09-03
Posts: 49,961

Re: [solved] CUPS printing with IPP/DNSSD server: Filter failed

https://wiki.archlinux.org/index.php/CU … _failed%22


Also https://wiki.archlinux.org/index.php/CU … troduction - raise the debug level, restart cups, try to print and post a complete error log.

As for the unbalanced braces, https://bugs.debian.org/cgi-bin/bugrepo … bug=737709 - but that's not necessarily the actual problem here.
Next wild guess would be to perform a complete updates (pacman -Syu) in case some out of sync mirror caused a disparity in the whole ghostscript/hplip/cups-filters/cups/poppler stack.

Online

#5 2019-12-10 09:47:41

Recolic Keghart
Member
Registered: 2017-01-05
Posts: 21

Re: [solved] CUPS printing with IPP/DNSSD server: Filter failed

seth wrote:

https://wiki.archlinux.org/index.php/CU … _failed%22


Also https://wiki.archlinux.org/index.php/CU … troduction - raise the debug level, restart cups, try to print and post a complete error log.

As for the unbalanced braces, https://bugs.debian.org/cgi-bin/bugrepo … bug=737709 - but that's not necessarily the actual problem here.
Next wild guess would be to perform a complete updates (pacman -Syu) in case some out of sync mirror caused a disparity in the whole ghostscript/hplip/cups-filters/cups/poppler stack.

Already tested the "Troubleshooting" solutions: I installed latest ghostscript, foomatic-db, hplip-plugin, and enabled avahi-daemon as suggested, and it's still not working.

Here's the debug log. https://paste.ee/p/cWDWZ

Also tested: `pacman -Syu ; and reboot` doesn't help.

Last edited by Recolic Keghart (2019-12-10 09:49:05)

Offline

#6 2019-12-10 10:27:44

SurlyCycler
Member
Registered: 2019-10-26
Posts: 47

Re: [solved] CUPS printing with IPP/DNSSD server: Filter failed

There is an on going problem with hplip and cups 2.3.
I found following the instruction for https://bbs.archlinux.org/viewtopic.php?id=248631 helpful.
Go down and look at the modified ppd. AntiComposite identified 3 places where you need to change "Other" and "Custom" within the ppd.
Once you do the changes then your ppds will be able to install correctly within cups. All the weird DNS problems and ipp etc will disappear.

Last edited by SurlyCycler (2019-12-10 10:29:21)

Offline

#7 2019-12-18 06:57:05

Recolic Keghart
Member
Registered: 2017-01-05
Posts: 21

Re: [solved] CUPS printing with IPP/DNSSD server: Filter failed

SurlyCycler wrote:

There is an on going problem with hplip and cups 2.3.
I found following the instruction for https://bbs.archlinux.org/viewtopic.php?id=248631 helpful.
Go down and look at the modified ppd. AntiComposite identified 3 places where you need to change "Other" and "Custom" within the ppd.
Once you do the changes then your ppds will be able to install correctly within cups. All the weird DNS problems and ipp etc will disappear.

Here's my hp 1110 ppd file: https://paste.ubuntu.com/p/87BQjW6cBx/
There's no Custom in the ppd at all... I don't think this causes the problem.

I run `cupstestppd` and it says:

~ $ cupstestppd /usr/share/ppd/HP/hp-deskjet_1110_series.ppd.gz
/usr/share/ppd/HP/hp-deskjet_1110_series.ppd.gz: PASS
        WARN    Size "Card4x6" should be the Adobe standard name "4x6".
        WARN    Size "Card3x5" should be the Adobe standard name "3x5".
        WARN    Size "Photo4x6" should be the Adobe standard name "4x6".
        WARN    Size "L" should be the Adobe standard name "3.5x5".
        WARN    Size "Hagaki" should be the Adobe standard name "Postcard".
        WARN    Size "Card5x8" should be the Adobe standard name "5x8".
        WARN    Size "Photo2L" should be the Adobe standard name "5x7".
        WARN    Size "Oufuku" should be the Adobe standard name "DoublePostcard".
        WARN    Size "Photo5x7" should be the Adobe standard name "5x7".
        WARN    Size "Photo13x18" should be the Adobe standard name "5x7".
        WARN    Size "Photo8x10" should be the Adobe standard name "8x10".
        WARN    Size "8.5x13" should be the Adobe standard name "FanFoldGermanLegal".
        WARN    Size "B5" should be the Adobe standard name "ISOB5".
        WARN    Size "JB5" should be the Adobe standard name "B5".
        WARN    Size "CardA4" should be the Adobe standard name "A4".
        WARN    Size "CardLetter" should be the Adobe standard name "Letter".
        WARN    Size "Env6" should be the Adobe standard name "EnvPersonal".
        WARN    PCFileName longer than 8.3 in violation of PPD spec.
                REF: Pages 61-62, section 5.3.

anyway, thanks for your information.

Offline

#8 2019-12-18 13:04:20

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [solved] CUPS printing with IPP/DNSSD server: Filter failed

*CustomPageSize True: "pop pop pop <</PageSize[5 -2 roll]/ImagingBBox null>>setpagedevice"

Commenting out a very similar line helped with a laserjet pro M 254-dnw  and cups 2.3.0 .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#9 2019-12-21 06:07:14

Recolic Keghart
Member
Registered: 2017-01-05
Posts: 21

Re: [solved] CUPS printing with IPP/DNSSD server: Filter failed

Lone_Wolf wrote:
*CustomPageSize True: "pop pop pop <</PageSize[5 -2 roll]/ImagingBBox null>>setpagedevice"

Commenting out a very similar line helped with a laserjet pro M 254-dnw  and cups 2.3.0 .

I tried this but still not working...

I'm using this same ppd file on the cups server, but directly printing on the server is working.

Offline

#10 2019-12-24 10:08:28

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: [solved] CUPS printing with IPP/DNSSD server: Filter failed

Coming late to this topic, you're not trying to filter twice are you?

On...
https://wiki.archlinux.org/index.php/CUPS#Printer_URI

is the statement...

"Warning: Avoid configuring both the server and the client with a printer filter - either the print queue on the client or the server should be 'raw'. This avoids sending a print job through the filters for a printer twice, which can cause problems"

Cheers
Paul.

Last edited by paulkerry (2019-12-24 10:09:46)

Offline

#11 2019-12-24 10:13:01

Recolic Keghart
Member
Registered: 2017-01-05
Posts: 21

Re: [solved] CUPS printing with IPP/DNSSD server: Filter failed

paulkerry wrote:

Coming late to this topic, you're not trying to filter twice are you?

On...
https://wiki.archlinux.org/index.php/CUPS#Printer_URI

is the statement...

"Warning: Avoid configuring both the server and the client with a printer filter - either the print queue on the client or the server should be 'raw'. This avoids sending a print job through the filters for a printer twice, which can cause problems"

Cheers
Paul.

Yes I'm trying to filter twice. This is very likely to be the cause of the problem.

Will try it tonight. Thanks very much for your information.

Offline

Board footer

Powered by FluxBB