cups and pcl problems

Erik Mallory Erik.Mallory at gmail.com
Thu Oct 5 09:20:55 PDT 2006


Hello,

Cups 1.2.3
Solaris 9
HP 1320n and configured as raw.

I have installed CUPS 1.2.3. It works wonderfully with PostScript, however it isn't working with PCL.
I can print PCL directly to the printer (using a solaris print queue). (HP 1320n jetdirect) however when I use a cups queue it only prints a banner.

>From the logs, using debug2, to me, it seems that cups is sending the ps banner page
<snip>
D [05/Oct/2006:10:27:06 +0600] [Job 57] Read 6914 bytes of print data...
D [05/Oct/2006:10:27:06 +0600] [Job 57] Wrote 6914 bytes of print data...
I [05/Oct/2006:10:27:06 +0600] [Job 57] Sent print file, 6914 bytes...
I [05/Oct/2006:10:27:06 +0600] [Job 57] Print file sent, waiting for printer to finish...
I [05/Oct/2006:10:27:06 +0600] [Job 57] Ready to print.
</snip>

but failing to send the PCL

<snip>
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[20]="RIP_MAX_CACHE=8m"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[21]="CONTENT_TYPE=application/vnd.cups-raw"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[22]="DEVICE_URI=socket://prt12031.wichita.edu:9100"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[23]="PRINTER=ja-222"
d [05/Oct/2006:10:27:06 +0600] start_job: Closing print pipes [ -1 -1 ]...
d [05/Oct/2006:10:27:06 +0600] start_job: Closing back pipes [ 11 12 ]...
d [05/Oct/2006:10:27:06 +0600] start_job: Closing status output pipe 14...
d [05/Oct/2006:10:27:06 +0600] start_job: Closing filter pipes for slot 0 [ -1 -1 ]...
d [05/Oct/2006:10:27:06 +0600] start_job: Adding fd 13 to InputSet...
d [05/Oct/2006:10:27:06 +0600] cupsdAddEvent(event=job-state, dest=55a488(ja-222), job=969a0(57), text="Job #%d started.", ...)
D [05/Oct/2006:10:27:06 +0600] Discarding unused job-state event...
D [05/Oct/2006:10:27:06 +0600] [Job 57] File 1 is complete.
</snip>

What am I missing?
Below is the output for Job 57 starting at the end of File 0 through the end of File 1

Erik Mallory
Unix System Admin
Wichita State University
*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
 Discarding unused job-progress event...
D [05/Oct/2006:10:27:06 +0600] [Job 57] backendRunLoop(print_fd=4, device_fd=6, use_bc=1)
D [05/Oct/2006:10:27:06 +0600] [Job 57] Read 6914 bytes of print data...
D [05/Oct/2006:10:27:06 +0600] [Job 57] Wrote 6914 bytes of print data...
I [05/Oct/2006:10:27:06 +0600] [Job 57] Sent print file, 6914 bytes...
I [05/Oct/2006:10:27:06 +0600] [Job 57] Print file sent, waiting for printer to finish...
I [05/Oct/2006:10:27:06 +0600] [Job 57] Ready to print.
d [05/Oct/2006:10:27:06 +0600] process_children()
D [05/Oct/2006:10:27:06 +0600] PID 29806 (/usr/local/lib/cups/backend/socket) exited with no errors.
D [05/Oct/2006:10:27:06 +0600] [Job 57] File 0 is complete.
d [05/Oct/2006:10:27:06 +0600] cupsdFinishJob: job->status is 0
d [05/Oct/2006:10:27:06 +0600] start_job: id = 57, file = 1/2
D [05/Oct/2006:10:27:06 +0600] [Job 57] Sending job to queue tagged as raw...
D [05/Oct/2006:10:27:06 +0600] job-sheets=standard
D [05/Oct/2006:10:27:06 +0600] banner_page = 0
D [05/Oct/2006:10:27:06 +0600] [Job 57] argv[0]="ja-222"
D [05/Oct/2006:10:27:06 +0600] [Job 57] argv[1]="57"
D [05/Oct/2006:10:27:06 +0600] [Job 57] argv[2]="root"
D [05/Oct/2006:10:27:06 +0600] [Job 57] argv[3]="ipsecinit.pcl"
D [05/Oct/2006:10:27:06 +0600] [Job 57] argv[4]="1"
D [05/Oct/2006:10:27:06 +0600] [Job 57] argv[5]="job-uuid=urn:uuid:a42131a1-a59e-3030-5988-1a3b4a4a4e55"
D [05/Oct/2006:10:27:06 +0600] [Job 57] argv[6]="/usr/local/var/spool/cups/d00057-002"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[0]="CUPS_CACHEDIR=/usr/local/var/cache/cups"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[1]="CUPS_DATADIR=/usr/local/share/cups"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[2]="CUPS_DOCROOT=/usr/local/share/doc/cups"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[3]="CUPS_FONTPATH=/usr/local/share/cups/fonts"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[4]="CUPS_REQUESTROOT=/usr/local/var/spool/cups"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[5]="CUPS_SERVERBIN=/usr/local/lib/cups"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[6]="CUPS_SERVERROOT=/usr/local/etc/cups"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[7]="CUPS_STATEDIR=/usr/local/var/run/cups"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[8]="PATH=/usr/local/lib/cups/filter:/usr/local/bin:/usr/local/sbin:/bin:/usr/bin"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[9]="SERVER_ADMIN=root at teton.wichita.edu"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[10]="SOFTWARE=CUPS/1.2.3"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[11]="TMPDIR=/usr/local/var/spool/cups/tmp"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[12]="TZ=US/Central"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[13]="USER=root"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[14]="CUPS_SERVER=/usr/local/var/run/cups/cups.sock"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[15]="CUPS_ENCRYPTION=IfRequested"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[16]="IPP_PORT=631"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[17]="CHARSET=utf-8"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[18]="LANG=en_US"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[19]="PPD=/usr/local/etc/cups/ppd/ja-222.ppd"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[20]="RIP_MAX_CACHE=8m"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[21]="CONTENT_TYPE=application/vnd.cups-raw"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[22]="DEVICE_URI=socket://prt12031.wichita.edu:9100"
D [05/Oct/2006:10:27:06 +0600] [Job 57] envp[23]="PRINTER=ja-222"
d [05/Oct/2006:10:27:06 +0600] start_job: Closing print pipes [ -1 -1 ]...
d [05/Oct/2006:10:27:06 +0600] start_job: Closing back pipes [ 11 12 ]...
d [05/Oct/2006:10:27:06 +0600] start_job: Closing status output pipe 14...
d [05/Oct/2006:10:27:06 +0600] start_job: Closing filter pipes for slot 0 [ -1 -1 ]...
d [05/Oct/2006:10:27:06 +0600] start_job: Adding fd 13 to InputSet...
d [05/Oct/2006:10:27:06 +0600] cupsdAddEvent(event=job-state, dest=55a488(ja-222), job=969a0(57), text="Job #%d started.", ...)
D [05/Oct/2006:10:27:06 +0600] Discarding unused job-state event...
D [05/Oct/2006:10:27:06 +0600] [Job 57] File 1 is complete.





More information about the cups mailing list