[Nut-upsuser] tripplite_usb/nut-2.2.1: Driver not connected.

Charles Lepple clepple at gmail.com
Thu May 29 01:42:13 UTC 2008


[this didn't make it to the list the first time.]

On Wed, May 28, 2008 at 4:55 PM, Forest Bond <forest at alittletooquiet.net> wrote:
> Hi,
>
> On Thu, May 22, 2008 at 07:13:25PM -0400, Charles Lepple wrote:
>> On Thu, May 22, 2008 at 1:39 PM, Forest Bond <forest at alittletooquiet.net> wrote:
>> > I'm using nut 2.2.1 on Ubuntu Hardy.  Everything is fine, upsc works, upsmon is
>> > working.  Then, after twenty minutes or an hour or maybe even longer, it all
>> > breaks down and I see these messages in the log:
>> >
>> >  May 22 13:39:04 logicserver upsmon[28319]: Poll UPS [tripplite at localhost] failed - Driver not connected
>> >
>> > Restarting upsd fixes the problem temporarily.
>>
>> Is the driver still running at that point?
>>
>> You might want to add a "*.debug" log file to /etc/syslog.conf to see
>> more of the messages - both upsd and the driver should complain before
>> exiting.
>
> Ah:
>
> May 28 15:43:34 logicserver tripplite_usb[27408]: Error reading B value: Device detached? (error 0: error sending control message: Operation not permitted)

OK, that's weird. Usually, you would expect a permissions error only
when the driver starts up, not after it has been running for a while.

During the time before it crashes, what does the output from 'upsc' look like?

> May 28 15:43:34 logicserver upsd[27410]: Data for UPS [tripplite] is stale - check driver
> May 28 15:43:34 logicserver tripplite_usb[27408]: Reconnect attempt #1
> May 28 15:43:34 logicserver upsd[27410]: UPS [tripplite] disconnected - check driver
> May 28 15:43:34 logicserver upsd[27410]: Can't connect to UPS [tripplite] (tripplite_usb-tripplite): Connection refused
> May 28 15:43:34 logicserver kernel: [1257714.534999] tripplite_usb[27408]: segfault at 0000001d eip b7e664ac esp bfd478a8 error 4

I have an old Tripp Lite UPS around here somewhere - maybe I can test with that.

I will see if I can uncover any generic bugs in the reconnection code,
but I am puzzled about the root cause.

--
- Charles Lepple



-- 
- Charles Lepple



More information about the Nut-upsuser mailing list