[Nut-upsuser] nut suddenly stopped working...

A.Lizard alizard at ecis.com
Wed Feb 21 21:52:00 CET 2007


suAt 09:08 AM 2/21/07, you wrote:
looks like you were right, but even with the process killed the problem 
doesn't go away. Chalk up the typos in the following to my starting this 
before finishing my first cup of coffee.

thanks
A.Lizard

alizard at terrarium:~$ ps -ef | grep ups
root      2659     1  0 12:30 ?        00:00:00 /usr/sbin/cupsd
root      2686  2676  0 12:30 ?        00:00:00 hald-addon-hid-ups: 
listening on /dev/usb/hiddev0
nut       2825     1  0 12:30 ?        00:00:00 /sbin/upsd
root      2827     1  0 12:30 ?        00:00:00 /sbin/upsmon
nut       2828  2827  0 12:30 ?        00:00:00 /sbin/upsmon
alizard at terrarium:~$ su
Password:
terrarium:/home/alizard# kill -9 2886
bash: kill: (2886) - No such process
terrarium:/home/alizard# kill -9 2686
terrarium:/home/alizard# /etc/init.d/nut stop
Stopping Network UPS Tools: (upsdrvctl failed) upsd upsmon.
terrarium:/home/alizard# /etc/init.d/nut start
Starting Network UPS Tools: (upsdrvctl failed) upsd upsmon.
terrarium:/home/alizard# ps -sf | grep ups
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
     0  9029 0000000000000000 0000000000000000 0000000000000000 
