No output, no errors, can cat to /dev/lp0

Joshua Kugler jkugler at bigfoot.com
Wed Jul 13 00:24:22 PDT 2005


I have a weird one.  All of the sudden, without any change in hardware, and
no change in software (at least no change to cups that I can see in the RPM
logs), CUPS won't print.  When a job gets sent, there are no errors 
in the cups logs, and it shows in completed jobs, but nothing gets sent to
the printer.  I can, however, cat a file to /dev/lp0, and it will print.

Mandriva 2005LE (I've been on the Mandriva lists, nobody had any ideas that
worked)

[root at zurishaddai /var/log]# rpm -qa|grep cups
cups-drivers-10.2-0.11mdk
libgnomecups-0.2.0-1mdk
cups-common-1.1.23-11mdk
gimpprint-cups-4.2.7-12mdk
cups-1.1.23-11mdk
libcups2-1.1.23-11mdk
libgnomecups-1.0_1-0.2.0-1mdk

[root at zurishaddai /etc/cups]# cat printers.conf
# Printer configuration file for CUPS v1.1.23
# Written by cupsd on Sun 10 Jul 2005 01:29:29 AM AKDT
<DefaultPrinter HPLasJet2100>
Info HP LaserJet 2100
Location 
DeviceURI parallel:/dev/lp0
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>

[root at zurishaddai /etc/cups]# uname -a
Linux zurishaddai.homeip.net 2.6.11-12mdk-i686-up-4GB #1 Mon Jun 27 22:18:25 
MDT 2005 i686 AMD Athlon(tm) XP  2600+ unknown GNU/Linux

I recently installed the latest Nvidia drivers (NVIDIA-Linux-x86-1.0-7667).  
Anyone else had printing glitches with these?

If I run

while(/bin/true); do lpq; done

when it print a test page, it shows up in the queue, then goes away, as if
it finished, but no output at the printer, not even any blinky lights to
indicate it's getting data.

I found something odd...if I print the test page when the printer is off, it
stays in the queue, naturally enough.  If I print it when the printer is
on, then it goes in the queue, the exits the queue, with no activity at the
printer.

Any ideas where to start in diagnosing this problem?  I've tried changing
drivers, stopping/starting cups, deleting/reinstalling the printer to no
avail.

I have some debug2 log output.  I've stripped the time/date stamp, but if
anyone cares, it all happened in one (yes, 1) second.  Here we go:

