APC UPS doesn't seem to work with FreeNAs 8.3.0 P1?

Status
Not open for further replies.

Pixeltje

Dabbler
Joined
Feb 20, 2012
Messages
32
Hi,

I don't really know in which forum I should post questions about the UPS service not starting, so I figured here would be the place to start.. Yesterday I've upgraded Freenas from 8.04 Media to 8.3.0 P1 (x64) due to UPS issues with with 8.0.4. Now, however, Freenas still won't start the UPS service. I've bought a APC BE700G-GR Back UPS ES 700 some time ago which worked fine with Freenas prior to 8.04. Now however I'm struggling to get things to work.

The first problem I face is rather simple (I hope) the tutorial on doc.freenas.org about setting up the UPS says that when plugging in any USB device, the console messages screen (the one on the bottom of the freenas web GUI) should show what kind of device was plugged in which USB port on the motherboard. Whatever kind of device I plug in to any USB port; nothing shows up in the messages screen, so I have no clue what port to select when setting up the UPS service.

Second; previously I selected he APC BACKUPS pro (which uses the same generic driver as most of the other UPS'es listed) and things worked kinda out-of-the-box. Now, perhaps due to the USB-port problem, when applying changes the console shows a message like:
Code:
freenas: nut_upsmon not running? (check /var/db/nut/upsmon.pid)


I hope someone here can help me with this.. thanks!
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Open a shell from the GUI and type dmesg | grep usb

You should see the same messages you "should be" seeing at the bottom of the GUI.

If you're still not seeing something helpful, post the output of that command here.
 

Pixeltje

Dabbler
Joined
Feb 20, 2012
Messages
32
Nevermind :) It seems like two USB ports on the motherboard don't work the way they should. I took an old USB stick and used the same port as where the UPS used to sit, and the LED on the stick didn't work. I then plugged the UPS in one of the front-USB ports and there it was.. being recognized as APC and all :)

UPS service is now running! Thanks for the help!

[SUB]Thanks for your reply, this is what I get when I enter dmesg | grep usb:
Code:
usbus0: <EHCI (generic) USB 2.0 controller> on ehci0                            
usbus1: EHCI version 1.0                                                        
usbus1: <EHCI (generic) USB 2.0 controller> on ehci1                            
usbus0: 480Mbps High Speed USB v2.0                                             
usbus1: 480Mbps High Speed USB v2.0                                             
ugen0.1: <Intel> at usbus0                                                      
uhub0: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0        
ugen1.1: <Intel> at usbus1                                                      
uhub1: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1        
ugen0.2: <vendor 0x8087> at usbus0                                              
uhub2: <vendor 0x8087 product 0x0024, class 9/0, rev 2.00/0.00, addr 2> on usbus
0                                                                               
ugen1.2: <vendor 0x8087> at usbus1                                              
uhub3: <vendor 0x8087 product 0x0024, class 9/0, rev 2.00/0.00, addr 2> on usbus
1                                                                               
ugen1.3: <Logitech> at usbus1                                                   
ukbd0: <Logitech Logitech USB Keyboard, class 0/0, rev 1.10/15.00, addr 3> on us
bus1                                                                            
ums0: <Logitech Logitech USB Keyboard, class 0/0, rev 1.10/15.00, addr 3> on usb
us1                                                                             
ugen1.4: <Corsair> at usbus1                                                    
umass0: <Corsair Flash Voyager, class 0/0, rev 2.00/11.00, addr 4> on usbus1    
ugen1.3: <Logitech> at usbus1 (disconnected)                                    
[root@freenas ~]# 


I guess the device "generic" at port 0.2 would be the UPS?

