Subject: Re: CUPS setup questions- almost there (perhaps)
To: Peter Bui <neocephas@myrealbox.com>
From: Brian McEwen <bmcewen@comcast.net>
List: port-cobalt
Date: 07/11/2005 22:23:48
On Jul 11, 2005, at 12:58 PM, Peter Bui wrote:

> Sorry about that, foomatic-filters-cups is in pkgsrc-wip
> (pkgsrc-wip.sf.net)
>

I'm not sure of the implications of that :)

Is this something I can grab and build?  should grab and build?

> You might want to send-pr about mpage.
>

I tried building mpage on it's own several times, which failed, and  
then I did send it in.   And then a final try, and mpage built  
standalone, so foomatic-filters was then happy.  Oh well.

so, I tried printing again (the test page from the web admin).  Job  
queues, then shows as aborts, and can't be resent (file unavailable).

I turned on the debug log, the only things that look out of place are :

printer status=3!

and later a
printer status=2!

and it looks like after a successful pkgsrc install, foomatic-rip  
isn't where it is expected to be?

I [12/Jul/2005:02:12:50 +0000] Started backend /usr/pkg/libexec/cups/ 
backend/lpd (PID 717) for job 6.
D [12/Jul/2005:02:12:50 +0000] ProcessIPPRequest: 6 status_code=0
E [12/Jul/2005:02:12:51 +0000] PID 137 stopped with status 2!
D [12/Jul/2005:02:12:51 +0000] [Job 6] /usr/pkg/libexec/cups/filter/ 
foomatic-rip: No such file or directory
D [12/Jul/2005:02:12:51 +0000] [Job 6] Connected on ports 515 (local  
1022)...

but:
bmcewen# locate foomatic-rip
/usr/pkg/bin/foomatic-rip
/usr/pkg/man/man1/foomatic-rip.1
/usr/pkgsrc/print/foomatic-filters/work/foomatic-filters-3.0.2/ 
foomatic-rip
/usr/pkgsrc/print/foomatic-filters/work/foomatic-filters-3.0.2/ 
foomatic-rip.1

(see full log clip below)

I'm building the cupsomatic-ppds and that needed cupsomatic so it's  
building that, I don't believe I need it since I have a working ppd  
already to load, but will find out.

