CUPS - Cannot print pdf because "Filter Failed"

Issues Related to Hardware (Sound, Video, Printers, Scanners, Webcams, Touchpads, Keyboards, Sensors, Drives, GRUB, etc.)

Moderator: Moderators

CUPS - Cannot print pdf because "Filter Failed"

Postby linuxfluesterer » Mon Apr 22, 2013 10:13

Hallo guys.
I use Sab KDE 4.10.2 (Kernel 3.8.5), 64bit with CUPS via Web-Browser. In earlier KDE versions, CUPS was a real program,
now it is a Web based application.
I have installed my printer, a Canon Pixma IP4000 and I already have printed pages with LibreOffice, Chromium
and also through Windows 7 in a VirtualBox. The printouts are fine so far.
But when I want to print out a pdf file in Okular, I receive an empty page and the CUPS Website (631) says, that there is a "Filter Failed" and stopped.

Image
The document format is pdf. Anybody here, who has made same experience and knows, why I can't print pdf files with CUPS anymore?
Thank you in advance.

-Linuxfluesterer (I love KDE ...)
I really hope, that by the Brexit (poor Britain), TTIP will be finally prevented. But don't get tired to talk to your local politician to open eyes for danger to democracy because of TTIP
User avatar
linuxfluesterer
Old Dear Hen
 
Posts: 725
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: CUPS - Cannot print pdf because "Filter Failed"

Postby Fitzcarraldo » Mon Apr 22, 2013 12:22

Any messages in /var/log/cups/error_log that might narrow down the cause?
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7998
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: CUPS - Cannot print pdf because "Filter Failed"

Postby linuxfluesterer » Mon Apr 22, 2013 12:49

