[Nix-dev] cups executing wrong filter

Brandon Dimcheff brandon at dimcheff.com
Sun Oct 18 17:52:36 CEST 2015


Quoting Samuel (2015-10-16 09:25:10)
> Hi,
> 
> I am trying to print to an lpd printer, but jobs fail with "filter failed"
> 
> >From the logs, I think that the problem is reported by the line in the middle:
> 
> ...
> Oct 16 15:13:52 scofield cupsd[887]: [Job 13] Printer: Schibsted
> Oct 16 15:13:52 scofield cupsd[887]: [Job 13] Shell:
> /nix/store/disi5277lygfj6m7m3ajwvvp9mqdp4la-bash-4.3-p42/bin/bas/usr/local/lib/cups/filter:/usr/local/libexec/cups/filter:/opt/cups/filter
> :/usr/lib/cups/filter
> Oct 16 15:13:52 scofield cupsd[887]: [Job 13] PPD file:
> /etc/cups/ppd/my-printer.ppd
> ...
> 
> Later on:
> 
> Oct 16 15:13:52 scofield cupsd[887]: [Job 13] Error: Executing
> "/nix/store/disi5277lygfj6m7m3ajwvvp9mqdp4la-bash-4.3-p42/bin/bas/usr/local/lib/cups/filter:/usr/local/libexec/cups/filter:/opt/
> cups/filter:/usr/lib/cups/filter -c gs -dFirstPage=1  -q -dBATCH
> -dPARANOIDSAFER -dNOPAUSE -dNOINTERPOLATE -sDEVICE=pxlcolor -r600x600
> -dDuplex -dMediaPosition=0 -dDEVICEWIDTHPOINTS=595 -dDEV
> ICEHEIGHTPOINTS=842 -sOutputFile=-   /tmp/foomatic-cHMQxK " failed (No
> such file or directory).

I have a similar issue that I haven't had a chance to track down.  I
enabled debug logging and got this:
https://gist.github.com/bdimcheff/aecc0bf49d74955b87d6#file-gistfile1-txt-L142-L143

I don't know if "Cannot process "<STDIN>": Unknown filetype." is the
cause of the problem, or if it's just what happens when the filter
fails.  In my case, it's pdf2ps that seems to be failing, but it since
ours are both filter failures, maybe they have the same cause.

You might try "cupsctl --debug-logging" to enable debug logs and see
what you get.

- brandon



More information about the nix-dev mailing list