I am trying to configure NUT to work with a new CyberPower CP1500C UPS via a USB connection. As far as I can tell everything is configured correctly -- the system recognizes the UPS and can talk to it, and when I start upsd everything is fine at first. Unfortunately, a few seconds after upsd starts, my syslog is flooded with time out errors every 2 seconds.
Here is what happens after I start upsd:
Code:
[root@localhost /]# service upsd start
NUT Starting UPS model drivers: Network UPS Tools - UPS driver controller 2.4.3
Network UPS Tools - Generic HID driver 0.34 (2.4.3)
USB communication driver 0.31
Using subdriver: CyberPower HID 0.3
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
[ OK ]
NUT Starting UPS daemon: Network UPS Tools upsd 2.4.3
listening on 127.0.0.1 port 3493
listening on ::1 port 3493
Connected to UPS [main_ups]: usbhid-ups-ups_main
[ OK ]
[root@localhost /]#
So far so good. However, almost immediately my syslog will fill up with this:
Code:
[root@localhost log]# more syslog
Aug 7 01:23:49 localhost usbhid-ups[5120]: Startup successful
Aug 7 01:23:49 localhost upsd[5128]: listening on 127.0.0.1 port 3493
Aug 7 01:23:49 localhost upsd[5128]: listening on ::1 port 3493
Aug 7 01:23:49 localhost upsd[5128]: Connected to UPS [main_ups]: usbhid-ups-ups_main
Aug 7 01:23:49 localhost upsd[5129]: Startup successful
Aug 7 01:23:49 localhost usbhid-ups[5120]: libusb_get_report: Connection timed out
Aug 7 01:23:49 localhost usbhid-ups[5120]: libusb_get_report: Connection timed out
Aug 7 01:23:51 localhost usbhid-ups[5120]: libusb_get_report: Connection timed out
Aug 7 01:23:51 localhost usbhid-ups[5120]: libusb_get_report: Connection timed out
Aug 7 01:23:51 localhost usbhid-ups[5120]: libusb_get_report: Connection timed out
Aug 7 01:23:51 localhost usbhid-ups[5120]: libusb_get_report: Connection timed out
Aug 7 01:23:51 localhost usbhid-ups[5120]: libusb_get_report: Connection timed out
Aug 7 01:23:51 localhost usbhid-ups[5120]: libusb_get_report: Connection timed out
Aug 7 01:23:53 localhost usbhid-ups[5120]: libusb_get_report: Connection timed out
Aug 7 01:23:53 localhost usbhid-ups[5120]: libusb_get_report: Connection timed out
[root@localhost log]#
This will continue until I stop the upsd service. During this time, upsmon appears to find and connect to the UPS just fine:
Code:
[root@localhost log]# more syslog
Aug 7 01:46:24 localhost usbhid-ups[6401]: libusb_get_report: Connection timed out
Aug 7 01:46:24 localhost upsmon[6610]: Startup successful
Aug 7 01:46:24 localhost upsd[6409]: User upsmon@127.0.0.1 logged into UPS [ups_main]
Aug 7 01:46:26 localhost usbhid-ups[6401]: libusb_get_report: Connection timed out
[root@localhost log]#
I can't figure out what the problem is. At first I thought the problem might be something else trying to steal control of the UPS, but I don't know how to tell if that's happening. My setup seems pretty straightforward and I'm not trying to do anything weird or fancy. Here's the output from lsusb:
Code:
[root@localhost /]# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 0764:0501 Cyber Power System, Inc. CP1500 AVR UPS
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 0a81:0205 Chesen Electronics Corp. PS/2 Keyboard+Mouse Adapter
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[root@localhost /]#
Here's my configuration in upsd.conf:
Code:
[ups_main]
driver = usbhid-ups
port = auto
desc = "Main Server UPS"
I am running Mandriva 2010.1 and my kernel is 2.6.33.5-desktop-2mnb. Any help would be much appreciated. I would even be happy if someone could simply tell me how to stop logging the continuous errors since the upsmon service appears to talk to the UPS just fine. Thanks!