"Foomatic-rip failed" one possible solution?

How to do things, solutions, recipes, tutorials
Message
Author
User avatar
malderson
Posts: 49
Joined: Thu 15 Nov 2007, 21:34
Location: Wisconsin, USA

"Foomatic-rip failed" one possible solution?

#1 Post by malderson »

I just "solved" a problem with a CUPS/Foomatic printer. "Foomatic-rip" problems seem pretty common, so I want to share in case it can help someone else.

I am using Puppy 3.01 as a full hard-disk install, with an HP Deskjet 3915 printer. Following suggestions from this Forum I got it to print using CUPS and the hpijs-2.7.10 pet from www.puppylinux.ca/bugs/.

After installing and deleting both "official" Ghostview .pet packages, the printer stopped working. CUPS reported "Foomatic-rip failed". I spend several hours in the Forum and on the web, and finally figured out that CUPS/Foomatic needs Ghostscript to work. (It actually says so on the CUPS Printer Test Page, but I'm new at this.)

I opened the console and entered "gs" to see what would happen. It reported that the "gs_init.ps" file was missing. I checked in "usr/share/ghostscript/8.15" and it was indeed gone! I'm guessing uninstalling the Ghostview packages broke it.

I tried downloading and extracting "ghostscript-8.15.tar.gz" from the Ghostscript website to replace the 8.15 directory, but it didn't work. The "gs" executable in Puppy 3.01 points to ver. 8.15.04, not 8.15, and I don't know how to fix it. Finally I booted Puppy from the live CD, used Pupzip to make a tar.gz of the active Ghostscript directory, and copied it to a USB drive. I booted back into the Hard Puppy and trashed the Ghostscript directory in "usr/share". I copied the new tar.gz file to the hard drive, then extracted a new Ghostscript directory to "usr/share". I reinstalled the printer in CUPS, and it worked!

I doubt this procedure would work for everyone, but it did work once.

All is not perfect. ePDFview fails to print and I don't know how to fix that, but as I have the Adobe Reader 5 .pup installed, and it will print, I'm at least functional for PDF files.

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#2 Post by BarryK »

Yes, I'm getting the dreaded "Foomatic-rip failed" message in Dingo Puppy.

It is so so so frustrating as I cannot figure out what is wrong. In Dingo, gs is installed properly and works. Foomatic-rip has a debug mode that logs to a file in /tmp, but that doesn't work. I tried replacing foomatic-rip with a bash script that just logs what params get passed in,but that doesn't even execute. In other words, it seems that foomatic-rip isn't even being executed, even though the "Foomatic-rip failed" message is being displayed. CUPS troubleshooting is such a dark art.

johnmd
Posts: 11
Joined: Mon 10 Mar 2008, 00:58

"Foomatic-rip failed" one possible solution?

#3 Post by johnmd »

thanks malderson - i've spent ages trying to get puppy to print as a live cd (puppy 3.01) and each time gave up in frustration - put it back on the shelf - or should one say back in the pound - anyway with your hint - and now having puppy as a hard disc install - i downloaded hpijs-2.8.2_static_fix.pet from saource you gave and installed it and amazingly it worked - great - many thanks - glad i didn't need to go into all your ghostscript stuff - way over my head - thanks again

Wolf Pup
Posts: 637
Joined: Fri 28 Apr 2006, 01:37

#4 Post by Wolf Pup »

The newer HPIJS 2.8.2 includes its own version of foomatic rip called foomatic-rip-hplip.

HPIJS 2.8.2

md5sum
[img]http://img230.imageshack.us/img230/8595/ubd6467dp2.png[/img]
[url=http://www.tinyurl.com/54tu74]Visit The Repository[/url] - Helpful and hard-to-find treats for Puppy 3.
[url=http://www.tinyurl.com/c5a68f]Click Here for Puppy Support Chat, + Helpful Links.[/url]

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#5 Post by edoc »

Wolf Pup wrote:The newer HPIJS 2.8.2 includes its own version of foomatic rip called foomatic-rip-hplip.

HPIJS 2.8.2

md5sum
I am dealing with a "/usr/lib/cups/filter/foomatic-rip-hplip failed" error and tried to get this fix but the link is broken.

I am running 4.11-Normal Frugal
# gs
ESP Ghostscript 815.02 (2006-04-19)
Copyright (C) 2004 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
GS>^C
# hpijs

unable to init hpijs server
#
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
jakobcornelis
Posts: 172
Joined: Tue 06 Nov 2007, 15:37
Location: Elliot Lake, Ontario

#6 Post by jakobcornelis »

This thread caught my attention because I, too, have an HP Deskjet 3915 that won't print under CUPS, even though CUPS s a y s it prints (job completed, etc.). Can anyone explain this?

I finished installing a frugal install of Puppy 4.1.2. Cups uses deskjet.ppd, which I believe was in the /usr/share/cups/model directory originally) to accomplish faking the printing action. With "HP Deskjet 3845 or 3920 Foomatic/hpijs.ppd (recommended)" I get the notorious "/usr/lib/cups/filter/foomatic-rip-failed" error notice. When trying to print the test page, the job is reported as "stopped"

By the way, to get to the latest HPIJS files, go to www.puppylinux.ca/, which is what Wolf Pup's link relates to, and click on the "bugs" menu item there. But you've probably figured that out by now. However, there is no hpijs-2.8.2_static_fix.pet there, as distinct from hpijs-2.8.2.pet, which I assume are not the same.

I am what is known on this forum as a "rank beginner", which is why I posted a thread on this subject in the Beginners' forum (which so far has not resulted in a solution), and never thought to look here where the vets are, who apparently occasionally are as frustrated as I am, including BarryK himself, no less. That makes me feel slightly, but only slightly, better.

So, how can CUPS be telling me my printer is working when it isn't?

jc

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#7 Post by rcrsn51 »

Open Menu > Setup > Puppy Package Manager and select the System group. There is an hpijs-2.8.2_static_1.pet listed there.

User avatar
rjbrewer
Posts: 4405
Joined: Tue 22 Jan 2008, 21:41
Location: merriam, kansas

#8 Post by rjbrewer »

Jacob;

You didn't follow the suggestions I gave the other day; let's try
again. Though there may be enough difference between my 3930
and your 3915 to make it not possible.

1. Delete any printer packages you have been trying to install.
2. Install 2.8.2 static hpijs from the package manager.
3. Go to this site and scroll down; generate ppd files for deskjet
3845, 3920.

http://openprinting.org/show_driver.cgi ... skJet_3930

4. Move these files from my-documents to usr/share/cups/model.
5. Start cups--add printer--yes--manage printers--add printer.
6. name--hpdeskjet--continue.
7. device--usbprinter#1 39xx.--continue.
8. model driver--hp--continue--deskjet 39xx foomatic recommended,
continue.
9. added--success--printers--set as default--print test page.

Here's hoping
rjb

Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#9 Post by edoc »

I understand that Puppy 4.2 contains a significantly improved CUPS which reportedly cures most of the bugs that have plagued the recent versions of CUPS.

I have 4.2-Beta2 and booted it on a laptop here - looks good!

Cannot really test CUPS since every copy seems to interact with every other one on the same Network and we have several computers in the house.

My plan is to load 4.2 on all of the computers at the same time and then test things.

Not sure of the Final Release date for 4.2 but it should be really soon.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#10 Post by rcrsn51 »

I understand that Puppy 4.2 contains a significantly improved CUPS which reportedly cures most of the bugs that have plagued the recent versions of CUPS.
Personally, I never had any trouble with the current version of CUPS in 4.xx, other than its inability to delete a print job. Other users had problems when they couldn't find a compatible driver or they had issues with networked printers.

I just tested the hpijs-2.8.2_static_1.pet with an HP-6P compatible networked printer under 4.1.2 and it worked fine.

User avatar
jakobcornelis
Posts: 172
Joined: Tue 06 Nov 2007, 15:37
Location: Elliot Lake, Ontario

#11 Post by jakobcornelis »

rj: I think I followed all your earlier suggestions -- in any case, I followed them again, and gets me exactly where I was before, with a "....foomatic-rip failure". I used each of the printer drivers with numbers closest to the printer's, one of which (3920) is "recommended", presumably for the HP Deskjet 3915. All drivers lead to the same failure.

What I am wondering is what does hpijs-2.8.2_static_1.pet have to do with all this? Having installed this at the suggestion of rcrsn51 I modified the printer with a few of the hpijs-2.8.2_static-1.files, with the same result as before (can a .gz file be used for this?)

Of all my trials, the driver that comes closest to the objective (deskjet.ppd) is the one that gets CUPS to report success in all respects except for making the printer go.

I haved examined the CUPS error log, but I don't have enough savvy to make any sense out of it.

What now? Any other suggestions?

jc

User avatar
jakobcornelis
Posts: 172
Joined: Tue 06 Nov 2007, 15:37
Location: Elliot Lake, Ontario

#12 Post by jakobcornelis »

By the way, I just got my old Canon BJC 2000 out of the attic. It took all of five minutes to plug it in (parallel), set it up with CUPS, and get it printing.

Maybe, unless anyone has any further bright ideas, I'll just stick with this. I think cups just doesn't like Deskjets.

Although I hate leaving the problem unsolved.

jc

User avatar
rjbrewer
Posts: 4405
Joined: Tue 22 Jan 2008, 21:41
Location: merriam, kansas

#13 Post by rjbrewer »

Actually; cups loves Deskjets.

Really don't understand whats going on with yours.

My 3930 is working fine with my old drivers from last year,
or with the 2.8.2 static and ppd.

Maybe just that particular model?

rjb

Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#14 Post by edoc »

The most recent versions of CUPS have had terrible problems with my OfficeJet. My OJ 4215 worked fine then in the 4.x releases of Puppy and subsequent CUPS updates it got ugly.

No one has been able to figure out why so I am praying that it is true that 4.2 & CUPS will play more nicely together.

It could be specific with the types of printers in an individual network (I have a Samsung laser, OJ 4215, and plan to add a HP C4480), computers are several laptops and one desktop.

Lots of variables!
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
rjbrewer
Posts: 4405
Joined: Tue 22 Jan 2008, 21:41
Location: merriam, kansas

#15 Post by rjbrewer »

The hpijs I'm using is 2.8.6

Don't remember where it came from. I have it stripped of every-
thing but the 4 necessary files and saved on a zip disk.
rjb

Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs

User avatar
jakobcornelis
Posts: 172
Joined: Tue 06 Nov 2007, 15:37
Location: Elliot Lake, Ontario

#16 Post by jakobcornelis »

I just want to thank the folks that helped me search for a solution to my problem of getting my HP Deskjet 3915 working with CUPS. I'll be keeping my eyes open for anything that might lead to a solution, but meanwhile I'll stick with my old Canon BJC 2000. At least now I can print.

That was the only essential element missing after I started using Puppy. I want to say here, although speaking to the converted, that Puppy has been a delightful experience, after a bogged down (even though newly installed) Windows XP, which seemed to oblige me to expend endless hours on fixing all kinds of malfunctions. I finally had to say, enough is enough.

I am greatly impressed with the helpful attitude of the people on this forum; I hope that one day I can match their enthusiasm -- when I actually know something.

Thanks, folks!

jakobcornelis

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#17 Post by ttuuxxx »

jakobcornelis wrote:I just want to thank the folks that helped me search for a solution to my problem of getting my HP Deskjet 3915 working with CUPS. I'll be keeping my eyes open for anything that might lead to a solution, but meanwhile I'll stick with my old Canon BJC 2000. At least now I can print.

That was the only essential element missing after I started using Puppy. I want to say here, although speaking to the converted, that Puppy has been a delightful experience, after a bogged down (even though newly installed) Windows XP, which seemed to oblige me to expend endless hours on fixing all kinds of malfunctions. I finally had to say, enough is enough.

I am greatly impressed with the helpful attitude of the people on this forum; I hope that one day I can match their enthusiasm -- when I actually know something.

Thanks, folks!

jakobcornelis
Hi jakob

I'm from Ontario also, Near Ottawa, :) How's it going eh?
Anyways I've been working on the cups section of the next 4.2 release of Puppy, Patriot the user on here has also lent a hand getting the parallel printing going, so in the near future it might be all worked out for you. In a couple of days after the 1st, the server will be back online, out of bandwidth for the month. Then I can maybe lend you a hand with the updated files you might need. Glad to have ya around, and it doesn't take long before you become Linux savvy. So feel free to ask as many questions as you want
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#18 Post by edoc »

... it doesn't take long before you become Linux savvy. So feel free to ask as many questions as you want
Unless you are me ... "still crazy after all these years ..." :roll:
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#19 Post by ttuuxxx »

edoc wrote:
... it doesn't take long before you become Linux savvy. So feel free to ask as many questions as you want
Unless you are me ... "still crazy after all these years ..." :roll:
ya I have learning disabilities also, I never learned how to deal with women, For some odd reason I'm always wrong or at fault.
oh well
lol ttuuxxx :wink:
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#20 Post by edoc »

If a man is in the forest and no woman is present and he says something, is he still wrong?

:lol:
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

Post Reply