d  AcceptClient(lis=0x808c480) 0 NumClients = 0
D  AcceptClient: 6 from localhost:631.
d  AcceptClient: Adding fd 6 to InputSet...
d  ReadClient: 6, used=0, file=-1
D  ReadClient: 6 POST /printers/HPLasJet2100 HTTP/1.1
d  decode_auth(0xb7b61008): Authorization string = ""
d  decode_auth: 6 username=""
d  IsAuthorized: con->uri = "/printers/HPLasJet2100"
d  FindBest: uri = "/printers/HPLasJet2100"...
d  FindBest: Location CUPS_INTERNAL_BROWSE_ACL Limit 0
d  FindBest: Location / Limit 7f
d  FindBest: Location /admin Limit 7f
d  FindBest: best = "/"
d  IsAuthorized: auth = 0, satisfy=0...
d  POST /printers/HPLasJet2100
d  CONTENT_TYPE = application/ipp
d  ReadClient: 6 con->data_encoding = length, con->data_remaining = 393,
con->file = -1
d  ReadClient: 6 REQUEST /var/spool/cups/00000000=8
d  ReadClient: 6 writing 15 bytes to 8
d  ReadClient: 6 Closing data file 8, size = 15.
d  ProcessIPPRequest(0xb7b61008[6]): operation_id = 0002
d  ProcessIPPRequest: URI="ipp://localhost:631/printers/HPLasJet2100"
d  print_job(0xb7b61008[6], ipp://localhost:631/printers/HPLasJet2100)
D  print_job: auto-typing file...
D  print_job: request file type is text/plain.
d  check_quotas(0xb7b61008[6], 0x8099348[HPLasJet2100])
D  check_quotas: requesting-user-name = 'joshua'
D  print_job: requesting-user-name = 'joshua'
I  Adding start banner page "none" to job 15.
d  copy_banner(0xb7b61008[6], 0x8148a60[15], none)
d  add_file(con=0xb7b61008[6], job=15, filetype=text/plain, compression=0)
I  Adding end banner page "none" to job 15.
d  copy_banner(0xb7b61008[6], 0x8148a60[15], none)
I  Job 15 queued on 'HPLasJet2100' by 'joshua'.
D  Job 15 hold_until = 0
d  SaveJob: Closing file 8...
D  StartJob(15, 0x8099348)
D  StartJob() id = 15, file = 0/1
D  job-sheets=none,none
D  banner_page = 0
D  StartJob: argv = "HPLasJet2100","15","joshua","STDIN","1","page-top=36
page-bottom=36 page-left=36 page-right=36 cpi=12 lpi=7 wrap
scaling=100","/var/spool/cups/d00015-001"
D  StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin"
D  StartJob: envp[1]="SOFTWARE=CUPS/1.1"
D  StartJob: envp[2]="USER=root"
D  StartJob: envp[3]="CHARSET=iso-8859-1"
D  StartJob: envp[4]="LANG=en_US"
D  StartJob: envp[5]="PPD=/etc/cups/ppd/HPLasJet2100.ppd"
D  StartJob: envp[6]="CUPS_SERVERROOT=/etc/cups"
D  StartJob: envp[7]="RIP_MAX_CACHE=8m"
D  StartJob: envp[8]="TMPDIR=/var/spool/cups/tmp"
D  StartJob: envp[9]="CONTENT_TYPE=text/plain"
D  StartJob: envp[10]="DEVICE_URI=parallel:/dev/lp0"
D  StartJob: envp[11]="PRINTER=HPLasJet2100"
D  StartJob: envp[12]="CUPS_DATADIR=/usr/share/cups"
D  StartJob: envp[13]="CUPS_FONTPATH=/usr/share/cups/fonts"
D  StartJob: envp[14]="CUPS_SERVER=localhost"
D  StartJob: envp[15]="IPP_PORT=631"
d  StartJob: Allocating status buffer...
D  StartJob: statusfds = [ 8 9 ]
D  StartJob: filterfds[1] = [ 10 -1 ]
D  StartJob: filter = "/usr/lib/cups/filter/texttops"
D  StartJob: filterfds[0] = [ 11 12 ]
D  start_process("/usr/lib/cups/filter/texttops", 0xbffee5f0, 0xbffed960,
10, 12, 9)
I  Started filter /usr/lib/cups/filter/texttops (PID 7733) for job 15.
D  StartJob: filter = "/usr/lib/cups/filter/pstops"
D  StartJob: filterfds[1] = [ 10 13 ]
D  start_process("/usr/lib/cups/filter/pstops", 0xbffee5f0, 0xbffed960, 11,
13, 9)
I  Started filter /usr/lib/cups/filter/pstops (PID 7734) for job 15.
D  StartJob: filter = "/usr/lib/cups/filter/foomatic-rip"
D  StartJob: filterfds[0] = [ 11 12 ]
D  start_process("/usr/lib/cups/filter/foomatic-rip", 0xbffee5f0,
0xbffed960, 10, 12, 9)
I  Started filter /usr/lib/cups/filter/foomatic-rip (PID 7735) for job 15.
D  StartJob: backend = "/usr/lib/cups/backend/parallel"
D  StartJob: filterfds[1] = [ -1 10 ]
D  start_process("/usr/lib/cups/backend/parallel", 0xbffee5f0, 0xbffed960,
11, 10, 9)
I  Started backend /usr/lib/cups/backend/parallel (PID 7736) for job 15.
d  StartJob: Adding fd 8 to InputSet...
d  add_job_state_reasons(0xb7b61008[6], 15)
D  ProcessIPPRequest: 6 status_code=0
d  ProcessIPPRequest: Adding fd 6 to OutputSet...
D  [Job 15] Page = 612x792; 0,0 to 612,792
D  [Job 15] ppd->num_fonts = 35
D  [Job 15] ppd->fonts[0] = AvantGarde-Book
D  [Job 15] ppd->fonts[1] = AvantGarde-BookOblique
D  [Job 15] ppd->fonts[2] = AvantGarde-Demi
D  [Job 15] ppd->fonts[3] = AvantGarde-DemiOblique
D  [Job 15] ppd->fonts[4] = Bookman-Demi
D  [Job 15] ppd->fonts[5] = Bookman-DemiItalic
D  [Job 15] ppd->fonts[6] = Bookman-Light
D  [Job 15] ppd->fonts[7] = Bookman-LightItalic
D  [Job 15] ppd->fonts[8] = Courier
D  [Job 15] ppd->fonts[9] = Courier-Bold
D  [Job 15] ppd->num_fonts = 35
D  [Job 15] ppd->fonts[0] = AvantGarde-Book
D  [Job 15] ppd->fonts[1] = AvantGarde-BookOblique
D  [Job 15] ppd->fonts[2] = AvantGarde-Demi
D  [Job 15] ppd->fonts[3] = AvantGarde-DemiOblique
D  [Job 15] ppd->fonts[4] = Bookman-Demi
D  [Job 15] ppd->fonts[5] = Bookman-DemiItalic
D  [Job 15] ppd->fonts[6] = Bookman-Light
D  [Job 15] ppd->fonts[7] = Bookman-LightItalic
D  [Job 15] ppd->fonts[8] = Courier
D  [Job 15] Page = 612x792; 0,0 to 612,792
D  [Job 15] slowcollate=0, slowduplex=0, sloworder=0
D  [Job 15] 0 %%BoundingBox: 0 0 612 792
D  [Job 15] 0 %%Creator: texttops/CUPS v1.1.23
D  [Job 15] 0 %%CreationDate: Tue 12 Jul 2005 10:40:36 PM AKDT
D  [Job 15] 0 %%Title: STDIN
D  [Job 15] 0 %%For: joshua
D  [Job 15] 0 %%Pages: (atend)
D  [Job 15] 0 %%DocumentNeededResources: font Courier-Bold
D  [Job 15] 0 %%+ font Courier
D  [Job 15] 0 %%DocumentSuppliedResources: procset texttops 1.1 0
D  [Job 15] 0 %%+ font Courier-Bold
D  [Job 15] 0 %%+ font Courier
D  [Job 15] 0 %%EndComments
D  [Job 15] 0 %%BeginProlog
D  [Job 15] 0 %%BeginResource: font Courier-Bold
D  [Job 15] 0 %%CreationDate: Wed Dec 22 1999
D  [Job 15] foomatic-rip version $Revision: 3.43.2.9 $ running...
D  [Job 15] Parsing PPD file ...
D  [Job 15] *cupsFilter: "application/vnd.cups-postscript 0 foomatic-rip"
D  [Job 15] Added option ColorSpace
D  [Job 15] Added option Resolution
D  [Job 15] Added option PrintoutMode
D  [Job 15] Added option PageSize
D  [Job 15] Added option PageRegion
D  [Job 15] Added option ImageableArea
D  [Job 15] Added option PaperDimension
D  [Job 15] Added option InputSlot
D  [Job 15] Added option Manualfeed
D  [Job 15] Added option Copies
d  WriteClient: Removing fd 6 from OutputSet...
d  ReadClient: 6, used=0, file=-1
d  ReadClient: httpGets returned EOF...
D  CloseClient: 6
d  CloseClient: Removing fd 6 from InputSet and OutputSet...
D  [Job 15] Added option REt
D  [Job 15] Added option TonerDensity
D  [Job 15] Added option GSResolution
D  [Job 15] Added option JCLResolution
D  [Job 15] Added option Economode
D  [Job 15] Added option ColorMode
D  [Job 15] Added option PrinterResolution
D  [Job 15] Added option Font
D  [Job 15] 
D  [Job 15] Parameter Summary
D  [Job 15] -----------------
D  [Job 15] 
D  [Job 15] Spooler: cups
D  [Job 15] Printer: HPLasJet2100
D  [Job 15] PPD file: /etc/cups/ppd/HPLasJet2100.ppd
D  [Job 15] Printer model: HP LaserJet 2100 Foomatic/pxlmono
D  [Job 15] Job title: STDIN
D  [Job 15] File(s) to be printed: 
D  [Job 15] <STDIN>
D  [Job 15] 
D  [Job 15] Pondering option 'page-top=36'
D  [Job 15] Unknown option page-top=36.
D  [Job 15] Pondering option 'page-bottom=36'
D  [Job 15] Unknown option page-bottom=36.
D  [Job 15] Pondering option 'page-left=36'
D  [Job 15] Unknown option page-left=36.
D  [Job 15] Pondering option 'page-right=36'
D  [Job 15] Unknown option page-right=36.
D  [Job 15] Pondering option 'cpi=12'
D  [Job 15] Unknown option cpi=12.
D  [Job 15] Pondering option 'lpi=7'
D  [Job 15] Unknown option lpi=7.
D  [Job 15] Pondering option 'wrap'
D  [Job 15] Unknown boolean option "wrap".
D  [Job 15] Pondering option 'scaling=100'
D  [Job 15] Unknown option scaling=100.
D  [Job 15] 
D  [Job 15] ================================================
D  [Job 15] 
D  [Job 15] File: <STDIN>
D  [Job 15] 
D  [Job 15] ================================================
D  [Job 15] 
D  [Job 15] Reading PostScript input ...
D  [Job 15] --> This document is DSC-conforming!
D  [Job 15] 
D  [Job 15] -----------
D  [Job 15] Found: %%BeginProlog
D  [Job 15] 0 %%EndResource
D  [Job 15] 0 %%BeginResource: font Courier
D  [Job 15] 0 %%CreationDate: Wed Dec 22 1999
d  PID 7733 exited with no errors.
D  [Job 15] 0 %%EndResource
D  [Job 15] 0 %%BeginResource: procset texttops 1.1 0
D  [Job 15] 0 %%EndResource
D  [Job 15] 0 %%EndProlog
D  [Job 15] 0 %%Page: 1 1
D  [Job 15] 0 %%Page: 1 1
D  [Job 15] pw = 540.0, pl = 720.0
D  [Job 15] PageLeft = 36.0, PageRight = 576.0
D  [Job 15] PageTop = 756.0, PageBottom = 36.0
D  [Job 15] PageWidth = 612.0, PageLength = 792.0
D  [Job 15] 0 %%Trailer
D  [Job 15] Saw Trailer!
D  [Job 15] Saw EOF!
d  PID 7734 exited with no errors.
D  [Job 15] Found: %%EndProlog
D  [Job 15] 
D  [Job 15] -----------
D  [Job 15] Found: %%BeginSetup
D  [Job 15] Found: %%BeginFeature: *PrintoutMode Normal
D  [Job 15] Option: PrintoutMode=Normal --> Setting option
D  [Job 15] Found: %% FoomaticRIPOptionSetting: PrintoutMode=Normal
D  [Job 15] Option: PrintoutMode=Normal --> Setting option
D  [Job 15] Found: %%BeginFeature: *PrinterResolution FromPrintoutMode
D  [Job 15] Option: PrinterResolution=FromPrintoutMode --> Setting option
D  [Job 15] Found: %% FoomaticRIPOptionSetting:
PrinterResolution=FromPrintoutMode
D  [Job 15] Option: PrinterResolution=FromPrintoutMode --> Setting option
D  [Job 15] Found: %%BeginFeature: *REt Medium
D  [Job 15] Option: REt=Medium --> Setting option
D  [Job 15] Found: %% FoomaticRIPOptionSetting: REt=Medium
D  [Job 15] Option: REt=Medium --> Setting option
D  [Job 15] Found: %%BeginFeature: *TonerDensity 3
D  [Job 15] Option: TonerDensity=3 --> Setting option
D  [Job 15] Found: %% FoomaticRIPOptionSetting: TonerDensity=3
D  [Job 15] Option: TonerDensity=3 --> Setting option
D  [Job 15] Found: %%BeginFeature: *InputSlot Default
D  [Job 15] Option: InputSlot=Default --> Setting option
D  [Job 15] Found: %% FoomaticRIPOptionSetting: InputSlot=Default
D  [Job 15] Option: InputSlot=Default --> Setting option
D  [Job 15] Found: %%BeginFeature: *Copies 1
D  [Job 15] Option: Copies=1 --> Setting option
D  [Job 15] Found: %% FoomaticRIPOptionSetting: Copies=1
D  [Job 15] Option: Copies=1 --> Setting option
D  [Job 15] Found: %%BeginFeature: *PageRegion Letter
D  [Job 15] Option: PageRegion=Letter --> Option will be set by PostScript
interpreter
D  [Job 15] Found: %%BeginFeature: *Economode FromPrintoutMode
D  [Job 15] Option: Economode=FromPrintoutMode --> Setting option
D  [Job 15] Found: %% FoomaticRIPOptionSetting: Economode=@PrintoutMode
D  [Job 15] Option: Economode=FromPrintoutMode --> Setting option
D  [Job 15] Found: %%EndSetup
D  [Job 15] Inserting PostScript code for CUPS' page accounting
D  [Job 15] 
D  [Job 15] -----------
D  [Job 15] New page:  1 1
D  [Job 15] Inserting option code into "PageSetup" section.
D  [Job 15] No page header or page header not DSC-conforming
D  [Job 15] Flushing FIFO.
D  [Job 15] 
D  [Job 15] Starting renderer
D  [Job 15] JCL:  %-12345X at PJL
D  [Job 15] @PJL SET MANUALFEED=OFF
D  [Job 15] @PJL SET COPIES=1
D  [Job 15] @PJL SET RET=MEDIUM
D  [Job 15] @PJL SET DENSITY=3
D  [Job 15] @PJL SET RESOLUTION=600
D  [Job 15] @PJL SET ECONOMODE=OFF
D  [Job 15] <job data> 
D  [Job 15]  %-12345X at PJL RESET
D  [Job 15] 
D  [Job 15] renderer PID kid4=7738
D  [Job 15] renderer command: gs -q -dBATCH -dPARANOIDSAFER -dNOPAUSE
-sDEVICE=pxlmono -r600x600 -sOutputFile=- - | perl -p -e "s/\xc0
\xf8\x26/\xc0\x01\xf8\x26/g"
D  [Job 15] foomatic-gswrapper: gs '-dBATCH' '-dPARANOIDSAFER' '-dNOPAUSE'
'-sDEVICE=pxlmono' '-r600x600' '-sOutputFile=/dev/fd/3' '/dev/fd/0' 3>&1
1>&2
D  [Job 15] ESP Ghostscript 815.01 (2005-03-08)
D  [Job 15] Copyright (C) 2004 artofcode LLC, Benicia, CA.  All rights
reserved.
D  [Job 15] This software comes with NO WARRANTY: see the file PUBLIC for
details.
D  [Job 15] Unrecoverable error: rangecheck in get
D  [Job 15] Operand stack:
D  [Job 15] FreeSans.pfb    0
D  [Job 15] tail process done writing data to STDOUT
D  [Job 15] KID4 finished
D  [Job 15] 
D  [Job 15] Closing renderer
D  [Job 15] KID4 exited with status 0
D  [Job 15] KID3 exited with status 0
D  [Job 15] Renderer exit stat: 0
D  [Job 15] KID3 finished
D  [Job 15] Renderer process finished
D  [Job 15] 
D  [Job 15] Closing foomatic-rip.
d  PID 7735 exited with no errors.
d  PID 7736 exited with no errors.
D  UpdateJob: job 15, file 0 is complete.
d  UpdateJob: Removing fd 8 from InputSet...
D  CancelJob: id = 15
D  StopJob: id = 15, force = 0
D  StopJob: printer state is 3
d  StopJob: Freeing status buffer...
d  SaveJob: Closing file 6...
d  SaveJob: Closing file 6...

j----- k-----





More information about the cups mailing list