I hooked my new CyberPower UPS: CP685AVR-G on my Lucid server and got this error:
Jan 15 12:06:33 xeon upsd[5441]: Can't connect to UPS [cyberpower] (usbhid-ups-cyberpower): No such file or directory
Jan 15 12:06:38 xeon upsmon[5445]: Poll UPS [cyberpower@127.0.0.1] failed - Driver not connected
Now, everything works well, without requiring "user = root" in /etc/nut/ups.conf because the udev rule now ensures the device file is owned by the group "nut":
I hooked my new CyberPower UPS: CP685AVR-G on my Lucid server and got this error:
Jan 15 12:06:33 xeon upsd[5441]: Can't connect to UPS [cyberpower] (usbhid- ups-cyberpower) : No such file or directory 127.0.0. 1] failed - Driver not connected
Jan 15 12:06:38 xeon upsmon[5445]: Poll UPS [cyberpower@
After trying many things, I found https:/ /bugzilla. redhat. com/show_ bug.cgi? id=488368 that hint me in the right direction. The required change was to rename the udev rule like this:
mv /lib/udev/ rules.d/ {5,6}2- nut-usbups. rules
Now, everything works well, without requiring "user = root" in /etc/nut/ups.conf because the udev rule now ensures the device file is owned by the group "nut":
# find /dev/bus/usb/ -ls usb/008/ 001 usb/007/ 001 usb/006/ 001 usb/005/ 001 usb/004/ 001 usb/003/ 002 usb/003/ 001 usb/002/ 001 usb/001/ 001
1536 0 drwxr-xr-x 10 root root 200 Jan 15 12:40 /dev/bus/usb/
1579 0 drwxr-xr-x 2 root root 60 Jan 15 12:40 /dev/bus/usb/008
1580 0 crw-rw-r-- 1 root root Jan 15 12:41 /dev/bus/
1573 0 drwxr-xr-x 2 root root 60 Jan 15 12:40 /dev/bus/usb/007
1574 0 crw-rw-r-- 1 root root Jan 15 12:41 /dev/bus/
1567 0 drwxr-xr-x 2 root root 60 Jan 15 12:40 /dev/bus/usb/006
1568 0 crw-rw-r-- 1 root root Jan 15 12:41 /dev/bus/
1561 0 drwxr-xr-x 2 root root 60 Jan 15 12:40 /dev/bus/usb/005
1562 0 crw-rw-r-- 1 root root Jan 15 12:41 /dev/bus/
1555 0 drwxr-xr-x 2 root root 60 Jan 15 12:40 /dev/bus/usb/004
1556 0 crw-rw-r-- 1 root root Jan 15 12:41 /dev/bus/
1549 0 drwxr-xr-x 2 root root 80 Jan 15 12:40 /dev/bus/usb/003
2163 0 crw-rw-r-- 1 root nut Jan 15 12:49 /dev/bus/
1550 0 crw-rw-r-- 1 root root Jan 15 12:41 /dev/bus/
1543 0 drwxr-xr-x 2 root root 60 Jan 15 12:40 /dev/bus/usb/002
1544 0 crw-rw-r-- 1 root root Jan 15 12:41 /dev/bus/
1537 0 drwxr-xr-x 2 root root 60 Jan 15 12:40 /dev/bus/usb/001
1538 0 crw-rw-r-- 1 root root Jan 15 12:41 /dev/bus/
Generic information:
# lsb_release -rd
Description: Ubuntu 10.04.4 LTS
Release: 10.04
# apt-cache policy nut archive. ubuntu. com/ubuntu/ lucid-updates/main Packages archive. ubuntu. com/ubuntu/ lucid-security/main Packages dpkg/status archive. ubuntu. com/ubuntu/ lucid/main Packages
nut:
Installed: 2.4.3-1ubuntu3.2
Candidate: 2.4.3-1ubuntu3.2
Version table:
*** 2.4.3-1ubuntu3.2 0
500 http://
500 http://
100 /var/lib/
2.4.3-1ubuntu3 0
500 http://
ProblemType: Bug ature: Ubuntu 2.6.32- 45.102- server 2.6.32.60+drm33.26
DistroRelease: Ubuntu 10.04
Package: nut 2.4.3-1ubuntu3.2
ProcVersionSign
Uname: Linux 2.6.32-45-server x86_64
Architecture: amd64
Date: Tue Jan 15 12:43:46 2013
ProcEnviron:
PATH=(custom, no user)
LANG=en_CA.UTF-8
SHELL=/bin/bash
SourcePackage: nut