Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268274 - net-print/cups-1.3.10-r1: doesn't print, error when testprint page: foomatic-rip failed. HP DeskJet 710C connected on parallel port lp0
Summary: net-print/cups-1.3.10-r1: doesn't print, error when testprint page: foomatic-...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Bugzilla (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-02 10:15 UTC by Erik Thysell
Modified: 2011-10-30 23:16 UTC (History)
2 users (show)

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


Attachments
Make.conf (make.conf,1.34 KB, text/plain)
2009-05-02 10:16 UTC, Erik Thysell
Details
Cupsd config file (cupsd.conf,2.42 KB, text/plain)
2009-05-02 10:20 UTC, Erik Thysell
Details
Printer config file in cups (printers.conf,354 bytes, text/plain)
2009-05-02 10:20 UTC, Erik Thysell
Details
Emerge --info results (emerge.info,3.62 KB, text/plain)
2009-05-02 10:21 UTC, Erik Thysell
Details
CUPS error log (error_log,800.96 KB, text/plain)
2009-05-02 10:23 UTC, Erik Thysell
Details
/var/log/cups/access_log (access_log,386.97 KB, text/plain)
2009-05-05 05:35 UTC, Erik Thysell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Thysell 2009-05-02 10:15:57 UTC
I have a HP DeskJet 710C connected to my parallel port (parallel0, lp0)

After emerging cups and ghostscript-gpl, using webinterface to set-up my printer
HP DeskJet 710C, CUPS finds it automatically in the Device list. It shows up in printer list as 

Description: HP DeskJet 710C Farverprinter
Location: thysells
Printer Driver: HP DeskJet 710C Foomatic/pnm2ppa (recommended)
Printer State: idle, accepting jobs, published.
Device URI: parallel:/dev/lp0 

But when printing test page:
DESKJET_710C "/usr/libexec/cups/filter/foomatic-rip failed"

Appears as heading instead of just the name (DESkJET_710C)

I have tried to clean (remove) config files and reemerged cups and ghostscript-gpl and hplip.
(hp-setup wont even find it on the parallel port, don't know if this is a symptom or the cause of the problem.)

I have Kubuntu on the same machine. When running that, printing works perfectly, using cups (same version 1.3.10)


Reproducible: Always

Steps to Reproduce:
1. emerge cups ghostscript-gpl hplip
2. setup the printer (HP 710C)
3. print test page

Actual Results:  
Connect printer to parallel port
Emerge cups
Setup the printer
on 
Device URI: parallel:/dev/lp0 
Print test page -
Cups report
DESKJET_710C "/usr/libexec/cups/filter/foomatic-rip failed"

ID  	                Name  	         User  	Size  	Pages  	State  	
DESKJET_710C-25  	Test Page  	root  	17k  	1  	stopped  	


Expected Results:  
(Test) Page printed
Comment 1 Erik Thysell 2009-05-02 10:16:45 UTC
Created attachment 190111 [details]
Make.conf
Comment 2 Erik Thysell 2009-05-02 10:20:32 UTC
Created attachment 190112 [details]
Cupsd config file
Comment 3 Erik Thysell 2009-05-02 10:20:52 UTC
Created attachment 190113 [details]
Printer config file in cups
Comment 4 Erik Thysell 2009-05-02 10:21:58 UTC
Created attachment 190115 [details]
Emerge --info results
Comment 5 Erik Thysell 2009-05-02 10:23:19 UTC
Created attachment 190116 [details]
CUPS error log
Comment 6 Peter Volkov (RETIRED) gentoo-dev 2009-05-04 16:58:27 UTC
Thank you for report Erik. Could you try to enable "LogLevel debug" at /etc/cups/cupsd.conf, restart cups, print some page and show us log from /var/log/cups/access_log?
Comment 7 Erik Thysell 2009-05-05 05:35:08 UTC
Created attachment 190384 [details]
/var/log/cups/access_log
Comment 8 Erik Thysell 2009-05-05 05:36:38 UTC
(In reply to comment #7)
> Created an attachment (id=190384) [edit]
> /var/log/cups/access_log
> 

The first part of it up to today about 07:31 is without the debug set (only "info")
Comment 9 Peter Volkov (RETIRED) gentoo-dev 2009-05-05 06:50:28 UTC
I see the following in your logs:

D [30/Apr/2009:20:04:02 +0200] [Job 23] /bin/sh: pnm2ppa: command not found

So try to install pnm2ppa. And as I the reason for foomatic-rip to fail is:

D [30/Apr/2009:17:39:59 +0200] cupsdIsAuthorized: requesting-user-name="guest"
E [30/Apr/2009:17:39:59 +0200] Cancel-Job: Unauthorized
[snip]
E [30/Apr/2009:17:40:03 +0200] PID 5772 (/usr/libexec/cups/filter/foomatic-rip) stopped with status 1!

Could you check permissions?
Comment 10 Erik Thysell 2009-05-06 03:36:26 UTC
(In reply to comment #9)
> I see the following in your logs:
> 
> D [30/Apr/2009:20:04:02 +0200] [Job 23] /bin/sh: pnm2ppa: command not found
> 
> So try to install pnm2ppa. And as I the reason for foomatic-rip to fail is:
> 
> D [30/Apr/2009:17:39:59 +0200] cupsdIsAuthorized: requesting-user-name="guest"
> E [30/Apr/2009:17:39:59 +0200] Cancel-Job: Unauthorized
> [snip]
> E [30/Apr/2009:17:40:03 +0200] PID 5772 (/usr/libexec/cups/filter/foomatic-rip)
> stopped with status 1!
> 
> Could you check permissions?
> 

My permissions:
 ls -l /usr/libexec/cups/filter/foomatic-*
lrwxrwxrwx 1 root root 27 16 apr 01:32 /usr/libexec/cups/filter/foomatic-gswrapper -> /usr/bin/foomatic-gswrapper
lrwxrwxrwx 1 root root 21 16 apr 01:32 /usr/libexec/cups/filter/foomatic-rip -> /usr/bin/foomatic-rip

and then :
 ls -l /usr/bin/foomatic-*
-rwxr-xr-x 1 root root   3237 16 apr 01:31 /usr/bin/foomatic-gswrapper
-rwxr-xr-x 1 root root 215818 16 apr 01:31 /usr/bin/foomatic-rip
Comment 11 Erik Thysell 2009-05-06 04:08:08 UTC
Fantastic, it was that simple:
 emerge pnm2ppa
nano /etc/pnm2ppa.conf
alter the configuration to match my printer and...
voila!

Thanks a lot, just a shame I didn't find out myself.
Is this a bug or just a thing I should have known I had to do?
Comment 12 Peter Volkov (RETIRED) gentoo-dev 2009-05-25 21:59:18 UTC
I don't think we need to do anything here since this solution is covered by our printing guide:
http://www.gentoo.org/doc/en/printing-howto.xml
http://www.linuxprinting.org/show_printer.cgi?recnum=HP-DeskJet_710C

Closing as INVALID.