When I change the settings in the UPS service to port 0.2 and the proper driver, this is what the console message looks like:
Code:
Feb 14 19:36:32 freenas notifier: nut not running? (check /var/db/nut/upsd.pid).
Feb 14 19:36:32 freenas notifier: nut_upsmon not running? (check /var/db/nut/upsmon.pid).
Feb 14 19:36:32 freenas notifier: nut_upslog not running? (check /var/db/nut/upslog.pid).
Feb 14 19:36:32 freenas notifier: Will not 'restart' nut because nut_enable is NO.
Feb 14 19:36:32 freenas notifier: Will not 'restart' nut_upsmon because nut_upsmon_enable is NO.
Feb 14 19:36:32 freenas notifier: Will not 'restart' nut_upslog because nut_upslog_enable is NO.
Feb 14 19:36:44 freenas notifier: nut not running? (check /var/db/nut/upsd.pid).
Feb 14 19:36:44 freenas notifier: nut_upsmon not running? (check /var/db/nut/upsmon.pid).
Feb 14 19:36:44 freenas notifier: nut_upslog not running? (check /var/db/nut/upslog.pid).
Feb 14 19:36:44 freenas notifier: nut not running? (check /var/db/nut/upsd.pid).
Feb 14 19:36:58 freenas notifier: Network UPS Tools - Generic HID driver 0.37 (2.6.5)
Feb 14 19:36:58 freenas notifier: USB communication driver 0.31
Feb 14 19:36:58 freenas notifier: No matching HID UPS found
Feb 14 19:36:58 freenas notifier: Driver failed to start (exit status=1)
Feb 14 19:36:58 freenas notifier: Network UPS Tools - UPS driver controller 2.6.5
Feb 14 19:36:58 freenas root: /usr/local/etc/rc.d/nut: WARNING: failed precmd routine for nut
Feb 14 19:36:58 freenas notifier: /usr/local/etc/rc.d/nut: WARNING: failed precmd routine for nut
Feb 14 19:36:58 freenas notifier: nut_upsmon not running? (check /var/db/nut/upsmon.pid).
Feb 14 19:36:58 freenas notifier: Starting nut_upsmon.
Feb 14 19:36:58 freenas notifier: kill: No such process
Feb 14 19:36:58 freenas notifier: UPS: ups (master) (power value 1)
Feb 14 19:36:58 freenas upsmon[28517]: UPS [ups]: connect failed: Connection failure: Connection refused
Feb 14 19:36:58 freenas upsmon[28517]: Communications with UPS ups lost
Feb 14 19:36:58 freenas notifier: nut_upslog not running? (check /var/db/nut/upslog.pid).
Feb 14 19:36:58 freenas notifier: Starting nut_upslog.
Feb 14 19:36:58 freenas notifier: Warning: initial connect failed: Connection failure: Connection refused
Feb 14 19:36:59 freenas notifier: Stopping nut_upslog.
Feb 14 19:36:59 freenas notifier: Stopping nut_upsmon.
Feb 14 19:36:59 freenas upsmon[28516]: upsmon parent: read
Feb 14 19:36:59 freenas notifier: nut not running? (check /var/db/nut/upsd.pid).


I don't understand all of it but i'd say there is some sort of permissions issue here? It looks like the connection between UPS and Freenas doens't work. I've tried the UPS at my laptop, and it seems to be working.[/SUB]
 

steamace1

Dabbler
Joined
Jul 26, 2013
Messages
18
I am not sure if you are still having issues, I just set mine up today after a few head aches and wondering what was up so I checked the service menu and I had forgot to enable the UPS under services. If you have not done that it might be a simple fix.

edit: I just realized this was posted in Feb
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526

Pixeltje

Dabbler
Joined
Feb 20, 2012
Messages
32
I am not sure if you are still having issues, I just set mine up today after a few head aches and wondering what was up so I checked the service menu and I had forgot to enable the UPS under services. If you have not done that it might be a simple fix.

edit: I just realized this was posted in Feb

The problem has indeed been solved back in February, but sometimes there are still some issues with the UPS. Most of them are solved by unplugging and reconnection the UPS's USB connection to the NAS.
 
Status
Not open for further replies.
Top