hpgl-problems with 2 Servers

zuecks at gmx.de zuecks at gmx.de
Tue Feb 22 01:16:28 PST 2005


Cups 1.20

Hi all,

I detected a mysterious problem. I have 2 printserver with the same configuration (failover, loadbalanced)

I use 0-Filter  in ppd’s

*cupsFilter: "image/tiff 0 -"
*cupsFilter: "application/vnd.hp-HPGL 0 -"
*cupsFilter: "application/vnd.cups-postscript 0 -"

Here my records for hpgl in mime.types

application/vnd.hp-HPGL         hp2 hpgl string(0,<1B>&)\
                                                 string(0,<1B>-%1BBPINPS)\
                                                 string(0,<1B>E<1B>%0B) \
                                                 string(0,<1B>%-1B) string(0,<201B>)\
                                                 string(0,BP;) string(0,IN;) string(0,DF;) \
                                                 string(0,BPINPS;) \
                                                 string(0,SP1;) \
                                                 (contains(0,128,<1B>%-12345X) + \
                                                 (contains(0,1024,"LANGUAGE=HPGL") \
                                                  contains(0,1024,"LANGUAGE = HPGL")))




Example: printout a hpgl-File

lp –d printer –h printserver1 printfile.hpgl    it’s ok
lp –d printer –h printserver2 printfile.hpgl    its’ok

But If I use

lp –d printer printfile.hpgl   (the first server, who reply get the job)

Filter start’s ???

D [18/Feb/2005:11:17:55 +0100] StartJob: argv = "tds400","12","xfzueckm","plot1.hpgl","1","","/var/spool/cups/d00012-001"
D [18/Feb/2005:11:17:55 +0100] StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin"
D [18/Feb/2005:11:17:55 +0100] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
D [18/Feb/2005:11:17:55 +0100] StartJob: envp[2]="USER=root"
D [18/Feb/2005:11:17:55 +0100] StartJob: envp[3]="CHARSET=iso-8859-15"
D [18/Feb/2005:11:17:55 +0100] StartJob: envp[4]="LANG=en"
D [18/Feb/2005:11:17:55 +0100] StartJob: envp[5]="TZ=Europe/Berlin"
D [18/Feb/2005:11:17:55 +0100] StartJob: envp[6]="PPD=/etc/cups/ppd/tds400.ppd"
D [18/Feb/2005:11:17:55 +0100] StartJob: envp[7]="CUPS_SERVERROOT=/etc/cups"
D [18/Feb/2005:11:17:55 +0100] StartJob: envp[8]="RIP_MAX_CACHE=328m"
D [18/Feb/2005:11:17:55 +0100] StartJob: envp[9]="TMPDIR=/var/spool/cups/tmp"
D [18/Feb/2005:11:17:55 +0100] StartJob: envp[10]="CONTENT_TYPE=text/plain"
D [18/Feb/2005:11:17:55 +0100] StartJob: envp[11]="DEVICE_URI=lpd://204.231.95.41/oceqc1"
D [18/Feb/2005:11:17:55 +0100] StartJob: envp[12]="PRINTER=tds400"
D [18/Feb/2005:11:17:55 +0100] StartJob: envp[13]="CUPS_DATADIR=/usr/share/cups"
D [18/Feb/2005:11:17:55 +0100] StartJob: envp[14]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [18/Feb/2005:11:17:55 +0100] StartJob: envp[15]="CUPS_SERVER=localhost"
D [18/Feb/2005:11:17:55 +0100] StartJob: envp[16]="IPP_PORT=631"
D [18/Feb/2005:11:17:55 +0100] StartJob: statusfds = [ 9 10 ]
D [18/Feb/2005:11:17:55 +0100] StartJob: filterfds[1] = [ 11 -1 ]
D [18/Feb/2005:11:17:55 +0100] StartJob: filter = "/usr/lib/cups/filter/texttops"
D [18/Feb/2005:11:17:55 +0100] StartJob: filterfds[0] = [ 12 13 ]
D [18/Feb/2005:11:17:55 +0100] start_process("/usr/lib/cups/filter/texttops", 0xbffefd50, 0xbffef0c0, 11, 13, 10)
I [18/Feb/2005:11:17:55 +0100] Started filter /usr/lib/cups/filter/texttops (PID 5718) for job 12.
D [18/Feb/2005:11:17:55 +0100] StartJob: filter = "/usr/lib/cups/filter/pstops"
D [18/Feb/2005:11:17:55 +0100] StartJob: filterfds[1] = [ 11 14 ]
D [18/Feb/2005:11:17:55 +0100] start_process("/usr/lib/cups/filter/pstops", 0xbffefd50, 0xbffef0c0, 12, 14, 10)
 I [18/Feb/2005:11:17:55 +0100] Started filter /usr/lib/cups/filter/pstops (PID 5719) for job 12.
