From owner-freebsd-ports@FreeBSD.ORG Sat Aug 2 08:01:59 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3297E1BE for ; Sat, 2 Aug 2014 08:01:59 +0000 (UTC) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 040082FA9 for ; Sat, 2 Aug 2014 08:01:58 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1XDUGE-0004Gl-Qr for freebsd-ports@freebsd.org; Sat, 02 Aug 2014 01:01:50 -0700 Date: Sat, 2 Aug 2014 01:01:50 -0700 (PDT) From: Beeblebrox To: freebsd-ports@freebsd.org Message-ID: <1406966510814-5934106.post@n5.nabble.com> In-Reply-To: <1403468571037-5922974.post@n5.nabble.com> References: <1401958638341-5918098.post@n5.nabble.com> <1401987639244-5918202.post@n5.nabble.com> <20140606085156.15b32a6c@tmu.ulm.sysgo.com> <1402046122363-5918422.post@n5.nabble.com> <1402077244120-5918572.post@n5.nabble.com> <1403468571037-5922974.post@n5.nabble.com> Subject: Re: print/cups-base web interface broken & unable to print MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Aug 2014 08:01:59 -0000 I may have some clues why my cups-printing is broken. I have two real printers and two virtual (PS/PDF) printers defined but none of them work. The main printer used in diagnostic: Printer: HP_LaserJet_2100tn with ps-level2 Driver: HP LaserJet 2100M Foomatic/Postscript (grayscale, 2-sided printing) 1. Trying to print a simple text file from mousepad results in this error in the log file: "Request file type is application/pdf. Print-Job client-error-document-format-not-supported: Unsupported format "application/pdf". Returning IPP client-error-document-format-not-supported for Print-Job (ipp://localhost:631/printers/hp2100) from localhost" 2. File > Print preview on same printer is displayed as a single line of text - that is, all /CR seems to be ignored and all lines are printed one-on-top another. 3. Enabling "debug: 1" in foomatic/filter.conf does not create a log file "/tmp/foomatic-rip.log" (nor in /var/tmp/) as claimed. 4. Changing Driver to: HP LaserJet 2100M - CUPS+Gutenprint v5.2.8 (grayscale, 2-sided printing), Fixes issue #2 from above, but printing still fails with same error message stated in issue #1. 5. Changing Driver to: Generic PCL Laser Printer (grayscale, 2-sided printing) gives same as #4 (can preview, can't print) 6. Changing Driver to: Generic PostScript Printer (color, 2-sided printing) gives same as #4 (can preview, can't print) print/cups related packages installed on the system: cups-base-1.7.3, cups-client-1.7.3, cups-image-1.7.3, cups-pdf-2.6.1_1, cups-pstoraster-8.15.4_8, gutenprint-cups-5.2.8_1, ghostscript9-9.06_7. * Re-installing these packages with "pkg install -f" => No difference * Deleting cups-pdf from the system => No difference * FreeBSD's own LPD prints to this device hp2100 without problem. * cupsd server was restarted after each change. 7. "{# OR $} /usr/local/bin/lpr -Php2100 printer_testps.txt" => /usr/local/bin/lpr: Unsupported document-format "text/plain". Below redacted cups-err.log shows that text/plain is also not a format accepted by cups, and that the server cancels such jobs on its own (job was not canceled by user): D Send-Document ipp://localhost:631/printers/hp2100 D cupsdIsAuthorized: requesting-user-name="xyz" D [Job 20] Request file type is text/plain. E [Client 12] Returning IPP client-error-document-format-not-supported for Send-Document (ipp://localhost:631/printers/hp2100) from localhost D cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files" D Cancel-Job ipp://localhost:631/printers/hp2100 D [Job 20] time-at-completed=1406964960 D Discarding unused job-completed event... I [Job 20] Job canceled by "xyz" D cupsdMarkDirty(---J-) D [Client 12] Returning IPP successful-ok for Cancel-Job (ipp://localhost:631/printers/hp2100) from localhost 8. ghostscript's pdf2ps correctly converts a pdf file to ps. CONCLUSION: Although at least changing from foomatic-based drivers seems to have cleared one error (ignored /CR), I'd like to get some ideas as to why cups-client keeps thinking that the document is a pdf when a GUI is used. Does anyone have ideas how to correct or what else I can try? ----- FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS -- View this message in context: http://freebsd.1045724.n5.nabble.com/print-cups-base-web-interface-broken-unable-to-print-tp5918098p5934106.html Sent from the freebsd-ports mailing list archive at Nabble.com.