You are not logged in.
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
https://aur.archlinux.org/packages/hplip-plugin/ ?
Please replace the image w/ a thumbnail/link - the board max is 200x200px
Offline
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
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.
Offline
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
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
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
*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.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
*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
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
Coming late to this topic, you're not trying to filter twice are you?
On...
https://wiki.archlinux.org/index.php/CUPS#Printer_URIis 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