D [18/Feb/2005:11:17:55 +0100] StartJob: backend = "/usr/lib/cups/backend/lpd"
D [18/Feb/2005:11:17:55 +0100] StartJob: filterfds[0] = [ -1 12 ]
D [18/Feb/2005:11:17:55 +0100] start_process("/usr/lib/cups/backend/lpd", 0xbffefd50, 0xbffef0c0, 11, 12, 10)
I [18/Feb/2005:11:17:55 +0100] Started backend /usr/lib/cups/backend/lpd (PID 5720) for job 12.
D [18/Feb/2005:11:17:55 +0100] ProcessIPPRequest: 8 status_code=0
D [18/Feb/2005:11:17:55 +0100] [Job 12] Page = 2384x3370; 0,0 to 2384,3370
D [18/Feb/2005:11:17:55 +0100] [Job 12] Page = 2384x3370; 0,0 to 2384,3370
D [18/Feb/2005:11:17:55 +0100] ReadClient() 8 POST /printers/tds400 HTTP/1.1
D [18/Feb/2005:11:17:55 +0100] ProcessIPPRequest: 8 status_code=1
D [18/Feb/2005:11:17:55 +0100] [Job 12] ppd->num_fonts = 139
D [18/Feb/2005:11:17:55 +0100] [Job 12] slowcollate=0, slowduplex=0, sloworder=0
D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%BoundingBox: 0 0 2384 3370
D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%Creator: texttops/CUPS v1.1.20
D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%CreationDate: Fri Feb 18 11:17:55 2005
D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%Title: plot1.hpgl
D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%For: xfzueckm
D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%Pages: (atend)
D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%DocumentNeededResources: font Courier-Bold
D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%+ font Courier
D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%DocumentSuppliedResources: procset texttops 1.1 0
D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%+ font Courier-Bold
D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%+ font Courier
D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%EndComments
D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%BeginProlog
D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%BeginResource: font Courier-Bold
D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%CreationDate: Wed Dec 22 1999
D [18/Feb/2005:11:17:55 +0100] ReadClient() 8 POST /printers/tds400 HTTP/1.1
D [18/Feb/2005:11:17:55 +0100] ProcessIPPRequest: 8 status_code=1
561 D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%EndResource
D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%BeginResource: font Courier
D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%CreationDate: Wed Dec 22 1999
D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%EndResource
D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%BeginResource: procset texttops 1.1 0
D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%EndResource
D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%EndProlog
D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%Page: 1 1
D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%Page: 1 1
D [18/Feb/2005:11:17:55 +0100] [Job 12] pw = 2384.0, pl = 3370.0
D [18/Feb/2005:11:17:55 +0100] [Job 12] PageLeft = 0.0, PageRight = 2384.0
D [18/Feb/2005:11:17:55 +0100] [Job 12] PageTop = 3370.0, PageBottom = 0.0
D [18/Feb/2005:11:17:55 +0100] [Job 12] PageWidth = 2384.0, PageLength = 3370.0
D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%Page: 2 2
D [18/Feb/2005:11:17:55 +0100] [Job 12] pw = 2384.0, pl = 3370.0
D [18/Feb/2005:11:17:55 +0100] [Job 12] PageLeft = 0.0, PageRight = 2384.0
D [18/Feb/2005:11:17:55 +0100] [Job 12] PageTop = 3370.0, PageBottom = 0.0
D [18/Feb/2005:11:17:55 +0100] [Job 12] PageWidth = 2384.0, PageLength = 3370.0
D [18/Feb/2005:11:17:55 +0100] [Job 12] 0 %%Trailer
D [18/Feb/2005:11:17:55 +0100] [Job 12] Saw Trailer!
D [18/Feb/2005:11:17:55 +0100] [Job 12] Saw EOF!
D [18/Feb/2005:11:17:55 +0100] [Job 12] Connected on ports 515 (local 0)...
D [18/Feb/2005:11:17:55 +0100] [Job 12] lpd_command 02 oceqc1
D [18/Feb/2005:11:17:55 +0100] [Job 12] Sending command string (8 bytes)...
D [18/Feb/2005:11:17:55 +0100] [Job 12] Reading command status...
D [18/Feb/2005:11:17:55 +0100] [Job 12] lpd_command returning 0
D [18/Feb/2005:11:17:55 +0100] [Job 12] Control file is:
D [18/Feb/2005:11:17:55 +0100] [Job 12] Hiavc-prts4
D [18/Feb/2005:11:17:55 +0100] [Job 12] Pxfzueckm
D [18/Feb/2005:11:17:55 +0100] [Job 12] Jplot1_hpgl
D [18/Feb/2005:11:17:55 +0100] [Job 12] ldfA720iavc-prts4
D [18/Feb/2005:11:17:55 +0100] [Job 12] UdfA720iavc-prts4
D [18/Feb/2005:11:17:55 +0100] [Job 12] Nplot1_hpgl
D [18/Feb/2005:11:17:55 +0100] [Job 12] lpd_command 02 82 cfA720iavc-prts4
D [18/Feb/2005:11:17:55 +0100] [Job 12] Sending command string (21 bytes)...
D [18/Feb/2005:11:17:55 +0100] [Job 12] Reading command status...
D [18/Feb/2005:11:17:55 +0100] [Job 12] lpd_command returning 0
D [18/Feb/2005:11:17:55 +0100] [Job 12] lpd_command 03 341038 dfA720iavc-prts4
D [18/Feb/2005:11:17:55 +0100] [Job 12] Sending command string (25 bytes)...
D [18/Feb/2005:11:17:55 +0100] [Job 12] Reading command status...
D [18/Feb/2005:11:17:55 +0100] [Job 12] lpd_command returning 0
D [18/Feb/2005:11:17:55 +0100] UpdateJob: job 12, file 0 is complete.
D [18/Feb/2005:11:17:55 +0100] CancelJob: id = 12
D [18/Feb/2005:11:17:55 +0100] StopJob: id = 12, force = 0
D [18/Feb/2005:11:17:55 +0100] StopJob: printer state is 3


Result …the plotter delivered hpgl-source-text -->SP1…… This situation concern only hpgl, hp2, tiff works fine.

lp –d printer printfile.hp2       works fine , it’s ok
lp –d printer printfile.tiff         works fine , it’s ok

I’ve checked with lpr –P printer printfile.hpgl , also unsuccessful


I don’t know ? why start’s the filter ???

greetings frank









More information about the cups mailing list