[cups.general] How to send jobs to a SCSI printer with cups?

Mike Fedyk mfedyk at matchmail.com
Thu Sep 9 22:16:43 PDT 2004


Michael Sweet wrote:

> Mike Fedyk wrote:
>
>> Does the scsi backend use SG (SCSI Generic) device files to send the 
>> jobs to a printer?
>
>
> Yes.

Ok, good.

>
>> I have been unable to find device file names to use for the backend.
>>
>> Also my goal is to be able to send PCL to this printer:
>>
>> Host: scsi1 Channel: 00 Id: 05 Lun: 00
>
>
> Check your dmesg output to find out which device to use.  At some
> point we may update the SCSI backend to work like the USB backend,
> where the device ID is mapped to a SCSI address/device for you...

I used a trick where you count the entries in /proc/scsi/scsi and the
entry number of your device is your sg number.

Now, it looks like I'm getting a SCSI error when I try sending a job.
I've been able to send jobs to non-scsi postscript hp lj8000 via
jetdirect from this system in raw and foomatic configurations, so my
base setup is working to some degree.

I changed my logging from info to debug2, but it didn't give more info
on the scsi error produced.  Is there anything I can do to help you
diagnose the problem?

Thanks,

Mike

d [09/Sep/2004:21:43:35 -0700] decode_auth: 8 username="root"
d [09/Sep/2004:21:43:35 -0700] IsAuthorized: con->uri = "/admin/"
d [09/Sep/2004:21:43:35 -0700] FindBest: uri = "/admin/"...
d [09/Sep/2004:21:43:35 -0700] FindBest: Location / Limit 7f
d [09/Sep/2004:21:43:35 -0700] FindBest: Location /jobs Limit 7f
d [09/Sep/2004:21:43:35 -0700] FindBest: Location /admin Limit 7f
d [09/Sep/2004:21:43:35 -0700] FindBest: best = "/admin"
d [09/Sep/2004:21:43:35 -0700] IsAuthorized: auth = 0, satisfy=0...
d [09/Sep/2004:21:43:35 -0700] IsAuthorized: username = "root" password
= 0 chars
d [09/Sep/2004:21:43:35 -0700] IsAuthorized: Checking "root", address =
7f000001, hostname = "localhost"
d [09/Sep/2004:21:43:35 -0700] POST /admin/
d [09/Sep/2004:21:43:35 -0700] CONTENT_TYPE = application/ipp
d [09/Sep/2004:21:43:35 -0700] ReadClient: 8 con->data_encoding =
length, con->data_remaining = 130, con->file = -1
d [09/Sep/2004:21:43:35 -0700] ProcessIPPRequest(0x40399c3c[8]):
operation_id = 0011
d [09/Sep/2004:21:43:35 -0700] start_printer(0x40399c3c[8],
ipp://localhost/printers/oceps372a)
I [09/Sep/2004:21:43:35 -0700] Saving printers.conf...
I [09/Sep/2004:21:43:35 -0700] Printer 'oceps372a' started by 'root'.
D [09/Sep/2004:21:43:35 -0700] StartJob(14, 0x809d870)
D [09/Sep/2004:21:43:35 -0700] StartJob() id = 14, file = 0/1
D [09/Sep/2004:21:43:35 -0700] StartJob: Sending job to queue tagged as
raw...
D [09/Sep/2004:21:43:35 -0700] job-sheets=none,none
D [09/Sep/2004:21:43:35 -0700] banner_page = 0
D [09/Sep/2004:21:43:35 -0700] StartJob: argv =
"oceps372a","14","root","ACURA_NSX.PCL","1","","/var/spool/cups/d00014-001"
D [09/Sep/2004:21:43:35 -0700] StartJob:
envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin"
D [09/Sep/2004:21:43:35 -0700] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
D [09/Sep/2004:21:43:35 -0700] StartJob: envp[2]="USER=root"
D [09/Sep/2004:21:43:35 -0700] StartJob: envp[3]="CHARSET=iso-8859-1"
D [09/Sep/2004:21:43:35 -0700] StartJob: envp[4]="LANG=en"
D [09/Sep/2004:21:43:35 -0700] StartJob: envp[5]="TZ=US/Pacific"
D [09/Sep/2004:21:43:35 -0700] StartJob:
envp[6]="PPD=/etc/cups/ppd/oceps372a.ppd"
D [09/Sep/2004:21:43:35 -0700] StartJob: envp[7]="CUPS_SERVERROOT=/etc/cups"
D [09/Sep/2004:21:43:35 -0700] StartJob: envp[8]="RIP_MAX_CACHE=8m"
D [09/Sep/2004:21:43:35 -0700] StartJob:
envp[9]="TMPDIR=/var/spool/cups/tmp"
D [09/Sep/2004:21:43:35 -0700] StartJob:
envp[10]="CONTENT_TYPE=application/vnd.cups-raw"
D [09/Sep/2004:21:43:35 -0700] StartJob: envp[11]="DEVICE_URI=scsi:/dev/sg1"
D [09/Sep/2004:21:43:35 -0700] StartJob: envp[12]="PRINTER=oceps372a"
D [09/Sep/2004:21:43:35 -0700] StartJob:
envp[13]="CUPS_DATADIR=/usr/share/cups"
D [09/Sep/2004:21:43:35 -0700] StartJob:
envp[14]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [09/Sep/2004:21:43:35 -0700] StartJob: envp[15]="CUPS_SERVER=localhost"
D [09/Sep/2004:21:43:35 -0700] StartJob: envp[16]="IPP_PORT=80"
d [09/Sep/2004:21:43:35 -0700] StartJob: Allocating status buffer...
D [09/Sep/2004:21:43:35 -0700] StartJob: statusfds = [ 10 11 ]
D [09/Sep/2004:21:43:35 -0700] StartJob: filterfds[1] = [ 12 -1 ]
D [09/Sep/2004:21:43:35 -0700] StartJob: backend =
"/usr/lib/cups/backend/scsi"
D [09/Sep/2004:21:43:35 -0700] StartJob: filterfds[0] = [ -1 13 ]
D [09/Sep/2004:21:43:35 -0700]
start_process("/usr/lib/cups/backend/scsi", 0xbfff0b10, 0xbffefe80, 12,
13, 11)
I [09/Sep/2004:21:43:35 -0700] Started backend
/usr/lib/cups/backend/scsi (PID 1771) for job 14.
d [09/Sep/2004:21:43:35 -0700] StartJob: Adding fd 10 to InputSet...
D [09/Sep/2004:21:43:35 -0700] ProcessIPPRequest: 8 status_code=0
d [09/Sep/2004:21:43:35 -0700] ProcessIPPRequest: Adding fd 8 to
OutputSet...
d [09/Sep/2004:21:43:35 -0700] WriteClient: Removing fd 8 from OutputSet...
d [09/Sep/2004:21:43:35 -0700] ReadClient: 8, used=0, file=-1
d [09/Sep/2004:21:43:35 -0700] ReadClient: httpGets returned EOF...
D [09/Sep/2004:21:43:35 -0700] CloseClient: 8
d [09/Sep/2004:21:43:35 -0700] CloseClient: Removing fd 8 from InputSet
and OutputSet...
d [09/Sep/2004:21:43:35 -0700] PID 1770 exited with no errors.
d [09/Sep/2004:21:43:35 -0700] DeleteCert: removing certificate for pid 1770
d [09/Sep/2004:21:43:35 -0700] WriteClient: Removing fd 6 from OutputSet...
d [09/Sep/2004:21:43:35 -0700] WriteClient: Removing fd 9 from InputSet...
d [09/Sep/2004:21:43:35 -0700] WriteClient: 6 Closing data file 9.
W [09/Sep/2004:21:43:35 -0700] [Job 14] SCSI command timed out (2);
retrying...
d [09/Sep/2004:21:43:36 -0700] select_timeout: 6 seconds to update root
certificate
W [09/Sep/2004:21:43:36 -0700] [Job 14] SCSI command timed out (2);
retrying...
d [09/Sep/2004:21:43:37 -0700] select_timeout: 5 seconds to update root
certificate
W [09/Sep/2004:21:43:38 -0700] [Job 14] SCSI command timed out (2);
retrying...
d [09/Sep/2004:21:43:39 -0700] select_timeout: 3 seconds to update root
certificate
W [09/Sep/2004:21:43:41 -0700] [Job 14] SCSI command timed out (2);
retrying...
d [09/Sep/2004:21:43:41 -0700] DeleteCert: removing certificate for pid 0
d [09/Sep/2004:21:43:42 -0700] AddCert: adding certificate for pid 0
d [09/Sep/2004:21:43:43 -0700] select_timeout: 9 seconds to send browse
update
W [09/Sep/2004:21:43:45 -0700] [Job 14] SCSI command timed out (2);
retrying...
d [09/Sep/2004:21:43:46 -0700] select_timeout: 6 seconds to send browse
update
W [09/Sep/2004:21:43:50 -0700] [Job 14] SCSI command timed out (2);
retrying...
d [09/Sep/2004:21:43:51 -0700] select_timeout: 1 seconds to send browse
update
d [09/Sep/2004:21:43:52 -0700] select_timeout: 1 seconds to send browse
update
d [09/Sep/2004:21:43:53 -0700] select_timeout: 1 seconds to send browse
update
d [09/Sep/2004:21:43:54 -0700] select_timeout: 11 seconds to process
active jobs
W [09/Sep/2004:21:43:56 -0700] [Job 14] SCSI command timed out (2);
retrying...
d [09/Sep/2004:21:43:57 -0700] select_timeout: 10 seconds to send browse
update
W [09/Sep/2004:21:44:03 -0700] [Job 14] SCSI command timed out (2);
retrying...
d [09/Sep/2004:21:44:04 -0700] select_timeout: 3 seconds to send browse
update
d [09/Sep/2004:21:44:07 -0700] select_timeout: 11 seconds to process
active jobs
W [09/Sep/2004:21:44:12 -0700] [Job 14] SCSI command timed out (2);
retrying...
d [09/Sep/2004:21:44:13 -0700] select_timeout: 10 seconds to send browse
update
W [09/Sep/2004:21:44:21 -0700] [Job 14] SCSI command timed out (2);
retrying...
d [09/Sep/2004:21:44:22 -0700] select_timeout: 1 seconds to send browse
update
d [09/Sep/2004:21:44:23 -0700] select_timeout: 1 seconds to send browse
update
d [09/Sep/2004:21:44:24 -0700] select_timeout: 1 seconds to send browse
update
d [09/Sep/2004:21:44:25 -0700] select_timeout: 11 seconds to process
active jobs
E [09/Sep/2004:21:44:31 -0700] [Job 14] Unable to send print data (2)
E [09/Sep/2004:21:44:31 -0700] PID 1771 stopped with status 1!
D [09/Sep/2004:21:44:31 -0700] UpdateJob: job 14, file 0 is complete.
d [09/Sep/2004:21:44:31 -0700] UpdateJob: Removing fd 10 from InputSet...
D [09/Sep/2004:21:44:31 -0700] StopJob: id = 14, force = 0
I [09/Sep/2004:21:44:31 -0700] Saving printers.conf...
D [09/Sep/2004:21:44:31 -0700] StopJob: printer state is 5
d [09/Sep/2004:21:44:31 -0700] StopJob: Freeing status buffer...
d [09/Sep/2004:21:44:31 -0700] SaveJob: Closing file 8...
d [09/Sep/2004:21:44:32 -0700] select_timeout: 11 seconds to process
active jobs
d [09/Sep/2004:21:44:43 -0700] select_timeout: 11 seconds to send browse
update
d [09/Sep/2004:21:44:48 -0700] ReadClient: 6, used=0, file=-1
d [09/Sep/2004:21:44:48 -0700] ReadClient: httpGets returned EOF...
D [09/Sep/2004:21:44:48 -0700] CloseClient: 6
d [09/Sep/2004:21:44:48 -0700] CloseClient: Removing fd 6 from InputSet
and OutputSet...







More information about the cups mailing list