upsd write() failed for 127.0.0.1: Broken pipe
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nut (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: nut
I have Powercom UPS and trying configure it with NUT.
lsusb:
Bus 006 Device 002: ID 0d9f:0004 Powercom Co., Ltd
ups.conf:
[powercom]
driver = usbhid-ups
port = /dev/usb/hiddev0
productid = 0004
desc = "My UPS"
but when i trying run `upsc powercom` got this output:
--------------
battery.charge: 99
battery.charge.low: 10
battery.
battery.date: 2009/12/23
battery.runtime: 24576
battery.type: PbAc
--------------
and `upsd[24062]: write() failed for 127.0.0.1: Broken pipe` in /var/log/daemon.log
how i can fix this?
ubuntu:
Description: Ubuntu 10.10
Release: 10.10
I got this error with 2.4.3-1ubuntu5 packages, then download nut_2.6.
2011/4/7 Virus <email address hidden>
> Public bug reported:
>
> Binary package hint: nut
>
> I have Powercom UPS and trying configure it with NUT.
>
> lsusb:
> Bus 006 Device 002: ID 0d9f:0004 Powercom Co., Ltd
>
> ups.conf:
> [powercom]
> driver = usbhid-ups
> port = /dev/usb/hiddev0
>
putting "auto" is sufficient here
productid = 0004
>
this productid should be added to the driver.
before that, I need the output f an lsusb -v -d 0x0d9f:0004
desc = "My UPS" charge. warning: 30
>
but when i trying run `upsc powercom` got this output:
> --------------
> battery.charge: 99
> battery.charge.low: 10
> battery.
> battery.date: 2009/12/23
> battery.runtime: 24576
> battery.type: PbAc
> --------------
>
> and `upsd[24062]: write() failed for 127.0.0.1: Broken pipe` in
> /var/log/daemon.log
>
> how i can fix this?
>
good question!
is the driver still running?
what is your start method (ie using invoke-rc.d or alike, or directly
starting components manually)?
what is the content of your upsd.conf?
after having stopped previous instance (invoke-rc.d nut stop), what is the
output of:
$ sudo upsd -v
then, stop upsd (sudo upsd -c stop)
and start in 3 separate consoles:
$ sudo upsd -DDD
$ sudo /lib/nut/usbhid-ups -DDDDD -a powercom
$ upsc powercom
and send back the various output.
cheers, powerquality. eaton.com www.networkupst ools.org/ www.debian. org arnaud. quette. free.fr/
Arnaud
--
Linux / Unix Expert R&D - Eaton - http://
Network UPS Tools (NUT) Project Leader - http://
Debian Developer - http://
Free Software Developer - http://