Re: cups 1.2 - no output

2006-07-04 Thread Jan-Espen Pettersen
Rainer Heesen wrote:
 [EMAIL PROTECTED] ~# echo test  /dev/ulpt0
 bash: /dev/ulpt0: Device busy

 so I think it is not a cups problem, but what kind of program make the usb 
 device busy?
   
It can't be any other program if fstat is not reporting anything. I've
been reading on the usb printer standard, and the ulpt code. I found
that it will return 'device busy' (EBUSY) in one more condition other
than that it is in use by another program. It will first do a soft reset
on the printer, telling it to forget everything about previous request
and/or errors. Then it'll wait for the printer to set it's state to
Selected (ie. online). If the printer doesn't set its state to online
FreeBSD will return EBUSY (device busy).

You can try running your kernel in verbose mode ('boot -v' from the
loader), and if this is the case you'll see series of messages on the
console like:
ulpt_open: waiting a while
...

To get your printer working again, maybe you can unplug, powercycle (ie.
hard reset) your printer. And then try /dev/unlpt0. (No reset) 'echo
test  /dev/unlpt0' is an effective test.

Maybe your printer sets the online bit correctly if it doesn't receive
the reset.
And otherwise if you can confirm that the printer is not online, then
maybe you can manually tell it to get online or power up. (By pushing an
eventual 'power up'/'online' button on the printer itself)




signature.asc
Description: OpenPGP digital signature


Re: cups 1.2 - no output

2006-07-03 Thread Rainer Heesen
the permissions of /dev/ulp* are:

crw-rw  1 root  cups0, 169 Jul  3 20:35 /dev/ulpt0
crw-rw  1 root  cups0, 170 Jul  3 20:35 /dev/unlpt0

the directory /var/cache/cups is group writable

when I start a print job I get the message 

printer Minolta now printing Minolta-59.  enabled since Mon Jul  3 20:53:42 
2006
USB port busy; will retry in 30 seconds...
Minolta-59  guest18432   Mon Jul  3 20:53:42 2006

however, there is now output of fstat | grep ulpt0

'fstat |grep cups' gives this output

cups usb 1657 root / 2 drwxr-xr-x 512  r
cups usb 1657   wd / 2 drwxr-xr-x 512  r
cups usb 1657 text /usr 7632315 -rwxr-xr-x   22297  r
cups usb 16570 /dev 21 crw-rw-rw-null  r
cups usb 16571 /dev 21 crw-rw-rw-null  w
cups usb 16572* pipe c5826d78 - c5826cc0  0 rw
cups usb 16573* pipe c5826580 - c58264c8  0 rw
cups usb 16574 /var   4022 -rw-r-   18382  r
root cupsd   1652 root / 2 drwxr-xr-x 512  r
root cupsd   1652   wd / 2 drwxr-xr-x 512  r
root cupsd   1652 text /usr 6743296 -rwxr-xr-x  595608  r
root cupsd   16520* internet6 stream tcp c4eb0570
root cupsd   16521 /var   3206 -rw-r--r--  695444 rw
root cupsd   16522* internet stream tcp c4acfae0
root cupsd   16523* local stream c57a6c08
root cupsd   16524* internet dgram udp c48775a0
root cupsd   16525* pipe c5826198 - c5826250  0 rw
root cupsd   16526* pipe c5826250 - c5826198  0 rw
root cupsd   16527* internet6 stream tcp c49b8cb0
root cupsd   16528 /var   3069 -rw-r--r--  311933 rw
root cupsd   16529* internet6 stream tcp c4acf740
root cupsd   1652   11 /dev 21 crw-rw-rw-null  r
root cupsd   1652   14* pipe c5826cc0 - c5826d78  0 rw
root cupsd   1652   16 /dev 21 crw-rw-rw-null  r


Am Sonntag 02 Juli 2006 22:50 schrieb Jan-Espen Pettersen:
 Rainer Heesen wrote:
  USB port busy; will retry in 30 seconds...

 fstat | grep ulpt0

 .. will reveal which process is eventually having ulpt0 open, and
 causing 'device busy'.
 The usb backend seems to get this error while trying to open /dev/ulpt0.

 Please also make sure that either the cups user or cups group has read
 and write access to /dev/ulpt0.
 I think most people use permissions like: root:cups 0660 (-rw-rw).

 Jan-Espen Pettersen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cups 1.2 - no output

