Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Apr 2006 17:57:07 -0700
From:      "Jin Guojun [VFFS]" <j_guojun@lbl.gov>
To:        Carlos Silva <security@yourdot-mail.com>
Cc:        freebsd-hardware@freebsd.org
Subject:   Re: cups
Message-ID:  <443072E3.6010805@lbl.gov>
In-Reply-To: <442F660D.3080908@yourdot-mail.com>
References:  <442DFEE5.4040407@yourdot-mail.com>	<442E82F2.8040702@bah.homeip.net>	<442EACAF.4010606@yourdot-mail.com>	<442EAEF1.5050307@bah.homeip.net>	<442EB292.1000007@yourdot-mail.com> <442F15C6.4070409@lbl.gov>	<442F1698.5050500@yourdot-mail.com> <442F1DB5.8090003@lbl.gov>	<442F1EE3.8050904@yourdot-mail.com> <442F2251.8010205@lbl.gov> <442F6234.4010403@lbl.gov> <442F660D.3080908@yourdot-mail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Only a few configuration files can cause this (in /usr/local/etc/cups/):

Have you modified mime.convs and mime.types files?
If so, is possible to use (revert back) the original configurations?
If you need to modify it/them, what have you changed?

How did you configure the printer -- manually? or use Web GUI?

Below is my simulation (via Web GUI) output -- for your reference --
    when set up printer:
I [02/Apr/2006:17:32:43 -0700] Setting HP1115 printer-is-accepting-jobs 
to 1 (was 0.)
I [02/Apr/2006:17:32:43 -0700] Setting HP1115 printer-state to 3 (was 5.)
D [02/Apr/2006:17:32:43 -0700] add_printer: Copied PPD file successfully!
I [02/Apr/2006:17:32:43 -0700] Saving printers.conf...
I [02/Apr/2006:17:32:43 -0700] New printer 'HP1115' added by 'jin'.
D [02/Apr/2006:17:32:43 -0700] ProcessIPPRequest: 8 status_code=0
D [02/Apr/2006:17:32:43 -0700] CloseClient: 8
D [02/Apr/2006:17:32:47 -0700] ReadClient: 5 GET /printers/HP1115 HTTP/1.1
D [02/Apr/2006:17:32:47 -0700] CGI 
/usr/local/libexec/cups/cgi-bin/printers.cgi started - PID = 1162
I [02/Apr/2006:17:32:47 -0700] Started 
"/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=1162)
    print a test page
D [02/Apr/2006:17:32:59 -0700] StartJob: envp[14]="CUPS_SERVER=localhost"
D [02/Apr/2006:17:32:59 -0700] StartJob: envp[15]="IPP_PORT=631"
D [02/Apr/2006:17:32:59 -0700] StartJob: statusfds = [ 11 12 ]
D [02/Apr/2006:17:32:59 -0700] StartJob: filterfds[1] = [ 13 -1 ]
D [02/Apr/2006:17:32:59 -0700] StartJob: filter = 
"/usr/local/libexec/cups/filter/pstopxl"
D [02/Apr/2006:17:32:59 -0700] StartJob: filterfds[0] = [ 14 15 ]
D [02/Apr/2006:17:32:59 -0700] 
start_process("/usr/local/libexec/cups/filter/pstopxl", 0xbfbedb60, 
0xbfbeced0, 13, 15, 12)
I [02/Apr/2006:17:32:59 -0700] Started filter 
/usr/local/libexec/cups/filter/pstopxl (PID 1164) for job 3.
D [02/Apr/2006:17:32:59 -0700] StartJob: backend = 
"/usr/local/libexec/cups/backend/socket"
D [02/Apr/2006:17:32:59 -0700] StartJob: filterfds[1] = [ -1 13 ]
D [02/Apr/2006:17:32:59 -0700] 
start_process("/usr/local/libexec/cups/backend/socket", 0xbfbedb60, 
0xbfbeced0, 14, 13, 12)
I [02/Apr/2006:17:32:59 -0700] Started backend 
/usr/local/libexec/cups/backend/socket (PID 1168) for job 3.
D [02/Apr/2006:17:32:59 -0700] ProcessIPPRequest: 9 status_code=0
D [02/Apr/2006:17:32:59 -0700] [Job 3] Running /usr/local/bin/espgs 
-dQUIET -dDEBUG -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOMEDIAATTRS 
-sDEVICE=pxlcolor -sstdout=%stderr -sOUTPUTFILE=%stdout 
/var/spool/cups/d00003-001
D [02/Apr/2006:17:32:59 -0700] CloseClient: 9
D [02/Apr/2006:17:32:59 -0700] [Job 3] START 0 1394576 109214 1421640 
132248 true 471 3 <0>
...
E [02/Apr/2006:17:49:42 -0700] [Job 2] Unable to connect to printer 
(retrying in 30 seconds): Operation timed out
---------- of course, this error is due to no printer present ---

Carlos Silva wrote:

> hmm thanks for the post ...
>
> but do you have an idea how can I fix this?
>
> Best Regards,
>
>>>
>>>> my logs from the error are:
>>>> ..... (skipped)
>>>>  '-dQUIET' '-dNOPAUSE' '-sDEVICE=ijs' '-sIjsServer=hpijs' 
>>>> '-sDeviceManufacturer=HEWLETT-PACKARD' '-sDeviceModel=PHOTOSMART 
>>>> 1115' '-dDEVICEWIDTHPOINTS=595' '-dDEVICEHEIGHTPOINTS=842' 
>>>> '-dDuplex=false' '-r300' 
>>>> '-sIjsParams=Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2,PS:MediaPosition=7' 
>>>> '-dIjsUseOutputFD' '-sOutputFile=/dev/fd/3' '/dev/fd/0' 3>&1 1>&2
>>>
>>>
>>>> D [25/Mar/2006:23:37:55 +0000] [Job 7] **** Unable to open the 
>>>> initial device, quitting.
>>>> D [25/Mar/2006:23:37:55 +0000] [Job 7] renderer return value: 1
>>>> D [25/Mar/2006:23:37:55 +0000] [Job 7] renderer received signal: 1
>>>> D [25/Mar/2006:23:37:55 +0000] [Job 7] tail process done writing 
>>>> data to STDOUT
>>>
>>>
>> By looking closely, somewhere in filter configuration (mime.convs?) 
>> is messed up.
>>
>> clause        '-sOutputFile=/dev/fd/3' '/dev/fd/0' 3>&1 1>&2
>>
>> means:    to read data from stdin and send result to stderr (not 
>> stdout, weird);
>> then, redirection says to redirect 3 (stderr) to 1 (stdin, even 
>> weird), this loops;
>> and then redirect 1 (stdin) to 2 (stdout), thus input (stdin , 1) is 
>> empty because
>> it is redirected to stdout (2) and all input are directly sent to 
>> stdout (bypass the filter ???).
>>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?443072E3.6010805>