WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Foomatic-rip failed  (Read 8468 times)

Offline magic_sam

  • Newbie
  • *
  • Posts: 11
Foomatic-rip failed
« on: October 05, 2010, 03:35:50 AM »
Hi,

I'd like to turn an old computer @166MHz with 160Mb RAM into a printer server :)

The printer is a SHARP-AR-M205, and is connected to the parrallel port.

I'm using the pxlmono driver from Open Printing:

http://www.openprinting.org/printer/Sharp/Sharp-AR-M205

CUPS, DBUS and other things are installed, lp and parport are modprobed in.

I access the CUPS interface on http://localhost:631 with the Midori browser (issues with dillo).

I think I've properly configured the printer, but when I try to print a test page, I have the following error message:

"/usr/local/lib/cups/filter/foomatic-rip failed"

What am I doing wrong ?

Bye and thanks for your help (my job could be at stake on this one) !

Magic Sam

aus9

  • Guest
Re: Foomatic-rip failed
« Reply #1 on: October 05, 2010, 05:41:54 AM »
hi

not sure if you are using normal cups or cups1311 but I suggest you have
dbus running before cups

and check their status as per wiki with

Code: [Select]
sudo /usr/local/etc/init.d/dbus status
sudo /etc/init.d/cups status

altho you don't need sudo powers I suggest you use them to be sure to be sure.

2) Have you ensure you have correctly saved your cups file to mydata?

Meaning have you placed the file in your .filetool.lst and dropped the leading /

good luck

Offline magic_sam

  • Newbie
  • *
  • Posts: 11
Re: Foomatic-rip failed
« Reply #2 on: October 05, 2010, 07:00:24 AM »
Hi aus9 :)

Thanks for your reply !

I'm using cups1311 (I followed the wiki) and I'm always starting dbus before cups.

I'll check their status ASAP though ;)

EDIT: dbus and cups are running

EDIT 2: I tried using a gutenprint driver instead: I can see the job completion % increasing, but nothing comes out of the printer :(

And printers.conf and PPD path are in my .filetool.lst.

Bye, Magic Sam
« Last Edit: October 05, 2010, 08:25:45 AM by magic_sam »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14796
Re: Foomatic-rip failed
« Reply #3 on: October 05, 2010, 10:59:29 AM »
I don't believe you need the dbus daemon to be running to use either the cups1311 or the cups extensions - as far as I see, it just increases the number of messages in /var/log/cups/error_log

1. After you set the root password and started the cups daemon, did you use http://localhost:631 in a browser to set up your printer? If so, did it appear to work OK?

2. If yes to 1. above and using a standard ppd, not a gutenprint driver, you could try setting the log level to debug in /usr/local/etc/cups/cupsd.conf, restarting the cups daemon, try to print and have a look at /var/log/cups/error_log for messages starting with E (for error)
« Last Edit: October 05, 2010, 11:02:14 AM by Juanito »

Offline magic_sam

  • Newbie
  • *
  • Posts: 11
Re: Foomatic-rip failed
« Reply #4 on: October 18, 2010, 10:31:40 AM »
Hi Juanito !

Thanks for your help, and sorry for the late reply :)

I don't have a root password on TC, I only use "sudo su", is it correct ?

I start the cups daemon with "/etc/init.d/cups start" then I configure the printer with Midori on http://localhost:631. I think it works fine.

Something weird happened today though: I tried to modify cupsd.conf as you told me, but I couldn't, because this file (and some parts of the file system too) was read-only !!!

When I checked the file attributes everything was fine though (rwx for everyone), I even tried to tell grub to mount hda2 in rw mode, to no avail :(

What am I doing wrong ?

Bye and thanks for your help, Magic Sam

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14796
Re: Foomatic-rip failed
« Reply #5 on: October 18, 2010, 11:28:25 AM »
Since you used "/etc/init.d/cups start" and it worked, you must be using cups1311 - just be sure you don't have the cups extension loaded at the same time.

I seem to remember the cupsd.conf in the cups1311 extension had been adjusted so that you didn't need to be root to perform cups admin tasks, but in case you do, you can use "sudo passwd" to set the root password.

I'm guessing you cannot edit /etc/cupsd.conf because either you did not try to edit it as root or because it is a symlink to /tmp/tcloop/cups1311/etc/cupsd.conf.

Is the first is the case, use "sudo vi" or "sudo beaver" or similar to edit the file, if the second is the case, you can delete the symlink in /etc,  copy /tmp/tcloop/cups1311/etc/cupsd.conf to /etc and then use "sudi vi" or similar to edit it.

aus9

  • Guest
Re: Foomatic-rip failed
« Reply #6 on: October 18, 2010, 06:15:32 PM »
errr more basic question for foomatic-rip error

do you have that package installed?

Offline magic_sam

  • Newbie
  • *
  • Posts: 11
Re: Foomatic-rip failed
« Reply #7 on: October 22, 2010, 04:20:30 AM »
Hi guys,

Thanks for your help !

@ aus9: foomatic-rip is installed ;)