2006-07-03 Thread Jan-Espen Pettersen
Rainer Heesen wrote:
 the permissions of /dev/ulp* are:

 crw-rw  1 root  cups0, 169 Jul  3 20:35 /dev/ulpt0
 crw-rw  1 root  cups0, 170 Jul  3 20:35 /dev/unlpt0

 the directory /var/cache/cups is group writable

 when I start a print job I get the message 

 printer Minolta now printing Minolta-59.  enabled since Mon Jul  3 20:53:42 
 2006
 USB port busy; will retry in 30 seconds...
 Minolta-59  guest18432   Mon Jul  3 20:53:42 2006

 however, there is now output of fstat | grep ulpt0

 'fstat |grep cups' gives this output

 cups usb 1657 root / 2 drwxr-xr-x 512  r
 cups usb 1657   wd / 2 drwxr-xr-x 512  r
 cups usb 1657 text /usr 7632315 -rwxr-xr-x   22297  r
 cups usb 16570 /dev 21 crw-rw-rw-null  r
 cups usb 16571 /dev 21 crw-rw-rw-null  w
 cups usb 16572* pipe c5826d78 - c5826cc0  0 rw
 cups usb 16573* pipe c5826580 - c58264c8  0 rw
 cups usb 16574 /var   4022 -rw-r-   18382  r
 root cupsd   1652 root / 2 drwxr-xr-x 512  r
 root cupsd   1652   wd / 2 drwxr-xr-x 512  r
 root cupsd   1652 text /usr 6743296 -rwxr-xr-x  595608  r
 root cupsd   16520* internet6 stream tcp c4eb0570
 root cupsd   16521 /var   3206 -rw-r--r--  695444 rw
 root cupsd   16522* internet stream tcp c4acfae0
 root cupsd   16523* local stream c57a6c08
 root cupsd   16524* internet dgram udp c48775a0
 root cupsd   16525* pipe c5826198 - c5826250  0 rw
 root cupsd   16526* pipe c5826250 - c5826198  0 rw
 root cupsd   16527* internet6 stream tcp c49b8cb0
 root cupsd   16528 /var   3069 -rw-r--r--  311933 rw
 root cupsd   16529* internet6 stream tcp c4acf740
 root cupsd   1652   11 /dev 21 crw-rw-rw-null  r
 root cupsd   1652   14* pipe c5826cc0 - c5826d78  0 rw
 root cupsd   1652   16 /dev 21 crw-rw-rw-null  r
   
You could try 'echo test  /dev/ulpt0' to see if it is /dev/ulpt0 that
is failing with 'device busy'.
And if you stop cupsd, check that an eventual usb backend process also
exits. It'll usually show up with 'ps -ax | grep usb', or 'fstat | grep
cups'.

Also, if you send us your printers.conf, it would be easier to
understand the debug/error logs.




signature.asc
Description: OpenPGP digital signature


Re: cups 1.2 - no output

2006-07-02 Thread Jan-Espen Pettersen
Rainer Heesen wrote:
 USB port busy; will retry in 30 seconds...
   
fstat | grep ulpt0

.. will reveal which process is eventually having ulpt0 open, and
causing 'device busy'.
The usb backend seems to get this error while trying to open /dev/ulpt0.

Please also make sure that either the cups user or cups group has read
and write access to /dev/ulpt0.
I think most people use permissions like: root:cups 0660 (-rw-rw).

Jan-Espen Pettersen




signature.asc
Description: OpenPGP digital signature


Re: cups 1.2 - no output

2006-07-02 Thread Nicolas Blais
On Sunday 02 July 2006 16:50, Jan-Espen Pettersen wrote:
 Rainer Heesen wrote:
  USB port busy; will retry in 30 seconds...

 fstat | grep ulpt0

 .. will reveal which process is eventually having ulpt0 open, and
 causing 'device busy'.
 The usb backend seems to get this error while trying to open /dev/ulpt0.

 Please also make sure that either the cups user or cups group has read
 and write access to /dev/ulpt0.
 I think most people use permissions like: root:cups 0660 (-rw-rw).

 Jan-Espen Pettersen

Also make sure that /vad/cache/cups is writeable by group cups. 

-- 
FreeBSD 7.0-CURRENT #6: Sat Jul  1 12:22:48 EDT 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpxT5SXx7ptc.pgp
Description: PGP signature