From owner-freebsd-questions@FreeBSD.ORG Sun Feb 22 00:17:25 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63AA9106566B for ; Sun, 22 Feb 2009 00:17:25 +0000 (UTC) (envelope-from claudiu.vasadi@gmail.com) Received: from mail-fx0-f168.google.com (mail-fx0-f168.google.com [209.85.220.168]) by mx1.freebsd.org (Postfix) with ESMTP id BFB3C8FC13 for ; Sun, 22 Feb 2009 00:17:24 +0000 (UTC) (envelope-from claudiu.vasadi@gmail.com) Received: by fxm12 with SMTP id 12so1132632fxm.19 for ; Sat, 21 Feb 2009 16:17:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:to:subject:from :content-type:mime-version:content-transfer-encoding:message-id :user-agent; bh=cYrjR6hKboRRKDdyi0RlQGJJledSIkpNFMcuO5vVV2s=; b=YWqS6DXAxS97jjsL6X9N6C80GKNZEaRuI3bXntmBSq4p7DIXTr7NsRkRopEBLGiwRs qL9HQ7Hv6fPhtkwVzZ1pl+Ezk0R/DxwrJOJxax9db+bbuUziIDFYgfQ/2RWlJe37GfPe uXpnMDyNbXNP7yDL/SqGJFPz1Pt6HhSIyJyWw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:to:subject:from:content-type:mime-version :content-transfer-encoding:message-id:user-agent; b=E0AyMw5msChfHj7WtcoYpa9aOvATsqwCL8GlFinLSGf6U/RhLk7VBmCqQPtewIppzG d6p6omIs4gFHcDKkRrI9bMhkFXTOn8WS2awijcP6Lcael7WrDHia/utmGcWLSDSqIoJ8 ink7dB44xUvaI6PT9bH2swTS3soPmzXZVshJI= Received: by 10.102.219.8 with SMTP id r8mr2590112mug.10.1235260147854; Sat, 21 Feb 2009 15:49:07 -0800 (PST) Received: from da1-desktop-x64 ([79.113.14.23]) by mx.google.com with ESMTPS id n10sm726288mue.39.2009.02.21.15.49.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 21 Feb 2009 15:49:07 -0800 (PST) Date: Sun, 22 Feb 2009 01:44:09 +0200 To: freebsd-questions@freebsd.org From: "Vasadi I. Claudiu Florin" Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-ID: User-Agent: Opera Mail/9.63 (Win32) Subject: cups - printer busy; will retry in 10 seconds X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Feb 2009 00:17:25 -0000 Hello ppl. After messing with the problem for about 1w, posting to some forums, and torture-interogating mister google I was unable to solve this particular matter. It's about a FreeBSD 7.1-STABLE box with cups and a Brother hl-2032 laser printer. I keep getting (in cups web interface and terminal) "printer busy". Tracing back my stept I remember that I managed to install the printer (with a ppd file for hl1240. driver seems to work with 2030 series) and print a test page from cups web interface. But to start from scrach. After plugins in the usb printer freebsd recognized it as /dev/ulpt0, root:operator own and 644 permisions. Afterwards I installed cups (from ports) modified the config file so it would allow acces from certain IP's, added the printer from the web interface and printed a test page. All worked out smoothly. Shuted down the pc(sleep time), and in the morning when I powered it up again cups had a little surprise for me, kept going on and on about "printer busy; will retry in 10 seconds". Like that wasn't enough doing echo "whatever" >> /dev/ulpt0 or /dev/lpt0 would also return with "printer busy" message. After 1 w or so, not managing to solve the problem, I deinstalled cups and all dependencies it installed originaly (this is why I didn't provide any conf file so far). Now I wan't to try again. So first of all let's rull out the firewall. I have pf built into my kernel (a generic kernel with pf, altq built-in and ISA, RAID, SCSI_DELAY, Firewire commented out; nopthing exotic;;also rebuilded the world) and this particular line in my pf.conf -> "pass in on $ext_if proto {tcp, udp} from 192.168.0.6 to any port {0:65535}". This alows full acces from 192.168.0.6 (my xp box) to the bsd box. Also tryed with pf disabled. Installed cups from ports with all options. Ended up with cups-1.3.9 and cups-base-1.3.9_3. Now the cups conf file: LogLevel info SystemGroup wheel # Allow remote access Port 631 Listen /var/run/cups.sock # Enable printer sharing and shared printers. Browsing On BrowseOrder allow,deny BrowseAllow all BrowseAddress @LOCAL DefaultAuthType Basic # Allow shared printing and remote administration... Order allow,deny Allow @LOCAL # Allow remote administration... Order allow,deny Allow @LOCAL AuthType Default Require user @SYSTEM # Allow remote access to the configuration files... Order allow,deny Allow @LOCAL Require user @OWNER @SYSTEM Order deny,allow AuthType Default Require user @SYSTEM Order deny,allow AuthType Default Require user @SYSTEM Order deny,allow Require user @OWNER @SYSTEM Order deny,allow Order deny,allow error_log reports: I [22/Feb/2009:01:38:13 +0200] Started "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=93251) E [22/Feb/2009:01:38:14 +0200] SSL shutdown failed: Error in the push function. I [22/Feb/2009:01:38:23 +0200] Started "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=93253) I [22/Feb/2009:01:38:34 +0200] Started "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=93254) I [22/Feb/2009:01:38:44 +0200] Started "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=93255) I [22/Feb/2009:01:38:54 +0200] Started "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=93256) E [22/Feb/2009:01:38:54 +0200] SSL shutdown failed: Error in the push function. I [22/Feb/2009:01:39:04 +0200] Started "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=93257) I [22/Feb/2009:01:39:14 +0200] Started "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=93258) I [22/Feb/2009:01:39:24 +0200] Started "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=93259) I really don't thinmk that ssl line is causing all this. Again, doing echo from the terminal doesn't help. I'm really tired of this. If you have any ideas, do tell. thx