@ Juanito: you're right I'm using cups1311. How do I know if its extension are loaded at the same time, and how do I prevent them to do so ?

/etc/cupsd.conf is indeed a symlink, I'll try your idea and report here if it works.

EDIT: It works, I changed the log level to debug, I'll have a look at the error messages now !

EDIT2: Unable to open listen socket for address ::1:631 - Address family not supported by protocol.
PID 2362 (/usr/local/lib/cups/filter/foomatic-rip) stopped with status 3!
[Job 1) Job stopped due to filter errors.

Bye and thanks again !

Magic Sam
« Last Edit: October 22, 2010, 04:50:40 AM by magic_sam »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14796
Re: Foomatic-rip failed
« Reply #8 on: October 22, 2010, 05:58:50 AM »
@ Juanito: you're right I'm using cups1311. How do I know if its extension are loaded at the same time, and how do I prevent them to do so ?

I'm not at a tc machine at the moment, but I seem to remember the "installed" tab in panel/system stats will show which extensions are loaded. Otherwise, as mentioned elsewhere - you can check for the existence of /tmp/tcloop/cups* to know which cups extensions are loaded:
Code: [Select]
$ ls /tmp/tcloop | grep cups
cups/
libcups/

To prevent both extensions being loaded at boot, use panel/appsaudit to verify only one of the extensions is "onboot". You can also check this by looking at the /tce/onboot.lst file:
Code: [Select]
$ cat /mnt/sda3/tce/onboot.lst | grep cups
cups.tcz

Quote
PID 2362 (/usr/local/lib/cups/filter/foomatic-rip) stopped with status 3!
[Job 1) Job stopped due to filter errors.

foomatic-rip depends on libgs_ps - is this extension loaded?
« Last Edit: October 22, 2010, 07:07:00 AM by Juanito »

Offline magic_sam

  • Newbie
  • *
  • Posts: 11
Re: Foomatic-rip failed
« Reply #9 on: November 09, 2010, 02:49:14 AM »
[bump]

Hi,

I have the following errors, do you know what they mean and/or how I can solve them ?

Unable to open listen socket for address ::1:631 - Address family not supported by protocol.
PID 2362 (/usr/local/lib/cups/filter/foomatic-rip) stopped with status 3!
[Job 1) Job stopped due to filter errors.


Bye and thanks for your help !

Magic Sam

[/bump]

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14796
Re: Foomatic-rip failed
« Reply #10 on: November 09, 2010, 06:09:57 AM »
foomatic-rip depends on libgs_ps - is this extension loaded?

I think you can ignore this one, it's probably for ipv6

"Unable to open listen socket for address ::1:631 - Address family not supported by protocol."

Offline magic_sam

  • Newbie
  • *
  • Posts: 11
Re: Foomatic-rip failed
« Reply #11 on: November 16, 2010, 06:47:36 AM »
Hi Juanito,

I've asked Sharp about this problem.

Here is their answer:

"For this printer to work ARNB2N network + ARPK1N postscript options must be installed on the machine, they are available from cups.org, ID 268"

What do you think about that ?

EDIT: I've installed the driver (ID 269) from cups.org, no error messages on screen, nothing in error.log, jobs are said to be completed, but nothing comes out from the printer :(

Bye and thanks for your help !

Magic Sam
« Last Edit: November 16, 2010, 07:27:14 AM by magic_sam »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14796
Re: Foomatic-rip failed
« Reply #12 on: November 16, 2010, 09:02:49 AM »
Do you have the log level set to debug in cupsd.conf?

Offline magic_sam

  • Newbie
  • *
  • Posts: 11
Re: Foomatic-rip failed
« Reply #13 on: November 16, 2010, 09:35:10 AM »
Weird, I did modify this file the last time I worked on the machine, but today I had to do it all over again :(

EDIT: log level set to debug in cupsd.conf, but no error messages. Now it asks for a username and password, even though I'm using cups 1311, which requires no authentification ! I'm fed up with this *%$@?# computer !
I've been working on it for months, tried 3 different Linux distros, without success :( I give up ...
« Last Edit: November 16, 2010, 10:06:08 AM by magic_sam »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14796
Re: Foomatic-rip failed
« Reply #14 on: November 16, 2010, 02:01:49 PM »
Sorry - cups is particularly painful.

As I only have an hp officejet available to test - which will not work with the usb backend - and I'm using cups and not cups1311, it's kind of difficult to do too much to help