[KLUG Members] Re: [mdlug] CUPS inaccessible/XSane error

Peter Bart peter at petertheplumber.net
Mon Aug 21 17:01:01 EDT 2006


Bob Dion wrote:
> Peter Bart wrote:
> 
>> Hello All,
>>     After a recent kernel upgrade I was unable to print from any 
>> application, unable to access the CUPS utility via 
>> <http://localhost:631>, and unable to access the scanner. What I did 
>> after a little research was issue "cupsd" from a root shell which 
>> solved the printing problem. For the scanner I ended up reinstalling 
>> the driver from Brother and as part of the directions I issued the 
>> following from a shell:
>>
>> $ umount /proc/bus/usb
>> $ mount /proc/bus/usb
>> $ mknod -m 666 /dev/usbscanner c 180 48
>>
>> Now I understand "cupsd" to start the CUPS what?? or am I taking the 
>> man page wrong?
>>
>>> COMPATIBILITY
>>>        cupsd implements all of the required IPP/1.1 attributes and 
>>> operations.
>>>        It also implements several CUPS-specific administration 
>>> operations.
>>
>>
>>
>>
>> So my actual question is this, all I did was unmount and remount the 
>> usb device (printer) and restart CUPS and that solved my problem?
>>
>> Peter
> 
> 
> 
> Now you know why I was concern with you issuing that ' rm 
> /etc/init.d/cups /etc/init.d/lpd '.  Not only were you telling the 
> system to remove the symlink file  'lpd' you were also telling it to 
> remove the Real files 'cups' &/or 'cupsys'.
> 
> Even though you got an error I would venture to say that if you issue 
> the list command:
> ' ls /etc/init.d '  you will not find  a ' cups ' or ' cupsys ' file there.
> 
> These are your system Initialization scripts. Here is a small snipit 
> from my /etc/init.d/cupsys file:
> 
> PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
> DAEMON=/usr/sbin/cupsd
> NAME=cupsd
> DESC="printing system service"
> 
> test -f $DAEMON || exit 0
> 
> set -e
> 
> # Get the timezone set.
> if [ -e /etc/timezone ]; then
>  TZ=`cat /etc/timezone`
>  export TZ
> fi
> 
> This script controls the Starting, Stopping and Restarting of the 
> printing system daemon that controls your Printing Spooler. A better way 
> to start, stop or restart cups would be to enter this command:  
> /etc/init.d/cups start.  (Please note, on some distros like Debian this 
> file is named cupsys.)
> 
> If this file is indeed missing maybe someone who also runs suse can send 
> you a copy.
> 
> Hope this helps, Not sure about the scanner issue.
> 
> Bob


Hello Everyone,
	My adventure continues. It appears I had in fact removed cups from my
/etc/init.d file. So, a very knowledgeable person helped me download,
compile, and install the latest cups from cups.org. Now I am able to
access localhost:631 and see the printer installed.  cupsd now resides
in /home/peter/downloads as does lpd. I'm pretty sure they doesn't
belong there. However when I try to print a test page from localhost
it tells me

"DCP7020 (Default Printer) "Printer not connected; will retry in 30
seconds..."

This is what I see on the localhost page which appears to be correct,
it is on the usb port and it matches what Brother's directions tell me.

> Description: DCP7020
> Location:
> Make and Model: Brother DCP-7020 for CUPS
> Printer State: idle, accepting jobs, published.
> Device URI: usb:/dev/usb/lp0

Now to confuse things further I must start cups manually, it doesn't
start on boot. Neither does cupsd, I think. The following commands
were issued and the results. I could not start cupsd w/o first
stopping cups.

> linux:/etc/init.d # /etc/init.d/cups restart
> cups: restarted scheduler.
> linux:/etc/init.d # cupsd
> cupsd: Child exited on signal 15!
> linux:/etc/init.d # cupsd
> cupsd: Child exited on signal 15!
> linux:/etc/init.d # vi cups
> linux:/etc/init.d # /etc/init.d/cups stop
> cups: stopped scheduler.
> linux:/etc/init.d # cupsd
> linux:/etc/init.d # /etc/init.d/cups restart
> cups: restarted scheduler.

So then I thought I might have to reinstall the lpr and wrapper for
some reason so I did.

> linux:/etc/init.d # cd /home/peter/downloads
> linux:/home/peter/downloads # rpm -Uvh --nodeps brdcp7020lpr-1.1.2-4.i386.rpm
> Preparing...                ########################################### [100%]
>         package brdcp7020lpr-1.1.2-4 is already installed
> linux:/home/peter/downloads # rpm -Uvh --nodeps cupswrapperDCP7020-1.0.1-2.i386.rpm
> Preparing...                ########################################### [100%]
>         package cupswrapperDCP7020-1.0.1-2 is already installed

I decided *not* to use the force option because I'm in deep enough. As
part of Brothers Sane installation instructions they wanted me to
issue the following commands.

> # Modify the USB access control
> 
> $ umount /proc/bus/usb
> $ mount /proc/bus/usb
> $ mknod -m 666 /dev/usbscanner c 180 48

Which produced the following

> umask        umount       umount.cifs
> linux:/home/peter/downloads # umount -force /proc/bus/usb
> umount: invalid option -- o
> Usage: umount [-hV]
>        umount -a [-f] [-r] [-n] [-v] [-t vfstypes] [-O opts]
>        umount [-f] [-r] [-n] [-v] special | node...
> linux:/home/peter/downloads # mount /proc/bus/usb
> mount: usbfs already mounted or /proc/bus/usb busy
> mount: according to mtab, usbfs is already mounted on /proc/bus/usb
> linux:/home/peter/downloads # man umount
> Reformatting umount(8), please wait...
> linux:/home/peter/downloads #
> linux:/home/peter/downloads # umount -f proc/bus/usb
> umount2: No such file or directory
> umount: proc/bus/usb: not found
> linux:/home/peter/downloads # umount -f /proc/bus/usb
> umount2: Device or resource busy
> umount: /proc/bus/usb: device is busy
> umount2: Device or resource busy
> umount: /proc/bus/usb: device is busy



I also found the commands I mistakenly issued that got me into so much
trouble to begin with under the lpd installation instructions. lpd was
installed first but my machine was not one of the ones that required
this step.

> Note to users of product with "*" mark:
> In some distributions, LPD needs to be installed before installing the CUPS wrapper driver. If you have a problem installing the driver, create a temporary symbolic link to link the file "/etc/init.d/cups" or "/etc/init.d/cupsys" to "/etc/init.d/lpd".
> 
> ln -s /etc/init.d/cups /etc/init.d/lpd
> ln -s /etc/init.d/cupsys /etc/init.d/lpd
> 
> After the installation, remove the symbolic link.


When I try to print an email I get an error message that flashes by
which says something about a xsane error. Trying to print a web page
produces nothing. Printing from StarOffice produces nothing. Can I
simply move the cupsd and lpd files to the proper directory? Should I
use the force option to reinstall lpd and cupwrapper? Should I
reinstall the sane driver? The website for the Brother installation
and downloads is <http://solutions.brother.com/linux/en_us/>. I can't
go directly to that page, I must select North America, English and
then the printer (DCP7020).

Peter




-------------- next part --------------
A non-text attachment was scrubbed...
Name: peter.vcf
Type: text/x-vcard
Size: 360 bytes
Desc: not available
Url : http://www.kalamazoolinux.org/pipermail/members/attachments/20060821/a3b73c77/peter.vcf


More information about the Members mailing list