This is the result for an example job: Printed was finally an empty page.
Code: Select all
E [22/Apr/2013:13:39:21 +0200] [Job 36] Job stopped due to filter errors; please consult the error_log file for details.
D [22/Apr/2013:13:39:21 +0200] [Job 36] The following messages were recorded from 13:39:17 to 13:39:21
D [22/Apr/2013:13:39:21 +0200] [Job 36] Gutenprint: Reading 14874 6848
D [22/Apr/2013:13:39:21 +0200] [Job 36] Gutenprint: Reading 14874 6849
....
D [22/Apr/2013:13:39:21 +0200] [Job 36] Gutenprint: Reading 14874 6873
D [22/Apr/2013:13:39:21 +0200] [Job 36] Gutenprint: Reading 14874 6874
D [22/Apr/2013:13:39:21 +0200] [Job 36] Gutenprint: Reading 14874 6875
D [22/Apr/2013:13:39:21 +0200] [Job 36] Printing page 1, 98%
D [22/Apr/2013:13:39:21 +0200] [Job 36] ATTR: job-media-progress=98
D [22/Apr/2013:13:39:21 +0200] [Job 36] Gutenprint: Reading 14874 6877
D [22/Apr/2013:13:39:21 +0200] [Job 36] Gutenprint: Reading 14874 6878
...
D [22/Apr/2013:13:39:21 +0200] [Job 36] Gutenprint: Reading 14874 6943
D [22/Apr/2013:13:39:21 +0200] [Job 36] Gutenprint: Reading 14874 6944
D [22/Apr/2013:13:39:21 +0200] [Job 36] Gutenprint: Reading 14874 6945
D [22/Apr/2013:13:39:21 +0200] [Job 36] Printing page 1, 99%
D [22/Apr/2013:13:39:21 +0200] [Job 36] ATTR: job-media-progress=99
D [22/Apr/2013:13:39:21 +0200] [Job 36] Gutenprint: Reading 14874 6947
D [22/Apr/2013:13:39:21 +0200] [Job 36] Gutenprint: Reading 14874 6948
D [22/Apr/2013:13:39:21 +0200] [Job 36] Gutenprint: Reading 14874 6949
...
D [22/Apr/2013:13:39:21 +0200] [Job 36] Gutenprint: Reading 14874 7010
D [22/Apr/2013:13:39:21 +0200] [Job 36] Gutenprint: Reading 14874 7011
D [22/Apr/2013:13:39:21 +0200] [Job 36] Gutenprint: Reading 14874 7012
D [22/Apr/2013:13:39:21 +0200] [Job 36] Processing page 2...
D [22/Apr/2013:13:39:21 +0200] [Job 36] Gutenprint: Reading 14874 7013
D [22/Apr/2013:13:39:21 +0200] [Job 36] Gutenprint: Reading 14874 7014
D [22/Apr/2013:13:39:21 +0200] [Job 36] Finished page 1...
D [22/Apr/2013:13:39:21 +0200] [Job 36] Gutenprint: Purging 2 rows
D [22/Apr/2013:13:39:21 +0200] [Job 36] Gutenprint: ================ Done printing page 1 ================
D [22/Apr/2013:13:39:21 +0200] [Job 36] Rendering completed
D [22/Apr/2013:13:39:21 +0200] [Job 36] PID 7040 (/usr/libexec/cups/filter/gstoraster) exited with no errors.
D [22/Apr/2013:13:39:21 +0200] [Job 36] Gutenprint: Ending job
D [22/Apr/2013:13:39:21 +0200] [Job 36] Gutenprint: Printed total 36050 bytes
D [22/Apr/2013:13:39:21 +0200] [Job 36] Gutenprint: Time 0,560 user, 0,040 sys, 0,914 elapsed
D [22/Apr/2013:13:39:21 +0200] [Job 36] Gutenprint: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D [22/Apr/2013:13:39:21 +0200] [Job 36] Gutenprint: ============================================================
D [22/Apr/2013:13:39:21 +0200] [Job 36] PID 7041 (/usr/libexec/cups/filter/rastertogutenprint.5.2) exited with no errors.
D [22/Apr/2013:13:39:21 +0200] [Job 36] hrDeviceDesc="Unknown"
D [22/Apr/2013:13:39:21 +0200] [Job 36] prtGeneralCurrentLocalization type is 0, expected 2!
D [22/Apr/2013:13:39:21 +0200] [Job 36] backendWaitLoop(snmp_fd=5, addr=0x7fc92af684d8, side_cb=0x7fc9298f3780)
D [22/Apr/2013:13:39:21 +0200] [Job 36] Connecting to 192.168.99.1:9100
D [22/Apr/2013:13:39:21 +0200] [Job 36] Connecting to printer.
D [22/Apr/2013:13:39:21 +0200] [Job 36] STATE: -connecting-to-device
D [22/Apr/2013:13:39:21 +0200] [Job 36] Connected to printer.
D [22/Apr/2013:13:39:21 +0200] [Job 36] Connected to 192.168.99.1:9100...
D [22/Apr/2013:13:39:21 +0200] [Job 36] backendRunLoop(print_fd=0, device_fd=6, snmp_fd=5, addr=0x7fc92af684d8, use_bc=1, side_cb=0x7fc9298f3780)
D [22/Apr/2013:13:39:21 +0200] [Job 36] Read 8192 bytes of print data...
D [22/Apr/2013:13:39:21 +0200] [Job 36] Wrote 8192 bytes of print data...
D [22/Apr/2013:13:39:21 +0200] [Job 36] Read 8192 bytes of print data...
D [22/Apr/2013:13:39:21 +0200] [Job 36] Wrote 8192 bytes of print data...
D [22/Apr/2013:13:39:21 +0200] [Job 36] Read 8192 bytes of print data...
D [22/Apr/2013:13:39:21 +0200] [Job 36] Wrote 8192 bytes of print data...
D [22/Apr/2013:13:39:21 +0200] [Job 36] Read 8192 bytes of print data...
D [22/Apr/2013:13:39:21 +0200] [Job 36] Wrote 8192 bytes of print data...
D [22/Apr/2013:13:39:21 +0200] [Job 36] Read 2258 bytes of print data...
D [22/Apr/2013:13:39:21 +0200] [Job 36] Wrote 2258 bytes of print data...
D [22/Apr/2013:13:39:21 +0200] [Job 36] Waiting for printer to finish.
D [22/Apr/2013:13:39:21 +0200] [Job 36] PID 7042 (/usr/libexec/cups/backend/socket) exited with no errors.
D [22/Apr/2013:13:39:21 +0200] [Job 36] End of messages
D [22/Apr/2013:13:39:21 +0200] [Job 36] printer-state=3(idle)
D [22/Apr/2013:13:39:21 +0200] [Job 36] printer-state-message="Waiting for printer to finish."
D [22/Apr/2013:13:39:21 +0200] [Job 36] printer-state-reasons=none

Will it help you? Thanks!

-Linuxfluesterer (I love KDE ...)
I really hope, that by the Brexit (poor Britain), TTIP will be finally prevented. But don't get tired to talk to your local politician to open eyes for danger to democracy because of TTIP
User avatar
linuxfluesterer
Old Dear Hen
 
Posts: 725
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: CUPS - Cannot print pdf because "Filter Failed"

Postby Fitzcarraldo » Mon Apr 22, 2013 14:19

Well, the log file output you posted doesn't help, really, and I'm not sure I can be of much help.

I have a suspicion the problem may lie with the program pstocanonij, which may be compiled for an earlier kernel version than the one you're using. From the output you posted, it looks like you're using the Gutenprint driver, am I correct? If you are, have you tried uninstalling and reinstalling the gutenprint package? Also, check if there is a symlink set up for pstocanonij somewhere ( might be in /usr/lib64/ or /usr/libexec/cups/filter/, I'm not sure).
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7998
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: CUPS - Cannot print pdf because "Filter Failed"

Postby linuxfluesterer » Mon Apr 22, 2013 22:40

Hallo Fitzcarraldo.
Thank you for suggestion.
Now I have reinstalled the Gutenprint driver. It is version 5.2.9 of date 12/08/2012 (was same).
Then I've searched for 'pstoca*' (instead of 'pstocanonij) in all /usr subdirectory, but there was no result.
To which file should 'pstocanonij' be symlinked with, pls?

