You are not logged in.

#1 2013-07-12 19:45:01

andrej.podzimek
Member
From: Zürich, Switzerland
Registered: 2005-04-10
Posts: 115

"Filter failed" in CUPS when using IPP (HP LaserJet 500 color M551)

I have two ArchLinux machines, one with HP LaserJet 500 color M551 connected over USB and another one on the same network. Printing over network (ipp) doesn't work: CUPS on the client says "Filter failed", so the job doesn't even reach the server. Printing directly from the server works perfectly fine, there's no "Filter failed" message and it just prints.

Both machines have the same ArchLinux installation, they are both x86_64, they have hpijs installed and the same PPD selected. This WiKi entry didn't help and the printer differs from the one discussed here, so it doesn't seem to be a well-known issue. :-(

I tried to reinstall the printer on the client many times, using both DNSSD and direct URI input. All this seems to work fine. The filter that fails is probably /usr/lib/cups/filter/hpps, but I have no idea how to get debugging info from it, i.e., why it fails etc. The same filter works just fine on the server.

I thought this might have something to do with the distinction between PostScript and the HP PCL variants. Enabling Adobe TBCP should fix this by adding the appropriate binary metadata and escaping things as needed... However, switching TBCP on in the CUPS printer settings stopped the printer from working. The printer appeared to be OK and responsive, but simply didn't print anything. Disabling TBCP fixed this on the server, but the client shows the "Filter failed" message, no matter what's happening on the server.

Offline

#2 2013-08-21 21:11:15

ninian
Member
From: United Kingdom
Registered: 2008-02-24
Posts: 726
Website

Re: "Filter failed" in CUPS when using IPP (HP LaserJet 500 color M551)

I have similar problems with network printing (from various 32-bit and 64-bit Arch systems) producing 'Filter failed' messages, while directly printing from the CUPS server - with USB connection to the device - works as expected. My all-in-one device is an HP Photosmart C4480 and everything worked fine a few weeks ago. (Ironically, I can get network scanning using Xsane!) I've tried reinstalling, and various drivers to no avail.
It's very frustrating, and I think I've tried everything suggested in the Wiki.
sad

Added later, after setting 'LogLevel debug' in cupsd.conf:

D [21/Aug/2013:22:19:57 +0100] [Job 18] Adding start banner page "none".
D [21/Aug/2013:22:19:57 +0100] [Job 18] Queued on "hpc4480" by "anonymous".
D [21/Aug/2013:22:19:57 +0100] [Job 18] File of type application/vnd.cups-raster queued by "anonymous".
D [21/Aug/2013:22:19:57 +0100] [Job 18] Adding end banner page "none".
D [21/Aug/2013:22:19:57 +0100] [Job 18] time-at-processing=1377119997
D [21/Aug/2013:22:19:57 +0100] [Job 18] 1 filters for job:
D [21/Aug/2013:22:19:57 +0100] [Job 18] hpcups (application/vnd.cups-raster to printer/hpc4480, cost 0)
D [21/Aug/2013:22:19:57 +0100] [Job 18] job-sheets=none,none
D [21/Aug/2013:22:19:57 +0100] [Job 18] argv[0]="hpc4480"
D [21/Aug/2013:22:19:57 +0100] [Job 18] argv[1]="18"
D [21/Aug/2013:22:19:57 +0100] [Job 18] argv[2]="anonymous"
D [21/Aug/2013:22:19:57 +0100] [Job 18] argv[3]="Test Page"
D [21/Aug/2013:22:19:57 +0100] [Job 18] argv[4]="1"
D [21/Aug/2013:22:19:57 +0100] [Job 18] argv[5]="job-uuid=urn:uuid:febcff1d-2cc5-3058-4c2f-c420e625e3ec job-originating-host-name=192.168.1.11 time-at-creation=1377119989 time-at-processing=1377119997"
D [21/Aug/2013:22:19:57 +0100] [Job 18] argv[6]="/var/spool/cups/d00018-001"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[7]="CUPS_STATEDIR=/run/cups"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[8]="HOME=/var/spool/cups/tmp"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/bin:/bin:/usr/bin"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[10]="SERVER_ADMIN=root@ninian.localdomain"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[11]="SOFTWARE=CUPS/1.6.3"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[13]="USER=root"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[14]="CUPS_MAX_MESSAGE=2047"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[15]="CUPS_SERVER=/run/cups/cups.sock"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[17]="IPP_PORT=631"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[18]="CHARSET=utf-8"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[19]="LANG=en_GB.UTF-8"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[20]="PPD=/etc/cups/ppd/hpc4480.ppd"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[21]="RIP_MAX_CACHE=128m"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[22]="CONTENT_TYPE=application/vnd.cups-raster"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[23]="DEVICE_URI=hp:/usb/Photosmart_C4400_series?serial=MY842FM2150557"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[24]="PRINTER_INFO=HP Photosmart C4480"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[25]="PRINTER_LOCATION=ninian"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[26]="PRINTER=hpc4480"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[27]="PRINTER_STATE_REASONS=none"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[28]="CUPS_FILETYPE=document"
D [21/Aug/2013:22:19:57 +0100] [Job 18] envp[29]="AUTH_I****"
D [21/Aug/2013:22:19:57 +0100] [Job 18] Started filter /usr/lib/cups/filter/hpcups (PID 8978)
D [21/Aug/2013:22:19:57 +0100] [Job 18] Started backend /usr/lib/cups/backend/hp (PID 8979)
D [21/Aug/2013:22:19:57 +0100] [Job 18] prnt/hpcups/HPCupsFilter.cpp 548: cupsRasterOpen failed, fd = 5
D [21/Aug/2013:22:19:57 +0100] [Job 18] PID 8978 (/usr/lib/cups/filter/hpcups) stopped with status 1.
D [21/Aug/2013:22:19:57 +0100] [Job 18] Hint: Try setting the LogLevel to "debug" to find out more.
D [21/Aug/2013:22:19:57 +0100] [Job 18] prnt/backend/hp.c 839: ERROR: null print job total=0
D [21/Aug/2013:22:19:57 +0100] [Job 18] PID 8979 (/usr/lib/cups/backend/hp) exited with no errors.
D [21/Aug/2013:22:19:57 +0100] [Job 18] End of messages
D [21/Aug/2013:22:19:57 +0100] [Job 18] printer-state=3(idle)
D [21/Aug/2013:22:19:57 +0100] [Job 18] printer-state-message="Filter failed"
D [21/Aug/2013:22:19:57 +0100] [Job 18] printer-state-reasons=none

Crucial error seems to be: prnt/hpcups/HPCupsFilter.cpp 548: cupsRasterOpen failed, fd = 5

Last edited by ninian (2013-08-21 21:28:58)

Offline

Board footer

Powered by FluxBB