From owner-freebsd-hardware@FreeBSD.ORG Mon Apr 3 01:55:41 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5264D16A41F for ; Mon, 3 Apr 2006 01:55:41 +0000 (UTC) (envelope-from j_guojun@lbl.gov) Received: from smtp114.sbc.mail.mud.yahoo.com (smtp114.sbc.mail.mud.yahoo.com [68.142.198.213]) by mx1.FreeBSD.org (Postfix) with SMTP id DC4B043D45 for ; Mon, 3 Apr 2006 01:55:40 +0000 (GMT) (envelope-from j_guojun@lbl.gov) Received: (qmail 33059 invoked from network); 3 Apr 2006 01:55:40 -0000 Received: from unknown (HELO ?192.168.2.8?) (jinmtb@sbcglobal.net@68.127.175.93 with plain) by smtp114.sbc.mail.mud.yahoo.com with SMTP; 3 Apr 2006 01:55:39 -0000 Message-ID: <443072E3.6010805@lbl.gov> Date: Sun, 02 Apr 2006 17:57:07 -0700 From: "Jin Guojun [VFFS]" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051013 X-Accept-Language: zh, zh-CN, en MIME-Version: 1.0 To: Carlos Silva 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> In-Reply-To: <442F660D.3080908@yourdot-mail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hardware@freebsd.org Subject: Re: cups X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2006 01:55:41 -0000 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 ???). >>