cups
Carlos Silva
security at yourdot-mail.com
Mon Apr 3 01:57:57 UTC 2006
hi,
I've changed nothing in that files :(..
And I use the web GUI..
Best Regards,
Carlos Silva, CSilva
Web: http://www.csilva.org/
Jin Guojun [VFFS] escreveu:
> 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 ???).
>>>
>
More information about the freebsd-hardware
mailing list