Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 493748 - net-print/cups with net-print/hplip-3.13.9 fails to print to remote HP 4L
Summary: net-print/cups with net-print/hplip-3.13.9 fails to print to remote HP 4L
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-12-09 11:31 UTC by Alex Dubenetsky
Modified: 2015-05-11 12:39 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge--info.txt,6.26 KB, text/plain)
2013-12-09 11:31 UTC, Alex Dubenetsky
Details
grep "Job 539" /var/log/cups/error_log.O (var-log-cups-eeror_log.txt,4.82 KB, text/plain)
2013-12-09 11:32 UTC, Alex Dubenetsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Dubenetsky 2013-12-09 11:31:16 UTC
Created attachment 365000 [details]
emerge --info

The problem is solved but it might need attention from CUPS maintainers.

CUPS failed to print a document remotely with the error "Filter failed" while local printing is ok.
Documents are successfully sending to a "server" and showing in lpq output.
The printer HP LaserJet 3200 is connected to the "server" via USB.

After some searching I fixed /etc/cups/ppd/HP_LaserJet_3200.ppd by adding full path to the filter entry:

--- HP_LaserJet_3200.ppd.orig	2013-12-08 20:57:41.000000000 +0400
+++ HP_LaserJet_3200.ppd	2013-12-08 21:14:45.000000000 +0400
@@ -29,7 +29,7 @@
 *cupsVersion: 1.7
 *cupsModelNumber: 0
 *cupsManualCopies: True
-*cupsFilter: "application/vnd.cups-raster 0 hpcups"
+*cupsFilter: "application/vnd.cups-raster 0 /usr/libexec/cups/filter/hpcups"
 *cupsLanguages: "en"
 *OpenUI *PageSize/Media Size: PickOne
 *OrderDependency: 10 AnySetup *PageSize

That fixed the issue for me.

---
Example of /var/log/cups/error_log and emerge --info is attached.
Comment 1 Alex Dubenetsky 2013-12-09 11:32:08 UTC
Created attachment 365002 [details]
grep "Job 539" /var/log/cups/error_log.O
Comment 2 Daniel Pielmeier gentoo-dev 2015-04-04 13:42:10 UTC
I think this is a ups issue. Does this still happen with the current stable version of cups?
Comment 3 Alex Dubenetsky 2015-05-11 09:53:30 UTC
Daniel,
hplip-3.14.10 is ok.
Let's close it.

(A reminder. The problem was with the $PATH var, correct $PATH is "envp[9]="PATH=/usr/libexec/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"")
Comment 4 Daniel Pielmeier gentoo-dev 2015-05-11 12:39:12 UTC
Thanks for the info!