[Nut-upsuser] Blazer_usb Permissions problem: Input/output error

Arnaud Quette aquette.dev at gmail.com
Wed Sep 5 14:27:50 UTC 2012


Hi Paul

2012/8/19 Paul Barber <p at barbz.com.au>

> Hi all,
>
> I have an eaton ENV800HA connected for a freebsd 9.0 box with nut 2.6.5
> installed (on the supported list).
>
> The UPS is connected using the Blazer_USB driver (not sure how to check
> its version).
>
> When I kick off upsd it detects the UPS no problems and I get all my
> information:
>
> battery.charge: 100
> battery.voltage: 13.60
> battery.voltage.high: 13.00
> battery.voltage.low: 10.40
> battery.voltage.nominal: 12.0
> device.type: ups
> driver.name: blazer_usb
> driver.parameter.pollinterval: 2
> driver.parameter.port: /dev/ugen1.5
> driver.version: 2.6.5-Unversioned directory
> driver.version.internal: 0.09
> input.current.nominal: 3.0
> input.frequency: 50.2
> input.frequency.nominal: 50
> input.voltage: 245.0
> input.voltage.fault: 244.5
> input.voltage.nominal: 240
> output.voltage: 245.0
> ups.beeper.status: enabled
> ups.delay.shutdown: 30
> ups.delay.start: 180
> ups.load: 4
> ups.productid: 5161
> ups.status: OL
> ups.temperature: 25.0
> ups.type: offline / line interactive
> ups.vendorid: 0665
>
> However after a random amount of time I get the following error:
> blazer_usb[4466]: Permissions problem: Input/output error
>
> Followed by:
> upsd[4468]: Can't connect to UPS [EatonUPS] (blazer_usb-EatonUPS): No such
> file or directory
> upsmon[4566]: Poll UPS [EatonUPS at localhost] failed - Driver not connected
> upsmon[4566]: Communications with UPS EatonUPS at localhost lost
> upssched-cmd: Communications with the UPS EatonUPS at localhost are lost
> upsmon[4566]: Poll UPS [EatonUPS at localhost] failed - Driver not connected
>
> Ive tried the basics and chmod 777'd the ugen1.5 port (not a problem it if
> works for a while) but worth a shot.
>
> After doing some reading on here I ran /usr/local/libexec/nut/./blazer_usb
> -u root -DDD -a EatonUPS which on its first run worked for 72 seconds, but
> 330 seconds on the second run before ending with:
>
> 327.930857   send: Q1
>  328.193486   read: (247.0 247.0 247.0 004 50.0 13.6 25.0 00001001
>  329.940841   send: Q1
>  330.177471   read: (247.0 247.0 247.0 004 50.0 13.6 25.0 00001001
>  331.950574   send: Q1
>  332.193457   read: (247.0 247.0 247.0 004 50.0 13.6 25.0 00001001
>  338.860148   send: Unknown error
>  338.860204   Permissions problem: Input/output error
>
> Ive also found the following message in the log when I start upsd:
> root: Unknown USB device: vendor 0x0665 product 0x5161 bus uhub2
>

is this msg different from the one when you initially plug your UPS USB
cord?


>  Any ideas where to go from here?
>

good question!
blazer_usb will reconnect upon certain error, like your IO one.
but the thing is that device permissions must allow that.
Ie, on Linux, udev is in charge of setting the permissions for NUT on all
known devices.
thus, upon any kind of disconnection/reconnection, NUT will be able to
establish again the communication.
you should dig around this...

cheers,
Arnaud
-- 
Linux / Unix / Opensource Engineering Expert - Eaton -
http://opensource.eaton.com
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20120905/490dd9c3/attachment-0001.html>


More information about the Nut-upsuser mailing list