[Bug 535583] Excessive logging by apcsmart program

Arnaud Quette aquette.dev at gmail.com
Tue Feb 15 13:16:58 UTC 2011


2011/2/15 Lupe Christoph

> On Monday, 2011-02-14 at 21:54:20 -0000, Arnaud Quette wrote:
> > I definitely need more info!
> > please reply to ALL:
>
> > - what is the exact model and date of manufacturing?
>
> SmartUPS 300I NET. I have the serial number (GS9809283199) but no date.
>

 it seems to be a recent model.

> - are you sure this unit is ok?
>
> You can't prove the absence of faults.
>

this was related to the following question...


> > - have you really checked the cabling or made the whole (cable + UPS)
> work
> > somehow (using APC's software or apcupsd)?
>
> Well, as I said this is working OK for days or weeks. Then something
> happens that triggers a bug in apcsmart.
>

 quickly reading back the thread, I can't find these info...

> - what is the meantime between occurrences of these issues?
>
> I don;t have enough data. It's in the range of weeks or months.
>

as per your previous posts, this seemed more to be a matter of minutes /
hours.

> - is the device reachable (using upsc for example) between issues?
>
> Sure, everything works fine.
>
> > A driver debug output is really needed!
>
> I'm running it again, but no promises. Reboots are much more frequent
> than this misbehaviour.
>
> > Note that I'm not the developer of this driver, nor have any acquaintance
> > with APC.
>
> Same here. Though I will probably try to locate this bug if we don;t
> make progress with the debugging output, either because it does not tell
> us enough or because I don't manage to capture it.
>
> I would have thought finding the place in the code where it is trying to
> reset the UPS connection wouldn't be this hard.
>

this is not the problem. This code is in the smartmode() function of
apcsmart.c:
http://svn.debian.org/wsvn/nut/trunk/drivers/apcsmart.c

we see the 5 attempts to go to smart mode ('Y' command), but my aim is to
understand why it is failing, and how to cleanly solve this without
impacting support for other units.

Some more questions:
- how are you handling the device's permissions?
Refer to § II, section 3:
http://git.debian.org/?p=collab-maint/nut.git;a=blob_plain;f=debian/nut.README.Debian;hb=HEAD

cheers
Arnaud
-- 
Linux / Unix Expert R&D - Eaton - http://powerquality.eaton.com
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.free.fr/
--
Conseiller Municipal - Saint Bernard du Touvet

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nut in ubuntu.
https://bugs.launchpad.net/bugs/535583

Title:
  Excessive logging by apcsmart program



More information about the Ubuntu-server-bugs mailing list