apcaccess fails with connection timed out
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apcupsd (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: apcupsd
I use apcupsd to monitor the status of the attached UPS on my machine. It uses a standard USB cable. Before upgrading to Lucid Lynx, everything worked fine. Now, when using apcaccess to poll the state of the AC supply, around 10% of the time I will receive the message:
Error reading status from apcupsd @ localhost:3551: Connection timed out
Running the command again connects without issue, and the PID isn't changing. stracing the daemon shows it's not mysteriously quitting and respawning, it's still running when the connection is timing out.
lsb_release -a:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04 LTS
Release: 10.04
Codename: lucid
apt-cache policy apcupsd:
Installed: 3.14.6-3ubuntu1
Candidate: 3.14.6-3ubuntu1
Version table:
*** 3.14.6-3ubuntu1 0
500 http://
100 /var/lib/
lsusb:
Bus 003 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
Steps to reproduce:
for i in seq 1 100; do
apcaccess >/dev/null
done
Expected result:
Command should always return current UPS status while apcupsd is running.
Actual result:
10% of the time, a time-out message is returned instead of the expected status message.
Attaching apcupsd.conf. Any other information available upon request.
Thanks!
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: apcupsd 3.14.6-3ubuntu1
ProcVersionSign
Uname: Linux 2.6.32-21-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Tue May 4 18:42:57 2010
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: apcupsd
I compiled apcupsd 3.14.8 from apcupsd.com and it seems to have decreased the frequency of the error to less than 1% of the time, but it still occurs sometimes.