You are not logged in.

#1 2012-12-18 12:37:25

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Error printing with CUPS (SOLVED)

Could some kind CUPS guru help me with a problem printing through CUPS?

I have a postscript file which rendesr normally in all the software I have (okular etc) but for some reason does not print.

The CUPS log shows:

D [18/Dec/2012:08:27:57 +0000] [Job 167] Auto-typing file...
D [18/Dec/2012:08:27:57 +0000] [Job 167] Request file type is application/postscript.
D [18/Dec/2012:08:27:57 +0000] cupsdMarkDirty(---J-)
D [18/Dec/2012:08:27:57 +0000] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
I [18/Dec/2012:08:27:57 +0000] [Job 167] File of type application/postscript queued by "andrew".
I [18/Dec/2012:08:27:57 +0000] [Job 167] Adding end banner page "none".
D [18/Dec/2012:08:27:57 +0000] cupsdMarkDirty(---J-)
D [18/Dec/2012:08:27:57 +0000] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [18/Dec/2012:08:27:57 +0000] [Job 167] time-at-processing=1355819277
D [18/Dec/2012:08:27:57 +0000] cupsdMarkDirty(---J-)
D [18/Dec/2012:08:27:57 +0000] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [18/Dec/2012:08:27:57 +0000] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [18/Dec/2012:08:27:57 +0000] cupsdMarkDirty(----S)
D [18/Dec/2012:08:27:57 +0000] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [18/Dec/2012:08:27:57 +0000] [Job 167] job-sheets=none,none
D [18/Dec/2012:08:27:57 +0000] [Job 167] argv[0]="Fprint"
D [18/Dec/2012:08:27:57 +0000] [Job 167] argv[1]="167"
D [18/Dec/2012:08:27:57 +0000] [Job 167] argv[2]="andrew"
D [18/Dec/2012:08:27:57 +0000] [Job 167] argv[3]="notes.ps"
D [18/Dec/2012:08:27:57 +0000] [Job 167] argv[4]="1"
D [18/Dec/2012:08:27:57 +0000] [Job 167] argv[5]="nocollate Duplex=None InputSlot=Default number-up=1 outputorder=normal PageSize=A4 position=center Resolution=600x600dpi nowrap job-uuid=urn:uuid:08c52a0f-73f7-3ac7-7632-7ee1e4465007 job-originating-host-name=localhost time-at-creation=1355
819277 time-at-processing=1355819277"
D [18/Dec/2012:08:27:57 +0000] [Job 167] argv[6]="/var/spool/cups/d00167-001"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[8]="HOME=/var/spool/cups/tmp"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[10]="SERVER_ADMIN=root@hp-dm1"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[11]="SOFTWARE=CUPS/1.6.1"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[13]="USER=root"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[14]="CUPS_MAX_MESSAGE=2047"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[15]="CUPS_SERVER=/var/run/cups/cups.sock"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[17]="IPP_PORT=631"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[18]="CHARSET=utf-8"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[19]="LANG=en.UTF-8"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[20]="PPD=/etc/cups/ppd/Fprint.ppd"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[21]="RIP_MAX_CACHE=128m"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[22]="CONTENT_TYPE=application/postscript"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[23]="DEVICE_URI=fprint://home/andrew/.fprint"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[24]="PRINTER_INFO=Print to Fprint"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[25]="PRINTER_LOCATION=hp-dm1"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[26]="PRINTER=Fprint"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[27]="PRINTER_STATE_REASONS=none"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[28]="CUPS_FILETYPE=document"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[29]="FINAL_CONTENT_TYPE=printer/Fprint"
D [18/Dec/2012:08:27:57 +0000] [Job 167] envp[30]="AUTH_I****"
I [18/Dec/2012:08:27:57 +0000] [Job 167] Started filter /usr/lib/cups/filter/pstopdf (PID 7895)
I [18/Dec/2012:08:27:57 +0000] [Job 167] Started filter /usr/lib/cups/filter/pdftopdf (PID 7896)
I [18/Dec/2012:08:27:57 +0000] [Job 167] Started filter /usr/lib/cups/filter/foomatic-rip (PID 7897)
I [18/Dec/2012:08:27:57 +0000] [Job 167] Started backend /usr/lib/cups/backend/fprint (PID 7898)

So it seems to be identifying the files correctly as postscript, and then tries to conver it to a pdf using its pstopdf filter, then proceeds to run pdftopdf for some reason, filter it through foomatic-rip and then through the fprint filter (mine).

I have no idea why it needs to go through all those filters first, however it fails early,at the pstopdf step:

pstopdf 6 args: 167 andrew notes.ps 1 nocollate Duplex=None InputSlot=Default number-up=1 outputorder=normal PageSize=A4 position=center Resolution=600x600dpi nowrap job-uuid=urn:uuid:08c52a0f-73f7-3ac7-7632-7ee1e4465007 job-originating-host-name=localhost time-at-creation=1355819277 time-at-processing=1355819277 /var/spool/cups/d00167-001
......
 PID 7895 (/usr/lib/cups/filter/pstopdf) stopped with status 1.

I looked at /var/spool/cups/d00167-001 and it is a faithful copy of the postscript file, but running the command from the command line produces:

# /usr/lib/cups/filter/pstopdf 167 andrew notes.ps 1 nocollate Duplex=None InputSlot=Default number-up=1 outputorder=normal PageSize=A4 position=center Resolution=600x600dpi nowrap job-uuid=urn:uuid:08c52a0f-73f7-3ac7-7632-7ee1e4465007 job-originating-host-name=localhost time-at-creation=1355819277 time-at-processing=1355819277 /var/spool/cups/d00167-001
DEBUG: pstopdf 18 args: 167 andrew notes.ps 1 nocollate Duplex=None InputSlot=Default number-up=1 outputorder=normal PageSize=A4 position=center Resolution=600x600dpi nowrap job-uuid=urn:uuid:08c52a0f-73f7-3ac7-7632-7ee1e4465007 job-originating-host-name=localhost time-at-creation=1355819277 time-at-processing=1355819277 /var/spool/cups/d00167-001
DEBUG: PPD: 
ERROR: /usr/lib/cups/filter/pstopdf job-id user title copies options [file]

Running the command without the options produces a PDF file on stdout.

The questions seem to be, why does CUPS try to convert a Postscript file to a PDF and then back to Postscript via foomatic-rip, and why does that conversion fail for me?

Incidentally I am using one of the Generic Postscript PPD files

Thanks for any guidance

Andrew

Last edited by fdservices (2012-12-19 12:14:09)

Offline

#2 2012-12-18 15:13:40

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Re: Error printing with CUPS (SOLVED)

Turns out this whole thing was nothing to do with CUPS, but resulted from my root partition filling up.

Embarrasing or what?

Sorry

Andrew

Offline

#3 2012-12-18 20:25:17

TheEdwardRCT
Member
Registered: 2012-12-17
Posts: 26

Re: Error printing with CUPS (SOLVED)

Post this as solved then:)

Offline

Board footer

Powered by FluxBB