Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: bhamail on October 09, 2007, 06:14:45 AM

Title: nut ups stopped working after lasted yum updates applied
Post by: bhamail on October 09, 2007, 06:14:45 AM
I had the nut ups working nicely in sme 7.2 with the Model = usbhid-ups. (I tried using Model = newusbhid in the past, nut could never find a "newusbhid" driver - maybe I'm missing a file?)

Anyway, I just installed the latest sme updates via the server-manager (which included: Updated: e-smith-nutUPS.noarch 1.2.0-15.el4.sme), and after restarting, nut is not able to communicate with the ups.

I tried following the steps from other forum posts about setting Model = newusbhid, and expanding templates, but that didn't work (which was no surprise since that setting wasn't happy before).

I have an APC Back-UPS RS 1500 connected via USB cable. Here's the lsusb output:

# lsusb
Unknown line at line 5959
Unknown line at line 5960
Unknown line at line 5961
Unknown line at line 5962
Unknown line at line 5963
Unknown line at line 5964
Unknown line at line 5965
Unknown line at line 5966
Unknown line at line 5967
Unknown line at line 5968
Unknown line at line 5969
Unknown line at line 5970
Bus 007 Device 001: ID 0000:0000
Bus 006 Device 002: ID 051d:0002 American Power Conversion Back-UPS Pro 500/1000/1500
Bus 006 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

My current config show nut:

nut=service
    MasterPass=<removed>
    Model=usbhid-ups
    SlavePass=<removed>
    status=enabled

Email messages I'm getting look like this:
UPS UPS@localhost is unavailable

Also:
# upsc UPS@localhost
Error: Driver not connected

From system log:
Oct  9 00:11:11 rocosme upsmon[4147]: Poll UPS [UPS@localhost] failed - Driver not connected
Oct  9 00:11:16 rocosme upsd[4142]: Can't connect to UPS [UPS] (usbhid-ups-UPS): No such file or directory
Oct  9 00:11:16 rocosme upsmon[4147]: Poll UPS [UPS@localhost] failed - Driver not connected
Oct  9 00:11:26 rocosme last message repeated 2 times
Oct  9 00:11:26 rocosme upsmon[4147]: UPS UPS@localhost is unavailable

I couldn't figure out how to "downgrade" via yum to an earlier sme/nut package version (and I'm not sure if that is safe to do, if at all possible).
Any ideas?

Thanks,
Dan

Title: Re: nut ups stopped working after lasted yum updates applied
Post by: cactus on October 09, 2007, 09:17:57 AM
I had the nut ups working nicely in sme 7.2 with the Model = usbhid-ups. (I tried using Model = newusbhid in the past, nut could never find a "newusbhid" driver - maybe I'm missing a file?)

Anyway, I just installed the latest sme updates via the server-manager (which included: Updated: e-smith-nutUPS.noarch 1.2.0-15.el4.sme), and after restarting, nut is not able to communicate with the ups.

I tried following the steps from other forum posts about setting Model = newusbhid, and expanding templates, but that didn't work (which was no surprise since that setting wasn't happy before).
Please report this as a bug in the bugtracker (http://bugs.contribs.org/enter_bug.cgi) and be sure to include the information you provided here. Issues with upgrades should be reported there, especially when they concern default SME Server packages. This way the developers can investigate and resolve/fix the issue for other users as well.
Title: Re: nut ups stopped working after lasted yum updates applied
Post by: imcintyre on October 09, 2007, 06:49:01 PM
There is a bug already for this. bug 3457.
Title: Re: nut ups stopped working after lasted yum updates applied
Post by: bhamail on October 10, 2007, 04:06:58 AM
Joy! After installing:

Oct 09 21:50:59 Updated: nut-client.i386 2.2.0-3.2.el4.sme
Oct 09 21:51:00 Updated: nut.i386 2.2.0-3.2.el4.sme

nut is happy again!

I'll try to do a better job of querying the bug list next time - and BTW, for anyone else: bug 3457 has some very useful info about this issue. Also, the patch is still making it's way out there, so don't worry if the server-manager software installer page isn't yet showing the update...it will eventually. I was anxious to try the patch, so I ran "yum update" from ssh.

Thanks!
Dan
Title: Re: nut ups stopped working after lasted yum updates applied
Post by: haymann on October 10, 2007, 04:27:57 AM
It seems to be showing up in the software-installer now and it works. I am glad the emails stopped... about 600 in the last couple days...