Koozali.org: home of the SME Server

Problem with USB UPS and Nut

Offline ktenbrook

  • *
  • 14
  • +0/-0
Problem with USB UPS and Nut
« on: April 11, 2006, 09:08:58 AM »
After almost 2 years using SME Server, this is my first post - a plea for advice.

After setting up a new 7.0 rc1 box and moving my user accounts to it using the rsync method, I'm having a problem with the upsmon (I think).  Every 2 minutes or so, I get a broadcast message that says: "UPS UPS@localhost is unavailable".

I have a Belkin USB UPS attached.  My startup log shows this line:

Apr 10 18:02:10 mail kernel: hiddev96: USB HID v1.11 Device [Belkin UPS] on usb-0000:00:03.2-1

- So that's good, right?  The UPS seems to be visible.  Later on in the log though, there is this:

Apr 10 18:02:47 mail nut: Starting newhidups:
Apr 10 18:02:47 mail newhidups: Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.3-pre2)
Apr 10 18:02:47 mail newhidups:
Apr 10 18:02:47 mail newhidups: No matching USB/HID UPS found
Apr 10 18:02:47 mail nut: Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.3-pre2)
Apr 10 18:02:47 mail nut:
Apr 10 18:02:47 mail nut: No matching USB/HID UPS found
Apr 10 18:02:47 mail nut: newhidups startup failed
Apr 10 18:02:47 mail nut: [
Apr 10 18:02:47 mail nut:
Apr 10 18:02:47 mail nut: Starting upsd:
Apr 10 18:02:47 mail upsd[2422]: /etc/ups/upsd.conf is world readable
Apr 10 18:02:47 mail upsd: /etc/ups/upsd.conf is world readable
Apr 10 18:02:47 mail upsd[2422]: Can't connect to UPS [UPS] (newhidups-hiddev0): No such file or directory
Apr 10 18:02:47 mail upsd: Can't connect to UPS [UPS] (newhidups-hiddev0): No such file or directory
Apr 10 18:02:47 mail upsd: Network UPS Tools upsd 2.0.3-pre2
Apr 10 18:02:47 mail upsd: Synchronizing...
Apr 10 18:02:48 mail upsd: .
Apr 10 18:02:49 mail upsd: .
Apr 10 18:02:46 mail syslog: syslogd shutdown succeeded
Apr 10 18:02:46 mail bootstrap-console: 
Apr 10 18:02:46 mail bootstrap-console:  
Apr 10 18:02:46 mail bootstrap-console: Starting system logger:  
Apr 10 18:02:50 mail upsd: .
Apr 10 18:02:51 mail upsd: .
Apr 10 18:02:52 mail upsd: . giving up
Apr 10 18:02:52 mail upsd[2430]: Startup successful
Apr 10 18:02:52 mail nut: upsd startup succeeded
Apr 10 18:02:52 mail nut: 
Apr 10 18:02:52 mail nut:
Apr 10 18:02:52 mail nut: Starting UPS monitor (master):
Apr 10 18:02:52 mail upsmon: UPS: UPS@localhost (slave) (power value 1)
Apr 10 18:02:52 mail upsmon: Using power down flag file /etc/killpower
Apr 10 18:02:52 mail upsmon:
Apr 10 18:02:52 mail upsmon[2434]: Startup successful
Apr 10 18:02:52 mail upsmon[2435]: UPS [UPS@localhost]: connect failed: Connection failure: Network is unreachable
Apr 10 18:02:52 mail upsmon[2435]: Communications with UPS UPS@localhost lost
Apr 10 18:02:52 mail nut: upsmon startup succeeded
Apr 10 18:02:52 mail wall[2437]: wall: user nut broadcasted 1 lines (44 chars)
Apr 10 18:02:52 mail nut: 
Apr 10 18:02:52 mail nut:
Apr 10 18:02:52 mail rc.e-smith: Starting nut:  succeeded

-This looks bad to me, but I'm afraid I don't have a clue as to what is going on here.  Can anyone help?

Thanks.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Problem with USB UPS and Nut
« Reply #1 on: April 11, 2006, 03:24:05 PM »
Quote from: "ktenbrook2"
After almost 2 years using SME Server, this is my first post - a plea for advice.


If you have any problems, your first step should be to search the bug tracker, and if you do not find a report matching your symptoms, you should open a new bug report.

Offline ktenbrook

  • *
  • 14
  • +0/-0
Problem with USB UPS and Nut
« Reply #2 on: April 11, 2006, 08:18:51 PM »
Thanks for the reply.  Actually, I did go to the bug tracker first, but didn't find anything that looked relevant.  I just looked again, and wouldn't you know it, the last one posted, yesterday, did relate to upsmon.  But the posting didn't look like it related to the issue I'm having, I think.  I'm not trying to do anything custom.  I have a standard USB-type ups connected the the USB port on the computer.  It was working fine under 6.0.1 until I switched to 7.0 rc1 this weekend (and changed computers too).

I'm not very confident that this is a bug, so I didn't want to post a report there.  If that's what you think I should do though, I will.

I was wondering though, if anyone more knowlegable than me looking at the log would be able to tell what is going on.  There are also tons of entries like this:

Apr 11 02:04:18 mail upsd[2303]: Can't connect to UPS [UPS] (newhidups-hiddev0): No such file or directory
Apr 11 02:04:19 mail upsmon[2308]: Poll UPS [UPS@localhost] failed - Driver not connected
Apr 11 02:04:54 mail last message repeated 7 times
Apr 11 02:05:14 mail last message repeated 4 times
Apr 11 02:05:14 mail upsmon[2308]: UPS UPS@localhost is unavailable
Apr 11 02:05:14 mail wall[6301]: wall: user nut broadcasted 1 lines (34 chars)
Apr 11 02:05:19 mail upsmon[2308]: Poll UPS [UPS@localhost] failed - Driver not connected
Apr 11 02:05:54 mail last message repeated 7 times
Apr 11 02:06:59 mail last message repeated 13 times
Apr 11 02:08:04 mail last message repeated 13 times
Apr 11 02:09:09 mail last message repeated 13 times
Apr 11 02:09:14 mail upsmon[2308]: Poll UPS [UPS@localhost] failed - Driver not connected

Any help would be appreciated.
Thanks

sjugin

Problem with USB UPS and Nut
« Reply #3 on: April 12, 2006, 08:40:42 AM »
Version - Sme 7.0rc1
 
I have the same problem with APC Back-UPS CS500

Apr 12 08:22:24 lmserver wall[16280]: wall: user nut broadcasted 1 lines (34 chars)
Apr 12 08:22:29 lmserver upsmon[1939]: Poll UPS [UPS@localhost] failed - Driver not connected
Apr 12 08:23:04 lmserver last message repeated 7 times
Apr 12 08:23:44 lmserver last message repeated 8 times
Apr 12 08:23:48 lmserver upsd[1934]: Can't connect to UPS [UPS] (newhidups-hiddev0): No such file or directory
Apr 12 08:23:49 lmserver upsmon[1939]: Poll UPS [UPS@localhost] failed Driver not connected
Apr 12 08:24:24 lmserver last message repeated 7 times

With previus version work fine!

Sasa

Thanks

Offline SoftDux

  • *****
  • 240
  • +0/-0
    • http://www.SoftDux.com
Re: Problem with USB UPS and Nut
« Reply #4 on: February 01, 2008, 07:59:02 AM »
I know this is an old post, but how did you fix the problem?