From owner-freebsd-questions@FreeBSD.ORG Wed Jun 28 00:49:29 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2369F16A47C for ; Wed, 28 Jun 2006 00:49:29 +0000 (UTC) (envelope-from iqgrande@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id B50D344F4E for ; Tue, 27 Jun 2006 23:45:28 +0000 (GMT) (envelope-from iqgrande@gmail.com) Received: by wr-out-0506.google.com with SMTP id 50so1307328wri for ; Tue, 27 Jun 2006 16:45:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=sClVGA0FBdHSzw/jdhf+YsXZdW/1M5VWDEmlTiJ2ZsJGpyHG9kNriH/rz/GCsESN6Br38S4AZ3VlIm+m/PWGDzEsUHU0CgnwmtkvGGkYBVUCu3CQQwps4qutwNFoE8Iu30zyD8Dssv5jYW6L8At/mUZb5LTKEpQOClozpykLOOc= Received: by 10.54.82.4 with SMTP id f4mr244271wrb; Tue, 27 Jun 2006 16:45:27 -0700 (PDT) Received: from ?192.168.0.5? ( [67.191.189.255]) by mx.gmail.com with ESMTP id 14sm96747wrl.2006.06.27.16.45.26; Tue, 27 Jun 2006 16:45:26 -0700 (PDT) In-Reply-To: References: <8a6250b20606251628g5ea35843r5ccb318b15876609@mail.gmail.com> <0092EAFD-5911-49DA-846E-99BB33D0C0C7@gmail.com> <200606252332.19131.lists@jnielsen.net> <200606252337.31732.nb_root@videotron.ca> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Anthony Agelastos Date: Tue, 27 Jun 2006 19:45:24 -0400 To: Nicolas Blais , John Nielsen X-Mailer: Apple Mail (2.752.2) Cc: FreeBSD Questions Subject: Re: CUPS, USB printers & "Permission Denied" 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: Wed, 28 Jun 2006 00:49:29 -0000 OOPS! I apologize to everyone on this list for not compressing my error_log file and wasting your time and bandwidth downloading it. On Jun 27, 2006, at 7:43 PM, Anthony Agelastos wrote: > > On Jun 25, 2006, at 11:37 PM, Nicolas Blais wrote: > >> On Sunday 25 June 2006 23:32, John Nielsen wrote: >>> On Sunday 25 June 2006 20:04, Anthony Agelastos wrote: >>>> On Jun 25, 2006, at 7:35 PM, John Nielsen wrote: >>>>> On Sunday 25 June 2006 19:28, Anthony Agelastos wrote: >>>>>> I updated CUPS and I cannot print to my USB laser printer. The >>>>>> web >>>>>> interface shows the following: >>>>>> >>>>>> hp_LaserJet_1160Le (Default Printer) "Unable to open USB device >>>>>> "usb:/dev/ulpt0": Permission denied" >>>>>> Description: Hewlett-Packard LaserJet 1160Le >>>>>> Location: Den >>>>>> Make and Model: HP LaserJet 1160 Foomatic/hpijs (recommended) >>>>>> Printer State: stopped, accepting jobs, published. >>>>>> Device URI: usb:/dev/ulpt0 >>>>>> >>>>>> Doing a `dmesg | grep ulpt0`, I get >>>>>> >>>>>> ulpt0: Hewlett-Packard hp LaserJet 1160 series, rev 1.10/1.00, >>>>>> addr 2, >>>>>> iclass 7/1 >>>>>> ulpt0: using bi-directional mode >>>>>> >>>>>> The printer itself works (I plugged it directly into my MacBook >>>>>> and it >>>>>> printed fine). To ensure it wasn't an awkward build error, I >>>>>> issued a >>>>>> >>>>>> `portupgrade -fR cups` >>>>>> >>>>>> and rebuilt it and everything it is dependent upon. Does anyone >>>>>> else have >>>>>> any ideas? I am running an early 6.1-STABLE (FreeBSD dell.home.iq >>>>>> 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 01:04:32 EDT 2006 >>>>>> root@dell.home.iq:/usr/obj/usr/src/sys/IQKERNEL i386). >>>>> >>>>> Just a "me too" so far with an el cheapo Lexmark USB laser printer >>>>> (E210). >>>>> Are you using the foomatic script? I am, with a PPD from >>>>> linuxprinting.org. >>>> >>>> I am not sure, actually (it was so long ago, I do not remember >>>> how I >>>> got it working). I installed hpijs and "Make and Model" mentions >>>> Foomatic/hpijs, so perhaps. I am sorry I could not be of more >>>> assistance with this question. >>>> >>>>> I'm going to try backing up and blowing away my etc/cups dir, re- >>>>> updating >>>>> the port, reinstalling foomatic and my ppd, and see if that >>>>> makes any >>>>> difference. I'll post whatever I learn. >>>> >>>> Thank you for posting your findings and for your quick reply. >>> >>> No luck. I basically re-installed everything (including config >>> files and >>> the foomatic filters) from scratch. I also changed the permissions >>> on /dev/ulpt0 to be 0664 for root:cups. That prevents the >>> permissions >>> error, but I still get nothing from the printer. The message that >>> comes up >>> in the cups web interface when I try to print a test page is: >>> >>> "/usr/local/libexec/cups/backend/usb failed" >>> >>> I did get my other printer (on a different machine) working with >>> cups 1.2.0 >>> by just changing the permissions on the device node. I hadn't >>> ever set this >>> printer up with cups before today, though. It's using gutenprint. >>> >> >> After playing with the permissions on ulpt, I can print a test >> page, though >> half of it comes out after I manually feed my printer. >> >> After that half-printed page, anything I try to print after will >> get me a "USB >> port busy; will retry in 30 seconds..." message and it never prints. > My system essentially does the same thing (the 30 second message > that is). After changing my LogLevel and killing and resubmitting > a test page, here is my error_log file. Does anyone else have any > idea what I can try next? Everyone on this list has been wonderful > with this thread. Thanks again. > > > >> >> >> -- >> FreeBSD 7.0-CURRENT #4: Sun Jun 25 12:13:31 EDT 2006 >> root@clk01a:/usr/obj/usr/src/sys/CLK01A >> PGP? : http://www.clkroot.net/security/nb_root.asc >