apcaccess fails with connection timed out

Bug #575448 reported by John Plaxco
24
This bug affects 4 people
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://us.archive.ubuntu.com/ubuntu/ lucid/universe Packages
        100 /var/lib/dpkg/status

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
ProcVersionSignature: Ubuntu 2.6.32-21.32-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-21-generic x86_64
NonfreeKernelModules: nvidia
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

Revision history for this message
John Plaxco (c-launchpad-ignisobscurae-com) wrote :
Revision history for this message
John Plaxco (c-launchpad-ignisobscurae-com) wrote :

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.

Revision history for this message
Alex (a-t-page) wrote :

Apcaccess works great for me for a couple of days, after which it will only respond about 5% of the time (Connection timed out). A few days after a restart, my /var/log/messages starts filling with "generic-usb 0003:051D:0002.0001: control queue full", and I'm not sure what's triggering the problem (051d:0002 is the UPS).

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apcupsd (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.