-Linuxfluesterer (I love KDE ...)
I really hope, that by the Brexit (poor Britain), TTIP will be finally prevented. But don't get tired to talk to your local politician to open eyes for danger to democracy because of TTIP
User avatar
linuxfluesterer
Old Dear Hen
 
Posts: 725
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: CUPS - Cannot print pdf because "Filter Failed"

Postby Fitzcarraldo » Tue Apr 23, 2013 1:03

My mistake: pstocanonij is installed and used by Canon's closed-source printer driver (cnijfilter), not by the FOSS Gutenprint Canon printer driver. The Gutenprint driver must use a different program to convert pdf files. Do you have app-text/ghostscript-gpl installed? If not, install that and see if you can then print pdf files. Also install sys-apps/file if it's not installed. Do you have pdftops installed?

Code: Select all
# locate pdftops
/usr/bin/pdftops
/usr/libexec/cups/filter/pdftops
/usr/portage/net-print/cups/files/pdftops-1.20.gentoo
/usr/share/man/man1/pdftops.1.bz2
# whatis pdftops
pdftops (1)          - Portable Document Format (PDF) to PostScript converter (version 3.03)

Try reinstalling cups-filters too:

Code: Select all
# equo search cups-filters
>>  @@ Searching...
>>      @@ Package: net-print/cups-filters-1.0.30 branch: 5, [sabayonlinux.org]
>>         Available:     version: 1.0.30 ~ tag: NoTag ~ revision: 0
>>         Installed:     version: 1.0.30 ~ tag: NoTag ~ revision: 0
>>         Slot:          0
>>         Homepage:      http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdfasstandardprintjobformat
>>         Description:   Cups PDF filters
>>         License:       GPL-2 MIT
>>  Keywords:  cups-filters
>>  Found:     1 entry
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7998
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: CUPS - Cannot print pdf because "Filter Failed"

Postby linuxfluesterer » Tue Apr 23, 2013 8:23

Good morning and thank you again, Fitzcarraldo.
I've checked for your mentioned programs / files.
All of them are installed already include same version numbers.
I have found a (German Ubuntu) website
http://wiki.ubuntuusers.de/Canon-Drucker
about pstocanonij which has a link to a Japanese Canon FTP-Site with drivers for Canon printers. It is:
ftp://download.canon.jp/pub/driver/bj/linux/
On the German website there is (a long complicated way, I must understand before), how to install a Canon driver for my model also (bjfilter-pixusip4100-2.50-2.i386.rpm or bjfilter-pixusip4100-lprng-2.50-2.i386.rpm) in a Debian system, but I think, it is possible to adopt it to Sabayon.
How do you think, should I do that? Do you see a chance, that the FOSS driver will be compiled for Kernel 3.8.x?
And then there is the question about my system integrity...

Have a nice day...

-Linuxfluesterer (I love KDE ...)
I really hope, that by the Brexit (poor Britain), TTIP will be finally prevented. But don't get tired to talk to your local politician to open eyes for danger to democracy because of TTIP
User avatar
linuxfluesterer
Old Dear Hen
 
Posts: 725
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: CUPS - Cannot print pdf because "Filter Failed"

Postby Fitzcarraldo » Wed Apr 24, 2013 13:14

I don't think you will have any luck with trying to install the closed-source driver from Canon for your particular model. There is an ebuild (see Gentoo Bug Report 128560 - net-print/bjfilter/bjfilter-2.50 - Canon pixma/pixus drivers (new ebuild) but it does not work any more; see the latest comments at the end of the report). The only other thing you might want to try would be an old 2008 manual installation procedure given in the Gentoo Forums: HOWTO - Canon Pixma 3000/3100, 4000/4100, 8500/8600. Support for the closed-source Canon printers in Gentoo and its derivatives is poor compared to distributions that use .deb and .rpm packages.

EDIT: Apparently the commercial driver Turboprint for Linux 2 supports your model of printer, so you could try that (free 30-day trial) and, if it works, buy it (EUR 29.95).
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7998
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: CUPS - Cannot print pdf because "Filter Failed"

Postby linuxfluesterer » Thu Apr 25, 2013 10:38

Thank you very much, Fitzcarraldo.
I will be busy in the next time, so that I won't have time for my topic.
Anyway, I will not close it until I found a solution good for me.

Have a nice day.

-Linuxfluesterer (I love KDE ...)
I really hope, that by the Brexit (poor Britain), TTIP will be finally prevented. But don't get tired to talk to your local politician to open eyes for danger to democracy because of TTIP
User avatar
linuxfluesterer
Old Dear Hen
 
Posts: 725
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: CUPS - Cannot print pdf because "Filter Failed"

Postby Fitzcarraldo » Sat May 18, 2013 13:20

I was looking in the KDE Forums for something today and happened to come across the following thread:

Re: Okular does not print PDFs to printer

I wonder whether that is the cause of your problem? If you haven't already tried it, delete or move the file mentioned:

Code: Select all
$ mv  ~/.cups/lpoptions  ~/lpoptions.bak

then reboot (or restart CUPS) and see if that helps.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7998
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom


Return to Hardware

Who is online

Users browsing this forum: No registered users and 2 guests