0000000000000000 S+   pts/1      0:00      \_ grep ups
terrarium:/home/alizard# ps -ef | grep ups
root      2659     1  0 12:30 ?        00:00:00 /usr/sbin/cupsd
nut       9010     1  0 12:40 ?        00:00:00 /sbin/upsd
root      9012     1  0 12:40 ?        00:00:00 /sbin/upsmon
nut       9013  9012  0 12:40 ?        00:00:00 /sbin/upsmon
root      9034  8950  0 12:41 pts/1    00:00:00 grep ups
terrarium:/home/alizard# /etc/init.d/nut stop
Stopping Network UPS Tools: (upsdrvctl failed) upsd upsmon.
terrarium:/home/alizard# ps -ef | grep ups
root      2659     1  0 12:30 ?        00:00:00 /usr/sbin/cupsd
root      9050  8950  0 12:42 pts/1    00:00:00 grep ups
terrarium:/home/alizard# exit
exit
alizard at terrarium:~$ /etc/init.d/nut start
Starting Network UPS Tools: (upsdrvctl failed) upsd upsmon.
alizard at terrarium:~$ newhidups -a belkin-ups
bash: newhidups: command not found
alizard at terrarium:~$ su root
Password:
terrarium:/home/alizard# newhidups -a belkin-ups start
bash: newhidups: command not found
terrarium:/home/alizard# /sbin/newhidups -a belkin-ups start~
bash: /sbin/newhidups: No such file or directory
terrarium:/home/alizard# locate newhidups
/home/alizard/Desktop/FC6install-img/newhidups-problem.html
/home/alizard/Desktop/FC6install-img/newhidups-use-dev-tree.html
/home/alizard/install/nut-usb/lib/nut/newhidups
/home/alizard/install/nut-usb/usr/share/man/man8/newhidups.8.gz
/home/alizard/linux_info/download/nut-2.0.4/drivers/newhidups
/home/alizard/linux_info/download/nut-2.0.4/drivers/newhidups.c
/home/alizard/linux_info/download/nut-2.0.4/drivers/newhidups.h
/home/alizard/linux_info/download/nut-2.0.4/drivers/newhidups.o
/home/alizard/linux_info/download/nut-2.0.4/man/newhidups.8
/home/alizard/win/business/article-archive-2006-2007/Linux-UPS/nuts-problems/newhidups-man.html
/lib/nut/newhidups
/usr/share/man/man8/newhidups.8.gz
terrarium:/home/alizard# /lib/nut/newhidups -a belkin-ups start~
Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.0.5)
No matching HID UPS found
terrarium:/home/alizard# /lib/nut/newhidups -DD -a belkin-ups start
Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.0.5)
debug level is '2'
Checking device (0000/0000) (002/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (04A9/220E) (001/009)
- VendorID: 04a9
- ProductID: 220e
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 001
Trying to match device
Device does not match - skipping
Checking device (050D/0551) (001/008)
- VendorID: 050d
- ProductID: 0551
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 001
Trying to match device
Device matches
failed to claim USB device, trying 2 more time(s)...
detaching kernel driver from USB device...
failed to detach kernel driver from USB device...
trying again to claim USB device...
failed to claim USB device, trying 1 more time(s)...
detaching kernel driver from USB device...
failed to detach kernel driver from USB device...
trying again to claim USB device...
failed to claim USB device, trying 0 more time(s)...
detaching kernel driver from USB device...
failed to detach kernel driver from USB device...
trying again to claim USB device...
Unable to get HID descriptor (error sending control message: Operation not 
permitted)
HID descriptor retrieved (Reportlen = 424)
Unable to get Report descriptor (-1): Operation not permitted
Checking device (04A9/1094) (001/007)
- VendorID: 04a9
- ProductID: 1094
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 001
Trying to match device
Device does not match - skipping
Checking device (058F/9254) (001/006)
- VendorID: 058f
- ProductID: 9254
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 001
Trying to match device
Device does not match - skipping
Checking device (0000/0000) (001/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 001
Trying to match device
Device does not match - skipping
No appropriate HID device found
No matching HID UPS found
terrarium:/home/alizard# ps -ef | grep ups
root      2659     1  0 12:30 ?        00:00:00 /usr/sbin/cupsd
alizard   9062     1  0 12:42 ?        00:00:00 /sbin/upsd
alizard   9066     1  0 12:42 ?        00:00:00 /sbin/upsmon
alizard   9067  9066  0 12:42 ?        00:00:00 /sbin/upsmon
root      9422  9096  0 12:45 pts/1    00:00:00 grep ups
terrarium:/home/alizard# /etc/init.d/nut stop
Stopping Network UPS Tools: (upsdrvctl failed) upsd upsmon.
terrarium:/home/alizard# exit
exit
alizard at terrarium:~$ /lib/nut/newhidups -DD -a belkin-ups start
Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.0.5)
debug level is '2'
Checking device (0000/0000) (002/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (04A9/220E) (001/009)
- VendorID: 04a9
- ProductID: 220e
- Manufacturer: Canon
- Product: CanoScan
- Serial Number: unknown
- Bus: 001
Trying to match device
Device does not match - skipping
Checking device (050D/0551) (001/008)
- VendorID: 050d
- ProductID: 0551
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 001
Trying to match device
Device matches
failed to claim USB device, trying 2 more time(s)...
detaching kernel driver from USB device...
failed to detach kernel driver from USB device...
trying again to claim USB device...
failed to claim USB device, trying 1 more time(s)...
detaching kernel driver from USB device...
failed to detach kernel driver from USB device...
trying again to claim USB device...
failed to claim USB device, trying 0 more time(s)...
detaching kernel driver from USB device...
failed to detach kernel driver from USB device...
trying again to claim USB device...
Unable to get HID descriptor (error sending control message: Operation not 
permitted)
HID descriptor retrieved (Reportlen = 424)
Unable to get Report descriptor (-1): Operation not permitted
Checking device (04A9/1094) (001/007)
- VendorID: 04a9
- ProductID: 1094
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 001
Trying to match device
Device does not match - skipping
Checking device (058F/9254) (001/006)
- VendorID: 058f
- ProductID: 9254
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 001
Trying to match device
Device does not match - skipping
Checking device (0000/0000) (001/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 001
Trying to match device
Device does not match - skipping
No appropriate HID device found
No matching HID UPS found
alizard at terrarium:~$




>This looks like another driver is already attached to your Belkin.
>Perhaps you already have a copy of newhidups running in the
>background, or perhaps as a zombie process left over from previous
>experiments. Try
>
>ps -ef | grep ups
>
>to see what is running, and kill it if necessary. -- Peter
>
>A.Lizard wrote:
> >
> > I almost had nut_2.0.5-3_i386.deb (from
> > http://packages.debian.org/unstable/admin/nut - installed via dpkg, not 
> via
> > repository) working:
> >
> > * problems with getting it to come up during boot
> > * monitoring via knutclient was OK
> > * shutdown on low battery worked adequately, if not quite as described)
> >
> > and newhidups suddenly stopped talking to my Belkin F6C550-AVR . It's only
> > been in use for a couple of months, so I doubt it's a hardware problem. 
> And
> > in general, the USB setup works, my printer runs just fine.
> >
> > also installed - nut-usb nut-dev (2.0.5-3)
> >
> > Computer hardware:
> > Biostar Geforce 6100 AM2  (integrated motherboard nvidia chipsets)
> > OS: Debian Etch
> > terrarium:/home/alizard/install# uname -a
> > Linux terrarium 2.6.18-3-486 #1 Mon Dec 4 15:59:52 UTC 2006 i686 GNU/Linux
> >
> >
> > thanks
> > A.Lizard
> >
> > terrarium:/etc/default# /lib/nut/newhidups -DD port=auto
> > Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.0.5)
> >
> > Checking device (050D/0551) (001/008)
> > - VendorID: 050d
> > - ProductID: 0551
> > - Manufacturer: unknown
> > - Product: unknown
> > - Serial Number: unknown
> > - Bus: 001
> > Trying to match device
> > Device matches
> > failed to claim USB device, trying 2 more time(s)...
> > detaching kernel driver from USB device...
> > failed to detach kernel driver from USB device...
> > trying again to claim USB device...
> > failed to claim USB device, trying 1 more time(s)...
> > detaching kernel driver from USB device...
> > failed to detach kernel driver from USB device...
> > trying again to claim USB device...
> > failed to claim USB device, trying 0 more time(s)...
> > detaching kernel driver from USB device...
> > failed to detach kernel driver from USB device...
> > trying again to claim USB device...
> > Unable to get HID descriptor (error sending control message: Operation not
> > permitted)
> > HID descriptor retrieved (Reportlen = 424)
> > Unable to get Report descriptor (-1): Operation not permitted
> >
> > Checking device (0000/0000) (001/001)
> > - VendorID: 0000
> > - ProductID: 0000
> > - Manufacturer: unknown
> > - Product: unknown
> > - Serial Number: unknown
> > - Bus: 001
> > Trying to match device
> > Device does not match - skipping
> > No appropriate HID device found
> > member The Internet Society (ISOC), The HTML Writers Guild.
> > "You can't have in a democracy various groups with arms - you have to have
> > the state with a monopoly on power." Condoleeza Rice, US Secretary of State
> > Personal Website http://www.ecis.com/~alizard
> > business Website http://www.reptilelabs.com
> > backup address (if ALL else fails) alizard at gmail.com
> > PGP 8.0 key available by request or keyserver. Download PGP from:
> > http://www.pgpi.org for e-mail privacy.
> > Disaster prep info: http://www.ecis.com/~alizard/y2k.html
> > ***Looking for INTELLIGENT new technology public policy
> > alternatives?***               http://www.ecis.com/~alizard/technology.html
> >
> >
> > _______________________________________________
> > Nut-upsuser mailing list
> > Nut-upsuser at lists.alioth.debian.org
> > http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
> >

member The Internet Society (ISOC), The HTML Writers Guild.
"You can't have in a democracy various groups with arms - you have to have 
the state with a monopoly on power." Condoleeza Rice, US Secretary of State
Personal Website http://www.ecis.com/~alizard
business Website http://www.reptilelabs.com
backup address (if ALL else fails) alizard at gmail.com
PGP 8.0 key available by request or keyserver. Download PGP from:
http://www.pgpi.org for e-mail privacy.
Disaster prep info: http://www.ecis.com/~alizard/y2k.html
***Looking for INTELLIGENT new technology public policy 
alternatives?***               http://www.ecis.com/~alizard/technology.html




More information about the Nut-upsuser mailing list