And I'll make/populate by hand the directory for the foomatic-rip by  
hand and see what happens (I prefer that to making ln's everyhere).

Thanks for thoughts.

Brian

--------------
D [12/Jul/2005:02:12:35 +0000] AcceptClient: 5 from localhost:631.
D [12/Jul/2005:02:12:35 +0000] ReadClient: 5 GET / HTTP/1.0
D [12/Jul/2005:02:12:35 +0000] SendFile: 5 file=6
D [12/Jul/2005:02:12:35 +0000] CloseClient: 5
D [12/Jul/2005:02:12:45 +0000] AcceptClient: 5 from localhost:631.
D [12/Jul/2005:02:12:45 +0000] ReadClient: 5 GET /printers HTTP/1.0
D [12/Jul/2005:02:12:45 +0000] CGI /usr/pkg/libexec/cups/cgi-bin/ 
printers.cgi started - PID = 714
I [12/Jul/2005:02:12:45 +0000] Started "/usr/pkg/libexec/cups/cgi-bin/ 
printers.cgi" (pid=714)
D [12/Jul/2005:02:12:45 +0000] SendCommand: 5 file=8
D [12/Jul/2005:02:12:46 +0000] AcceptClient: 6 from localhost:631.
D [12/Jul/2005:02:12:46 +0000] ReadClient: 6 POST / HTTP/1.1
D [12/Jul/2005:02:12:46 +0000] ProcessIPPRequest: 6 status_code=1
D [12/Jul/2005:02:12:46 +0000] ReadClient: 6 POST / HTTP/1.1
D [12/Jul/2005:02:12:46 +0000] ProcessIPPRequest: 6 status_code=1
D [12/Jul/2005:02:12:47 +0000] CloseClient: 6
D [12/Jul/2005:02:12:47 +0000] CloseClient: 5
D [12/Jul/2005:02:12:49 +0000] AcceptClient: 5 from localhost:631.
D [12/Jul/2005:02:12:49 +0000] ReadClient: 5 GET /printers/samsung? 
op=print-test-page HTTP/1.0
D [12/Jul/2005:02:12:49 +0000] CGI /usr/pkg/libexec/cups/cgi-bin/ 
printers.cgi started - PID = 727
I [12/Jul/2005:02:12:50 +0000] Started "/usr/pkg/libexec/cups/cgi-bin/ 
printers.cgi" (pid=727)
D [12/Jul/2005:02:12:50 +0000] SendCommand: 5 file=8
D [12/Jul/2005:02:12:50 +0000] AcceptClient: 6 from localhost:631.
D [12/Jul/2005:02:12:50 +0000] ReadClient: 6 POST /printers/samsung  
HTTP/1.1
D [12/Jul/2005:02:12:50 +0000] print_job: request file type is  
application/postscript.
D [12/Jul/2005:02:12:50 +0000] check_quotas: requesting-user-name = ''
D [12/Jul/2005:02:12:50 +0000] print_job: requesting-user-name = ''
D [12/Jul/2005:02:12:50 +0000] Adding default job-sheets values  
"none,none"...
I [12/Jul/2005:02:12:50 +0000] Adding start banner page "none" to job 6.
I [12/Jul/2005:02:12:50 +0000] Adding end banner page "none" to job 6.
I [12/Jul/2005:02:12:50 +0000] Job 6 queued on 'samsung' by ''.
D [12/Jul/2005:02:12:50 +0000] Job 6 hold_until = 0
D [12/Jul/2005:02:12:50 +0000] StartJob(6, 0x10126000)
D [12/Jul/2005:02:12:50 +0000] StartJob() id = 6, file = 0/1
D [12/Jul/2005:02:12:50 +0000] job-sheets=none,none
D [12/Jul/2005:02:12:50 +0000] banner_page = 0
D [12/Jul/2005:02:12:50 +0000] StartJob: argv =  
"samsung","6","","Test Page","1","","/var/spool/cups/d00006-001"
D [12/Jul/2005:02:12:50 +0000] StartJob: envp[0]="PATH=/usr/pkg/ 
libexec/cups/filter:/bin:/usr/bin"
D [12/Jul/2005:02:12:50 +0000] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
D [12/Jul/2005:02:12:50 +0000] StartJob: envp[2]="USER=root"
D [12/Jul/2005:02:12:50 +0000] StartJob: envp[3]="CHARSET=utf-8"
D [12/Jul/2005:02:12:50 +0000] StartJob: envp[4]="LANG=en"
D [12/Jul/2005:02:12:50 +0000] StartJob: envp[5]="PPD=/usr/pkg/etc/ 
cups/ppd/samsung.ppd"
D [12/Jul/2005:02:12:50 +0000] StartJob: envp[6]="CUPS_SERVERROOT=/ 
usr/pkg/etc/cups"
D [12/Jul/2005:02:12:50 +0000] StartJob: envp[7]="RIP_MAX_CACHE=8m"
D [12/Jul/2005:02:12:50 +0000] StartJob: envp[8]="TMPDIR=/var/spool/ 
cups/tmp"
D [12/Jul/2005:02:12:50 +0000] StartJob: envp[9] 
="CONTENT_TYPE=application/postscript"
D [12/Jul/2005:02:12:50 +0000] StartJob: envp[10]="DEVICE_URI=lpd:// 
192.168.0.105/lp2"
D [12/Jul/2005:02:12:50 +0000] StartJob: envp[11]="PRINTER=samsung"
D [12/Jul/2005:02:12:50 +0000] StartJob: envp[12]="CUPS_DATADIR=/usr/ 
pkg/share/cups"
D [12/Jul/2005:02:12:50 +0000] StartJob: envp[13]="CUPS_FONTPATH=/usr/ 
pkg/share/cups/fonts"
D [12/Jul/2005:02:12:50 +0000] StartJob: envp[14] 
="CUPS_SERVER=localhost"
D [12/Jul/2005:02:12:50 +0000] StartJob: envp[15]="IPP_PORT=631"
D [12/Jul/2005:02:12:50 +0000] StartJob: statusfds = [ 9 10 ]
D [12/Jul/2005:02:12:50 +0000] StartJob: filterfds[1] = [ 11 -1 ]
D [12/Jul/2005:02:12:50 +0000] StartJob: filter = "/usr/pkg/libexec/ 
cups/filter/pstops"
D [12/Jul/2005:02:12:50 +0000] StartJob: filterfds[0] = [ 12 13 ]
D [12/Jul/2005:02:12:50 +0000] start_process("/usr/pkg/libexec/cups/ 
filter/pstops", 0x7ffe8a98, 0x7ffe95b8, 11, 13, 10)
I [12/Jul/2005:02:12:50 +0000] Started filter /usr/pkg/libexec/cups/ 
filter/pstops (PID 725) for job 6.
D [12/Jul/2005:02:12:50 +0000] StartJob: filter = "/usr/pkg/libexec/ 
cups/filter/foomatic-rip"
D [12/Jul/2005:02:12:50 +0000] StartJob: filterfds[1] = [ 11 14 ]
D [12/Jul/2005:02:12:50 +0000] start_process("/usr/pkg/libexec/cups/ 
filter/foomatic-rip", 0x7ffe8a98, 0x7ffe95b8, 12, 14, 10)
I [12/Jul/2005:02:12:50 +0000] Started filter /usr/pkg/libexec/cups/ 
filter/foomatic-rip (PID 137) for job 6.
D [12/Jul/2005:02:12:50 +0000] StartJob: backend = "/usr/pkg/libexec/ 
cups/backend/lpd"
D [12/Jul/2005:02:12:50 +0000] StartJob: filterfds[0] = [ -1 12 ]
D [12/Jul/2005:02:12:50 +0000] start_process("/usr/pkg/libexec/cups/ 
backend/lpd", 0x7ffe8a98, 0x7ffe95b8, 11, 12, 10)
I [12/Jul/2005:02:12:50 +0000] Started backend /usr/pkg/libexec/cups/ 
backend/lpd (PID 717) for job 6.
D [12/Jul/2005:02:12:50 +0000] ProcessIPPRequest: 6 status_code=0
E [12/Jul/2005:02:12:51 +0000] PID 137 stopped with status 2!
D [12/Jul/2005:02:12:51 +0000] [Job 6] /usr/pkg/libexec/cups/filter/ 
foomatic-rip: No such file or directory
D [12/Jul/2005:02:12:51 +0000] [Job 6] Connected on ports 515 (local  
1022)...
D [12/Jul/2005:02:12:51 +0000] [Job 6] lpd_command 02 lp2
D [12/Jul/2005:02:12:51 +0000] [Job 6] Sending command string (5  
bytes)...
D [12/Jul/2005:02:12:51 +0000] [Job 6] Reading command status...
D [12/Jul/2005:02:12:51 +0000] [Job 6] lpd_command returning 0
D [12/Jul/2005:02:12:51 +0000] [Job 6] Control file is:
D [12/Jul/2005:02:12:51 +0000] [Job 6] Hbmcewen.org
D [12/Jul/2005:02:12:51 +0000] [Job 6] P
D [12/Jul/2005:02:12:51 +0000] [Job 6] JTest Page
D [12/Jul/2005:02:12:51 +0000] [Job 6] ldfA717bmcewen.org
D [12/Jul/2005:02:12:51 +0000] [Job 6] UdfA717bmcewen.org
D [12/Jul/2005:02:12:51 +0000] [Job 6] NTest Page
D [12/Jul/2005:02:12:51 +0000] [Job 6] lpd_command 02 75  
cfA717bmcewen.org
D [12/Jul/2005:02:12:51 +0000] [Job 6] Sending command string (22  
bytes)...
D [12/Jul/2005:02:12:51 +0000] [Job 6] Reading command status...
D [12/Jul/2005:02:12:51 +0000] [Job 6] lpd_command returning 0
D [12/Jul/2005:02:12:51 +0000] [Job 6] lpd_command 03 0  
dfA717bmcewen.org
D [12/Jul/2005:02:12:51 +0000] [Job 6] Sending command string (21  
bytes)...
D [12/Jul/2005:02:12:51 +0000] [Job 6] Reading command status...
D [12/Jul/2005:02:12:51 +0000] [Job 6] lpd_command returning 0
D [12/Jul/2005:02:12:51 +0000] CloseClient: 6
D [12/Jul/2005:02:12:51 +0000] CloseClient: 5
D [12/Jul/2005:02:12:51 +0000] [Job 6] Page = 612x792; 0,0 to 612,792
D [12/Jul/2005:02:12:51 +0000] [Job 6] slowcollate=0, slowduplex=0,  
sloworder=0
D [12/Jul/2005:02:12:51 +0000] [Job 6] 0 %%BoundingBox: 0 0 612 792
D [12/Jul/2005:02:12:51 +0000] [Job 6] 0 %%Pages: 1
D [12/Jul/2005:02:12:51 +0000] [Job 6] 0 %%LanguageLevel: 1
D [12/Jul/2005:02:12:51 +0000] [Job 6] 0 %%DocumentData: Clean7Bit
D [12/Jul/2005:02:12:51 +0000] [Job 6] 0 %%DocumentSuppliedResources:  
procset testprint/1.1
D [12/Jul/2005:02:12:51 +0000] [Job 6] 0 %%DocumentNeededResources:  
font Helvetica Helvetica-Bold Times-Roman
D [12/Jul/2005:02:12:51 +0000] [Job 6] 0 %%Creator: Michael Sweet,  
Easy Software Products
D [12/Jul/2005:02:12:51 +0000] [Job 6] 0 %%CreationDate: May 11, 1999
D [12/Jul/2005:02:12:51 +0000] [Job 6] 0 %%Title: Test Page
D [12/Jul/2005:02:12:51 +0000] [Job 6] 0 %%EndComments
D [12/Jul/2005:02:12:51 +0000] [Job 6] 0 %%BeginProlog
D [12/Jul/2005:02:12:51 +0000] [Job 6] 0 %%BeginResource procset  
testprint 1.1 0
D [12/Jul/2005:02:12:51 +0000] [Job 6] 0 %%EndResource
D [12/Jul/2005:02:12:51 +0000] [Job 6] 0 %%EndProlog
D [12/Jul/2005:02:12:51 +0000] [Job 6] 0 %%Page: 1 1
D [12/Jul/2005:02:12:51 +0000] [Job 6] 0 %%Page: 1 1
D [12/Jul/2005:02:12:51 +0000] [Job 6] pw = 612.0, pl = 792.0
D [12/Jul/2005:02:12:51 +0000] [Job 6] PageLeft = 0.0, PageRight = 612.0
D [12/Jul/2005:02:12:51 +0000] [Job 6] PageTop = 792.0, PageBottom = 0.0
D [12/Jul/2005:02:12:51 +0000] [Job 6] PageWidth = 612.0, PageLength  
= 792.0
D [12/Jul/2005:02:12:51 +0000] [Job 6] 0 %%EOF
D [12/Jul/2005:02:12:51 +0000] [Job 6] Saw EOF!
D [12/Jul/2005:02:12:51 +0000] UpdateJob: job 6, file 0 is complete.
D [12/Jul/2005:02:12:51 +0000] CancelJob: id = 6
D [12/Jul/2005:02:12:51 +0000] StopJob: id = 6, force = 0
D [12/Jul/2005:02:12:51 +0000] StopJob: printer state is 3
D [12/Jul/2005:02:12:53 +0000] AcceptClient: 5 from localhost:631.
D [12/Jul/2005:02:12:53 +0000] ReadClient: 5 GET /printers/samsung  
HTTP/1.0
D [12/Jul/2005:02:12:53 +0000] CGI /usr/pkg/libexec/cups/cgi-bin/ 
printers.cgi started - PID = 735
I [12/Jul/2005:02:12:53 +0000] Started "/usr/pkg/libexec/cups/cgi-bin/ 
printers.cgi" (pid=735)
D [12/Jul/2005:02:12:53 +0000] SendCommand: 5 file=8
D [12/Jul/2005:02:12:54 +0000] AcceptClient: 6 from localhost:631.
D [12/Jul/2005:02:12:54 +0000] ReadClient: 6 POST / HTTP/1.1
D [12/Jul/2005:02:12:54 +0000] ProcessIPPRequest: 6 status_code=1
D [12/Jul/2005:02:12:54 +0000] ReadClient: 6 POST / HTTP/1.1
D [12/Jul/2005:02:12:54 +0000] ProcessIPPRequest: 6 status_code=1
D [12/Jul/2005:02:12:54 +0000] ReadClient: 6 POST / HTTP/1.1
D [12/Jul/2005:02:12:54 +0000] ProcessIPPRequest: 6 status_code=1
D [12/Jul/2005:02:12:54 +0000] CloseClient: 6
D [12/Jul/2005:02:12:54 +0000] CloseClient: 5
D [12/Jul/2005:02:13:11 +0000] AcceptClient: 5 from localhost:631.
D [12/Jul/2005:02:13:11 +0000] ReadClient: 5 GET /printers/samsung? 
which_jobs=completed HTTP/1.0
D [12/Jul/2005:02:13:11 +0000] CGI /usr/pkg/libexec/cups/cgi-bin/ 
printers.cgi started - PID = 748
I [12/Jul/2005:02:13:11 +0000] Started "/usr/pkg/libexec/cups/cgi-bin/ 
printers.cgi" (pid=748)
D [12/Jul/2005:02:13:11 +0000] SendCommand: 5 file=8
D [12/Jul/2005:02:13:12 +0000] AcceptClient: 6 from localhost:631.
D [12/Jul/2005:02:13:12 +0000] ReadClient: 6 POST / HTTP/1.1
D [12/Jul/2005:02:13:12 +0000] ProcessIPPRequest: 6 status_code=1
D [12/Jul/2005:02:13:12 +0000] ReadClient: 6 POST / HTTP/1.1
D [12/Jul/2005:02:13:12 +0000] ProcessIPPRequest: 6 status_code=1
D [12/Jul/2005:02:13:12 +0000] ReadClient: 6 POST / HTTP/1.1
D [12/Jul/2005:02:13:12 +0000] ProcessIPPRequest: 6 status_code=1
D [12/Jul/2005:02:13:13 +0000] CloseClient: 6
D [12/Jul/2005:02:13:13 +0000] CloseClient: 5
D [12/Jul/2005:02:13:19 +0000] AcceptClient: 5 from localhost:631.
D [12/Jul/2005:02:13:19 +0000] ReadClient: 5 GET /jobs/?op=restart- 
job&job_id=6&job_printer_uri=/printers/samsung HTTP/1.0
D [12/Jul/2005:02:13:19 +0000] CGI /usr/pkg/libexec/cups/cgi-bin/ 
jobs.cgi started - PID = 692
I [12/Jul/2005:02:13:19 +0000] Started "/usr/pkg/libexec/cups/cgi-bin/ 
jobs.cgi" (pid=692)
D [12/Jul/2005:02:13:19 +0000] SendCommand: 5 file=8
D [12/Jul/2005:02:13:19 +0000] AcceptClient: 6 from localhost:631.
D [12/Jul/2005:02:13:19 +0000] ReadClient: 6 POST /jobs HTTP/1.1
E [12/Jul/2005:02:13:19 +0000] restart_job: job #6 cannot be  
restarted - no files!
D [12/Jul/2005:02:13:19 +0000] Sending error: client-error-not-possible
D [12/Jul/2005:02:13:19 +0000] ProcessIPPRequest: 6 status_code=404
D [12/Jul/2005:02:13:19 +0000] CloseClient: 6
D [12/Jul/2005:02:13:19 +0000] CloseClient: 5
bmcewen# locate foomatic-rip
/usr/pkg/bin/foomatic-rip
/usr/pkg/man/man1/foomatic-rip.1
/usr/pkgsrc/print/foomatic-filters/work/foomatic-filters-3.0.2/ 
foomatic-rip
/usr/pkgsrc/print/foomatic-filters/work/foomatic-filters-3.0.2/ 
foomatic-rip.1
/usr/pkgsrc/print/foomatic-filters/work/foomatic-filters-3.0.2/ 
foomatic-rip.1.in
/usr/pkgsrc/print/foomatic-filters/work/foomatic-filters-3.0.2/ 
foomatic-rip.in
/usr/pkgsrc/print/foomatic-filters/work/foomatic-filters-3.0.2/ 
foomatic-rip.in.orig