Printer set up issue

Helge Blischke h.blischke at srz.de
Fri Mar 16 06:36:47 PDT 2007


Mary wrote:
> I have a Prodigy serial printer that is connected to a annex term server. I have set up the printer on my Solaris box as:
> /usr/opt/annex/rtelnet -broadp annexip annexPort# /dev/mc056
> 
> I then added the printer to the server with the following syntax:
> lpadmin -p mc056 -v /dev/mc056 -o banner=never ; accept mc056; enable mc056
> 
> When I send a print job to the printer, it appears as if the job is being printed, but the job is actually being canceled. I turned on the LogLevel of cups to debug and ran the print job again. I am not sure what all of this means, but was wondering if anyone could point out the obvious if it exists:
> 
> 
> d [15/Mar/2007:16:33:04 +0500] AcceptClient(lis=1533d0) 0 NumClients = 1
> D [15/Mar/2007:16:33:04 +0500] AcceptClient: 11 from localhost:631.
> d [15/Mar/2007:16:33:04 +0500] AcceptClient: Adding fd 11 to InputSet...
> d [15/Mar/2007:16:33:04 +0500] ReadClient: 11, used=0, file=-1
> D [15/Mar/2007:16:33:04 +0500] ReadClient: 11 POST /printers/mc056 HTTP/1.1
> d [15/Mar/2007:16:33:04 +0500] decode_auth(1614b0): Authorization string = ""
> d [15/Mar/2007:16:33:04 +0500] decode_auth: 11 username=""
> d [15/Mar/2007:16:33:04 +0500] IsAuthorized: con->uri = "/printers/mc056"
> d [15/Mar/2007:16:33:04 +0500] FindBest: uri = "/printers/mc056"...
> d [15/Mar/2007:16:33:04 +0500] FindBest: Location / Limit 7f
> d [15/Mar/2007:16:33:04 +0500] FindBest: Location /admin Limit 7f
> d [15/Mar/2007:16:33:04 +0500] FindBest: best = "/"
> d [15/Mar/2007:16:33:04 +0500] IsAuthorized: auth = 0, satisfy=0...
> d [15/Mar/2007:16:33:04 +0500] POST /printers/mc056
> d [15/Mar/2007:16:33:04 +0500] CONTENT_TYPE = application/ipp
> d [15/Mar/2007:16:33:04 +0500] ReadClient: 11 con->data_encoding = length, con->
> data_remaining = 1283, con->file = -1
> d [15/Mar/2007:16:33:04 +0500] ReadClient: 11 REQUEST /var/spool/cups/0000009d=1
> 2
> d [15/Mar/2007:16:33:04 +0500] ReadClient: 11 writing 984 bytes to 12
> d [15/Mar/2007:16:33:04 +0500] ReadClient: 11 Closing data file 12, size = 984.
> d [15/Mar/2007:16:33:04 +0500] ProcessIPPRequest(1614b0[11]): operation_id = 000
> 2
> d [15/Mar/2007:16:33:04 +0500] ProcessIPPRequest: URI="ipp://localhost:631/print
> ers/mc056"
> d [15/Mar/2007:16:33:04 +0500] print_job(1614b0[11], ipp://localhost:631/printer
> s/mc056)
> D [15/Mar/2007:16:33:04 +0500] print_job: auto-typing file...
> D [15/Mar/2007:16:33:04 +0500] print_job: request file type is application/octet
> -stream.
> d [15/Mar/2007:16:33:04 +0500] check_quotas(1614b0[11], 2bb078[mc056])
> D [15/Mar/2007:16:33:04 +0500] check_quotas: requesting-user-name = 'root'
> D [15/Mar/2007:16:33:04 +0500] print_job: requesting-user-name = 'root'
> I [15/Mar/2007:16:33:04 +0500] Adding start banner page "none" to job 104.
> d [15/Mar/2007:16:33:04 +0500] copy_banner(1614b0[11], 2cb738[104], none)
> d [15/Mar/2007:16:33:04 +0500] add_file(con=1614b0[11], job=104, filetype=applic
> ation/octet-stream, compression=0)
> I [15/Mar/2007:16:33:04 +0500] Adding end banner page "none" to job 104.
> d [15/Mar/2007:16:33:04 +0500] copy_banner(1614b0[11], 2cb738[104], none)
> I [15/Mar/2007:16:33:04 +0500] Job 104 queued on 'mc056' by 'root'.
> D [15/Mar/2007:16:33:04 +0500] Job 104 hold_until = 0
> d [15/Mar/2007:16:33:04 +0500] SaveJob: Closing file 12...
> D [15/Mar/2007:16:33:04 +0500] StartJob(104, 2bb078)
> D [15/Mar/2007:16:33:04 +0500] StartJob() id = 104, file = 0/1
> D [15/Mar/2007:16:33:04 +0500] StartJob: Sending job to queue tagged as raw...
> D [15/Mar/2007:16:33:04 +0500] job-sheets=none,none
> D [15/Mar/2007:16:33:04 +0500] banner_page = 0
> D [15/Mar/2007:16:33:04 +0500] StartJob: argv = "mc056","104","root","prod1.10",
> "10","landscape cpi=14 lpi=9","/var/spool/cups/d00104-001"
> D [15/Mar/2007:16:33:04 +0500] StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin
> :/usr/bin"
> D [15/Mar/2007:16:33:04 +0500] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
> D [15/Mar/2007:16:33:04 +0500] StartJob: envp[2]="USER=root"
> D [15/Mar/2007:16:33:04 +0500] StartJob: envp[3]="CHARSET=iso-8859-1"
> D [15/Mar/2007:16:33:04 +0500] StartJob: envp[4]="LANG=en"
> D [15/Mar/2007:16:33:04 +0500] StartJob: envp[5]="TZ=US/Eastern"
> D [15/Mar/2007:16:33:04 +0500] StartJob: envp[6]="PPD=/etc/cups/ppd/mc056.ppd"
> D [15/Mar/2007:16:33:04 +0500] StartJob: envp[7]="CUPS_SERVERROOT=/etc/cups"
> D [15/Mar/2007:16:33:04 +0500] StartJob: envp[8]="RIP_MAX_CACHE=8m"
> D [15/Mar/2007:16:33:04 +0500] StartJob: envp[9]="TMPDIR=/var/spool/cups/tmp"
> D [15/Mar/2007:16:33:04 +0500] StartJob: envp[10]="CONTENT_TYPE=application/octe
> t-stream"
> D [15/Mar/2007:16:33:04 +0500] StartJob: envp[11]="DEVICE_URI=file:/dev/mc056"
> D [15/Mar/2007:16:33:04 +0500] StartJob: envp[12]="PRINTER=mc056"
> D [15/Mar/2007:16:33:04 +0500] StartJob: envp[13]="CUPS_DATADIR=/usr/share/cups"
> D [15/Mar/2007:16:33:04 +0500] StartJob: envp[14]="CUPS_FONTPATH=/usr/share/cups
> /fonts"
> D [15/Mar/2007:16:33:04 +0500] StartJob: envp[15]="CUPS_SERVER=localhost"
> D [15/Mar/2007:16:33:04 +0500] StartJob: envp[16]="IPP_PORT=631"
> D [15/Mar/2007:16:33:04 +0500] StartJob: envp[17]="LD_LIBRARY_PATH=/usr/lib:/u
> /local/lib"
> d [15/Mar/2007:16:33:04 +0500] StartJob: Allocating status buffer...
> D [15/Mar/2007:16:33:04 +0500] StartJob: statusfds = [ 12 13 ]
> D [15/Mar/2007:16:33:04 +0500] StartJob: filterfds[1] = [ 14 -1 ]
> d [15/Mar/2007:16:33:04 +0500] StartJob: Adding fd 12 to InputSet...
> d [15/Mar/2007:16:33:04 +0500] add_job_state_reasons(1614b0[11], 104)
> D [15/Mar/2007:16:33:04 +0500] ProcessIPPRequest: 11 status_code=0
> d [15/Mar/2007:16:33:04 +0500] ProcessIPPRequest: Adding fd 11 to OutputSet...
> D [15/Mar/2007:16:33:04 +0500] UpdateJob: job 104, file 0 is complete.
> d [15/Mar/2007:16:33:04 +0500] UpdateJob: Removing fd 12 from InputSet...
> D [15/Mar/2007:16:33:04 +0500] CancelJob: id = 104
> D [15/Mar/2007:16:33:04 +0500] StopJob: id = 104, force = 0
> D [15/Mar/2007:16:33:04 +0500] StopJob: printer state is 3
> d [15/Mar/2007:16:33:04 +0500] StopJob: Freeing status buffer...
> d [15/Mar/2007:16:33:04 +0500] SaveJob: Closing file 12...
> 
> 
> 
> 

You have (by accident?) configured the printer using the file backend.
Thus, the final print data is simply dumped to the file /dev/mc056.
 From your stated setup command, though, I suspect that the printer needs
some sort of telnet protocol (rtelnet ?) to understand what to do.

Helge


-- 
Helge Blischke
Softwareentwicklung

H.Blischke at acm.org




More information about the cups mailing list