I'm running Ubuntu 14.04.1 with nut 2.7.1-1ubuntu1, using a Powerwalker/INNO TECH ups. It used to working fine, but lately blazer_usb just executes a few commands and then terminates with a "Got disconnected by another driver" message. Any suggestions? Example output from blazer_usb with loads of debug: # /lib/nut/blazer_usb -DDDDDDDDDDDDDDDDDDDDDD -a nasups Network UPS Tools - Megatec/Q1 protocol USB driver 0.10 (2.7.1) 0.000000 send_to_all: SETINFO driver.parameter.port "auto" 0.000118 send_to_all: SETINFO driver.parameter.vendorid "0665" 0.000175 send_to_all: SETINFO driver.parameter.productid "5161" 0.000248 debug level is '22' (...snipped lines with incorrect devices..) 0.457447 Checking device (0665/5161) (004/002) 0.469854 - VendorID: 0665 0.469932 - ProductID: 5161 0.469974 - Manufacturer: INNO TECH 0.470016 - Product: USB to Serial 0.470061 - Serial Number: 20100826 0.470104 - Bus: 004 0.470147 Trying to match device 0.470267 Device matches 0.470332 failed to claim USB device: could not claim interface 0: Device or resource busy 0.471507 detached kernel driver from USB device... 0.472966 send_to_all: SETINFO ups.vendorid "0665" 0.473262 send_to_all: SETINFO ups.productid "5161" 0.473471 send_to_all: SETINFO device.type "ups" 0.473599 send_to_all: SETINFO driver.version "2.7.1" 0.473662 send_to_all: SETINFO driver.version.internal "0.10" 0.473715 send_to_all: SETINFO driver.name "blazer_usb" 0.473766 Trying megatec protocol... 0.474853 send: Q1 0.723829 read: (229.4 229.4 230.0 021 50.3 13.6 25.0 00001001 0.723948 send_to_all: SETINFO input.voltage "229.4" 0.724006 send_to_all: SETINFO input.voltage.fault "229.4" 0.724059 send_to_all: SETINFO output.voltage "230.0" 0.724146 send_to_all: SETINFO ups.load "21" 0.724212 send_to_all: SETINFO input.frequency "50.3" 0.724274 send_to_all: SETINFO battery.voltage "13.60" 0.724327 send_to_all: SETINFO ups.temperature "25.0" 0.724386 send_to_all: SETINFO ups.beeper.status "enabled" 0.724444 send_to_all: SETINFO ups.type "offline / line interactive" 0.724495 send_to_all: SETINFO ups.status "OL" 0.724538 Status read in 1 tries 0.724580 Supported UPS detected with megatec protocol 0.725831 send: F 0.883831 read: #230.0 003 12.00 50.0 0.883930 send_to_all: SETINFO input.voltage.nominal "230" 0.883981 send_to_all: SETINFO input.current.nominal "3.0" 0.884033 send_to_all: SETINFO battery.voltage.nominal "12.0" 0.884085 send_to_all: SETINFO input.frequency.nominal "50" 0.884131 Ratings read in 1 tries 0.885878 send: I 0.947886 read: I 0.947967 blazer_vendor: short reply 0.948010 Vendor information read 1 failed 0.949884 send: I 1.011887 read: I 1.011965 blazer_vendor: short reply 1.012009 Vendor information read 2 failed 1.013878 send: I 1.075811 read: I 1.075888 blazer_vendor: short reply 1.075930 Vendor information read 3 failed 1.075974 Vendor information unavailable 1.076018 No values provided for battery high/low voltages in ups.conf 1.076083 send_to_all: SETINFO battery.voltage.low "10.40" 1.076151 send_to_all: SETINFO battery.voltage.high "13.00" 1.076199 Using 'guestimation' (low: 10.400000, high: 13.000000)! 1.076242 Battery runtime will not be calculated (runtimecal not set) 1.076303 send_to_all: SETINFO ups.delay.start "180" 1.076350 send_to_all: SETINFO ups.delay.shutdown "30" 1.076396 send_to_all: ADDCMD beeper.toggle 1.076450 send_to_all: ADDCMD load.off 1.076494 send_to_all: ADDCMD load.on 1.076537 send_to_all: ADDCMD shutdown.return 1.076580 send_to_all: ADDCMD shutdown.stayoff 1.076625 send_to_all: ADDCMD shutdown.stop 1.076668 send_to_all: ADDCMD test.battery.start 1.076713 send_to_all: ADDCMD test.battery.start.deep 1.076758 send_to_all: ADDCMD test.battery.start.quick 1.076838 send_to_all: ADDCMD test.battery.stop 1.077876 send: Q1 1.331815 read: (229.4 229.4 230.0 024 50.3 13.6 25.0 00001001 1.331926 send_to_all: SETINFO ups.load "24" 1.331986 send_to_all: SETINFO battery.charge "100" 1.332046 send_to_all: DATAOK 1.332212 dstate_init: sock /var/run/nut/blazer_usb-nasups open on fd 5 1.332290 send_to_all: SETINFO driver.parameter.pollinterval "2" 1.333860 send: Q1 1.587784 read: (229.4 229.4 229.4 017 50.3 13.6 25.0 00001001 1.587887 send_to_all: SETINFO output.voltage "229.4" 1.587944 send_to_all: SETINFO ups.load "17" 3.334767 send: Q1 3.603695 read: (230.0 230.0 229.4 017 50.3 13.6 25.0 00001001 3.603789 send_to_all: SETINFO input.voltage "230.0" 3.603841 send_to_all: SETINFO input.voltage.fault "230.0" 5.334909 send: error sending control message: Device or resource busy 5.334949 Got disconnected by another driver: Device or resource busy -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20141105/656c0daa/attachment-0001.html>
On Nov 5, 2014, at 1:57 PM, Anders Herbj?rnsen <anders.herbjornsen at gmail.com> wrote:> I'm running Ubuntu 14.04.1 with nut 2.7.1-1ubuntu1, using a Powerwalker/INNO TECH ups. > > It used to working fine, but lately blazer_usb just executes a few commands and then terminates with a "Got disconnected by another driver" message. > > Any suggestions?When you say it used to be working fine, what changed since then? Also, check for other processes which might try to open the UPS device nodes. You might have Upower running, or something else which is scanning for HID devices. If you tried another NUT driver, such as nutdrv_qx (which is scheduled to replace blazer_usb at some point in the future), you will need to make sure that is stopped. I am in the middle of a serial UPS test on my Debian box at the moment, so I can't confirm that this will show up, but I think that you might be able to run "lsof -n" as root, and grep for "usb" or "hid". -- Charles Lepple clepple at gmail -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20141105/4adc8f7f/attachment.html>
Reasonably Related Threads
- nut problem on boot/restart
- [BUG] nut 2.4.3+: UPS EP-1K: Firmware fault: USB-Interface crashes with nut.org monitoring if driver polling time <15 sec
- Help with Elite 800VA usb UPS
- blazer_usb - short reply
- Zigor Ebro 650 compatibility - revisited (on Windows, at least)